configure 804 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517
  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_render_d3d
  822. '
  823. ac_precious_vars='build_alias
  824. host_alias
  825. target_alias
  826. CC
  827. CFLAGS
  828. LDFLAGS
  829. LIBS
  830. CPPFLAGS
  831. CPP
  832. CXX
  833. CXXFLAGS
  834. CCC
  835. CXXCPP
  836. XMKMF'
  837. # Initialize some variables set by options.
  838. ac_init_help=
  839. ac_init_version=false
  840. ac_unrecognized_opts=
  841. ac_unrecognized_sep=
  842. # The variables have the same names as the options, with
  843. # dashes changed to underlines.
  844. cache_file=/dev/null
  845. exec_prefix=NONE
  846. no_create=
  847. no_recursion=
  848. prefix=NONE
  849. program_prefix=NONE
  850. program_suffix=NONE
  851. program_transform_name=s,x,x,
  852. silent=
  853. site=
  854. srcdir=
  855. verbose=
  856. x_includes=NONE
  857. x_libraries=NONE
  858. # Installation directory options.
  859. # These are left unexpanded so users can "make install exec_prefix=/foo"
  860. # and all the variables that are supposed to be based on exec_prefix
  861. # by default will actually change.
  862. # Use braces instead of parens because sh, perl, etc. also accept them.
  863. # (The list follows the same order as the GNU Coding Standards.)
  864. bindir='${exec_prefix}/bin'
  865. sbindir='${exec_prefix}/sbin'
  866. libexecdir='${exec_prefix}/libexec'
  867. datarootdir='${prefix}/share'
  868. datadir='${datarootdir}'
  869. sysconfdir='${prefix}/etc'
  870. sharedstatedir='${prefix}/com'
  871. localstatedir='${prefix}/var'
  872. includedir='${prefix}/include'
  873. oldincludedir='/usr/include'
  874. docdir='${datarootdir}/doc/${PACKAGE}'
  875. infodir='${datarootdir}/info'
  876. htmldir='${docdir}'
  877. dvidir='${docdir}'
  878. pdfdir='${docdir}'
  879. psdir='${docdir}'
  880. libdir='${exec_prefix}/lib'
  881. localedir='${datarootdir}/locale'
  882. mandir='${datarootdir}/man'
  883. ac_prev=
  884. ac_dashdash=
  885. for ac_option
  886. do
  887. # If the previous option needs an argument, assign it.
  888. if test -n "$ac_prev"; then
  889. eval $ac_prev=\$ac_option
  890. ac_prev=
  891. continue
  892. fi
  893. case $ac_option in
  894. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  895. *=) ac_optarg= ;;
  896. *) ac_optarg=yes ;;
  897. esac
  898. # Accept the important Cygnus configure options, so we can diagnose typos.
  899. case $ac_dashdash$ac_option in
  900. --)
  901. ac_dashdash=yes ;;
  902. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  903. ac_prev=bindir ;;
  904. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  905. bindir=$ac_optarg ;;
  906. -build | --build | --buil | --bui | --bu)
  907. ac_prev=build_alias ;;
  908. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  909. build_alias=$ac_optarg ;;
  910. -cache-file | --cache-file | --cache-fil | --cache-fi \
  911. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  912. ac_prev=cache_file ;;
  913. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  914. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  915. cache_file=$ac_optarg ;;
  916. --config-cache | -C)
  917. cache_file=config.cache ;;
  918. -datadir | --datadir | --datadi | --datad)
  919. ac_prev=datadir ;;
  920. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  921. datadir=$ac_optarg ;;
  922. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  923. | --dataroo | --dataro | --datar)
  924. ac_prev=datarootdir ;;
  925. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  926. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  927. datarootdir=$ac_optarg ;;
  928. -disable-* | --disable-*)
  929. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  932. as_fn_error $? "invalid feature name: $ac_useropt"
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "enable_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval enable_$ac_useropt=no ;;
  943. -docdir | --docdir | --docdi | --doc | --do)
  944. ac_prev=docdir ;;
  945. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  946. docdir=$ac_optarg ;;
  947. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  948. ac_prev=dvidir ;;
  949. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  950. dvidir=$ac_optarg ;;
  951. -enable-* | --enable-*)
  952. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  953. # Reject names that are not valid shell variable names.
  954. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  955. as_fn_error $? "invalid feature name: $ac_useropt"
  956. ac_useropt_orig=$ac_useropt
  957. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  958. case $ac_user_opts in
  959. *"
  960. "enable_$ac_useropt"
  961. "*) ;;
  962. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  963. ac_unrecognized_sep=', ';;
  964. esac
  965. eval enable_$ac_useropt=\$ac_optarg ;;
  966. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  967. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  968. | --exec | --exe | --ex)
  969. ac_prev=exec_prefix ;;
  970. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  971. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  972. | --exec=* | --exe=* | --ex=*)
  973. exec_prefix=$ac_optarg ;;
  974. -gas | --gas | --ga | --g)
  975. # Obsolete; use --with-gas.
  976. with_gas=yes ;;
  977. -help | --help | --hel | --he | -h)
  978. ac_init_help=long ;;
  979. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  980. ac_init_help=recursive ;;
  981. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  982. ac_init_help=short ;;
  983. -host | --host | --hos | --ho)
  984. ac_prev=host_alias ;;
  985. -host=* | --host=* | --hos=* | --ho=*)
  986. host_alias=$ac_optarg ;;
  987. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  988. ac_prev=htmldir ;;
  989. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  990. | --ht=*)
  991. htmldir=$ac_optarg ;;
  992. -includedir | --includedir | --includedi | --included | --include \
  993. | --includ | --inclu | --incl | --inc)
  994. ac_prev=includedir ;;
  995. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  996. | --includ=* | --inclu=* | --incl=* | --inc=*)
  997. includedir=$ac_optarg ;;
  998. -infodir | --infodir | --infodi | --infod | --info | --inf)
  999. ac_prev=infodir ;;
  1000. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1001. infodir=$ac_optarg ;;
  1002. -libdir | --libdir | --libdi | --libd)
  1003. ac_prev=libdir ;;
  1004. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1005. libdir=$ac_optarg ;;
  1006. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1007. | --libexe | --libex | --libe)
  1008. ac_prev=libexecdir ;;
  1009. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1010. | --libexe=* | --libex=* | --libe=*)
  1011. libexecdir=$ac_optarg ;;
  1012. -localedir | --localedir | --localedi | --localed | --locale)
  1013. ac_prev=localedir ;;
  1014. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1015. localedir=$ac_optarg ;;
  1016. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1017. | --localstate | --localstat | --localsta | --localst | --locals)
  1018. ac_prev=localstatedir ;;
  1019. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1020. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1021. localstatedir=$ac_optarg ;;
  1022. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1023. ac_prev=mandir ;;
  1024. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1025. mandir=$ac_optarg ;;
  1026. -nfp | --nfp | --nf)
  1027. # Obsolete; use --without-fp.
  1028. with_fp=no ;;
  1029. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1030. | --no-cr | --no-c | -n)
  1031. no_create=yes ;;
  1032. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1033. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1034. no_recursion=yes ;;
  1035. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1036. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1037. | --oldin | --oldi | --old | --ol | --o)
  1038. ac_prev=oldincludedir ;;
  1039. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1040. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1041. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1042. oldincludedir=$ac_optarg ;;
  1043. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1044. ac_prev=prefix ;;
  1045. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1046. prefix=$ac_optarg ;;
  1047. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1048. | --program-pre | --program-pr | --program-p)
  1049. ac_prev=program_prefix ;;
  1050. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1051. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1052. program_prefix=$ac_optarg ;;
  1053. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1054. | --program-suf | --program-su | --program-s)
  1055. ac_prev=program_suffix ;;
  1056. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1057. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1058. program_suffix=$ac_optarg ;;
  1059. -program-transform-name | --program-transform-name \
  1060. | --program-transform-nam | --program-transform-na \
  1061. | --program-transform-n | --program-transform- \
  1062. | --program-transform | --program-transfor \
  1063. | --program-transfo | --program-transf \
  1064. | --program-trans | --program-tran \
  1065. | --progr-tra | --program-tr | --program-t)
  1066. ac_prev=program_transform_name ;;
  1067. -program-transform-name=* | --program-transform-name=* \
  1068. | --program-transform-nam=* | --program-transform-na=* \
  1069. | --program-transform-n=* | --program-transform-=* \
  1070. | --program-transform=* | --program-transfor=* \
  1071. | --program-transfo=* | --program-transf=* \
  1072. | --program-trans=* | --program-tran=* \
  1073. | --progr-tra=* | --program-tr=* | --program-t=*)
  1074. program_transform_name=$ac_optarg ;;
  1075. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1076. ac_prev=pdfdir ;;
  1077. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1078. pdfdir=$ac_optarg ;;
  1079. -psdir | --psdir | --psdi | --psd | --ps)
  1080. ac_prev=psdir ;;
  1081. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1082. psdir=$ac_optarg ;;
  1083. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1084. | -silent | --silent | --silen | --sile | --sil)
  1085. silent=yes ;;
  1086. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1087. ac_prev=sbindir ;;
  1088. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1089. | --sbi=* | --sb=*)
  1090. sbindir=$ac_optarg ;;
  1091. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1092. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1093. | --sharedst | --shareds | --shared | --share | --shar \
  1094. | --sha | --sh)
  1095. ac_prev=sharedstatedir ;;
  1096. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1097. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1098. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1099. | --sha=* | --sh=*)
  1100. sharedstatedir=$ac_optarg ;;
  1101. -site | --site | --sit)
  1102. ac_prev=site ;;
  1103. -site=* | --site=* | --sit=*)
  1104. site=$ac_optarg ;;
  1105. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1106. ac_prev=srcdir ;;
  1107. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1108. srcdir=$ac_optarg ;;
  1109. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1110. | --syscon | --sysco | --sysc | --sys | --sy)
  1111. ac_prev=sysconfdir ;;
  1112. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1113. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1114. sysconfdir=$ac_optarg ;;
  1115. -target | --target | --targe | --targ | --tar | --ta | --t)
  1116. ac_prev=target_alias ;;
  1117. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1118. target_alias=$ac_optarg ;;
  1119. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1120. verbose=yes ;;
  1121. -version | --version | --versio | --versi | --vers | -V)
  1122. ac_init_version=: ;;
  1123. -with-* | --with-*)
  1124. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1125. # Reject names that are not valid shell variable names.
  1126. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1127. as_fn_error $? "invalid package name: $ac_useropt"
  1128. ac_useropt_orig=$ac_useropt
  1129. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1130. case $ac_user_opts in
  1131. *"
  1132. "with_$ac_useropt"
  1133. "*) ;;
  1134. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1135. ac_unrecognized_sep=', ';;
  1136. esac
  1137. eval with_$ac_useropt=\$ac_optarg ;;
  1138. -without-* | --without-*)
  1139. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1140. # Reject names that are not valid shell variable names.
  1141. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1142. as_fn_error $? "invalid package name: $ac_useropt"
  1143. ac_useropt_orig=$ac_useropt
  1144. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1145. case $ac_user_opts in
  1146. *"
  1147. "with_$ac_useropt"
  1148. "*) ;;
  1149. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1150. ac_unrecognized_sep=', ';;
  1151. esac
  1152. eval with_$ac_useropt=no ;;
  1153. --x)
  1154. # Obsolete; use --with-x.
  1155. with_x=yes ;;
  1156. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1157. | --x-incl | --x-inc | --x-in | --x-i)
  1158. ac_prev=x_includes ;;
  1159. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1160. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1161. x_includes=$ac_optarg ;;
  1162. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1163. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1164. ac_prev=x_libraries ;;
  1165. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1166. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1167. x_libraries=$ac_optarg ;;
  1168. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1169. Try \`$0 --help' for more information"
  1170. ;;
  1171. *=*)
  1172. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1173. # Reject names that are not valid shell variable names.
  1174. case $ac_envvar in #(
  1175. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1176. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1177. esac
  1178. eval $ac_envvar=\$ac_optarg
  1179. export $ac_envvar ;;
  1180. *)
  1181. # FIXME: should be removed in autoconf 3.0.
  1182. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1183. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1184. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1185. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1186. ;;
  1187. esac
  1188. done
  1189. if test -n "$ac_prev"; then
  1190. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1191. as_fn_error $? "missing argument to $ac_option"
  1192. fi
  1193. if test -n "$ac_unrecognized_opts"; then
  1194. case $enable_option_checking in
  1195. no) ;;
  1196. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1197. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1198. esac
  1199. fi
  1200. # Check all directory arguments for consistency.
  1201. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1202. datadir sysconfdir sharedstatedir localstatedir includedir \
  1203. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1204. libdir localedir mandir
  1205. do
  1206. eval ac_val=\$$ac_var
  1207. # Remove trailing slashes.
  1208. case $ac_val in
  1209. */ )
  1210. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1211. eval $ac_var=\$ac_val;;
  1212. esac
  1213. # Be sure to have absolute directory names.
  1214. case $ac_val in
  1215. [\\/$]* | ?:[\\/]* ) continue;;
  1216. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1217. esac
  1218. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1219. done
  1220. # There might be people who depend on the old broken behavior: `$host'
  1221. # used to hold the argument of --host etc.
  1222. # FIXME: To remove some day.
  1223. build=$build_alias
  1224. host=$host_alias
  1225. target=$target_alias
  1226. # FIXME: To remove some day.
  1227. if test "x$host_alias" != x; then
  1228. if test "x$build_alias" = x; then
  1229. cross_compiling=maybe
  1230. elif test "x$build_alias" != "x$host_alias"; then
  1231. cross_compiling=yes
  1232. fi
  1233. fi
  1234. ac_tool_prefix=
  1235. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1236. test "$silent" = yes && exec 6>/dev/null
  1237. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1238. ac_ls_di=`ls -di .` &&
  1239. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1240. as_fn_error $? "working directory cannot be determined"
  1241. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1242. as_fn_error $? "pwd does not report name of working directory"
  1243. # Find the source files, if location was not specified.
  1244. if test -z "$srcdir"; then
  1245. ac_srcdir_defaulted=yes
  1246. # Try the directory containing this script, then the parent directory.
  1247. ac_confdir=`$as_dirname -- "$as_myself" ||
  1248. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1249. X"$as_myself" : 'X\(//\)[^/]' \| \
  1250. X"$as_myself" : 'X\(//\)$' \| \
  1251. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1252. $as_echo X"$as_myself" |
  1253. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1254. s//\1/
  1255. q
  1256. }
  1257. /^X\(\/\/\)[^/].*/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\/\)$/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\).*/{
  1266. s//\1/
  1267. q
  1268. }
  1269. s/.*/./; q'`
  1270. srcdir=$ac_confdir
  1271. if test ! -r "$srcdir/$ac_unique_file"; then
  1272. srcdir=..
  1273. fi
  1274. else
  1275. ac_srcdir_defaulted=no
  1276. fi
  1277. if test ! -r "$srcdir/$ac_unique_file"; then
  1278. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1279. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1280. fi
  1281. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1282. ac_abs_confdir=`(
  1283. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1284. pwd)`
  1285. # When building in place, set srcdir=.
  1286. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1287. srcdir=.
  1288. fi
  1289. # Remove unnecessary trailing slashes from srcdir.
  1290. # Double slashes in file names in object file debugging info
  1291. # mess up M-x gdb in Emacs.
  1292. case $srcdir in
  1293. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1294. esac
  1295. for ac_var in $ac_precious_vars; do
  1296. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1297. eval ac_env_${ac_var}_value=\$${ac_var}
  1298. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1300. done
  1301. #
  1302. # Report the --help message.
  1303. #
  1304. if test "$ac_init_help" = "long"; then
  1305. # Omit some internal or obsolete options to make the list less imposing.
  1306. # This message is too long to be a string in the A/UX 3.1 sh.
  1307. cat <<_ACEOF
  1308. \`configure' configures this package to adapt to many kinds of systems.
  1309. Usage: $0 [OPTION]... [VAR=VALUE]...
  1310. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1311. VAR=VALUE. See below for descriptions of some of the useful variables.
  1312. Defaults for the options are specified in brackets.
  1313. Configuration:
  1314. -h, --help display this help and exit
  1315. --help=short display options specific to this package
  1316. --help=recursive display the short help of all the included packages
  1317. -V, --version display version information and exit
  1318. -q, --quiet, --silent do not print \`checking ...' messages
  1319. --cache-file=FILE cache test results in FILE [disabled]
  1320. -C, --config-cache alias for \`--cache-file=config.cache'
  1321. -n, --no-create do not create output files
  1322. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1323. Installation directories:
  1324. --prefix=PREFIX install architecture-independent files in PREFIX
  1325. [$ac_default_prefix]
  1326. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1327. [PREFIX]
  1328. By default, \`make install' will install all the files in
  1329. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1330. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1331. for instance \`--prefix=\$HOME'.
  1332. For better control, use the options below.
  1333. Fine tuning of the installation directories:
  1334. --bindir=DIR user executables [EPREFIX/bin]
  1335. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1336. --libexecdir=DIR program executables [EPREFIX/libexec]
  1337. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1338. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1339. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1340. --libdir=DIR object code libraries [EPREFIX/lib]
  1341. --includedir=DIR C header files [PREFIX/include]
  1342. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1343. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1344. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1345. --infodir=DIR info documentation [DATAROOTDIR/info]
  1346. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1347. --mandir=DIR man documentation [DATAROOTDIR/man]
  1348. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1349. --htmldir=DIR html documentation [DOCDIR]
  1350. --dvidir=DIR dvi documentation [DOCDIR]
  1351. --pdfdir=DIR pdf documentation [DOCDIR]
  1352. --psdir=DIR ps documentation [DOCDIR]
  1353. _ACEOF
  1354. cat <<\_ACEOF
  1355. X features:
  1356. --x-includes=DIR X include files are in DIR
  1357. --x-libraries=DIR X library files are in DIR
  1358. System types:
  1359. --build=BUILD configure for building on BUILD [guessed]
  1360. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1361. _ACEOF
  1362. fi
  1363. if test -n "$ac_init_help"; then
  1364. cat <<\_ACEOF
  1365. Optional Features:
  1366. --disable-option-checking ignore unrecognized --enable/--with options
  1367. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1368. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1369. --enable-shared[=PKGS] build shared libraries [default=yes]
  1370. --enable-static[=PKGS] build static libraries [default=yes]
  1371. --enable-fast-install[=PKGS]
  1372. optimize for fast installation [default=yes]
  1373. --disable-libtool-lock avoid locking (might break parallel builds)
  1374. --enable-assertions Enable internal sanity checks
  1375. (auto/disabled/release/enabled/paranoid)
  1376. [[default=auto]]
  1377. --enable-dependency-tracking
  1378. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1379. --enable-libc Use the system C library [[default=yes]]
  1380. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1381. --enable-atomic Enable the atomic operations subsystem
  1382. [[default=yes]]
  1383. --enable-audio Enable the audio subsystem [[default=yes]]
  1384. --enable-video Enable the video subsystem [[default=yes]]
  1385. --enable-render Enable the render subsystem [[default=yes]]
  1386. --enable-events Enable the events subsystem [[default=yes]]
  1387. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1388. --enable-haptic Enable the haptic (force feedback) subsystem
  1389. [[default=yes]]
  1390. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1391. --enable-power Enable the power subsystem [[default=yes]]
  1392. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1393. --enable-threads Enable the threading subsystem [[default=yes]]
  1394. --enable-timers Enable the timer subsystem [[default=yes]]
  1395. --enable-file Enable the file subsystem [[default=yes]]
  1396. --enable-loadso Enable the shared object loading subsystem
  1397. [[default=yes]]
  1398. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1399. --enable-assembly Enable assembly routines [[default=yes]]
  1400. --enable-ssemath Allow GCC to use SSE floating point math
  1401. [[default=maybe]]
  1402. --enable-mmx use MMX assembly routines [[default=yes]]
  1403. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1404. --enable-sse use SSE assembly routines [[default=yes]]
  1405. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1406. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1407. --enable-altivec use Altivec assembly routines [[default=yes]]
  1408. --enable-oss support the OSS audio API [[default=maybe]]
  1409. --enable-alsa support the ALSA audio API [[default=yes]]
  1410. --disable-alsatest Do not try to compile and run a test Alsa program
  1411. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1412. --enable-jack use JACK audio [[default=yes]]
  1413. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1414. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1415. --disable-esdtest Do not try to compile and run a test ESD program
  1416. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1417. --enable-pulseaudio use PulseAudio [[default=yes]]
  1418. --enable-pulseaudio-shared
  1419. dynamically load PulseAudio support [[default=yes]]
  1420. --enable-arts support the Analog Real Time Synthesizer
  1421. [[default=yes]]
  1422. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1423. --enable-nas support the NAS audio API [[default=yes]]
  1424. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1425. --enable-sndio support the sndio audio API [[default=yes]]
  1426. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1427. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1428. --enable-fusionsound-shared
  1429. dynamically load fusionsound audio support
  1430. [[default=yes]]
  1431. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1432. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1433. --enable-libsamplerate use libsamplerate for audio rate conversion
  1434. [[default=yes]]
  1435. --enable-libsamplerate-shared
  1436. dynamically load libsamplerate [[default=yes]]
  1437. --enable-video-wayland use Wayland video driver [[default=yes]]
  1438. --enable-video-wayland-qt-touch
  1439. QtWayland server support for Wayland video driver
  1440. [[default=yes]]
  1441. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1442. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1443. --enable-video-x11 use X11 video driver [[default=yes]]
  1444. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1445. --enable-video-x11-xcursor
  1446. enable X11 Xcursor support [[default=yes]]
  1447. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1448. --enable-video-x11-xinerama
  1449. enable X11 Xinerama support [[default=yes]]
  1450. --enable-video-x11-xinput
  1451. enable X11 XInput extension for manymouse, tablets,
  1452. etc [[default=yes]]
  1453. --enable-video-x11-xrandr
  1454. enable X11 Xrandr extension for fullscreen
  1455. [[default=yes]]
  1456. --enable-video-x11-scrnsaver
  1457. enable X11 screensaver extension [[default=yes]]
  1458. --enable-video-x11-xshape
  1459. enable X11 XShape support [[default=yes]]
  1460. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1461. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1462. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1463. --enable-render-metal enable the Metal render driver [[default=yes]]
  1464. --enable-video-directfb use DirectFB video driver [[default=no]]
  1465. --enable-directfb-shared
  1466. dynamically load directfb support [[default=yes]]
  1467. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1468. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1469. --enable-video-dummy use dummy video driver [[default=yes]]
  1470. --enable-video-opengl include OpenGL support [[default=yes]]
  1471. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1472. --enable-video-opengles1
  1473. include OpenGL ES 1.1 support [[default=yes]]
  1474. --enable-video-opengles2
  1475. include OpenGL ES 2.0 support [[default=yes]]
  1476. --enable-video-vulkan include Vulkan support [[default=yes]]
  1477. --enable-libudev enable libudev support [[default=yes]]
  1478. --enable-dbus enable D-Bus support [[default=yes]]
  1479. --enable-ime enable IME support [[default=yes]]
  1480. --enable-ibus enable IBus support [[default=yes]]
  1481. --enable-fcitx enable fcitx support [[default=yes]]
  1482. --enable-input-tslib use the Touchscreen library for input
  1483. [[default=yes]]
  1484. --enable-pthreads use POSIX threads for multi-threading
  1485. [[default=yes]]
  1486. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1487. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1488. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1489. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1490. --enable-hidapi use HIDAPI for low level joystick drivers
  1491. [[default=no]]
  1492. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1493. UNIX [[default=yes]]
  1494. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1495. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1496. Optional Packages:
  1497. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1498. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1499. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1500. both]
  1501. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1502. --with-sysroot=DIR Search for dependent libraries within DIR
  1503. (or the compiler's sysroot if not specified).
  1504. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1505. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1506. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1507. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1508. --with-x use the X Window System
  1509. Some influential environment variables:
  1510. CC C compiler command
  1511. CFLAGS C compiler flags
  1512. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1513. nonstandard directory <lib dir>
  1514. LIBS libraries to pass to the linker, e.g. -l<library>
  1515. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1516. you have headers in a nonstandard directory <include dir>
  1517. CPP C preprocessor
  1518. CXX C++ compiler command
  1519. CXXFLAGS C++ compiler flags
  1520. CXXCPP C++ preprocessor
  1521. XMKMF Path to xmkmf, Makefile generator for X Window System
  1522. Use these variables to override the choices made by `configure' or to help
  1523. it to find libraries and programs with nonstandard names/locations.
  1524. Report bugs to the package provider.
  1525. _ACEOF
  1526. ac_status=$?
  1527. fi
  1528. if test "$ac_init_help" = "recursive"; then
  1529. # If there are subdirs, report their specific --help.
  1530. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1531. test -d "$ac_dir" ||
  1532. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1533. continue
  1534. ac_builddir=.
  1535. case "$ac_dir" in
  1536. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1537. *)
  1538. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1539. # A ".." for each directory in $ac_dir_suffix.
  1540. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1541. case $ac_top_builddir_sub in
  1542. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1543. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1544. esac ;;
  1545. esac
  1546. ac_abs_top_builddir=$ac_pwd
  1547. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1548. # for backward compatibility:
  1549. ac_top_builddir=$ac_top_build_prefix
  1550. case $srcdir in
  1551. .) # We are building in place.
  1552. ac_srcdir=.
  1553. ac_top_srcdir=$ac_top_builddir_sub
  1554. ac_abs_top_srcdir=$ac_pwd ;;
  1555. [\\/]* | ?:[\\/]* ) # Absolute name.
  1556. ac_srcdir=$srcdir$ac_dir_suffix;
  1557. ac_top_srcdir=$srcdir
  1558. ac_abs_top_srcdir=$srcdir ;;
  1559. *) # Relative name.
  1560. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1561. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1562. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1563. esac
  1564. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1565. cd "$ac_dir" || { ac_status=$?; continue; }
  1566. # Check for guested configure.
  1567. if test -f "$ac_srcdir/configure.gnu"; then
  1568. echo &&
  1569. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1570. elif test -f "$ac_srcdir/configure"; then
  1571. echo &&
  1572. $SHELL "$ac_srcdir/configure" --help=recursive
  1573. else
  1574. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1575. fi || ac_status=$?
  1576. cd "$ac_pwd" || { ac_status=$?; break; }
  1577. done
  1578. fi
  1579. test -n "$ac_init_help" && exit $ac_status
  1580. if $ac_init_version; then
  1581. cat <<\_ACEOF
  1582. configure
  1583. generated by GNU Autoconf 2.69
  1584. Copyright (C) 2012 Free Software Foundation, Inc.
  1585. This configure script is free software; the Free Software Foundation
  1586. gives unlimited permission to copy, distribute and modify it.
  1587. _ACEOF
  1588. exit
  1589. fi
  1590. ## ------------------------ ##
  1591. ## Autoconf initialization. ##
  1592. ## ------------------------ ##
  1593. # ac_fn_c_try_compile LINENO
  1594. # --------------------------
  1595. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1596. ac_fn_c_try_compile ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. rm -f conftest.$ac_objext
  1600. if { { ac_try="$ac_compile"
  1601. case "(($ac_try" in
  1602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1603. *) ac_try_echo=$ac_try;;
  1604. esac
  1605. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1606. $as_echo "$ac_try_echo"; } >&5
  1607. (eval "$ac_compile") 2>conftest.err
  1608. ac_status=$?
  1609. if test -s conftest.err; then
  1610. grep -v '^ *+' conftest.err >conftest.er1
  1611. cat conftest.er1 >&5
  1612. mv -f conftest.er1 conftest.err
  1613. fi
  1614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1615. test $ac_status = 0; } && {
  1616. test -z "$ac_c_werror_flag" ||
  1617. test ! -s conftest.err
  1618. } && test -s conftest.$ac_objext; then :
  1619. ac_retval=0
  1620. else
  1621. $as_echo "$as_me: failed program was:" >&5
  1622. sed 's/^/| /' conftest.$ac_ext >&5
  1623. ac_retval=1
  1624. fi
  1625. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1626. as_fn_set_status $ac_retval
  1627. } # ac_fn_c_try_compile
  1628. # ac_fn_c_try_link LINENO
  1629. # -----------------------
  1630. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1631. ac_fn_c_try_link ()
  1632. {
  1633. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1634. rm -f conftest.$ac_objext conftest$ac_exeext
  1635. if { { ac_try="$ac_link"
  1636. case "(($ac_try" in
  1637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1638. *) ac_try_echo=$ac_try;;
  1639. esac
  1640. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1641. $as_echo "$ac_try_echo"; } >&5
  1642. (eval "$ac_link") 2>conftest.err
  1643. ac_status=$?
  1644. if test -s conftest.err; then
  1645. grep -v '^ *+' conftest.err >conftest.er1
  1646. cat conftest.er1 >&5
  1647. mv -f conftest.er1 conftest.err
  1648. fi
  1649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1650. test $ac_status = 0; } && {
  1651. test -z "$ac_c_werror_flag" ||
  1652. test ! -s conftest.err
  1653. } && test -s conftest$ac_exeext && {
  1654. test "$cross_compiling" = yes ||
  1655. test -x conftest$ac_exeext
  1656. }; then :
  1657. ac_retval=0
  1658. else
  1659. $as_echo "$as_me: failed program was:" >&5
  1660. sed 's/^/| /' conftest.$ac_ext >&5
  1661. ac_retval=1
  1662. fi
  1663. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1664. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1665. # interfere with the next link command; also delete a directory that is
  1666. # left behind by Apple's compiler. We do this before executing the actions.
  1667. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1668. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1669. as_fn_set_status $ac_retval
  1670. } # ac_fn_c_try_link
  1671. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1672. # -------------------------------------------------------
  1673. # Tests whether HEADER exists and can be compiled using the include files in
  1674. # INCLUDES, setting the cache variable VAR accordingly.
  1675. ac_fn_c_check_header_compile ()
  1676. {
  1677. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1679. $as_echo_n "checking for $2... " >&6; }
  1680. if eval \${$3+:} false; then :
  1681. $as_echo_n "(cached) " >&6
  1682. else
  1683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1684. /* end confdefs.h. */
  1685. $4
  1686. #include <$2>
  1687. _ACEOF
  1688. if ac_fn_c_try_compile "$LINENO"; then :
  1689. eval "$3=yes"
  1690. else
  1691. eval "$3=no"
  1692. fi
  1693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1694. fi
  1695. eval ac_res=\$$3
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1697. $as_echo "$ac_res" >&6; }
  1698. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1699. } # ac_fn_c_check_header_compile
  1700. # ac_fn_c_try_cpp LINENO
  1701. # ----------------------
  1702. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1703. ac_fn_c_try_cpp ()
  1704. {
  1705. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1706. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1707. case "(($ac_try" in
  1708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1709. *) ac_try_echo=$ac_try;;
  1710. esac
  1711. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1712. $as_echo "$ac_try_echo"; } >&5
  1713. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1714. ac_status=$?
  1715. if test -s conftest.err; then
  1716. grep -v '^ *+' conftest.err >conftest.er1
  1717. cat conftest.er1 >&5
  1718. mv -f conftest.er1 conftest.err
  1719. fi
  1720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1721. test $ac_status = 0; } > conftest.i && {
  1722. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1723. test ! -s conftest.err
  1724. }; then :
  1725. ac_retval=0
  1726. else
  1727. $as_echo "$as_me: failed program was:" >&5
  1728. sed 's/^/| /' conftest.$ac_ext >&5
  1729. ac_retval=1
  1730. fi
  1731. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1732. as_fn_set_status $ac_retval
  1733. } # ac_fn_c_try_cpp
  1734. # ac_fn_c_try_run LINENO
  1735. # ----------------------
  1736. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1737. # that executables *can* be run.
  1738. ac_fn_c_try_run ()
  1739. {
  1740. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1741. if { { ac_try="$ac_link"
  1742. case "(($ac_try" in
  1743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1744. *) ac_try_echo=$ac_try;;
  1745. esac
  1746. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1747. $as_echo "$ac_try_echo"; } >&5
  1748. (eval "$ac_link") 2>&5
  1749. ac_status=$?
  1750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1751. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1752. { { case "(($ac_try" in
  1753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1754. *) ac_try_echo=$ac_try;;
  1755. esac
  1756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1757. $as_echo "$ac_try_echo"; } >&5
  1758. (eval "$ac_try") 2>&5
  1759. ac_status=$?
  1760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1761. test $ac_status = 0; }; }; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: program exited with status $ac_status" >&5
  1765. $as_echo "$as_me: failed program was:" >&5
  1766. sed 's/^/| /' conftest.$ac_ext >&5
  1767. ac_retval=$ac_status
  1768. fi
  1769. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771. as_fn_set_status $ac_retval
  1772. } # ac_fn_c_try_run
  1773. # ac_fn_c_check_func LINENO FUNC VAR
  1774. # ----------------------------------
  1775. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1776. ac_fn_c_check_func ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1780. $as_echo_n "checking for $2... " >&6; }
  1781. if eval \${$3+:} false; then :
  1782. $as_echo_n "(cached) " >&6
  1783. else
  1784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1785. /* end confdefs.h. */
  1786. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1787. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1788. #define $2 innocuous_$2
  1789. /* System header to define __stub macros and hopefully few prototypes,
  1790. which can conflict with char $2 (); below.
  1791. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1792. <limits.h> exists even on freestanding compilers. */
  1793. #ifdef __STDC__
  1794. # include <limits.h>
  1795. #else
  1796. # include <assert.h>
  1797. #endif
  1798. #undef $2
  1799. /* Override any GCC internal prototype to avoid an error.
  1800. Use char because int might match the return type of a GCC
  1801. builtin and then its argument prototype would still apply. */
  1802. #ifdef __cplusplus
  1803. extern "C"
  1804. #endif
  1805. char $2 ();
  1806. /* The GNU C library defines this for functions which it implements
  1807. to always fail with ENOSYS. Some functions are actually named
  1808. something starting with __ and the normal name is an alias. */
  1809. #if defined __stub_$2 || defined __stub___$2
  1810. choke me
  1811. #endif
  1812. int
  1813. main ()
  1814. {
  1815. return $2 ();
  1816. ;
  1817. return 0;
  1818. }
  1819. _ACEOF
  1820. if ac_fn_c_try_link "$LINENO"; then :
  1821. eval "$3=yes"
  1822. else
  1823. eval "$3=no"
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext \
  1826. conftest$ac_exeext conftest.$ac_ext
  1827. fi
  1828. eval ac_res=\$$3
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1830. $as_echo "$ac_res" >&6; }
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. } # ac_fn_c_check_func
  1833. # ac_fn_cxx_try_compile LINENO
  1834. # ----------------------------
  1835. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1836. ac_fn_cxx_try_compile ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. rm -f conftest.$ac_objext
  1840. if { { ac_try="$ac_compile"
  1841. case "(($ac_try" in
  1842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1843. *) ac_try_echo=$ac_try;;
  1844. esac
  1845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1846. $as_echo "$ac_try_echo"; } >&5
  1847. (eval "$ac_compile") 2>conftest.err
  1848. ac_status=$?
  1849. if test -s conftest.err; then
  1850. grep -v '^ *+' conftest.err >conftest.er1
  1851. cat conftest.er1 >&5
  1852. mv -f conftest.er1 conftest.err
  1853. fi
  1854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1855. test $ac_status = 0; } && {
  1856. test -z "$ac_cxx_werror_flag" ||
  1857. test ! -s conftest.err
  1858. } && test -s conftest.$ac_objext; then :
  1859. ac_retval=0
  1860. else
  1861. $as_echo "$as_me: failed program was:" >&5
  1862. sed 's/^/| /' conftest.$ac_ext >&5
  1863. ac_retval=1
  1864. fi
  1865. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1866. as_fn_set_status $ac_retval
  1867. } # ac_fn_cxx_try_compile
  1868. # ac_fn_cxx_try_cpp LINENO
  1869. # ------------------------
  1870. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1871. ac_fn_cxx_try_cpp ()
  1872. {
  1873. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1874. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1875. case "(($ac_try" in
  1876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1877. *) ac_try_echo=$ac_try;;
  1878. esac
  1879. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1880. $as_echo "$ac_try_echo"; } >&5
  1881. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1882. ac_status=$?
  1883. if test -s conftest.err; then
  1884. grep -v '^ *+' conftest.err >conftest.er1
  1885. cat conftest.er1 >&5
  1886. mv -f conftest.er1 conftest.err
  1887. fi
  1888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1889. test $ac_status = 0; } > conftest.i && {
  1890. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1891. test ! -s conftest.err
  1892. }; then :
  1893. ac_retval=0
  1894. else
  1895. $as_echo "$as_me: failed program was:" >&5
  1896. sed 's/^/| /' conftest.$ac_ext >&5
  1897. ac_retval=1
  1898. fi
  1899. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1900. as_fn_set_status $ac_retval
  1901. } # ac_fn_cxx_try_cpp
  1902. # ac_fn_cxx_try_link LINENO
  1903. # -------------------------
  1904. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1905. ac_fn_cxx_try_link ()
  1906. {
  1907. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1908. rm -f conftest.$ac_objext conftest$ac_exeext
  1909. if { { ac_try="$ac_link"
  1910. case "(($ac_try" in
  1911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1912. *) ac_try_echo=$ac_try;;
  1913. esac
  1914. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1915. $as_echo "$ac_try_echo"; } >&5
  1916. (eval "$ac_link") 2>conftest.err
  1917. ac_status=$?
  1918. if test -s conftest.err; then
  1919. grep -v '^ *+' conftest.err >conftest.er1
  1920. cat conftest.er1 >&5
  1921. mv -f conftest.er1 conftest.err
  1922. fi
  1923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1924. test $ac_status = 0; } && {
  1925. test -z "$ac_cxx_werror_flag" ||
  1926. test ! -s conftest.err
  1927. } && test -s conftest$ac_exeext && {
  1928. test "$cross_compiling" = yes ||
  1929. test -x conftest$ac_exeext
  1930. }; then :
  1931. ac_retval=0
  1932. else
  1933. $as_echo "$as_me: failed program was:" >&5
  1934. sed 's/^/| /' conftest.$ac_ext >&5
  1935. ac_retval=1
  1936. fi
  1937. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1938. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1939. # interfere with the next link command; also delete a directory that is
  1940. # left behind by Apple's compiler. We do this before executing the actions.
  1941. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1942. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1943. as_fn_set_status $ac_retval
  1944. } # ac_fn_cxx_try_link
  1945. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1946. # -------------------------------------------------------
  1947. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1948. # the include files in INCLUDES and setting the cache variable VAR
  1949. # accordingly.
  1950. ac_fn_c_check_header_mongrel ()
  1951. {
  1952. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1953. if eval \${$3+:} false; then :
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1955. $as_echo_n "checking for $2... " >&6; }
  1956. if eval \${$3+:} false; then :
  1957. $as_echo_n "(cached) " >&6
  1958. fi
  1959. eval ac_res=\$$3
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1961. $as_echo "$ac_res" >&6; }
  1962. else
  1963. # Is the header compilable?
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1965. $as_echo_n "checking $2 usability... " >&6; }
  1966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1967. /* end confdefs.h. */
  1968. $4
  1969. #include <$2>
  1970. _ACEOF
  1971. if ac_fn_c_try_compile "$LINENO"; then :
  1972. ac_header_compiler=yes
  1973. else
  1974. ac_header_compiler=no
  1975. fi
  1976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1978. $as_echo "$ac_header_compiler" >&6; }
  1979. # Is the header present?
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1981. $as_echo_n "checking $2 presence... " >&6; }
  1982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1983. /* end confdefs.h. */
  1984. #include <$2>
  1985. _ACEOF
  1986. if ac_fn_c_try_cpp "$LINENO"; then :
  1987. ac_header_preproc=yes
  1988. else
  1989. ac_header_preproc=no
  1990. fi
  1991. rm -f conftest.err conftest.i conftest.$ac_ext
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1993. $as_echo "$ac_header_preproc" >&6; }
  1994. # So? What about this header?
  1995. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1996. yes:no: )
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1998. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2000. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2001. ;;
  2002. no:yes:* )
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2004. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2006. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2008. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2010. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2012. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2013. ;;
  2014. esac
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2016. $as_echo_n "checking for $2... " >&6; }
  2017. if eval \${$3+:} false; then :
  2018. $as_echo_n "(cached) " >&6
  2019. else
  2020. eval "$3=\$ac_header_compiler"
  2021. fi
  2022. eval ac_res=\$$3
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2024. $as_echo "$ac_res" >&6; }
  2025. fi
  2026. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2027. } # ac_fn_c_check_header_mongrel
  2028. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2029. # -------------------------------------------
  2030. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2031. # variable VAR accordingly.
  2032. ac_fn_c_check_type ()
  2033. {
  2034. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2036. $as_echo_n "checking for $2... " >&6; }
  2037. if eval \${$3+:} false; then :
  2038. $as_echo_n "(cached) " >&6
  2039. else
  2040. eval "$3=no"
  2041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2042. /* end confdefs.h. */
  2043. $4
  2044. int
  2045. main ()
  2046. {
  2047. if (sizeof ($2))
  2048. return 0;
  2049. ;
  2050. return 0;
  2051. }
  2052. _ACEOF
  2053. if ac_fn_c_try_compile "$LINENO"; then :
  2054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2055. /* end confdefs.h. */
  2056. $4
  2057. int
  2058. main ()
  2059. {
  2060. if (sizeof (($2)))
  2061. return 0;
  2062. ;
  2063. return 0;
  2064. }
  2065. _ACEOF
  2066. if ac_fn_c_try_compile "$LINENO"; then :
  2067. else
  2068. eval "$3=yes"
  2069. fi
  2070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2071. fi
  2072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2073. fi
  2074. eval ac_res=\$$3
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2076. $as_echo "$ac_res" >&6; }
  2077. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2078. } # ac_fn_c_check_type
  2079. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2080. # ----------------------------------------------------
  2081. # Tries to find if the field MEMBER exists in type AGGR, after including
  2082. # INCLUDES, setting cache variable VAR accordingly.
  2083. ac_fn_c_check_member ()
  2084. {
  2085. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2087. $as_echo_n "checking for $2.$3... " >&6; }
  2088. if eval \${$4+:} false; then :
  2089. $as_echo_n "(cached) " >&6
  2090. else
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. $5
  2094. int
  2095. main ()
  2096. {
  2097. static $2 ac_aggr;
  2098. if (ac_aggr.$3)
  2099. return 0;
  2100. ;
  2101. return 0;
  2102. }
  2103. _ACEOF
  2104. if ac_fn_c_try_compile "$LINENO"; then :
  2105. eval "$4=yes"
  2106. else
  2107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2108. /* end confdefs.h. */
  2109. $5
  2110. int
  2111. main ()
  2112. {
  2113. static $2 ac_aggr;
  2114. if (sizeof ac_aggr.$3)
  2115. return 0;
  2116. ;
  2117. return 0;
  2118. }
  2119. _ACEOF
  2120. if ac_fn_c_try_compile "$LINENO"; then :
  2121. eval "$4=yes"
  2122. else
  2123. eval "$4=no"
  2124. fi
  2125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2126. fi
  2127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2128. fi
  2129. eval ac_res=\$$4
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2131. $as_echo "$ac_res" >&6; }
  2132. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2133. } # ac_fn_c_check_member
  2134. cat >config.log <<_ACEOF
  2135. This file contains any messages produced by compilers while
  2136. running configure, to aid debugging if configure makes a mistake.
  2137. It was created by $as_me, which was
  2138. generated by GNU Autoconf 2.69. Invocation command line was
  2139. $ $0 $@
  2140. _ACEOF
  2141. exec 5>>config.log
  2142. {
  2143. cat <<_ASUNAME
  2144. ## --------- ##
  2145. ## Platform. ##
  2146. ## --------- ##
  2147. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2148. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2149. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2150. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2151. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2152. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2153. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2154. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2155. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2156. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2157. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2158. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2159. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2160. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2161. _ASUNAME
  2162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2163. for as_dir in $PATH
  2164. do
  2165. IFS=$as_save_IFS
  2166. test -z "$as_dir" && as_dir=.
  2167. $as_echo "PATH: $as_dir"
  2168. done
  2169. IFS=$as_save_IFS
  2170. } >&5
  2171. cat >&5 <<_ACEOF
  2172. ## ----------- ##
  2173. ## Core tests. ##
  2174. ## ----------- ##
  2175. _ACEOF
  2176. # Keep a trace of the command line.
  2177. # Strip out --no-create and --no-recursion so they do not pile up.
  2178. # Strip out --silent because we don't want to record it for future runs.
  2179. # Also quote any args containing shell meta-characters.
  2180. # Make two passes to allow for proper duplicate-argument suppression.
  2181. ac_configure_args=
  2182. ac_configure_args0=
  2183. ac_configure_args1=
  2184. ac_must_keep_next=false
  2185. for ac_pass in 1 2
  2186. do
  2187. for ac_arg
  2188. do
  2189. case $ac_arg in
  2190. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2191. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2192. | -silent | --silent | --silen | --sile | --sil)
  2193. continue ;;
  2194. *\'*)
  2195. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2196. esac
  2197. case $ac_pass in
  2198. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2199. 2)
  2200. as_fn_append ac_configure_args1 " '$ac_arg'"
  2201. if test $ac_must_keep_next = true; then
  2202. ac_must_keep_next=false # Got value, back to normal.
  2203. else
  2204. case $ac_arg in
  2205. *=* | --config-cache | -C | -disable-* | --disable-* \
  2206. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2207. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2208. | -with-* | --with-* | -without-* | --without-* | --x)
  2209. case "$ac_configure_args0 " in
  2210. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2211. esac
  2212. ;;
  2213. -* ) ac_must_keep_next=true ;;
  2214. esac
  2215. fi
  2216. as_fn_append ac_configure_args " '$ac_arg'"
  2217. ;;
  2218. esac
  2219. done
  2220. done
  2221. { ac_configure_args0=; unset ac_configure_args0;}
  2222. { ac_configure_args1=; unset ac_configure_args1;}
  2223. # When interrupted or exit'd, cleanup temporary files, and complete
  2224. # config.log. We remove comments because anyway the quotes in there
  2225. # would cause problems or look ugly.
  2226. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2227. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2228. trap 'exit_status=$?
  2229. # Save into config.log some information that might help in debugging.
  2230. {
  2231. echo
  2232. $as_echo "## ---------------- ##
  2233. ## Cache variables. ##
  2234. ## ---------------- ##"
  2235. echo
  2236. # The following way of writing the cache mishandles newlines in values,
  2237. (
  2238. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2239. eval ac_val=\$$ac_var
  2240. case $ac_val in #(
  2241. *${as_nl}*)
  2242. case $ac_var in #(
  2243. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2244. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2245. esac
  2246. case $ac_var in #(
  2247. _ | IFS | as_nl) ;; #(
  2248. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2249. *) { eval $ac_var=; unset $ac_var;} ;;
  2250. esac ;;
  2251. esac
  2252. done
  2253. (set) 2>&1 |
  2254. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2255. *${as_nl}ac_space=\ *)
  2256. sed -n \
  2257. "s/'\''/'\''\\\\'\'''\''/g;
  2258. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2259. ;; #(
  2260. *)
  2261. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2262. ;;
  2263. esac |
  2264. sort
  2265. )
  2266. echo
  2267. $as_echo "## ----------------- ##
  2268. ## Output variables. ##
  2269. ## ----------------- ##"
  2270. echo
  2271. for ac_var in $ac_subst_vars
  2272. do
  2273. eval ac_val=\$$ac_var
  2274. case $ac_val in
  2275. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2276. esac
  2277. $as_echo "$ac_var='\''$ac_val'\''"
  2278. done | sort
  2279. echo
  2280. if test -n "$ac_subst_files"; then
  2281. $as_echo "## ------------------- ##
  2282. ## File substitutions. ##
  2283. ## ------------------- ##"
  2284. echo
  2285. for ac_var in $ac_subst_files
  2286. do
  2287. eval ac_val=\$$ac_var
  2288. case $ac_val in
  2289. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2290. esac
  2291. $as_echo "$ac_var='\''$ac_val'\''"
  2292. done | sort
  2293. echo
  2294. fi
  2295. if test -s confdefs.h; then
  2296. $as_echo "## ----------- ##
  2297. ## confdefs.h. ##
  2298. ## ----------- ##"
  2299. echo
  2300. cat confdefs.h
  2301. echo
  2302. fi
  2303. test "$ac_signal" != 0 &&
  2304. $as_echo "$as_me: caught signal $ac_signal"
  2305. $as_echo "$as_me: exit $exit_status"
  2306. } >&5
  2307. rm -f core *.core core.conftest.* &&
  2308. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2309. exit $exit_status
  2310. ' 0
  2311. for ac_signal in 1 2 13 15; do
  2312. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2313. done
  2314. ac_signal=0
  2315. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2316. rm -f -r conftest* confdefs.h
  2317. $as_echo "/* confdefs.h */" > confdefs.h
  2318. # Predefined preprocessor variables.
  2319. cat >>confdefs.h <<_ACEOF
  2320. #define PACKAGE_NAME "$PACKAGE_NAME"
  2321. _ACEOF
  2322. cat >>confdefs.h <<_ACEOF
  2323. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2324. _ACEOF
  2325. cat >>confdefs.h <<_ACEOF
  2326. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2327. _ACEOF
  2328. cat >>confdefs.h <<_ACEOF
  2329. #define PACKAGE_STRING "$PACKAGE_STRING"
  2330. _ACEOF
  2331. cat >>confdefs.h <<_ACEOF
  2332. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2333. _ACEOF
  2334. cat >>confdefs.h <<_ACEOF
  2335. #define PACKAGE_URL "$PACKAGE_URL"
  2336. _ACEOF
  2337. # Let the site file select an alternate cache file if it wants to.
  2338. # Prefer an explicitly selected file to automatically selected ones.
  2339. ac_site_file1=NONE
  2340. ac_site_file2=NONE
  2341. if test -n "$CONFIG_SITE"; then
  2342. # We do not want a PATH search for config.site.
  2343. case $CONFIG_SITE in #((
  2344. -*) ac_site_file1=./$CONFIG_SITE;;
  2345. */*) ac_site_file1=$CONFIG_SITE;;
  2346. *) ac_site_file1=./$CONFIG_SITE;;
  2347. esac
  2348. elif test "x$prefix" != xNONE; then
  2349. ac_site_file1=$prefix/share/config.site
  2350. ac_site_file2=$prefix/etc/config.site
  2351. else
  2352. ac_site_file1=$ac_default_prefix/share/config.site
  2353. ac_site_file2=$ac_default_prefix/etc/config.site
  2354. fi
  2355. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2356. do
  2357. test "x$ac_site_file" = xNONE && continue
  2358. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2360. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2361. sed 's/^/| /' "$ac_site_file" >&5
  2362. . "$ac_site_file" \
  2363. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2364. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2365. as_fn_error $? "failed to load site script $ac_site_file
  2366. See \`config.log' for more details" "$LINENO" 5; }
  2367. fi
  2368. done
  2369. if test -r "$cache_file"; then
  2370. # Some versions of bash will fail to source /dev/null (special files
  2371. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2372. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2374. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2375. case $cache_file in
  2376. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2377. *) . "./$cache_file";;
  2378. esac
  2379. fi
  2380. else
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2382. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2383. >$cache_file
  2384. fi
  2385. # Check that the precious variables saved in the cache have kept the same
  2386. # value.
  2387. ac_cache_corrupted=false
  2388. for ac_var in $ac_precious_vars; do
  2389. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2390. eval ac_new_set=\$ac_env_${ac_var}_set
  2391. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2392. eval ac_new_val=\$ac_env_${ac_var}_value
  2393. case $ac_old_set,$ac_new_set in
  2394. set,)
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2396. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2397. ac_cache_corrupted=: ;;
  2398. ,set)
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2400. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2401. ac_cache_corrupted=: ;;
  2402. ,);;
  2403. *)
  2404. if test "x$ac_old_val" != "x$ac_new_val"; then
  2405. # differences in whitespace do not lead to failure.
  2406. ac_old_val_w=`echo x $ac_old_val`
  2407. ac_new_val_w=`echo x $ac_new_val`
  2408. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2410. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2411. ac_cache_corrupted=:
  2412. else
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2414. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2415. eval $ac_var=\$ac_old_val
  2416. fi
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2418. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2420. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2421. fi;;
  2422. esac
  2423. # Pass precious variables to config.status.
  2424. if test "$ac_new_set" = set; then
  2425. case $ac_new_val in
  2426. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2427. *) ac_arg=$ac_var=$ac_new_val ;;
  2428. esac
  2429. case " $ac_configure_args " in
  2430. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2431. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2432. esac
  2433. fi
  2434. done
  2435. if $ac_cache_corrupted; then
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2437. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2439. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2440. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2441. fi
  2442. ## -------------------- ##
  2443. ## Main body of script. ##
  2444. ## -------------------- ##
  2445. ac_ext=c
  2446. ac_cpp='$CPP $CPPFLAGS'
  2447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2450. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2451. ac_aux_dir=
  2452. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2453. if test -f "$ac_dir/install-sh"; then
  2454. ac_aux_dir=$ac_dir
  2455. ac_install_sh="$ac_aux_dir/install-sh -c"
  2456. break
  2457. elif test -f "$ac_dir/install.sh"; then
  2458. ac_aux_dir=$ac_dir
  2459. ac_install_sh="$ac_aux_dir/install.sh -c"
  2460. break
  2461. elif test -f "$ac_dir/shtool"; then
  2462. ac_aux_dir=$ac_dir
  2463. ac_install_sh="$ac_aux_dir/shtool install -c"
  2464. break
  2465. fi
  2466. done
  2467. if test -z "$ac_aux_dir"; then
  2468. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2469. fi
  2470. # These three variables are undocumented and unsupported,
  2471. # and are intended to be withdrawn in a future Autoconf release.
  2472. # They can cause serious problems if a builder's source tree is in a directory
  2473. # whose full name contains unusual characters.
  2474. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2475. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2476. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2477. orig_CFLAGS="$CFLAGS"
  2478. #
  2479. # Making releases:
  2480. # Edit include/SDL_version.h and change the version, then:
  2481. # SDL_MICRO_VERSION += 1;
  2482. # SDL_INTERFACE_AGE += 1;
  2483. # SDL_BINARY_AGE += 1;
  2484. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2485. # if backwards compatibility has been broken,
  2486. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2487. #
  2488. SDL_MAJOR_VERSION=2
  2489. SDL_MINOR_VERSION=0
  2490. SDL_MICRO_VERSION=9
  2491. SDL_INTERFACE_AGE=0
  2492. SDL_BINARY_AGE=9
  2493. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2494. # libtool versioning
  2495. case `pwd` in
  2496. *\ * | *\ *)
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2498. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2499. esac
  2500. macro_version='2.4.2'
  2501. macro_revision='1.3337'
  2502. ltmain="$ac_aux_dir/ltmain.sh"
  2503. # Make sure we can run config.sub.
  2504. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2505. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2507. $as_echo_n "checking build system type... " >&6; }
  2508. if ${ac_cv_build+:} false; then :
  2509. $as_echo_n "(cached) " >&6
  2510. else
  2511. ac_build_alias=$build_alias
  2512. test "x$ac_build_alias" = x &&
  2513. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2514. test "x$ac_build_alias" = x &&
  2515. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2516. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2517. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2518. fi
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2520. $as_echo "$ac_cv_build" >&6; }
  2521. case $ac_cv_build in
  2522. *-*-*) ;;
  2523. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2524. esac
  2525. build=$ac_cv_build
  2526. ac_save_IFS=$IFS; IFS='-'
  2527. set x $ac_cv_build
  2528. shift
  2529. build_cpu=$1
  2530. build_vendor=$2
  2531. shift; shift
  2532. # Remember, the first character of IFS is used to create $*,
  2533. # except with old shells:
  2534. build_os=$*
  2535. IFS=$ac_save_IFS
  2536. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2538. $as_echo_n "checking host system type... " >&6; }
  2539. if ${ac_cv_host+:} false; then :
  2540. $as_echo_n "(cached) " >&6
  2541. else
  2542. if test "x$host_alias" = x; then
  2543. ac_cv_host=$ac_cv_build
  2544. else
  2545. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2546. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2547. fi
  2548. fi
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2550. $as_echo "$ac_cv_host" >&6; }
  2551. case $ac_cv_host in
  2552. *-*-*) ;;
  2553. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2554. esac
  2555. host=$ac_cv_host
  2556. ac_save_IFS=$IFS; IFS='-'
  2557. set x $ac_cv_host
  2558. shift
  2559. host_cpu=$1
  2560. host_vendor=$2
  2561. shift; shift
  2562. # Remember, the first character of IFS is used to create $*,
  2563. # except with old shells:
  2564. host_os=$*
  2565. IFS=$ac_save_IFS
  2566. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2567. # Backslashify metacharacters that are still active within
  2568. # double-quoted strings.
  2569. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2570. # Same as above, but do not quote variable references.
  2571. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2572. # Sed substitution to delay expansion of an escaped shell variable in a
  2573. # double_quote_subst'ed string.
  2574. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2575. # Sed substitution to delay expansion of an escaped single quote.
  2576. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2577. # Sed substitution to avoid accidental globbing in evaled expressions
  2578. no_glob_subst='s/\*/\\\*/g'
  2579. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2580. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2581. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2583. $as_echo_n "checking how to print strings... " >&6; }
  2584. # Test print first, because it will be a builtin if present.
  2585. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2586. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2587. ECHO='print -r --'
  2588. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2589. ECHO='printf %s\n'
  2590. else
  2591. # Use this function as a fallback that always works.
  2592. func_fallback_echo ()
  2593. {
  2594. eval 'cat <<_LTECHO_EOF
  2595. $1
  2596. _LTECHO_EOF'
  2597. }
  2598. ECHO='func_fallback_echo'
  2599. fi
  2600. # func_echo_all arg...
  2601. # Invoke $ECHO with all args, space-separated.
  2602. func_echo_all ()
  2603. {
  2604. $ECHO ""
  2605. }
  2606. case "$ECHO" in
  2607. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2608. $as_echo "printf" >&6; } ;;
  2609. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2610. $as_echo "print -r" >&6; } ;;
  2611. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2612. $as_echo "cat" >&6; } ;;
  2613. esac
  2614. ac_ext=c
  2615. ac_cpp='$CPP $CPPFLAGS'
  2616. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2617. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2618. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2619. if test -n "$ac_tool_prefix"; then
  2620. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2621. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2623. $as_echo_n "checking for $ac_word... " >&6; }
  2624. if ${ac_cv_prog_CC+:} false; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. if test -n "$CC"; then
  2628. ac_cv_prog_CC="$CC" # Let the user override the test.
  2629. else
  2630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2631. for as_dir in $PATH
  2632. do
  2633. IFS=$as_save_IFS
  2634. test -z "$as_dir" && as_dir=.
  2635. for ac_exec_ext in '' $ac_executable_extensions; do
  2636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2637. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2639. break 2
  2640. fi
  2641. done
  2642. done
  2643. IFS=$as_save_IFS
  2644. fi
  2645. fi
  2646. CC=$ac_cv_prog_CC
  2647. if test -n "$CC"; then
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2649. $as_echo "$CC" >&6; }
  2650. else
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2652. $as_echo "no" >&6; }
  2653. fi
  2654. fi
  2655. if test -z "$ac_cv_prog_CC"; then
  2656. ac_ct_CC=$CC
  2657. # Extract the first word of "gcc", so it can be a program name with args.
  2658. set dummy gcc; ac_word=$2
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2660. $as_echo_n "checking for $ac_word... " >&6; }
  2661. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2662. $as_echo_n "(cached) " >&6
  2663. else
  2664. if test -n "$ac_ct_CC"; then
  2665. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2666. else
  2667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2668. for as_dir in $PATH
  2669. do
  2670. IFS=$as_save_IFS
  2671. test -z "$as_dir" && as_dir=.
  2672. for ac_exec_ext in '' $ac_executable_extensions; do
  2673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2674. ac_cv_prog_ac_ct_CC="gcc"
  2675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2676. break 2
  2677. fi
  2678. done
  2679. done
  2680. IFS=$as_save_IFS
  2681. fi
  2682. fi
  2683. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2684. if test -n "$ac_ct_CC"; then
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2686. $as_echo "$ac_ct_CC" >&6; }
  2687. else
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2689. $as_echo "no" >&6; }
  2690. fi
  2691. if test "x$ac_ct_CC" = x; then
  2692. CC=""
  2693. else
  2694. case $cross_compiling:$ac_tool_warned in
  2695. yes:)
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2698. ac_tool_warned=yes ;;
  2699. esac
  2700. CC=$ac_ct_CC
  2701. fi
  2702. else
  2703. CC="$ac_cv_prog_CC"
  2704. fi
  2705. if test -z "$CC"; then
  2706. if test -n "$ac_tool_prefix"; then
  2707. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2708. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2710. $as_echo_n "checking for $ac_word... " >&6; }
  2711. if ${ac_cv_prog_CC+:} false; then :
  2712. $as_echo_n "(cached) " >&6
  2713. else
  2714. if test -n "$CC"; then
  2715. ac_cv_prog_CC="$CC" # Let the user override the test.
  2716. else
  2717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2718. for as_dir in $PATH
  2719. do
  2720. IFS=$as_save_IFS
  2721. test -z "$as_dir" && as_dir=.
  2722. for ac_exec_ext in '' $ac_executable_extensions; do
  2723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2724. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2726. break 2
  2727. fi
  2728. done
  2729. done
  2730. IFS=$as_save_IFS
  2731. fi
  2732. fi
  2733. CC=$ac_cv_prog_CC
  2734. if test -n "$CC"; then
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2736. $as_echo "$CC" >&6; }
  2737. else
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2739. $as_echo "no" >&6; }
  2740. fi
  2741. fi
  2742. fi
  2743. if test -z "$CC"; then
  2744. # Extract the first word of "cc", so it can be a program name with args.
  2745. set dummy cc; ac_word=$2
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2747. $as_echo_n "checking for $ac_word... " >&6; }
  2748. if ${ac_cv_prog_CC+:} false; then :
  2749. $as_echo_n "(cached) " >&6
  2750. else
  2751. if test -n "$CC"; then
  2752. ac_cv_prog_CC="$CC" # Let the user override the test.
  2753. else
  2754. ac_prog_rejected=no
  2755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2756. for as_dir in $PATH
  2757. do
  2758. IFS=$as_save_IFS
  2759. test -z "$as_dir" && as_dir=.
  2760. for ac_exec_ext in '' $ac_executable_extensions; do
  2761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2762. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2763. ac_prog_rejected=yes
  2764. continue
  2765. fi
  2766. ac_cv_prog_CC="cc"
  2767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2768. break 2
  2769. fi
  2770. done
  2771. done
  2772. IFS=$as_save_IFS
  2773. if test $ac_prog_rejected = yes; then
  2774. # We found a bogon in the path, so make sure we never use it.
  2775. set dummy $ac_cv_prog_CC
  2776. shift
  2777. if test $# != 0; then
  2778. # We chose a different compiler from the bogus one.
  2779. # However, it has the same basename, so the bogon will be chosen
  2780. # first if we set CC to just the basename; use the full file name.
  2781. shift
  2782. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2783. fi
  2784. fi
  2785. fi
  2786. fi
  2787. CC=$ac_cv_prog_CC
  2788. if test -n "$CC"; then
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2790. $as_echo "$CC" >&6; }
  2791. else
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2793. $as_echo "no" >&6; }
  2794. fi
  2795. fi
  2796. if test -z "$CC"; then
  2797. if test -n "$ac_tool_prefix"; then
  2798. for ac_prog in cl.exe
  2799. do
  2800. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2801. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2803. $as_echo_n "checking for $ac_word... " >&6; }
  2804. if ${ac_cv_prog_CC+:} false; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. if test -n "$CC"; then
  2808. ac_cv_prog_CC="$CC" # Let the user override the test.
  2809. else
  2810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2811. for as_dir in $PATH
  2812. do
  2813. IFS=$as_save_IFS
  2814. test -z "$as_dir" && as_dir=.
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2817. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2819. break 2
  2820. fi
  2821. done
  2822. done
  2823. IFS=$as_save_IFS
  2824. fi
  2825. fi
  2826. CC=$ac_cv_prog_CC
  2827. if test -n "$CC"; then
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2829. $as_echo "$CC" >&6; }
  2830. else
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2832. $as_echo "no" >&6; }
  2833. fi
  2834. test -n "$CC" && break
  2835. done
  2836. fi
  2837. if test -z "$CC"; then
  2838. ac_ct_CC=$CC
  2839. for ac_prog in cl.exe
  2840. do
  2841. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2842. set dummy $ac_prog; ac_word=$2
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2844. $as_echo_n "checking for $ac_word... " >&6; }
  2845. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2846. $as_echo_n "(cached) " >&6
  2847. else
  2848. if test -n "$ac_ct_CC"; then
  2849. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2850. else
  2851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2852. for as_dir in $PATH
  2853. do
  2854. IFS=$as_save_IFS
  2855. test -z "$as_dir" && as_dir=.
  2856. for ac_exec_ext in '' $ac_executable_extensions; do
  2857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2858. ac_cv_prog_ac_ct_CC="$ac_prog"
  2859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2860. break 2
  2861. fi
  2862. done
  2863. done
  2864. IFS=$as_save_IFS
  2865. fi
  2866. fi
  2867. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2868. if test -n "$ac_ct_CC"; then
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2870. $as_echo "$ac_ct_CC" >&6; }
  2871. else
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2873. $as_echo "no" >&6; }
  2874. fi
  2875. test -n "$ac_ct_CC" && break
  2876. done
  2877. if test "x$ac_ct_CC" = x; then
  2878. CC=""
  2879. else
  2880. case $cross_compiling:$ac_tool_warned in
  2881. yes:)
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2883. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2884. ac_tool_warned=yes ;;
  2885. esac
  2886. CC=$ac_ct_CC
  2887. fi
  2888. fi
  2889. fi
  2890. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2891. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2892. as_fn_error $? "no acceptable C compiler found in \$PATH
  2893. See \`config.log' for more details" "$LINENO" 5; }
  2894. # Provide some information about the compiler.
  2895. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2896. set X $ac_compile
  2897. ac_compiler=$2
  2898. for ac_option in --version -v -V -qversion; do
  2899. { { ac_try="$ac_compiler $ac_option >&5"
  2900. case "(($ac_try" in
  2901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2902. *) ac_try_echo=$ac_try;;
  2903. esac
  2904. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2905. $as_echo "$ac_try_echo"; } >&5
  2906. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2907. ac_status=$?
  2908. if test -s conftest.err; then
  2909. sed '10a\
  2910. ... rest of stderr output deleted ...
  2911. 10q' conftest.err >conftest.er1
  2912. cat conftest.er1 >&5
  2913. fi
  2914. rm -f conftest.er1 conftest.err
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2916. test $ac_status = 0; }
  2917. done
  2918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2919. /* end confdefs.h. */
  2920. int
  2921. main ()
  2922. {
  2923. ;
  2924. return 0;
  2925. }
  2926. _ACEOF
  2927. ac_clean_files_save=$ac_clean_files
  2928. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2929. # Try to create an executable without -o first, disregard a.out.
  2930. # It will help us diagnose broken compilers, and finding out an intuition
  2931. # of exeext.
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2933. $as_echo_n "checking whether the C compiler works... " >&6; }
  2934. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2935. # The possible output files:
  2936. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2937. ac_rmfiles=
  2938. for ac_file in $ac_files
  2939. do
  2940. case $ac_file in
  2941. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2942. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2943. esac
  2944. done
  2945. rm -f $ac_rmfiles
  2946. if { { ac_try="$ac_link_default"
  2947. case "(($ac_try" in
  2948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2949. *) ac_try_echo=$ac_try;;
  2950. esac
  2951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2952. $as_echo "$ac_try_echo"; } >&5
  2953. (eval "$ac_link_default") 2>&5
  2954. ac_status=$?
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2956. test $ac_status = 0; }; then :
  2957. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2958. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2959. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2960. # so that the user can short-circuit this test for compilers unknown to
  2961. # Autoconf.
  2962. for ac_file in $ac_files ''
  2963. do
  2964. test -f "$ac_file" || continue
  2965. case $ac_file in
  2966. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2967. ;;
  2968. [ab].out )
  2969. # We found the default executable, but exeext='' is most
  2970. # certainly right.
  2971. break;;
  2972. *.* )
  2973. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2974. then :; else
  2975. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2976. fi
  2977. # We set ac_cv_exeext here because the later test for it is not
  2978. # safe: cross compilers may not add the suffix if given an `-o'
  2979. # argument, so we may need to know it at that point already.
  2980. # Even if this section looks crufty: it has the advantage of
  2981. # actually working.
  2982. break;;
  2983. * )
  2984. break;;
  2985. esac
  2986. done
  2987. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2988. else
  2989. ac_file=''
  2990. fi
  2991. if test -z "$ac_file"; then :
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2993. $as_echo "no" >&6; }
  2994. $as_echo "$as_me: failed program was:" >&5
  2995. sed 's/^/| /' conftest.$ac_ext >&5
  2996. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2998. as_fn_error 77 "C compiler cannot create executables
  2999. See \`config.log' for more details" "$LINENO" 5; }
  3000. else
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3002. $as_echo "yes" >&6; }
  3003. fi
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3005. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3007. $as_echo "$ac_file" >&6; }
  3008. ac_exeext=$ac_cv_exeext
  3009. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3010. ac_clean_files=$ac_clean_files_save
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3012. $as_echo_n "checking for suffix of executables... " >&6; }
  3013. if { { ac_try="$ac_link"
  3014. case "(($ac_try" in
  3015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3016. *) ac_try_echo=$ac_try;;
  3017. esac
  3018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3019. $as_echo "$ac_try_echo"; } >&5
  3020. (eval "$ac_link") 2>&5
  3021. ac_status=$?
  3022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3023. test $ac_status = 0; }; then :
  3024. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3025. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3026. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3027. # `rm'.
  3028. for ac_file in conftest.exe conftest conftest.*; do
  3029. test -f "$ac_file" || continue
  3030. case $ac_file in
  3031. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3032. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3033. break;;
  3034. * ) break;;
  3035. esac
  3036. done
  3037. else
  3038. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3039. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3040. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3041. See \`config.log' for more details" "$LINENO" 5; }
  3042. fi
  3043. rm -f conftest conftest$ac_cv_exeext
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3045. $as_echo "$ac_cv_exeext" >&6; }
  3046. rm -f conftest.$ac_ext
  3047. EXEEXT=$ac_cv_exeext
  3048. ac_exeext=$EXEEXT
  3049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3050. /* end confdefs.h. */
  3051. #include <stdio.h>
  3052. int
  3053. main ()
  3054. {
  3055. FILE *f = fopen ("conftest.out", "w");
  3056. return ferror (f) || fclose (f) != 0;
  3057. ;
  3058. return 0;
  3059. }
  3060. _ACEOF
  3061. ac_clean_files="$ac_clean_files conftest.out"
  3062. # Check that the compiler produces executables we can run. If not, either
  3063. # the compiler is broken, or we cross compile.
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3065. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3066. if test "$cross_compiling" != yes; then
  3067. { { ac_try="$ac_link"
  3068. case "(($ac_try" in
  3069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3070. *) ac_try_echo=$ac_try;;
  3071. esac
  3072. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3073. $as_echo "$ac_try_echo"; } >&5
  3074. (eval "$ac_link") 2>&5
  3075. ac_status=$?
  3076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3077. test $ac_status = 0; }
  3078. if { ac_try='./conftest$ac_cv_exeext'
  3079. { { case "(($ac_try" in
  3080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3081. *) ac_try_echo=$ac_try;;
  3082. esac
  3083. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3084. $as_echo "$ac_try_echo"; } >&5
  3085. (eval "$ac_try") 2>&5
  3086. ac_status=$?
  3087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3088. test $ac_status = 0; }; }; then
  3089. cross_compiling=no
  3090. else
  3091. if test "$cross_compiling" = maybe; then
  3092. cross_compiling=yes
  3093. else
  3094. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3095. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3096. as_fn_error $? "cannot run C compiled programs.
  3097. If you meant to cross compile, use \`--host'.
  3098. See \`config.log' for more details" "$LINENO" 5; }
  3099. fi
  3100. fi
  3101. fi
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3103. $as_echo "$cross_compiling" >&6; }
  3104. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3105. ac_clean_files=$ac_clean_files_save
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3107. $as_echo_n "checking for suffix of object files... " >&6; }
  3108. if ${ac_cv_objext+:} false; then :
  3109. $as_echo_n "(cached) " >&6
  3110. else
  3111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3112. /* end confdefs.h. */
  3113. int
  3114. main ()
  3115. {
  3116. ;
  3117. return 0;
  3118. }
  3119. _ACEOF
  3120. rm -f conftest.o conftest.obj
  3121. if { { ac_try="$ac_compile"
  3122. case "(($ac_try" in
  3123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3124. *) ac_try_echo=$ac_try;;
  3125. esac
  3126. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3127. $as_echo "$ac_try_echo"; } >&5
  3128. (eval "$ac_compile") 2>&5
  3129. ac_status=$?
  3130. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3131. test $ac_status = 0; }; then :
  3132. for ac_file in conftest.o conftest.obj conftest.*; do
  3133. test -f "$ac_file" || continue;
  3134. case $ac_file in
  3135. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3136. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3137. break;;
  3138. esac
  3139. done
  3140. else
  3141. $as_echo "$as_me: failed program was:" >&5
  3142. sed 's/^/| /' conftest.$ac_ext >&5
  3143. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3144. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3145. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3146. See \`config.log' for more details" "$LINENO" 5; }
  3147. fi
  3148. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3149. fi
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3151. $as_echo "$ac_cv_objext" >&6; }
  3152. OBJEXT=$ac_cv_objext
  3153. ac_objext=$OBJEXT
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3155. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3156. if ${ac_cv_c_compiler_gnu+:} false; then :
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3160. /* end confdefs.h. */
  3161. int
  3162. main ()
  3163. {
  3164. #ifndef __GNUC__
  3165. choke me
  3166. #endif
  3167. ;
  3168. return 0;
  3169. }
  3170. _ACEOF
  3171. if ac_fn_c_try_compile "$LINENO"; then :
  3172. ac_compiler_gnu=yes
  3173. else
  3174. ac_compiler_gnu=no
  3175. fi
  3176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3177. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3178. fi
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3180. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3181. if test $ac_compiler_gnu = yes; then
  3182. GCC=yes
  3183. else
  3184. GCC=
  3185. fi
  3186. ac_test_CFLAGS=${CFLAGS+set}
  3187. ac_save_CFLAGS=$CFLAGS
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3189. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3190. if ${ac_cv_prog_cc_g+:} false; then :
  3191. $as_echo_n "(cached) " >&6
  3192. else
  3193. ac_save_c_werror_flag=$ac_c_werror_flag
  3194. ac_c_werror_flag=yes
  3195. ac_cv_prog_cc_g=no
  3196. CFLAGS="-g"
  3197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3198. /* end confdefs.h. */
  3199. int
  3200. main ()
  3201. {
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. if ac_fn_c_try_compile "$LINENO"; then :
  3207. ac_cv_prog_cc_g=yes
  3208. else
  3209. CFLAGS=""
  3210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3211. /* end confdefs.h. */
  3212. int
  3213. main ()
  3214. {
  3215. ;
  3216. return 0;
  3217. }
  3218. _ACEOF
  3219. if ac_fn_c_try_compile "$LINENO"; then :
  3220. else
  3221. ac_c_werror_flag=$ac_save_c_werror_flag
  3222. CFLAGS="-g"
  3223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h. */
  3225. int
  3226. main ()
  3227. {
  3228. ;
  3229. return 0;
  3230. }
  3231. _ACEOF
  3232. if ac_fn_c_try_compile "$LINENO"; then :
  3233. ac_cv_prog_cc_g=yes
  3234. fi
  3235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3236. fi
  3237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3238. fi
  3239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3240. ac_c_werror_flag=$ac_save_c_werror_flag
  3241. fi
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3243. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3244. if test "$ac_test_CFLAGS" = set; then
  3245. CFLAGS=$ac_save_CFLAGS
  3246. elif test $ac_cv_prog_cc_g = yes; then
  3247. if test "$GCC" = yes; then
  3248. CFLAGS="-g -O2"
  3249. else
  3250. CFLAGS="-g"
  3251. fi
  3252. else
  3253. if test "$GCC" = yes; then
  3254. CFLAGS="-O2"
  3255. else
  3256. CFLAGS=
  3257. fi
  3258. fi
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3260. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3261. if ${ac_cv_prog_cc_c89+:} false; then :
  3262. $as_echo_n "(cached) " >&6
  3263. else
  3264. ac_cv_prog_cc_c89=no
  3265. ac_save_CC=$CC
  3266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3267. /* end confdefs.h. */
  3268. #include <stdarg.h>
  3269. #include <stdio.h>
  3270. struct stat;
  3271. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3272. struct buf { int x; };
  3273. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3274. static char *e (p, i)
  3275. char **p;
  3276. int i;
  3277. {
  3278. return p[i];
  3279. }
  3280. static char *f (char * (*g) (char **, int), char **p, ...)
  3281. {
  3282. char *s;
  3283. va_list v;
  3284. va_start (v,p);
  3285. s = g (p, va_arg (v,int));
  3286. va_end (v);
  3287. return s;
  3288. }
  3289. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3290. function prototypes and stuff, but not '\xHH' hex character constants.
  3291. These don't provoke an error unfortunately, instead are silently treated
  3292. as 'x'. The following induces an error, until -std is added to get
  3293. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3294. array size at least. It's necessary to write '\x00'==0 to get something
  3295. that's true only with -std. */
  3296. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3297. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3298. inside strings and character constants. */
  3299. #define FOO(x) 'x'
  3300. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3301. int test (int i, double x);
  3302. struct s1 {int (*f) (int a);};
  3303. struct s2 {int (*f) (double a);};
  3304. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3305. int argc;
  3306. char **argv;
  3307. int
  3308. main ()
  3309. {
  3310. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3316. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3317. do
  3318. CC="$ac_save_CC $ac_arg"
  3319. if ac_fn_c_try_compile "$LINENO"; then :
  3320. ac_cv_prog_cc_c89=$ac_arg
  3321. fi
  3322. rm -f core conftest.err conftest.$ac_objext
  3323. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3324. done
  3325. rm -f conftest.$ac_ext
  3326. CC=$ac_save_CC
  3327. fi
  3328. # AC_CACHE_VAL
  3329. case "x$ac_cv_prog_cc_c89" in
  3330. x)
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3332. $as_echo "none needed" >&6; } ;;
  3333. xno)
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3335. $as_echo "unsupported" >&6; } ;;
  3336. *)
  3337. CC="$CC $ac_cv_prog_cc_c89"
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3339. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3340. esac
  3341. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3342. fi
  3343. ac_ext=c
  3344. ac_cpp='$CPP $CPPFLAGS'
  3345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3349. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3350. if ${ac_cv_path_SED+:} false; then :
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3354. for ac_i in 1 2 3 4 5 6 7; do
  3355. ac_script="$ac_script$as_nl$ac_script"
  3356. done
  3357. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3358. { ac_script=; unset ac_script;}
  3359. if test -z "$SED"; then
  3360. ac_path_SED_found=false
  3361. # Loop through the user's path and test for each of PROGNAME-LIST
  3362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3363. for as_dir in $PATH
  3364. do
  3365. IFS=$as_save_IFS
  3366. test -z "$as_dir" && as_dir=.
  3367. for ac_prog in sed gsed; do
  3368. for ac_exec_ext in '' $ac_executable_extensions; do
  3369. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3370. as_fn_executable_p "$ac_path_SED" || continue
  3371. # Check for GNU ac_path_SED and select it if it is found.
  3372. # Check for GNU $ac_path_SED
  3373. case `"$ac_path_SED" --version 2>&1` in
  3374. *GNU*)
  3375. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3376. *)
  3377. ac_count=0
  3378. $as_echo_n 0123456789 >"conftest.in"
  3379. while :
  3380. do
  3381. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3382. mv "conftest.tmp" "conftest.in"
  3383. cp "conftest.in" "conftest.nl"
  3384. $as_echo '' >> "conftest.nl"
  3385. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3386. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3387. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3388. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3389. # Best one so far, save it but keep looking for a better one
  3390. ac_cv_path_SED="$ac_path_SED"
  3391. ac_path_SED_max=$ac_count
  3392. fi
  3393. # 10*(2^10) chars as input seems more than enough
  3394. test $ac_count -gt 10 && break
  3395. done
  3396. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3397. esac
  3398. $ac_path_SED_found && break 3
  3399. done
  3400. done
  3401. done
  3402. IFS=$as_save_IFS
  3403. if test -z "$ac_cv_path_SED"; then
  3404. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3405. fi
  3406. else
  3407. ac_cv_path_SED=$SED
  3408. fi
  3409. fi
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3411. $as_echo "$ac_cv_path_SED" >&6; }
  3412. SED="$ac_cv_path_SED"
  3413. rm -f conftest.sed
  3414. test -z "$SED" && SED=sed
  3415. Xsed="$SED -e 1s/^X//"
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3417. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3418. if ${ac_cv_path_GREP+:} false; then :
  3419. $as_echo_n "(cached) " >&6
  3420. else
  3421. if test -z "$GREP"; then
  3422. ac_path_GREP_found=false
  3423. # Loop through the user's path and test for each of PROGNAME-LIST
  3424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3425. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3426. do
  3427. IFS=$as_save_IFS
  3428. test -z "$as_dir" && as_dir=.
  3429. for ac_prog in grep ggrep; do
  3430. for ac_exec_ext in '' $ac_executable_extensions; do
  3431. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3432. as_fn_executable_p "$ac_path_GREP" || continue
  3433. # Check for GNU ac_path_GREP and select it if it is found.
  3434. # Check for GNU $ac_path_GREP
  3435. case `"$ac_path_GREP" --version 2>&1` in
  3436. *GNU*)
  3437. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3438. *)
  3439. ac_count=0
  3440. $as_echo_n 0123456789 >"conftest.in"
  3441. while :
  3442. do
  3443. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3444. mv "conftest.tmp" "conftest.in"
  3445. cp "conftest.in" "conftest.nl"
  3446. $as_echo 'GREP' >> "conftest.nl"
  3447. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3448. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3449. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3450. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3451. # Best one so far, save it but keep looking for a better one
  3452. ac_cv_path_GREP="$ac_path_GREP"
  3453. ac_path_GREP_max=$ac_count
  3454. fi
  3455. # 10*(2^10) chars as input seems more than enough
  3456. test $ac_count -gt 10 && break
  3457. done
  3458. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3459. esac
  3460. $ac_path_GREP_found && break 3
  3461. done
  3462. done
  3463. done
  3464. IFS=$as_save_IFS
  3465. if test -z "$ac_cv_path_GREP"; then
  3466. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3467. fi
  3468. else
  3469. ac_cv_path_GREP=$GREP
  3470. fi
  3471. fi
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3473. $as_echo "$ac_cv_path_GREP" >&6; }
  3474. GREP="$ac_cv_path_GREP"
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3476. $as_echo_n "checking for egrep... " >&6; }
  3477. if ${ac_cv_path_EGREP+:} false; then :
  3478. $as_echo_n "(cached) " >&6
  3479. else
  3480. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3481. then ac_cv_path_EGREP="$GREP -E"
  3482. else
  3483. if test -z "$EGREP"; then
  3484. ac_path_EGREP_found=false
  3485. # Loop through the user's path and test for each of PROGNAME-LIST
  3486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3487. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3488. do
  3489. IFS=$as_save_IFS
  3490. test -z "$as_dir" && as_dir=.
  3491. for ac_prog in egrep; do
  3492. for ac_exec_ext in '' $ac_executable_extensions; do
  3493. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3494. as_fn_executable_p "$ac_path_EGREP" || continue
  3495. # Check for GNU ac_path_EGREP and select it if it is found.
  3496. # Check for GNU $ac_path_EGREP
  3497. case `"$ac_path_EGREP" --version 2>&1` in
  3498. *GNU*)
  3499. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3500. *)
  3501. ac_count=0
  3502. $as_echo_n 0123456789 >"conftest.in"
  3503. while :
  3504. do
  3505. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3506. mv "conftest.tmp" "conftest.in"
  3507. cp "conftest.in" "conftest.nl"
  3508. $as_echo 'EGREP' >> "conftest.nl"
  3509. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3510. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3511. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3512. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3513. # Best one so far, save it but keep looking for a better one
  3514. ac_cv_path_EGREP="$ac_path_EGREP"
  3515. ac_path_EGREP_max=$ac_count
  3516. fi
  3517. # 10*(2^10) chars as input seems more than enough
  3518. test $ac_count -gt 10 && break
  3519. done
  3520. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3521. esac
  3522. $ac_path_EGREP_found && break 3
  3523. done
  3524. done
  3525. done
  3526. IFS=$as_save_IFS
  3527. if test -z "$ac_cv_path_EGREP"; then
  3528. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3529. fi
  3530. else
  3531. ac_cv_path_EGREP=$EGREP
  3532. fi
  3533. fi
  3534. fi
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3536. $as_echo "$ac_cv_path_EGREP" >&6; }
  3537. EGREP="$ac_cv_path_EGREP"
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3539. $as_echo_n "checking for fgrep... " >&6; }
  3540. if ${ac_cv_path_FGREP+:} false; then :
  3541. $as_echo_n "(cached) " >&6
  3542. else
  3543. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3544. then ac_cv_path_FGREP="$GREP -F"
  3545. else
  3546. if test -z "$FGREP"; then
  3547. ac_path_FGREP_found=false
  3548. # Loop through the user's path and test for each of PROGNAME-LIST
  3549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3550. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3551. do
  3552. IFS=$as_save_IFS
  3553. test -z "$as_dir" && as_dir=.
  3554. for ac_prog in fgrep; do
  3555. for ac_exec_ext in '' $ac_executable_extensions; do
  3556. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3557. as_fn_executable_p "$ac_path_FGREP" || continue
  3558. # Check for GNU ac_path_FGREP and select it if it is found.
  3559. # Check for GNU $ac_path_FGREP
  3560. case `"$ac_path_FGREP" --version 2>&1` in
  3561. *GNU*)
  3562. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3563. *)
  3564. ac_count=0
  3565. $as_echo_n 0123456789 >"conftest.in"
  3566. while :
  3567. do
  3568. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3569. mv "conftest.tmp" "conftest.in"
  3570. cp "conftest.in" "conftest.nl"
  3571. $as_echo 'FGREP' >> "conftest.nl"
  3572. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3573. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3574. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3575. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3576. # Best one so far, save it but keep looking for a better one
  3577. ac_cv_path_FGREP="$ac_path_FGREP"
  3578. ac_path_FGREP_max=$ac_count
  3579. fi
  3580. # 10*(2^10) chars as input seems more than enough
  3581. test $ac_count -gt 10 && break
  3582. done
  3583. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3584. esac
  3585. $ac_path_FGREP_found && break 3
  3586. done
  3587. done
  3588. done
  3589. IFS=$as_save_IFS
  3590. if test -z "$ac_cv_path_FGREP"; then
  3591. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3592. fi
  3593. else
  3594. ac_cv_path_FGREP=$FGREP
  3595. fi
  3596. fi
  3597. fi
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3599. $as_echo "$ac_cv_path_FGREP" >&6; }
  3600. FGREP="$ac_cv_path_FGREP"
  3601. test -z "$GREP" && GREP=grep
  3602. # Check whether --with-gnu-ld was given.
  3603. if test "${with_gnu_ld+set}" = set; then :
  3604. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3605. else
  3606. with_gnu_ld=no
  3607. fi
  3608. ac_prog=ld
  3609. if test "$GCC" = yes; then
  3610. # Check if gcc -print-prog-name=ld gives a path.
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3612. $as_echo_n "checking for ld used by $CC... " >&6; }
  3613. case $host in
  3614. *-*-mingw*)
  3615. # gcc leaves a trailing carriage return which upsets mingw
  3616. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3617. *)
  3618. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3619. esac
  3620. case $ac_prog in
  3621. # Accept absolute paths.
  3622. [\\/]* | ?:[\\/]*)
  3623. re_direlt='/[^/][^/]*/\.\./'
  3624. # Canonicalize the pathname of ld
  3625. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3626. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3627. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3628. done
  3629. test -z "$LD" && LD="$ac_prog"
  3630. ;;
  3631. "")
  3632. # If it fails, then pretend we aren't using GCC.
  3633. ac_prog=ld
  3634. ;;
  3635. *)
  3636. # If it is relative, then search for the first ld in PATH.
  3637. with_gnu_ld=unknown
  3638. ;;
  3639. esac
  3640. elif test "$with_gnu_ld" = yes; then
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3642. $as_echo_n "checking for GNU ld... " >&6; }
  3643. else
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3645. $as_echo_n "checking for non-GNU ld... " >&6; }
  3646. fi
  3647. if ${lt_cv_path_LD+:} false; then :
  3648. $as_echo_n "(cached) " >&6
  3649. else
  3650. if test -z "$LD"; then
  3651. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3652. for ac_dir in $PATH; do
  3653. IFS="$lt_save_ifs"
  3654. test -z "$ac_dir" && ac_dir=.
  3655. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3656. lt_cv_path_LD="$ac_dir/$ac_prog"
  3657. # Check to see if the program is GNU ld. I'd rather use --version,
  3658. # but apparently some variants of GNU ld only accept -v.
  3659. # Break only if it was the GNU/non-GNU ld that we prefer.
  3660. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3661. *GNU* | *'with BFD'*)
  3662. test "$with_gnu_ld" != no && break
  3663. ;;
  3664. *)
  3665. test "$with_gnu_ld" != yes && break
  3666. ;;
  3667. esac
  3668. fi
  3669. done
  3670. IFS="$lt_save_ifs"
  3671. else
  3672. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3673. fi
  3674. fi
  3675. LD="$lt_cv_path_LD"
  3676. if test -n "$LD"; then
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3678. $as_echo "$LD" >&6; }
  3679. else
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3681. $as_echo "no" >&6; }
  3682. fi
  3683. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3685. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3686. if ${lt_cv_prog_gnu_ld+:} false; then :
  3687. $as_echo_n "(cached) " >&6
  3688. else
  3689. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3690. case `$LD -v 2>&1 </dev/null` in
  3691. *GNU* | *'with BFD'*)
  3692. lt_cv_prog_gnu_ld=yes
  3693. ;;
  3694. *)
  3695. lt_cv_prog_gnu_ld=no
  3696. ;;
  3697. esac
  3698. fi
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3700. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3701. with_gnu_ld=$lt_cv_prog_gnu_ld
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3703. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3704. if ${lt_cv_path_NM+:} false; then :
  3705. $as_echo_n "(cached) " >&6
  3706. else
  3707. if test -n "$NM"; then
  3708. # Let the user override the test.
  3709. lt_cv_path_NM="$NM"
  3710. else
  3711. lt_nm_to_check="${ac_tool_prefix}nm"
  3712. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3713. lt_nm_to_check="$lt_nm_to_check nm"
  3714. fi
  3715. for lt_tmp_nm in $lt_nm_to_check; do
  3716. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3717. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3718. IFS="$lt_save_ifs"
  3719. test -z "$ac_dir" && ac_dir=.
  3720. tmp_nm="$ac_dir/$lt_tmp_nm"
  3721. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3722. # Check to see if the nm accepts a BSD-compat flag.
  3723. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3724. # nm: unknown option "B" ignored
  3725. # Tru64's nm complains that /dev/null is an invalid object file
  3726. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3727. */dev/null* | *'Invalid file or object type'*)
  3728. lt_cv_path_NM="$tmp_nm -B"
  3729. break
  3730. ;;
  3731. *)
  3732. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3733. */dev/null*)
  3734. lt_cv_path_NM="$tmp_nm -p"
  3735. break
  3736. ;;
  3737. *)
  3738. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3739. continue # so that we can try to find one that supports BSD flags
  3740. ;;
  3741. esac
  3742. ;;
  3743. esac
  3744. fi
  3745. done
  3746. IFS="$lt_save_ifs"
  3747. done
  3748. : ${lt_cv_path_NM=no}
  3749. fi
  3750. fi
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3752. $as_echo "$lt_cv_path_NM" >&6; }
  3753. if test "$lt_cv_path_NM" != "no"; then
  3754. NM="$lt_cv_path_NM"
  3755. else
  3756. # Didn't find any BSD compatible name lister, look for dumpbin.
  3757. if test -n "$DUMPBIN"; then :
  3758. # Let the user override the test.
  3759. else
  3760. if test -n "$ac_tool_prefix"; then
  3761. for ac_prog in dumpbin "link -dump"
  3762. do
  3763. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3764. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3766. $as_echo_n "checking for $ac_word... " >&6; }
  3767. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3768. $as_echo_n "(cached) " >&6
  3769. else
  3770. if test -n "$DUMPBIN"; then
  3771. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3772. else
  3773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3774. for as_dir in $PATH
  3775. do
  3776. IFS=$as_save_IFS
  3777. test -z "$as_dir" && as_dir=.
  3778. for ac_exec_ext in '' $ac_executable_extensions; do
  3779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3780. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3782. break 2
  3783. fi
  3784. done
  3785. done
  3786. IFS=$as_save_IFS
  3787. fi
  3788. fi
  3789. DUMPBIN=$ac_cv_prog_DUMPBIN
  3790. if test -n "$DUMPBIN"; then
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3792. $as_echo "$DUMPBIN" >&6; }
  3793. else
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3795. $as_echo "no" >&6; }
  3796. fi
  3797. test -n "$DUMPBIN" && break
  3798. done
  3799. fi
  3800. if test -z "$DUMPBIN"; then
  3801. ac_ct_DUMPBIN=$DUMPBIN
  3802. for ac_prog in dumpbin "link -dump"
  3803. do
  3804. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3805. set dummy $ac_prog; ac_word=$2
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3807. $as_echo_n "checking for $ac_word... " >&6; }
  3808. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3809. $as_echo_n "(cached) " >&6
  3810. else
  3811. if test -n "$ac_ct_DUMPBIN"; then
  3812. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3813. else
  3814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3815. for as_dir in $PATH
  3816. do
  3817. IFS=$as_save_IFS
  3818. test -z "$as_dir" && as_dir=.
  3819. for ac_exec_ext in '' $ac_executable_extensions; do
  3820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3821. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3823. break 2
  3824. fi
  3825. done
  3826. done
  3827. IFS=$as_save_IFS
  3828. fi
  3829. fi
  3830. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3831. if test -n "$ac_ct_DUMPBIN"; then
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3833. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3834. else
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3836. $as_echo "no" >&6; }
  3837. fi
  3838. test -n "$ac_ct_DUMPBIN" && break
  3839. done
  3840. if test "x$ac_ct_DUMPBIN" = x; then
  3841. DUMPBIN=":"
  3842. else
  3843. case $cross_compiling:$ac_tool_warned in
  3844. yes:)
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3847. ac_tool_warned=yes ;;
  3848. esac
  3849. DUMPBIN=$ac_ct_DUMPBIN
  3850. fi
  3851. fi
  3852. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3853. *COFF*)
  3854. DUMPBIN="$DUMPBIN -symbols"
  3855. ;;
  3856. *)
  3857. DUMPBIN=:
  3858. ;;
  3859. esac
  3860. fi
  3861. if test "$DUMPBIN" != ":"; then
  3862. NM="$DUMPBIN"
  3863. fi
  3864. fi
  3865. test -z "$NM" && NM=nm
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3867. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3868. if ${lt_cv_nm_interface+:} false; then :
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. lt_cv_nm_interface="BSD nm"
  3872. echo "int some_variable = 0;" > conftest.$ac_ext
  3873. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3874. (eval "$ac_compile" 2>conftest.err)
  3875. cat conftest.err >&5
  3876. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3877. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3878. cat conftest.err >&5
  3879. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3880. cat conftest.out >&5
  3881. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3882. lt_cv_nm_interface="MS dumpbin"
  3883. fi
  3884. rm -f conftest*
  3885. fi
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3887. $as_echo "$lt_cv_nm_interface" >&6; }
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3889. $as_echo_n "checking whether ln -s works... " >&6; }
  3890. LN_S=$as_ln_s
  3891. if test "$LN_S" = "ln -s"; then
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3893. $as_echo "yes" >&6; }
  3894. else
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3896. $as_echo "no, using $LN_S" >&6; }
  3897. fi
  3898. # find the maximum length of command line arguments
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3900. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3901. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3902. $as_echo_n "(cached) " >&6
  3903. else
  3904. i=0
  3905. teststring="ABCD"
  3906. case $build_os in
  3907. msdosdjgpp*)
  3908. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3909. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3910. # during glob expansion). Even if it were fixed, the result of this
  3911. # check would be larger than it should be.
  3912. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3913. ;;
  3914. gnu*)
  3915. # Under GNU Hurd, this test is not required because there is
  3916. # no limit to the length of command line arguments.
  3917. # Libtool will interpret -1 as no limit whatsoever
  3918. lt_cv_sys_max_cmd_len=-1;
  3919. ;;
  3920. cygwin* | mingw* | cegcc*)
  3921. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3922. # about 5 minutes as the teststring grows exponentially.
  3923. # Worse, since 9x/ME are not pre-emptively multitasking,
  3924. # you end up with a "frozen" computer, even though with patience
  3925. # the test eventually succeeds (with a max line length of 256k).
  3926. # Instead, let's just punt: use the minimum linelength reported by
  3927. # all of the supported platforms: 8192 (on NT/2K/XP).
  3928. lt_cv_sys_max_cmd_len=8192;
  3929. ;;
  3930. mint*)
  3931. # On MiNT this can take a long time and run out of memory.
  3932. lt_cv_sys_max_cmd_len=8192;
  3933. ;;
  3934. amigaos*)
  3935. # On AmigaOS with pdksh, this test takes hours, literally.
  3936. # So we just punt and use a minimum line length of 8192.
  3937. lt_cv_sys_max_cmd_len=8192;
  3938. ;;
  3939. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3940. # This has been around since 386BSD, at least. Likely further.
  3941. if test -x /sbin/sysctl; then
  3942. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3943. elif test -x /usr/sbin/sysctl; then
  3944. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3945. else
  3946. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3947. fi
  3948. # And add a safety zone
  3949. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3950. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3951. ;;
  3952. interix*)
  3953. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3954. lt_cv_sys_max_cmd_len=196608
  3955. ;;
  3956. os2*)
  3957. # The test takes a long time on OS/2.
  3958. lt_cv_sys_max_cmd_len=8192
  3959. ;;
  3960. osf*)
  3961. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3962. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3963. # nice to cause kernel panics so lets avoid the loop below.
  3964. # First set a reasonable default.
  3965. lt_cv_sys_max_cmd_len=16384
  3966. #
  3967. if test -x /sbin/sysconfig; then
  3968. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3969. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3970. esac
  3971. fi
  3972. ;;
  3973. sco3.2v5*)
  3974. lt_cv_sys_max_cmd_len=102400
  3975. ;;
  3976. sysv5* | sco5v6* | sysv4.2uw2*)
  3977. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3978. if test -n "$kargmax"; then
  3979. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3980. else
  3981. lt_cv_sys_max_cmd_len=32768
  3982. fi
  3983. ;;
  3984. *)
  3985. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3986. if test -n "$lt_cv_sys_max_cmd_len"; then
  3987. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3988. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3989. else
  3990. # Make teststring a little bigger before we do anything with it.
  3991. # a 1K string should be a reasonable start.
  3992. for i in 1 2 3 4 5 6 7 8 ; do
  3993. teststring=$teststring$teststring
  3994. done
  3995. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3996. # If test is not a shell built-in, we'll probably end up computing a
  3997. # maximum length that is only half of the actual maximum length, but
  3998. # we can't tell.
  3999. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4000. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4001. test $i != 17 # 1/2 MB should be enough
  4002. do
  4003. i=`expr $i + 1`
  4004. teststring=$teststring$teststring
  4005. done
  4006. # Only check the string length outside the loop.
  4007. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4008. teststring=
  4009. # Add a significant safety factor because C++ compilers can tack on
  4010. # massive amounts of additional arguments before passing them to the
  4011. # linker. It appears as though 1/2 is a usable value.
  4012. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4013. fi
  4014. ;;
  4015. esac
  4016. fi
  4017. if test -n $lt_cv_sys_max_cmd_len ; then
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4019. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4020. else
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4022. $as_echo "none" >&6; }
  4023. fi
  4024. max_cmd_len=$lt_cv_sys_max_cmd_len
  4025. : ${CP="cp -f"}
  4026. : ${MV="mv -f"}
  4027. : ${RM="rm -f"}
  4028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4029. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4030. # Try some XSI features
  4031. xsi_shell=no
  4032. ( _lt_dummy="a/b/c"
  4033. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4034. = c,a/b,b/c, \
  4035. && eval 'test $(( 1 + 1 )) -eq 2 \
  4036. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4037. && xsi_shell=yes
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4039. $as_echo "$xsi_shell" >&6; }
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4041. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4042. lt_shell_append=no
  4043. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4044. >/dev/null 2>&1 \
  4045. && lt_shell_append=yes
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4047. $as_echo "$lt_shell_append" >&6; }
  4048. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4049. lt_unset=unset
  4050. else
  4051. lt_unset=false
  4052. fi
  4053. # test EBCDIC or ASCII
  4054. case `echo X|tr X '\101'` in
  4055. A) # ASCII based system
  4056. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4057. lt_SP2NL='tr \040 \012'
  4058. lt_NL2SP='tr \015\012 \040\040'
  4059. ;;
  4060. *) # EBCDIC based system
  4061. lt_SP2NL='tr \100 \n'
  4062. lt_NL2SP='tr \r\n \100\100'
  4063. ;;
  4064. esac
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4066. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4067. if ${lt_cv_to_host_file_cmd+:} false; then :
  4068. $as_echo_n "(cached) " >&6
  4069. else
  4070. case $host in
  4071. *-*-mingw* )
  4072. case $build in
  4073. *-*-mingw* ) # actually msys
  4074. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4075. ;;
  4076. *-*-cygwin* )
  4077. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4078. ;;
  4079. * ) # otherwise, assume *nix
  4080. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4081. ;;
  4082. esac
  4083. ;;
  4084. *-*-cygwin* )
  4085. case $build in
  4086. *-*-mingw* ) # actually msys
  4087. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4088. ;;
  4089. *-*-cygwin* )
  4090. lt_cv_to_host_file_cmd=func_convert_file_noop
  4091. ;;
  4092. * ) # otherwise, assume *nix
  4093. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4094. ;;
  4095. esac
  4096. ;;
  4097. * ) # unhandled hosts (and "normal" native builds)
  4098. lt_cv_to_host_file_cmd=func_convert_file_noop
  4099. ;;
  4100. esac
  4101. fi
  4102. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4104. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4106. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4107. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4108. $as_echo_n "(cached) " >&6
  4109. else
  4110. #assume ordinary cross tools, or native build.
  4111. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4112. case $host in
  4113. *-*-mingw* )
  4114. case $build in
  4115. *-*-mingw* ) # actually msys
  4116. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4117. ;;
  4118. esac
  4119. ;;
  4120. esac
  4121. fi
  4122. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4124. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4126. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4127. if ${lt_cv_ld_reload_flag+:} false; then :
  4128. $as_echo_n "(cached) " >&6
  4129. else
  4130. lt_cv_ld_reload_flag='-r'
  4131. fi
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4133. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4134. reload_flag=$lt_cv_ld_reload_flag
  4135. case $reload_flag in
  4136. "" | " "*) ;;
  4137. *) reload_flag=" $reload_flag" ;;
  4138. esac
  4139. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4140. case $host_os in
  4141. cygwin* | mingw* | pw32* | cegcc*)
  4142. if test "$GCC" != yes; then
  4143. reload_cmds=false
  4144. fi
  4145. ;;
  4146. darwin*)
  4147. if test "$GCC" = yes; then
  4148. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4149. else
  4150. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4151. fi
  4152. ;;
  4153. esac
  4154. if test -n "$ac_tool_prefix"; then
  4155. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4156. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4158. $as_echo_n "checking for $ac_word... " >&6; }
  4159. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4160. $as_echo_n "(cached) " >&6
  4161. else
  4162. if test -n "$OBJDUMP"; then
  4163. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4164. else
  4165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4166. for as_dir in $PATH
  4167. do
  4168. IFS=$as_save_IFS
  4169. test -z "$as_dir" && as_dir=.
  4170. for ac_exec_ext in '' $ac_executable_extensions; do
  4171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4172. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4174. break 2
  4175. fi
  4176. done
  4177. done
  4178. IFS=$as_save_IFS
  4179. fi
  4180. fi
  4181. OBJDUMP=$ac_cv_prog_OBJDUMP
  4182. if test -n "$OBJDUMP"; then
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4184. $as_echo "$OBJDUMP" >&6; }
  4185. else
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4187. $as_echo "no" >&6; }
  4188. fi
  4189. fi
  4190. if test -z "$ac_cv_prog_OBJDUMP"; then
  4191. ac_ct_OBJDUMP=$OBJDUMP
  4192. # Extract the first word of "objdump", so it can be a program name with args.
  4193. set dummy objdump; ac_word=$2
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4195. $as_echo_n "checking for $ac_word... " >&6; }
  4196. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. if test -n "$ac_ct_OBJDUMP"; then
  4200. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4201. else
  4202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4203. for as_dir in $PATH
  4204. do
  4205. IFS=$as_save_IFS
  4206. test -z "$as_dir" && as_dir=.
  4207. for ac_exec_ext in '' $ac_executable_extensions; do
  4208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4209. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4211. break 2
  4212. fi
  4213. done
  4214. done
  4215. IFS=$as_save_IFS
  4216. fi
  4217. fi
  4218. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4219. if test -n "$ac_ct_OBJDUMP"; then
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4221. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4222. else
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4224. $as_echo "no" >&6; }
  4225. fi
  4226. if test "x$ac_ct_OBJDUMP" = x; then
  4227. OBJDUMP="false"
  4228. else
  4229. case $cross_compiling:$ac_tool_warned in
  4230. yes:)
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4233. ac_tool_warned=yes ;;
  4234. esac
  4235. OBJDUMP=$ac_ct_OBJDUMP
  4236. fi
  4237. else
  4238. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4239. fi
  4240. test -z "$OBJDUMP" && OBJDUMP=objdump
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4242. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4243. if ${lt_cv_deplibs_check_method+:} false; then :
  4244. $as_echo_n "(cached) " >&6
  4245. else
  4246. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4247. lt_cv_file_magic_test_file=
  4248. lt_cv_deplibs_check_method='unknown'
  4249. # Need to set the preceding variable on all platforms that support
  4250. # interlibrary dependencies.
  4251. # 'none' -- dependencies not supported.
  4252. # `unknown' -- same as none, but documents that we really don't know.
  4253. # 'pass_all' -- all dependencies passed with no checks.
  4254. # 'test_compile' -- check by making test program.
  4255. # 'file_magic [[regex]]' -- check by looking for files in library path
  4256. # which responds to the $file_magic_cmd with a given extended regex.
  4257. # If you have `file' or equivalent on your system and you're not sure
  4258. # whether `pass_all' will *always* work, you probably want this one.
  4259. case $host_os in
  4260. aix[4-9]*)
  4261. lt_cv_deplibs_check_method=pass_all
  4262. ;;
  4263. beos*)
  4264. lt_cv_deplibs_check_method=pass_all
  4265. ;;
  4266. bsdi[45]*)
  4267. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4268. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4269. lt_cv_file_magic_test_file=/shlib/libc.so
  4270. ;;
  4271. cygwin*)
  4272. # func_win32_libid is a shell function defined in ltmain.sh
  4273. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4274. lt_cv_file_magic_cmd='func_win32_libid'
  4275. lt_cv_deplibs_check_method=pass_all
  4276. ;;
  4277. mingw* | pw32*)
  4278. # Base MSYS/MinGW do not provide the 'file' command needed by
  4279. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4280. # unless we find 'file', for example because we are cross-compiling.
  4281. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4282. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4283. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4284. lt_cv_file_magic_cmd='func_win32_libid'
  4285. else
  4286. # Keep this pattern in sync with the one in func_win32_libid.
  4287. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4288. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4289. fi
  4290. lt_cv_deplibs_check_method=pass_all
  4291. ;;
  4292. cegcc*)
  4293. # use the weaker test based on 'objdump'. See mingw*.
  4294. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4295. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4296. ;;
  4297. darwin* | rhapsody*)
  4298. lt_cv_deplibs_check_method=pass_all
  4299. ;;
  4300. freebsd* | dragonfly*)
  4301. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4302. case $host_cpu in
  4303. i*86 )
  4304. # Not sure whether the presence of OpenBSD here was a mistake.
  4305. # Let's accept both of them until this is cleared up.
  4306. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4307. lt_cv_file_magic_cmd=/usr/bin/file
  4308. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4309. ;;
  4310. esac
  4311. else
  4312. lt_cv_deplibs_check_method=pass_all
  4313. fi
  4314. ;;
  4315. gnu*)
  4316. lt_cv_deplibs_check_method=pass_all
  4317. ;;
  4318. haiku*)
  4319. lt_cv_deplibs_check_method=pass_all
  4320. ;;
  4321. hpux10.20* | hpux11*)
  4322. lt_cv_file_magic_cmd=/usr/bin/file
  4323. case $host_cpu in
  4324. ia64*)
  4325. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4326. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4327. ;;
  4328. hppa*64*)
  4329. 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]'
  4330. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4331. ;;
  4332. *)
  4333. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4334. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4335. ;;
  4336. esac
  4337. ;;
  4338. interix[3-9]*)
  4339. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4341. ;;
  4342. irix5* | irix6* | nonstopux*)
  4343. case $LD in
  4344. *-32|*"-32 ") libmagic=32-bit;;
  4345. *-n32|*"-n32 ") libmagic=N32;;
  4346. *-64|*"-64 ") libmagic=64-bit;;
  4347. *) libmagic=never-match;;
  4348. esac
  4349. lt_cv_deplibs_check_method=pass_all
  4350. ;;
  4351. # This must be glibc/ELF.
  4352. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4353. lt_cv_deplibs_check_method=pass_all
  4354. ;;
  4355. netbsd*)
  4356. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4357. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4358. else
  4359. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4360. fi
  4361. ;;
  4362. newos6*)
  4363. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4364. lt_cv_file_magic_cmd=/usr/bin/file
  4365. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4366. ;;
  4367. *nto* | *qnx*)
  4368. lt_cv_deplibs_check_method=pass_all
  4369. ;;
  4370. openbsd*)
  4371. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4372. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4373. else
  4374. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4375. fi
  4376. ;;
  4377. osf3* | osf4* | osf5*)
  4378. lt_cv_deplibs_check_method=pass_all
  4379. ;;
  4380. rdos*)
  4381. lt_cv_deplibs_check_method=pass_all
  4382. ;;
  4383. solaris*)
  4384. lt_cv_deplibs_check_method=pass_all
  4385. ;;
  4386. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4387. lt_cv_deplibs_check_method=pass_all
  4388. ;;
  4389. sysv4 | sysv4.3*)
  4390. case $host_vendor in
  4391. motorola)
  4392. 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]'
  4393. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4394. ;;
  4395. ncr)
  4396. lt_cv_deplibs_check_method=pass_all
  4397. ;;
  4398. sequent)
  4399. lt_cv_file_magic_cmd='/bin/file'
  4400. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4401. ;;
  4402. sni)
  4403. lt_cv_file_magic_cmd='/bin/file'
  4404. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4405. lt_cv_file_magic_test_file=/lib/libc.so
  4406. ;;
  4407. siemens)
  4408. lt_cv_deplibs_check_method=pass_all
  4409. ;;
  4410. pc)
  4411. lt_cv_deplibs_check_method=pass_all
  4412. ;;
  4413. esac
  4414. ;;
  4415. tpf*)
  4416. lt_cv_deplibs_check_method=pass_all
  4417. ;;
  4418. esac
  4419. fi
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4421. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4422. file_magic_glob=
  4423. want_nocaseglob=no
  4424. if test "$build" = "$host"; then
  4425. case $host_os in
  4426. mingw* | pw32*)
  4427. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4428. want_nocaseglob=yes
  4429. else
  4430. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4431. fi
  4432. ;;
  4433. esac
  4434. fi
  4435. file_magic_cmd=$lt_cv_file_magic_cmd
  4436. deplibs_check_method=$lt_cv_deplibs_check_method
  4437. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4438. if test -n "$ac_tool_prefix"; then
  4439. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4440. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4442. $as_echo_n "checking for $ac_word... " >&6; }
  4443. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4444. $as_echo_n "(cached) " >&6
  4445. else
  4446. if test -n "$DLLTOOL"; then
  4447. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4448. else
  4449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4450. for as_dir in $PATH
  4451. do
  4452. IFS=$as_save_IFS
  4453. test -z "$as_dir" && as_dir=.
  4454. for ac_exec_ext in '' $ac_executable_extensions; do
  4455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4456. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4458. break 2
  4459. fi
  4460. done
  4461. done
  4462. IFS=$as_save_IFS
  4463. fi
  4464. fi
  4465. DLLTOOL=$ac_cv_prog_DLLTOOL
  4466. if test -n "$DLLTOOL"; then
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4468. $as_echo "$DLLTOOL" >&6; }
  4469. else
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4471. $as_echo "no" >&6; }
  4472. fi
  4473. fi
  4474. if test -z "$ac_cv_prog_DLLTOOL"; then
  4475. ac_ct_DLLTOOL=$DLLTOOL
  4476. # Extract the first word of "dlltool", so it can be a program name with args.
  4477. set dummy dlltool; ac_word=$2
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4479. $as_echo_n "checking for $ac_word... " >&6; }
  4480. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4481. $as_echo_n "(cached) " >&6
  4482. else
  4483. if test -n "$ac_ct_DLLTOOL"; then
  4484. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4485. else
  4486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4487. for as_dir in $PATH
  4488. do
  4489. IFS=$as_save_IFS
  4490. test -z "$as_dir" && as_dir=.
  4491. for ac_exec_ext in '' $ac_executable_extensions; do
  4492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4493. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4495. break 2
  4496. fi
  4497. done
  4498. done
  4499. IFS=$as_save_IFS
  4500. fi
  4501. fi
  4502. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4503. if test -n "$ac_ct_DLLTOOL"; then
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4505. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4506. else
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4508. $as_echo "no" >&6; }
  4509. fi
  4510. if test "x$ac_ct_DLLTOOL" = x; then
  4511. DLLTOOL="false"
  4512. else
  4513. case $cross_compiling:$ac_tool_warned in
  4514. yes:)
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4516. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4517. ac_tool_warned=yes ;;
  4518. esac
  4519. DLLTOOL=$ac_ct_DLLTOOL
  4520. fi
  4521. else
  4522. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4523. fi
  4524. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4526. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4527. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4531. case $host_os in
  4532. cygwin* | mingw* | pw32* | cegcc*)
  4533. # two different shell functions defined in ltmain.sh
  4534. # decide which to use based on capabilities of $DLLTOOL
  4535. case `$DLLTOOL --help 2>&1` in
  4536. *--identify-strict*)
  4537. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4538. ;;
  4539. *)
  4540. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4541. ;;
  4542. esac
  4543. ;;
  4544. *)
  4545. # fallback: assume linklib IS sharedlib
  4546. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4547. ;;
  4548. esac
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4551. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4552. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4553. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4554. if test -n "$ac_tool_prefix"; then
  4555. for ac_prog in ar
  4556. do
  4557. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4558. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4560. $as_echo_n "checking for $ac_word... " >&6; }
  4561. if ${ac_cv_prog_AR+:} false; then :
  4562. $as_echo_n "(cached) " >&6
  4563. else
  4564. if test -n "$AR"; then
  4565. ac_cv_prog_AR="$AR" # Let the user override the test.
  4566. else
  4567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4568. for as_dir in $PATH
  4569. do
  4570. IFS=$as_save_IFS
  4571. test -z "$as_dir" && as_dir=.
  4572. for ac_exec_ext in '' $ac_executable_extensions; do
  4573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4574. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4576. break 2
  4577. fi
  4578. done
  4579. done
  4580. IFS=$as_save_IFS
  4581. fi
  4582. fi
  4583. AR=$ac_cv_prog_AR
  4584. if test -n "$AR"; then
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4586. $as_echo "$AR" >&6; }
  4587. else
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4589. $as_echo "no" >&6; }
  4590. fi
  4591. test -n "$AR" && break
  4592. done
  4593. fi
  4594. if test -z "$AR"; then
  4595. ac_ct_AR=$AR
  4596. for ac_prog in ar
  4597. do
  4598. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4599. set dummy $ac_prog; ac_word=$2
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4601. $as_echo_n "checking for $ac_word... " >&6; }
  4602. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. if test -n "$ac_ct_AR"; then
  4606. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4607. else
  4608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4609. for as_dir in $PATH
  4610. do
  4611. IFS=$as_save_IFS
  4612. test -z "$as_dir" && as_dir=.
  4613. for ac_exec_ext in '' $ac_executable_extensions; do
  4614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4615. ac_cv_prog_ac_ct_AR="$ac_prog"
  4616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4617. break 2
  4618. fi
  4619. done
  4620. done
  4621. IFS=$as_save_IFS
  4622. fi
  4623. fi
  4624. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4625. if test -n "$ac_ct_AR"; then
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4627. $as_echo "$ac_ct_AR" >&6; }
  4628. else
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4630. $as_echo "no" >&6; }
  4631. fi
  4632. test -n "$ac_ct_AR" && break
  4633. done
  4634. if test "x$ac_ct_AR" = x; then
  4635. AR="false"
  4636. else
  4637. case $cross_compiling:$ac_tool_warned in
  4638. yes:)
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4640. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4641. ac_tool_warned=yes ;;
  4642. esac
  4643. AR=$ac_ct_AR
  4644. fi
  4645. fi
  4646. : ${AR=ar}
  4647. : ${AR_FLAGS=cru}
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4649. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4650. if ${lt_cv_ar_at_file+:} false; then :
  4651. $as_echo_n "(cached) " >&6
  4652. else
  4653. lt_cv_ar_at_file=no
  4654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4655. /* end confdefs.h. */
  4656. int
  4657. main ()
  4658. {
  4659. ;
  4660. return 0;
  4661. }
  4662. _ACEOF
  4663. if ac_fn_c_try_compile "$LINENO"; then :
  4664. echo conftest.$ac_objext > conftest.lst
  4665. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4666. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4667. (eval $lt_ar_try) 2>&5
  4668. ac_status=$?
  4669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4670. test $ac_status = 0; }
  4671. if test "$ac_status" -eq 0; then
  4672. # Ensure the archiver fails upon bogus file names.
  4673. rm -f conftest.$ac_objext libconftest.a
  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" -ne 0; then
  4680. lt_cv_ar_at_file=@
  4681. fi
  4682. fi
  4683. rm -f conftest.* libconftest.a
  4684. fi
  4685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4686. fi
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4688. $as_echo "$lt_cv_ar_at_file" >&6; }
  4689. if test "x$lt_cv_ar_at_file" = xno; then
  4690. archiver_list_spec=
  4691. else
  4692. archiver_list_spec=$lt_cv_ar_at_file
  4693. fi
  4694. if test -n "$ac_tool_prefix"; then
  4695. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4696. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4698. $as_echo_n "checking for $ac_word... " >&6; }
  4699. if ${ac_cv_prog_STRIP+:} false; then :
  4700. $as_echo_n "(cached) " >&6
  4701. else
  4702. if test -n "$STRIP"; then
  4703. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4704. else
  4705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4706. for as_dir in $PATH
  4707. do
  4708. IFS=$as_save_IFS
  4709. test -z "$as_dir" && as_dir=.
  4710. for ac_exec_ext in '' $ac_executable_extensions; do
  4711. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4712. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4714. break 2
  4715. fi
  4716. done
  4717. done
  4718. IFS=$as_save_IFS
  4719. fi
  4720. fi
  4721. STRIP=$ac_cv_prog_STRIP
  4722. if test -n "$STRIP"; then
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4724. $as_echo "$STRIP" >&6; }
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4727. $as_echo "no" >&6; }
  4728. fi
  4729. fi
  4730. if test -z "$ac_cv_prog_STRIP"; then
  4731. ac_ct_STRIP=$STRIP
  4732. # Extract the first word of "strip", so it can be a program name with args.
  4733. set dummy strip; ac_word=$2
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4735. $as_echo_n "checking for $ac_word... " >&6; }
  4736. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. if test -n "$ac_ct_STRIP"; then
  4740. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4741. else
  4742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4743. for as_dir in $PATH
  4744. do
  4745. IFS=$as_save_IFS
  4746. test -z "$as_dir" && as_dir=.
  4747. for ac_exec_ext in '' $ac_executable_extensions; do
  4748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4749. ac_cv_prog_ac_ct_STRIP="strip"
  4750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4751. break 2
  4752. fi
  4753. done
  4754. done
  4755. IFS=$as_save_IFS
  4756. fi
  4757. fi
  4758. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4759. if test -n "$ac_ct_STRIP"; then
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4761. $as_echo "$ac_ct_STRIP" >&6; }
  4762. else
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4764. $as_echo "no" >&6; }
  4765. fi
  4766. if test "x$ac_ct_STRIP" = x; then
  4767. STRIP=":"
  4768. else
  4769. case $cross_compiling:$ac_tool_warned in
  4770. yes:)
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4773. ac_tool_warned=yes ;;
  4774. esac
  4775. STRIP=$ac_ct_STRIP
  4776. fi
  4777. else
  4778. STRIP="$ac_cv_prog_STRIP"
  4779. fi
  4780. test -z "$STRIP" && STRIP=:
  4781. if test -n "$ac_tool_prefix"; then
  4782. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4783. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4785. $as_echo_n "checking for $ac_word... " >&6; }
  4786. if ${ac_cv_prog_RANLIB+:} false; then :
  4787. $as_echo_n "(cached) " >&6
  4788. else
  4789. if test -n "$RANLIB"; then
  4790. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4791. else
  4792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4793. for as_dir in $PATH
  4794. do
  4795. IFS=$as_save_IFS
  4796. test -z "$as_dir" && as_dir=.
  4797. for ac_exec_ext in '' $ac_executable_extensions; do
  4798. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4799. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4801. break 2
  4802. fi
  4803. done
  4804. done
  4805. IFS=$as_save_IFS
  4806. fi
  4807. fi
  4808. RANLIB=$ac_cv_prog_RANLIB
  4809. if test -n "$RANLIB"; then
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4811. $as_echo "$RANLIB" >&6; }
  4812. else
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4814. $as_echo "no" >&6; }
  4815. fi
  4816. fi
  4817. if test -z "$ac_cv_prog_RANLIB"; then
  4818. ac_ct_RANLIB=$RANLIB
  4819. # Extract the first word of "ranlib", so it can be a program name with args.
  4820. set dummy ranlib; ac_word=$2
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4822. $as_echo_n "checking for $ac_word... " >&6; }
  4823. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4824. $as_echo_n "(cached) " >&6
  4825. else
  4826. if test -n "$ac_ct_RANLIB"; then
  4827. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4828. else
  4829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4830. for as_dir in $PATH
  4831. do
  4832. IFS=$as_save_IFS
  4833. test -z "$as_dir" && as_dir=.
  4834. for ac_exec_ext in '' $ac_executable_extensions; do
  4835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4836. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4838. break 2
  4839. fi
  4840. done
  4841. done
  4842. IFS=$as_save_IFS
  4843. fi
  4844. fi
  4845. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4846. if test -n "$ac_ct_RANLIB"; then
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4848. $as_echo "$ac_ct_RANLIB" >&6; }
  4849. else
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4851. $as_echo "no" >&6; }
  4852. fi
  4853. if test "x$ac_ct_RANLIB" = x; then
  4854. RANLIB=":"
  4855. else
  4856. case $cross_compiling:$ac_tool_warned in
  4857. yes:)
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4859. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4860. ac_tool_warned=yes ;;
  4861. esac
  4862. RANLIB=$ac_ct_RANLIB
  4863. fi
  4864. else
  4865. RANLIB="$ac_cv_prog_RANLIB"
  4866. fi
  4867. test -z "$RANLIB" && RANLIB=:
  4868. # Determine commands to create old-style static archives.
  4869. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4870. old_postinstall_cmds='chmod 644 $oldlib'
  4871. old_postuninstall_cmds=
  4872. if test -n "$RANLIB"; then
  4873. case $host_os in
  4874. openbsd*)
  4875. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4876. ;;
  4877. *)
  4878. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4879. ;;
  4880. esac
  4881. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4882. fi
  4883. case $host_os in
  4884. darwin*)
  4885. lock_old_archive_extraction=yes ;;
  4886. *)
  4887. lock_old_archive_extraction=no ;;
  4888. esac
  4889. for ac_prog in gawk mawk nawk awk
  4890. do
  4891. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4892. set dummy $ac_prog; ac_word=$2
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4894. $as_echo_n "checking for $ac_word... " >&6; }
  4895. if ${ac_cv_prog_AWK+:} false; then :
  4896. $as_echo_n "(cached) " >&6
  4897. else
  4898. if test -n "$AWK"; then
  4899. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4900. else
  4901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4902. for as_dir in $PATH
  4903. do
  4904. IFS=$as_save_IFS
  4905. test -z "$as_dir" && as_dir=.
  4906. for ac_exec_ext in '' $ac_executable_extensions; do
  4907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4908. ac_cv_prog_AWK="$ac_prog"
  4909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4910. break 2
  4911. fi
  4912. done
  4913. done
  4914. IFS=$as_save_IFS
  4915. fi
  4916. fi
  4917. AWK=$ac_cv_prog_AWK
  4918. if test -n "$AWK"; then
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4920. $as_echo "$AWK" >&6; }
  4921. else
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4923. $as_echo "no" >&6; }
  4924. fi
  4925. test -n "$AWK" && break
  4926. done
  4927. # If no C compiler was specified, use CC.
  4928. LTCC=${LTCC-"$CC"}
  4929. # If no C compiler flags were specified, use CFLAGS.
  4930. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4931. # Allow CC to be a program name with arguments.
  4932. compiler=$CC
  4933. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4935. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4936. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. # These are sane defaults that work on at least a few old systems.
  4940. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4941. # Character class describing NM global symbol codes.
  4942. symcode='[BCDEGRST]'
  4943. # Regexp to match symbols that can be accessed directly from C.
  4944. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4945. # Define system-specific variables.
  4946. case $host_os in
  4947. aix*)
  4948. symcode='[BCDT]'
  4949. ;;
  4950. cygwin* | mingw* | pw32* | cegcc*)
  4951. symcode='[ABCDGISTW]'
  4952. ;;
  4953. hpux*)
  4954. if test "$host_cpu" = ia64; then
  4955. symcode='[ABCDEGRST]'
  4956. fi
  4957. ;;
  4958. irix* | nonstopux*)
  4959. symcode='[BCDEGRST]'
  4960. ;;
  4961. osf*)
  4962. symcode='[BCDEGQRST]'
  4963. ;;
  4964. solaris*)
  4965. symcode='[BDRT]'
  4966. ;;
  4967. sco3.2v5*)
  4968. symcode='[DT]'
  4969. ;;
  4970. sysv4.2uw2*)
  4971. symcode='[DT]'
  4972. ;;
  4973. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4974. symcode='[ABDT]'
  4975. ;;
  4976. sysv4)
  4977. symcode='[DFNSTU]'
  4978. ;;
  4979. esac
  4980. # If we're using GNU nm, then use its standard symbol codes.
  4981. case `$NM -V 2>&1` in
  4982. *GNU* | *'with BFD'*)
  4983. symcode='[ABCDGIRSTW]' ;;
  4984. esac
  4985. # Transform an extracted symbol line into a proper C declaration.
  4986. # Some systems (esp. on ia64) link data and code symbols differently,
  4987. # so use this general approach.
  4988. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4989. # Transform an extracted symbol line into symbol name and symbol address
  4990. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4991. 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'"
  4992. # Handle CRLF in mingw tool chain
  4993. opt_cr=
  4994. case $build_os in
  4995. mingw*)
  4996. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4997. ;;
  4998. esac
  4999. # Try without a prefix underscore, then with it.
  5000. for ac_symprfx in "" "_"; do
  5001. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5002. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5003. # Write the raw and C identifiers.
  5004. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5005. # Fake it for dumpbin and say T for any non-static function
  5006. # and D for any global variable.
  5007. # Also find C++ and __fastcall symbols from MSVC++,
  5008. # which start with @ or ?.
  5009. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5010. " {last_section=section; section=\$ 3};"\
  5011. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5012. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5013. " \$ 0!~/External *\|/{next};"\
  5014. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5015. " {if(hide[section]) next};"\
  5016. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5017. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5018. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5019. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5020. " ' prfx=^$ac_symprfx"
  5021. else
  5022. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5023. fi
  5024. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5025. # Check to see that the pipe works correctly.
  5026. pipe_works=no
  5027. rm -f conftest*
  5028. cat > conftest.$ac_ext <<_LT_EOF
  5029. #ifdef __cplusplus
  5030. extern "C" {
  5031. #endif
  5032. char nm_test_var;
  5033. void nm_test_func(void);
  5034. void nm_test_func(void){}
  5035. #ifdef __cplusplus
  5036. }
  5037. #endif
  5038. int main(){nm_test_var='a';nm_test_func();return(0);}
  5039. _LT_EOF
  5040. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5041. (eval $ac_compile) 2>&5
  5042. ac_status=$?
  5043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5044. test $ac_status = 0; }; then
  5045. # Now try to grab the symbols.
  5046. nlist=conftest.nm
  5047. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5048. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5049. ac_status=$?
  5050. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5051. test $ac_status = 0; } && test -s "$nlist"; then
  5052. # Try sorting and uniquifying the output.
  5053. if sort "$nlist" | uniq > "$nlist"T; then
  5054. mv -f "$nlist"T "$nlist"
  5055. else
  5056. rm -f "$nlist"T
  5057. fi
  5058. # Make sure that we snagged all the symbols we need.
  5059. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5060. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5061. cat <<_LT_EOF > conftest.$ac_ext
  5062. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5063. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5064. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5065. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5066. # define LT_DLSYM_CONST
  5067. #elif defined(__osf__)
  5068. /* This system does not cope well with relocations in const data. */
  5069. # define LT_DLSYM_CONST
  5070. #else
  5071. # define LT_DLSYM_CONST const
  5072. #endif
  5073. #ifdef __cplusplus
  5074. extern "C" {
  5075. #endif
  5076. _LT_EOF
  5077. # Now generate the symbol file.
  5078. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5079. cat <<_LT_EOF >> conftest.$ac_ext
  5080. /* The mapping between symbol names and symbols. */
  5081. LT_DLSYM_CONST struct {
  5082. const char *name;
  5083. void *address;
  5084. }
  5085. lt__PROGRAM__LTX_preloaded_symbols[] =
  5086. {
  5087. { "@PROGRAM@", (void *) 0 },
  5088. _LT_EOF
  5089. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5090. cat <<\_LT_EOF >> conftest.$ac_ext
  5091. {0, (void *) 0}
  5092. };
  5093. /* This works around a problem in FreeBSD linker */
  5094. #ifdef FREEBSD_WORKAROUND
  5095. static const void *lt_preloaded_setup() {
  5096. return lt__PROGRAM__LTX_preloaded_symbols;
  5097. }
  5098. #endif
  5099. #ifdef __cplusplus
  5100. }
  5101. #endif
  5102. _LT_EOF
  5103. # Now try linking the two files.
  5104. mv conftest.$ac_objext conftstm.$ac_objext
  5105. lt_globsym_save_LIBS=$LIBS
  5106. lt_globsym_save_CFLAGS=$CFLAGS
  5107. LIBS="conftstm.$ac_objext"
  5108. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5109. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5110. (eval $ac_link) 2>&5
  5111. ac_status=$?
  5112. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5113. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5114. pipe_works=yes
  5115. fi
  5116. LIBS=$lt_globsym_save_LIBS
  5117. CFLAGS=$lt_globsym_save_CFLAGS
  5118. else
  5119. echo "cannot find nm_test_func in $nlist" >&5
  5120. fi
  5121. else
  5122. echo "cannot find nm_test_var in $nlist" >&5
  5123. fi
  5124. else
  5125. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5126. fi
  5127. else
  5128. echo "$progname: failed program was:" >&5
  5129. cat conftest.$ac_ext >&5
  5130. fi
  5131. rm -rf conftest* conftst*
  5132. # Do not use the global_symbol_pipe unless it works.
  5133. if test "$pipe_works" = yes; then
  5134. break
  5135. else
  5136. lt_cv_sys_global_symbol_pipe=
  5137. fi
  5138. done
  5139. fi
  5140. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5141. lt_cv_sys_global_symbol_to_cdecl=
  5142. fi
  5143. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5145. $as_echo "failed" >&6; }
  5146. else
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5148. $as_echo "ok" >&6; }
  5149. fi
  5150. # Response file support.
  5151. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5152. nm_file_list_spec='@'
  5153. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5154. nm_file_list_spec='@'
  5155. fi
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5157. $as_echo_n "checking for sysroot... " >&6; }
  5158. # Check whether --with-sysroot was given.
  5159. if test "${with_sysroot+set}" = set; then :
  5160. withval=$with_sysroot;
  5161. else
  5162. with_sysroot=no
  5163. fi
  5164. lt_sysroot=
  5165. case ${with_sysroot} in #(
  5166. yes)
  5167. if test "$GCC" = yes; then
  5168. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5169. fi
  5170. ;; #(
  5171. /*)
  5172. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5173. ;; #(
  5174. no|'')
  5175. ;; #(
  5176. *)
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5178. $as_echo "${with_sysroot}" >&6; }
  5179. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5180. ;;
  5181. esac
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5183. $as_echo "${lt_sysroot:-no}" >&6; }
  5184. # Check whether --enable-libtool-lock was given.
  5185. if test "${enable_libtool_lock+set}" = set; then :
  5186. enableval=$enable_libtool_lock;
  5187. fi
  5188. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5189. # Some flags need to be propagated to the compiler or linker for good
  5190. # libtool support.
  5191. case $host in
  5192. ia64-*-hpux*)
  5193. # Find out which ABI we are using.
  5194. echo 'int i;' > conftest.$ac_ext
  5195. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5196. (eval $ac_compile) 2>&5
  5197. ac_status=$?
  5198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5199. test $ac_status = 0; }; then
  5200. case `/usr/bin/file conftest.$ac_objext` in
  5201. *ELF-32*)
  5202. HPUX_IA64_MODE="32"
  5203. ;;
  5204. *ELF-64*)
  5205. HPUX_IA64_MODE="64"
  5206. ;;
  5207. esac
  5208. fi
  5209. rm -rf conftest*
  5210. ;;
  5211. *-*-irix6*)
  5212. # Find out which ABI we are using.
  5213. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5214. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5215. (eval $ac_compile) 2>&5
  5216. ac_status=$?
  5217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5218. test $ac_status = 0; }; then
  5219. if test "$lt_cv_prog_gnu_ld" = yes; then
  5220. case `/usr/bin/file conftest.$ac_objext` in
  5221. *32-bit*)
  5222. LD="${LD-ld} -melf32bsmip"
  5223. ;;
  5224. *N32*)
  5225. LD="${LD-ld} -melf32bmipn32"
  5226. ;;
  5227. *64-bit*)
  5228. LD="${LD-ld} -melf64bmip"
  5229. ;;
  5230. esac
  5231. else
  5232. case `/usr/bin/file conftest.$ac_objext` in
  5233. *32-bit*)
  5234. LD="${LD-ld} -32"
  5235. ;;
  5236. *N32*)
  5237. LD="${LD-ld} -n32"
  5238. ;;
  5239. *64-bit*)
  5240. LD="${LD-ld} -64"
  5241. ;;
  5242. esac
  5243. fi
  5244. fi
  5245. rm -rf conftest*
  5246. ;;
  5247. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5248. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5249. # Find out which ABI we are using.
  5250. echo 'int i;' > conftest.$ac_ext
  5251. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5252. (eval $ac_compile) 2>&5
  5253. ac_status=$?
  5254. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5255. test $ac_status = 0; }; then
  5256. case `/usr/bin/file conftest.o` in
  5257. *32-bit*)
  5258. case $host in
  5259. x86_64-*kfreebsd*-gnu)
  5260. LD="${LD-ld} -m elf_i386_fbsd"
  5261. ;;
  5262. x86_64-*linux*)
  5263. LD="${LD-ld} -m elf_i386"
  5264. ;;
  5265. ppc64-*linux*|powerpc64-*linux*)
  5266. LD="${LD-ld} -m elf32ppclinux"
  5267. ;;
  5268. s390x-*linux*)
  5269. LD="${LD-ld} -m elf_s390"
  5270. ;;
  5271. sparc64-*linux*)
  5272. LD="${LD-ld} -m elf32_sparc"
  5273. ;;
  5274. esac
  5275. ;;
  5276. *64-bit*)
  5277. case $host in
  5278. x86_64-*kfreebsd*-gnu)
  5279. LD="${LD-ld} -m elf_x86_64_fbsd"
  5280. ;;
  5281. x86_64-*linux*)
  5282. LD="${LD-ld} -m elf_x86_64"
  5283. ;;
  5284. powerpc64le-*linux*)
  5285. LD="${LD-ld} -m elf64lppc"
  5286. ;;
  5287. powerpc64-*linux*)
  5288. LD="${LD-ld} -m elf64ppc"
  5289. ;;
  5290. s390*-*linux*|s390*-*tpf*)
  5291. LD="${LD-ld} -m elf64_s390"
  5292. ;;
  5293. sparc*-*linux*)
  5294. LD="${LD-ld} -m elf64_sparc"
  5295. ;;
  5296. esac
  5297. ;;
  5298. esac
  5299. fi
  5300. rm -rf conftest*
  5301. ;;
  5302. *-*-sco3.2v5*)
  5303. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5304. SAVE_CFLAGS="$CFLAGS"
  5305. CFLAGS="$CFLAGS -belf"
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5307. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5308. if ${lt_cv_cc_needs_belf+:} false; then :
  5309. $as_echo_n "(cached) " >&6
  5310. else
  5311. ac_ext=c
  5312. ac_cpp='$CPP $CPPFLAGS'
  5313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5317. /* end confdefs.h. */
  5318. int
  5319. main ()
  5320. {
  5321. ;
  5322. return 0;
  5323. }
  5324. _ACEOF
  5325. if ac_fn_c_try_link "$LINENO"; then :
  5326. lt_cv_cc_needs_belf=yes
  5327. else
  5328. lt_cv_cc_needs_belf=no
  5329. fi
  5330. rm -f core conftest.err conftest.$ac_objext \
  5331. conftest$ac_exeext conftest.$ac_ext
  5332. ac_ext=c
  5333. ac_cpp='$CPP $CPPFLAGS'
  5334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5337. fi
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5339. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5340. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5341. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5342. CFLAGS="$SAVE_CFLAGS"
  5343. fi
  5344. ;;
  5345. *-*solaris*)
  5346. # Find out which ABI we are using.
  5347. echo 'int i;' > conftest.$ac_ext
  5348. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5349. (eval $ac_compile) 2>&5
  5350. ac_status=$?
  5351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5352. test $ac_status = 0; }; then
  5353. case `/usr/bin/file conftest.o` in
  5354. *64-bit*)
  5355. case $lt_cv_prog_gnu_ld in
  5356. yes*)
  5357. case $host in
  5358. i?86-*-solaris*)
  5359. LD="${LD-ld} -m elf_x86_64"
  5360. ;;
  5361. sparc*-*-solaris*)
  5362. LD="${LD-ld} -m elf64_sparc"
  5363. ;;
  5364. esac
  5365. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5366. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5367. LD="${LD-ld}_sol2"
  5368. fi
  5369. ;;
  5370. *)
  5371. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5372. LD="${LD-ld} -64"
  5373. fi
  5374. ;;
  5375. esac
  5376. ;;
  5377. esac
  5378. fi
  5379. rm -rf conftest*
  5380. ;;
  5381. esac
  5382. need_locks="$enable_libtool_lock"
  5383. if test -n "$ac_tool_prefix"; then
  5384. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5385. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5387. $as_echo_n "checking for $ac_word... " >&6; }
  5388. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. if test -n "$MANIFEST_TOOL"; then
  5392. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5401. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5411. if test -n "$MANIFEST_TOOL"; then
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5413. $as_echo "$MANIFEST_TOOL" >&6; }
  5414. else
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5416. $as_echo "no" >&6; }
  5417. fi
  5418. fi
  5419. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5420. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5421. # Extract the first word of "mt", so it can be a program name with args.
  5422. set dummy mt; ac_word=$2
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5424. $as_echo_n "checking for $ac_word... " >&6; }
  5425. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5426. $as_echo_n "(cached) " >&6
  5427. else
  5428. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5429. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5430. else
  5431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5432. for as_dir in $PATH
  5433. do
  5434. IFS=$as_save_IFS
  5435. test -z "$as_dir" && as_dir=.
  5436. for ac_exec_ext in '' $ac_executable_extensions; do
  5437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5438. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5440. break 2
  5441. fi
  5442. done
  5443. done
  5444. IFS=$as_save_IFS
  5445. fi
  5446. fi
  5447. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5448. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5450. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5451. else
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5453. $as_echo "no" >&6; }
  5454. fi
  5455. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5456. MANIFEST_TOOL=":"
  5457. else
  5458. case $cross_compiling:$ac_tool_warned in
  5459. yes:)
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5461. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5462. ac_tool_warned=yes ;;
  5463. esac
  5464. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5465. fi
  5466. else
  5467. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5468. fi
  5469. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5471. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5472. if ${lt_cv_path_mainfest_tool+:} false; then :
  5473. $as_echo_n "(cached) " >&6
  5474. else
  5475. lt_cv_path_mainfest_tool=no
  5476. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5477. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5478. cat conftest.err >&5
  5479. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5480. lt_cv_path_mainfest_tool=yes
  5481. fi
  5482. rm -f conftest*
  5483. fi
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5485. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5486. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5487. MANIFEST_TOOL=:
  5488. fi
  5489. case $host_os in
  5490. rhapsody* | darwin*)
  5491. if test -n "$ac_tool_prefix"; then
  5492. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5493. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5495. $as_echo_n "checking for $ac_word... " >&6; }
  5496. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. if test -n "$DSYMUTIL"; then
  5500. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5501. else
  5502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5503. for as_dir in $PATH
  5504. do
  5505. IFS=$as_save_IFS
  5506. test -z "$as_dir" && as_dir=.
  5507. for ac_exec_ext in '' $ac_executable_extensions; do
  5508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5509. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5511. break 2
  5512. fi
  5513. done
  5514. done
  5515. IFS=$as_save_IFS
  5516. fi
  5517. fi
  5518. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5519. if test -n "$DSYMUTIL"; then
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5521. $as_echo "$DSYMUTIL" >&6; }
  5522. else
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5524. $as_echo "no" >&6; }
  5525. fi
  5526. fi
  5527. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5528. ac_ct_DSYMUTIL=$DSYMUTIL
  5529. # Extract the first word of "dsymutil", so it can be a program name with args.
  5530. set dummy dsymutil; ac_word=$2
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5532. $as_echo_n "checking for $ac_word... " >&6; }
  5533. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. if test -n "$ac_ct_DSYMUTIL"; then
  5537. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5538. else
  5539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5540. for as_dir in $PATH
  5541. do
  5542. IFS=$as_save_IFS
  5543. test -z "$as_dir" && as_dir=.
  5544. for ac_exec_ext in '' $ac_executable_extensions; do
  5545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5546. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5548. break 2
  5549. fi
  5550. done
  5551. done
  5552. IFS=$as_save_IFS
  5553. fi
  5554. fi
  5555. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5556. if test -n "$ac_ct_DSYMUTIL"; then
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5558. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5559. else
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5561. $as_echo "no" >&6; }
  5562. fi
  5563. if test "x$ac_ct_DSYMUTIL" = x; then
  5564. DSYMUTIL=":"
  5565. else
  5566. case $cross_compiling:$ac_tool_warned in
  5567. yes:)
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5570. ac_tool_warned=yes ;;
  5571. esac
  5572. DSYMUTIL=$ac_ct_DSYMUTIL
  5573. fi
  5574. else
  5575. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5576. fi
  5577. if test -n "$ac_tool_prefix"; then
  5578. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5579. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5581. $as_echo_n "checking for $ac_word... " >&6; }
  5582. if ${ac_cv_prog_NMEDIT+:} false; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. if test -n "$NMEDIT"; then
  5586. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5587. else
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5595. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. IFS=$as_save_IFS
  5602. fi
  5603. fi
  5604. NMEDIT=$ac_cv_prog_NMEDIT
  5605. if test -n "$NMEDIT"; then
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5607. $as_echo "$NMEDIT" >&6; }
  5608. else
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. $as_echo "no" >&6; }
  5611. fi
  5612. fi
  5613. if test -z "$ac_cv_prog_NMEDIT"; then
  5614. ac_ct_NMEDIT=$NMEDIT
  5615. # Extract the first word of "nmedit", so it can be a program name with args.
  5616. set dummy nmedit; ac_word=$2
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5618. $as_echo_n "checking for $ac_word... " >&6; }
  5619. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5620. $as_echo_n "(cached) " >&6
  5621. else
  5622. if test -n "$ac_ct_NMEDIT"; then
  5623. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5624. else
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH
  5627. do
  5628. IFS=$as_save_IFS
  5629. test -z "$as_dir" && as_dir=.
  5630. for ac_exec_ext in '' $ac_executable_extensions; do
  5631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5632. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5634. break 2
  5635. fi
  5636. done
  5637. done
  5638. IFS=$as_save_IFS
  5639. fi
  5640. fi
  5641. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5642. if test -n "$ac_ct_NMEDIT"; then
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5644. $as_echo "$ac_ct_NMEDIT" >&6; }
  5645. else
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5647. $as_echo "no" >&6; }
  5648. fi
  5649. if test "x$ac_ct_NMEDIT" = x; then
  5650. NMEDIT=":"
  5651. else
  5652. case $cross_compiling:$ac_tool_warned in
  5653. yes:)
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5656. ac_tool_warned=yes ;;
  5657. esac
  5658. NMEDIT=$ac_ct_NMEDIT
  5659. fi
  5660. else
  5661. NMEDIT="$ac_cv_prog_NMEDIT"
  5662. fi
  5663. if test -n "$ac_tool_prefix"; then
  5664. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5665. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5667. $as_echo_n "checking for $ac_word... " >&6; }
  5668. if ${ac_cv_prog_LIPO+:} false; then :
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. if test -n "$LIPO"; then
  5672. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5673. else
  5674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5675. for as_dir in $PATH
  5676. do
  5677. IFS=$as_save_IFS
  5678. test -z "$as_dir" && as_dir=.
  5679. for ac_exec_ext in '' $ac_executable_extensions; do
  5680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5681. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5683. break 2
  5684. fi
  5685. done
  5686. done
  5687. IFS=$as_save_IFS
  5688. fi
  5689. fi
  5690. LIPO=$ac_cv_prog_LIPO
  5691. if test -n "$LIPO"; then
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5693. $as_echo "$LIPO" >&6; }
  5694. else
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5696. $as_echo "no" >&6; }
  5697. fi
  5698. fi
  5699. if test -z "$ac_cv_prog_LIPO"; then
  5700. ac_ct_LIPO=$LIPO
  5701. # Extract the first word of "lipo", so it can be a program name with args.
  5702. set dummy lipo; ac_word=$2
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5704. $as_echo_n "checking for $ac_word... " >&6; }
  5705. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5706. $as_echo_n "(cached) " >&6
  5707. else
  5708. if test -n "$ac_ct_LIPO"; then
  5709. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5710. else
  5711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5712. for as_dir in $PATH
  5713. do
  5714. IFS=$as_save_IFS
  5715. test -z "$as_dir" && as_dir=.
  5716. for ac_exec_ext in '' $ac_executable_extensions; do
  5717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5718. ac_cv_prog_ac_ct_LIPO="lipo"
  5719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5720. break 2
  5721. fi
  5722. done
  5723. done
  5724. IFS=$as_save_IFS
  5725. fi
  5726. fi
  5727. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5728. if test -n "$ac_ct_LIPO"; then
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5730. $as_echo "$ac_ct_LIPO" >&6; }
  5731. else
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5733. $as_echo "no" >&6; }
  5734. fi
  5735. if test "x$ac_ct_LIPO" = x; then
  5736. LIPO=":"
  5737. else
  5738. case $cross_compiling:$ac_tool_warned in
  5739. yes:)
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5741. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5742. ac_tool_warned=yes ;;
  5743. esac
  5744. LIPO=$ac_ct_LIPO
  5745. fi
  5746. else
  5747. LIPO="$ac_cv_prog_LIPO"
  5748. fi
  5749. if test -n "$ac_tool_prefix"; then
  5750. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5751. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5753. $as_echo_n "checking for $ac_word... " >&6; }
  5754. if ${ac_cv_prog_OTOOL+:} false; then :
  5755. $as_echo_n "(cached) " >&6
  5756. else
  5757. if test -n "$OTOOL"; then
  5758. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5759. else
  5760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5761. for as_dir in $PATH
  5762. do
  5763. IFS=$as_save_IFS
  5764. test -z "$as_dir" && as_dir=.
  5765. for ac_exec_ext in '' $ac_executable_extensions; do
  5766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5767. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5769. break 2
  5770. fi
  5771. done
  5772. done
  5773. IFS=$as_save_IFS
  5774. fi
  5775. fi
  5776. OTOOL=$ac_cv_prog_OTOOL
  5777. if test -n "$OTOOL"; then
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5779. $as_echo "$OTOOL" >&6; }
  5780. else
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5782. $as_echo "no" >&6; }
  5783. fi
  5784. fi
  5785. if test -z "$ac_cv_prog_OTOOL"; then
  5786. ac_ct_OTOOL=$OTOOL
  5787. # Extract the first word of "otool", so it can be a program name with args.
  5788. set dummy otool; ac_word=$2
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5790. $as_echo_n "checking for $ac_word... " >&6; }
  5791. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. if test -n "$ac_ct_OTOOL"; then
  5795. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5796. else
  5797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5798. for as_dir in $PATH
  5799. do
  5800. IFS=$as_save_IFS
  5801. test -z "$as_dir" && as_dir=.
  5802. for ac_exec_ext in '' $ac_executable_extensions; do
  5803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5804. ac_cv_prog_ac_ct_OTOOL="otool"
  5805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5806. break 2
  5807. fi
  5808. done
  5809. done
  5810. IFS=$as_save_IFS
  5811. fi
  5812. fi
  5813. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5814. if test -n "$ac_ct_OTOOL"; then
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5816. $as_echo "$ac_ct_OTOOL" >&6; }
  5817. else
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5819. $as_echo "no" >&6; }
  5820. fi
  5821. if test "x$ac_ct_OTOOL" = x; then
  5822. OTOOL=":"
  5823. else
  5824. case $cross_compiling:$ac_tool_warned in
  5825. yes:)
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5828. ac_tool_warned=yes ;;
  5829. esac
  5830. OTOOL=$ac_ct_OTOOL
  5831. fi
  5832. else
  5833. OTOOL="$ac_cv_prog_OTOOL"
  5834. fi
  5835. if test -n "$ac_tool_prefix"; then
  5836. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5837. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5839. $as_echo_n "checking for $ac_word... " >&6; }
  5840. if ${ac_cv_prog_OTOOL64+:} false; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. if test -n "$OTOOL64"; then
  5844. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. test -z "$as_dir" && as_dir=.
  5851. for ac_exec_ext in '' $ac_executable_extensions; do
  5852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5853. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5855. break 2
  5856. fi
  5857. done
  5858. done
  5859. IFS=$as_save_IFS
  5860. fi
  5861. fi
  5862. OTOOL64=$ac_cv_prog_OTOOL64
  5863. if test -n "$OTOOL64"; then
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5865. $as_echo "$OTOOL64" >&6; }
  5866. else
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5868. $as_echo "no" >&6; }
  5869. fi
  5870. fi
  5871. if test -z "$ac_cv_prog_OTOOL64"; then
  5872. ac_ct_OTOOL64=$OTOOL64
  5873. # Extract the first word of "otool64", so it can be a program name with args.
  5874. set dummy otool64; ac_word=$2
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5876. $as_echo_n "checking for $ac_word... " >&6; }
  5877. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5878. $as_echo_n "(cached) " >&6
  5879. else
  5880. if test -n "$ac_ct_OTOOL64"; then
  5881. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5882. else
  5883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5884. for as_dir in $PATH
  5885. do
  5886. IFS=$as_save_IFS
  5887. test -z "$as_dir" && as_dir=.
  5888. for ac_exec_ext in '' $ac_executable_extensions; do
  5889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5890. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5892. break 2
  5893. fi
  5894. done
  5895. done
  5896. IFS=$as_save_IFS
  5897. fi
  5898. fi
  5899. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5900. if test -n "$ac_ct_OTOOL64"; then
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5902. $as_echo "$ac_ct_OTOOL64" >&6; }
  5903. else
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5905. $as_echo "no" >&6; }
  5906. fi
  5907. if test "x$ac_ct_OTOOL64" = x; then
  5908. OTOOL64=":"
  5909. else
  5910. case $cross_compiling:$ac_tool_warned in
  5911. yes:)
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5913. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5914. ac_tool_warned=yes ;;
  5915. esac
  5916. OTOOL64=$ac_ct_OTOOL64
  5917. fi
  5918. else
  5919. OTOOL64="$ac_cv_prog_OTOOL64"
  5920. fi
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5922. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5923. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. lt_cv_apple_cc_single_mod=no
  5927. if test -z "${LT_MULTI_MODULE}"; then
  5928. # By default we will add the -single_module flag. You can override
  5929. # by either setting the environment variable LT_MULTI_MODULE
  5930. # non-empty at configure time, or by adding -multi_module to the
  5931. # link flags.
  5932. rm -rf libconftest.dylib*
  5933. echo "int foo(void){return 1;}" > conftest.c
  5934. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5935. -dynamiclib -Wl,-single_module conftest.c" >&5
  5936. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5937. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5938. _lt_result=$?
  5939. # If there is a non-empty error log, and "single_module"
  5940. # appears in it, assume the flag caused a linker warning
  5941. if test -s conftest.err && $GREP single_module conftest.err; then
  5942. cat conftest.err >&5
  5943. # Otherwise, if the output was created with a 0 exit code from
  5944. # the compiler, it worked.
  5945. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5946. lt_cv_apple_cc_single_mod=yes
  5947. else
  5948. cat conftest.err >&5
  5949. fi
  5950. rm -rf libconftest.dylib*
  5951. rm -f conftest.*
  5952. fi
  5953. fi
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5955. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5957. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5958. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5959. $as_echo_n "(cached) " >&6
  5960. else
  5961. lt_cv_ld_exported_symbols_list=no
  5962. save_LDFLAGS=$LDFLAGS
  5963. echo "_main" > conftest.sym
  5964. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5966. /* end confdefs.h. */
  5967. int
  5968. main ()
  5969. {
  5970. ;
  5971. return 0;
  5972. }
  5973. _ACEOF
  5974. if ac_fn_c_try_link "$LINENO"; then :
  5975. lt_cv_ld_exported_symbols_list=yes
  5976. else
  5977. lt_cv_ld_exported_symbols_list=no
  5978. fi
  5979. rm -f core conftest.err conftest.$ac_objext \
  5980. conftest$ac_exeext conftest.$ac_ext
  5981. LDFLAGS="$save_LDFLAGS"
  5982. fi
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5984. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5986. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5987. if ${lt_cv_ld_force_load+:} false; then :
  5988. $as_echo_n "(cached) " >&6
  5989. else
  5990. lt_cv_ld_force_load=no
  5991. cat > conftest.c << _LT_EOF
  5992. int forced_loaded() { return 2;}
  5993. _LT_EOF
  5994. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5995. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5996. echo "$AR cru libconftest.a conftest.o" >&5
  5997. $AR cru libconftest.a conftest.o 2>&5
  5998. echo "$RANLIB libconftest.a" >&5
  5999. $RANLIB libconftest.a 2>&5
  6000. cat > conftest.c << _LT_EOF
  6001. int main() { return 0;}
  6002. _LT_EOF
  6003. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6004. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6005. _lt_result=$?
  6006. if test -s conftest.err && $GREP force_load conftest.err; then
  6007. cat conftest.err >&5
  6008. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6009. lt_cv_ld_force_load=yes
  6010. else
  6011. cat conftest.err >&5
  6012. fi
  6013. rm -f conftest.err libconftest.a conftest conftest.c
  6014. rm -rf conftest.dSYM
  6015. fi
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6017. $as_echo "$lt_cv_ld_force_load" >&6; }
  6018. case $host_os in
  6019. rhapsody* | darwin1.[012])
  6020. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6021. darwin1.*)
  6022. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6023. darwin*) # darwin 5.x on
  6024. # if running on 10.5 or later, the deployment target defaults
  6025. # to the OS version, if on x86, and 10.4, the deployment
  6026. # target defaults to 10.4. Don't you love it?
  6027. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6028. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6029. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6030. 10.[012]*)
  6031. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6032. 10.*)
  6033. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6034. esac
  6035. ;;
  6036. esac
  6037. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6038. _lt_dar_single_mod='$single_module'
  6039. fi
  6040. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6041. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6042. else
  6043. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6044. fi
  6045. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6046. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6047. else
  6048. _lt_dsymutil=
  6049. fi
  6050. ;;
  6051. esac
  6052. ac_ext=c
  6053. ac_cpp='$CPP $CPPFLAGS'
  6054. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6055. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6056. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6058. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6059. # On Suns, sometimes $CPP names a directory.
  6060. if test -n "$CPP" && test -d "$CPP"; then
  6061. CPP=
  6062. fi
  6063. if test -z "$CPP"; then
  6064. if ${ac_cv_prog_CPP+:} false; then :
  6065. $as_echo_n "(cached) " >&6
  6066. else
  6067. # Double quotes because CPP needs to be expanded
  6068. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6069. do
  6070. ac_preproc_ok=false
  6071. for ac_c_preproc_warn_flag in '' yes
  6072. do
  6073. # Use a header file that comes with gcc, so configuring glibc
  6074. # with a fresh cross-compiler works.
  6075. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6076. # <limits.h> exists even on freestanding compilers.
  6077. # On the NeXT, cc -E runs the code through the compiler's parser,
  6078. # not just through cpp. "Syntax error" is here to catch this case.
  6079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6080. /* end confdefs.h. */
  6081. #ifdef __STDC__
  6082. # include <limits.h>
  6083. #else
  6084. # include <assert.h>
  6085. #endif
  6086. Syntax error
  6087. _ACEOF
  6088. if ac_fn_c_try_cpp "$LINENO"; then :
  6089. else
  6090. # Broken: fails on valid input.
  6091. continue
  6092. fi
  6093. rm -f conftest.err conftest.i conftest.$ac_ext
  6094. # OK, works on sane cases. Now check whether nonexistent headers
  6095. # can be detected and how.
  6096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6097. /* end confdefs.h. */
  6098. #include <ac_nonexistent.h>
  6099. _ACEOF
  6100. if ac_fn_c_try_cpp "$LINENO"; then :
  6101. # Broken: success on invalid input.
  6102. continue
  6103. else
  6104. # Passes both tests.
  6105. ac_preproc_ok=:
  6106. break
  6107. fi
  6108. rm -f conftest.err conftest.i conftest.$ac_ext
  6109. done
  6110. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6111. rm -f conftest.i conftest.err conftest.$ac_ext
  6112. if $ac_preproc_ok; then :
  6113. break
  6114. fi
  6115. done
  6116. ac_cv_prog_CPP=$CPP
  6117. fi
  6118. CPP=$ac_cv_prog_CPP
  6119. else
  6120. ac_cv_prog_CPP=$CPP
  6121. fi
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6123. $as_echo "$CPP" >&6; }
  6124. ac_preproc_ok=false
  6125. for ac_c_preproc_warn_flag in '' yes
  6126. do
  6127. # Use a header file that comes with gcc, so configuring glibc
  6128. # with a fresh cross-compiler works.
  6129. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6130. # <limits.h> exists even on freestanding compilers.
  6131. # On the NeXT, cc -E runs the code through the compiler's parser,
  6132. # not just through cpp. "Syntax error" is here to catch this case.
  6133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6134. /* end confdefs.h. */
  6135. #ifdef __STDC__
  6136. # include <limits.h>
  6137. #else
  6138. # include <assert.h>
  6139. #endif
  6140. Syntax error
  6141. _ACEOF
  6142. if ac_fn_c_try_cpp "$LINENO"; then :
  6143. else
  6144. # Broken: fails on valid input.
  6145. continue
  6146. fi
  6147. rm -f conftest.err conftest.i conftest.$ac_ext
  6148. # OK, works on sane cases. Now check whether nonexistent headers
  6149. # can be detected and how.
  6150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6151. /* end confdefs.h. */
  6152. #include <ac_nonexistent.h>
  6153. _ACEOF
  6154. if ac_fn_c_try_cpp "$LINENO"; then :
  6155. # Broken: success on invalid input.
  6156. continue
  6157. else
  6158. # Passes both tests.
  6159. ac_preproc_ok=:
  6160. break
  6161. fi
  6162. rm -f conftest.err conftest.i conftest.$ac_ext
  6163. done
  6164. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6165. rm -f conftest.i conftest.err conftest.$ac_ext
  6166. if $ac_preproc_ok; then :
  6167. else
  6168. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6169. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6170. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6171. See \`config.log' for more details" "$LINENO" 5; }
  6172. fi
  6173. ac_ext=c
  6174. ac_cpp='$CPP $CPPFLAGS'
  6175. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6176. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6177. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6179. $as_echo_n "checking for ANSI C header files... " >&6; }
  6180. if ${ac_cv_header_stdc+:} false; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6184. /* end confdefs.h. */
  6185. #include <stdlib.h>
  6186. #include <stdarg.h>
  6187. #include <string.h>
  6188. #include <float.h>
  6189. int
  6190. main ()
  6191. {
  6192. ;
  6193. return 0;
  6194. }
  6195. _ACEOF
  6196. if ac_fn_c_try_compile "$LINENO"; then :
  6197. ac_cv_header_stdc=yes
  6198. else
  6199. ac_cv_header_stdc=no
  6200. fi
  6201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6202. if test $ac_cv_header_stdc = yes; then
  6203. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6205. /* end confdefs.h. */
  6206. #include <string.h>
  6207. _ACEOF
  6208. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6209. $EGREP "memchr" >/dev/null 2>&1; then :
  6210. else
  6211. ac_cv_header_stdc=no
  6212. fi
  6213. rm -f conftest*
  6214. fi
  6215. if test $ac_cv_header_stdc = yes; then
  6216. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6218. /* end confdefs.h. */
  6219. #include <stdlib.h>
  6220. _ACEOF
  6221. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6222. $EGREP "free" >/dev/null 2>&1; then :
  6223. else
  6224. ac_cv_header_stdc=no
  6225. fi
  6226. rm -f conftest*
  6227. fi
  6228. if test $ac_cv_header_stdc = yes; then
  6229. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6230. if test "$cross_compiling" = yes; then :
  6231. :
  6232. else
  6233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6234. /* end confdefs.h. */
  6235. #include <ctype.h>
  6236. #include <stdlib.h>
  6237. #if ((' ' & 0x0FF) == 0x020)
  6238. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6239. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6240. #else
  6241. # define ISLOWER(c) \
  6242. (('a' <= (c) && (c) <= 'i') \
  6243. || ('j' <= (c) && (c) <= 'r') \
  6244. || ('s' <= (c) && (c) <= 'z'))
  6245. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6246. #endif
  6247. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6248. int
  6249. main ()
  6250. {
  6251. int i;
  6252. for (i = 0; i < 256; i++)
  6253. if (XOR (islower (i), ISLOWER (i))
  6254. || toupper (i) != TOUPPER (i))
  6255. return 2;
  6256. return 0;
  6257. }
  6258. _ACEOF
  6259. if ac_fn_c_try_run "$LINENO"; then :
  6260. else
  6261. ac_cv_header_stdc=no
  6262. fi
  6263. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6264. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6265. fi
  6266. fi
  6267. fi
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6269. $as_echo "$ac_cv_header_stdc" >&6; }
  6270. if test $ac_cv_header_stdc = yes; then
  6271. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6272. fi
  6273. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6274. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6275. inttypes.h stdint.h unistd.h
  6276. do :
  6277. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6278. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6279. "
  6280. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6281. cat >>confdefs.h <<_ACEOF
  6282. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6283. _ACEOF
  6284. fi
  6285. done
  6286. for ac_header in dlfcn.h
  6287. do :
  6288. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6289. "
  6290. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6291. cat >>confdefs.h <<_ACEOF
  6292. #define HAVE_DLFCN_H 1
  6293. _ACEOF
  6294. fi
  6295. done
  6296. # Set options
  6297. enable_win32_dll=yes
  6298. case $host in
  6299. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6300. if test -n "$ac_tool_prefix"; then
  6301. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6302. set dummy ${ac_tool_prefix}as; ac_word=$2
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6304. $as_echo_n "checking for $ac_word... " >&6; }
  6305. if ${ac_cv_prog_AS+:} false; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. if test -n "$AS"; then
  6309. ac_cv_prog_AS="$AS" # Let the user override the test.
  6310. else
  6311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6312. for as_dir in $PATH
  6313. do
  6314. IFS=$as_save_IFS
  6315. test -z "$as_dir" && as_dir=.
  6316. for ac_exec_ext in '' $ac_executable_extensions; do
  6317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6318. ac_cv_prog_AS="${ac_tool_prefix}as"
  6319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6320. break 2
  6321. fi
  6322. done
  6323. done
  6324. IFS=$as_save_IFS
  6325. fi
  6326. fi
  6327. AS=$ac_cv_prog_AS
  6328. if test -n "$AS"; then
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6330. $as_echo "$AS" >&6; }
  6331. else
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6333. $as_echo "no" >&6; }
  6334. fi
  6335. fi
  6336. if test -z "$ac_cv_prog_AS"; then
  6337. ac_ct_AS=$AS
  6338. # Extract the first word of "as", so it can be a program name with args.
  6339. set dummy as; ac_word=$2
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6341. $as_echo_n "checking for $ac_word... " >&6; }
  6342. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6343. $as_echo_n "(cached) " >&6
  6344. else
  6345. if test -n "$ac_ct_AS"; then
  6346. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6347. else
  6348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6349. for as_dir in $PATH
  6350. do
  6351. IFS=$as_save_IFS
  6352. test -z "$as_dir" && as_dir=.
  6353. for ac_exec_ext in '' $ac_executable_extensions; do
  6354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6355. ac_cv_prog_ac_ct_AS="as"
  6356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6357. break 2
  6358. fi
  6359. done
  6360. done
  6361. IFS=$as_save_IFS
  6362. fi
  6363. fi
  6364. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6365. if test -n "$ac_ct_AS"; then
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6367. $as_echo "$ac_ct_AS" >&6; }
  6368. else
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6370. $as_echo "no" >&6; }
  6371. fi
  6372. if test "x$ac_ct_AS" = x; then
  6373. AS="false"
  6374. else
  6375. case $cross_compiling:$ac_tool_warned in
  6376. yes:)
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6378. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6379. ac_tool_warned=yes ;;
  6380. esac
  6381. AS=$ac_ct_AS
  6382. fi
  6383. else
  6384. AS="$ac_cv_prog_AS"
  6385. fi
  6386. if test -n "$ac_tool_prefix"; then
  6387. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6388. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6390. $as_echo_n "checking for $ac_word... " >&6; }
  6391. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6392. $as_echo_n "(cached) " >&6
  6393. else
  6394. if test -n "$DLLTOOL"; then
  6395. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6396. else
  6397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6398. for as_dir in $PATH
  6399. do
  6400. IFS=$as_save_IFS
  6401. test -z "$as_dir" && as_dir=.
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6404. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6406. break 2
  6407. fi
  6408. done
  6409. done
  6410. IFS=$as_save_IFS
  6411. fi
  6412. fi
  6413. DLLTOOL=$ac_cv_prog_DLLTOOL
  6414. if test -n "$DLLTOOL"; then
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6416. $as_echo "$DLLTOOL" >&6; }
  6417. else
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6419. $as_echo "no" >&6; }
  6420. fi
  6421. fi
  6422. if test -z "$ac_cv_prog_DLLTOOL"; then
  6423. ac_ct_DLLTOOL=$DLLTOOL
  6424. # Extract the first word of "dlltool", so it can be a program name with args.
  6425. set dummy dlltool; ac_word=$2
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6427. $as_echo_n "checking for $ac_word... " >&6; }
  6428. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6429. $as_echo_n "(cached) " >&6
  6430. else
  6431. if test -n "$ac_ct_DLLTOOL"; then
  6432. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6433. else
  6434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6435. for as_dir in $PATH
  6436. do
  6437. IFS=$as_save_IFS
  6438. test -z "$as_dir" && as_dir=.
  6439. for ac_exec_ext in '' $ac_executable_extensions; do
  6440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6441. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6443. break 2
  6444. fi
  6445. done
  6446. done
  6447. IFS=$as_save_IFS
  6448. fi
  6449. fi
  6450. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6451. if test -n "$ac_ct_DLLTOOL"; then
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6453. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6454. else
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6456. $as_echo "no" >&6; }
  6457. fi
  6458. if test "x$ac_ct_DLLTOOL" = x; then
  6459. DLLTOOL="false"
  6460. else
  6461. case $cross_compiling:$ac_tool_warned in
  6462. yes:)
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6464. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6465. ac_tool_warned=yes ;;
  6466. esac
  6467. DLLTOOL=$ac_ct_DLLTOOL
  6468. fi
  6469. else
  6470. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6471. fi
  6472. if test -n "$ac_tool_prefix"; then
  6473. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6474. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6476. $as_echo_n "checking for $ac_word... " >&6; }
  6477. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6478. $as_echo_n "(cached) " >&6
  6479. else
  6480. if test -n "$OBJDUMP"; then
  6481. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6482. else
  6483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6484. for as_dir in $PATH
  6485. do
  6486. IFS=$as_save_IFS
  6487. test -z "$as_dir" && as_dir=.
  6488. for ac_exec_ext in '' $ac_executable_extensions; do
  6489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6490. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6492. break 2
  6493. fi
  6494. done
  6495. done
  6496. IFS=$as_save_IFS
  6497. fi
  6498. fi
  6499. OBJDUMP=$ac_cv_prog_OBJDUMP
  6500. if test -n "$OBJDUMP"; then
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6502. $as_echo "$OBJDUMP" >&6; }
  6503. else
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6505. $as_echo "no" >&6; }
  6506. fi
  6507. fi
  6508. if test -z "$ac_cv_prog_OBJDUMP"; then
  6509. ac_ct_OBJDUMP=$OBJDUMP
  6510. # Extract the first word of "objdump", so it can be a program name with args.
  6511. set dummy objdump; ac_word=$2
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6513. $as_echo_n "checking for $ac_word... " >&6; }
  6514. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. if test -n "$ac_ct_OBJDUMP"; then
  6518. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6519. else
  6520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6521. for as_dir in $PATH
  6522. do
  6523. IFS=$as_save_IFS
  6524. test -z "$as_dir" && as_dir=.
  6525. for ac_exec_ext in '' $ac_executable_extensions; do
  6526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6527. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6529. break 2
  6530. fi
  6531. done
  6532. done
  6533. IFS=$as_save_IFS
  6534. fi
  6535. fi
  6536. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6537. if test -n "$ac_ct_OBJDUMP"; then
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6539. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6540. else
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6542. $as_echo "no" >&6; }
  6543. fi
  6544. if test "x$ac_ct_OBJDUMP" = x; then
  6545. OBJDUMP="false"
  6546. else
  6547. case $cross_compiling:$ac_tool_warned in
  6548. yes:)
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6550. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6551. ac_tool_warned=yes ;;
  6552. esac
  6553. OBJDUMP=$ac_ct_OBJDUMP
  6554. fi
  6555. else
  6556. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6557. fi
  6558. ;;
  6559. esac
  6560. test -z "$AS" && AS=as
  6561. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6562. test -z "$OBJDUMP" && OBJDUMP=objdump
  6563. enable_dlopen=no
  6564. # Check whether --enable-shared was given.
  6565. if test "${enable_shared+set}" = set; then :
  6566. enableval=$enable_shared; p=${PACKAGE-default}
  6567. case $enableval in
  6568. yes) enable_shared=yes ;;
  6569. no) enable_shared=no ;;
  6570. *)
  6571. enable_shared=no
  6572. # Look at the argument we got. We use all the common list separators.
  6573. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6574. for pkg in $enableval; do
  6575. IFS="$lt_save_ifs"
  6576. if test "X$pkg" = "X$p"; then
  6577. enable_shared=yes
  6578. fi
  6579. done
  6580. IFS="$lt_save_ifs"
  6581. ;;
  6582. esac
  6583. else
  6584. enable_shared=yes
  6585. fi
  6586. # Check whether --enable-static was given.
  6587. if test "${enable_static+set}" = set; then :
  6588. enableval=$enable_static; p=${PACKAGE-default}
  6589. case $enableval in
  6590. yes) enable_static=yes ;;
  6591. no) enable_static=no ;;
  6592. *)
  6593. enable_static=no
  6594. # Look at the argument we got. We use all the common list separators.
  6595. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6596. for pkg in $enableval; do
  6597. IFS="$lt_save_ifs"
  6598. if test "X$pkg" = "X$p"; then
  6599. enable_static=yes
  6600. fi
  6601. done
  6602. IFS="$lt_save_ifs"
  6603. ;;
  6604. esac
  6605. else
  6606. enable_static=yes
  6607. fi
  6608. # Check whether --with-pic was given.
  6609. if test "${with_pic+set}" = set; then :
  6610. withval=$with_pic; lt_p=${PACKAGE-default}
  6611. case $withval in
  6612. yes|no) pic_mode=$withval ;;
  6613. *)
  6614. pic_mode=default
  6615. # Look at the argument we got. We use all the common list separators.
  6616. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6617. for lt_pkg in $withval; do
  6618. IFS="$lt_save_ifs"
  6619. if test "X$lt_pkg" = "X$lt_p"; then
  6620. pic_mode=yes
  6621. fi
  6622. done
  6623. IFS="$lt_save_ifs"
  6624. ;;
  6625. esac
  6626. else
  6627. pic_mode=default
  6628. fi
  6629. test -z "$pic_mode" && pic_mode=default
  6630. # Check whether --enable-fast-install was given.
  6631. if test "${enable_fast_install+set}" = set; then :
  6632. enableval=$enable_fast_install; p=${PACKAGE-default}
  6633. case $enableval in
  6634. yes) enable_fast_install=yes ;;
  6635. no) enable_fast_install=no ;;
  6636. *)
  6637. enable_fast_install=no
  6638. # Look at the argument we got. We use all the common list separators.
  6639. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6640. for pkg in $enableval; do
  6641. IFS="$lt_save_ifs"
  6642. if test "X$pkg" = "X$p"; then
  6643. enable_fast_install=yes
  6644. fi
  6645. done
  6646. IFS="$lt_save_ifs"
  6647. ;;
  6648. esac
  6649. else
  6650. enable_fast_install=yes
  6651. fi
  6652. # This can be used to rebuild libtool when needed
  6653. LIBTOOL_DEPS="$ltmain"
  6654. # Always use our own libtool.
  6655. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6656. test -z "$LN_S" && LN_S="ln -s"
  6657. if test -n "${ZSH_VERSION+set}" ; then
  6658. setopt NO_GLOB_SUBST
  6659. fi
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6661. $as_echo_n "checking for objdir... " >&6; }
  6662. if ${lt_cv_objdir+:} false; then :
  6663. $as_echo_n "(cached) " >&6
  6664. else
  6665. rm -f .libs 2>/dev/null
  6666. mkdir .libs 2>/dev/null
  6667. if test -d .libs; then
  6668. lt_cv_objdir=.libs
  6669. else
  6670. # MS-DOS does not allow filenames that begin with a dot.
  6671. lt_cv_objdir=_libs
  6672. fi
  6673. rmdir .libs 2>/dev/null
  6674. fi
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6676. $as_echo "$lt_cv_objdir" >&6; }
  6677. objdir=$lt_cv_objdir
  6678. cat >>confdefs.h <<_ACEOF
  6679. #define LT_OBJDIR "$lt_cv_objdir/"
  6680. _ACEOF
  6681. case $host_os in
  6682. aix3*)
  6683. # AIX sometimes has problems with the GCC collect2 program. For some
  6684. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6685. # vanish in a puff of smoke.
  6686. if test "X${COLLECT_NAMES+set}" != Xset; then
  6687. COLLECT_NAMES=
  6688. export COLLECT_NAMES
  6689. fi
  6690. ;;
  6691. esac
  6692. # Global variables:
  6693. ofile=libtool
  6694. can_build_shared=yes
  6695. # All known linkers require a `.a' archive for static linking (except MSVC,
  6696. # which needs '.lib').
  6697. libext=a
  6698. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6699. old_CC="$CC"
  6700. old_CFLAGS="$CFLAGS"
  6701. # Set sane defaults for various variables
  6702. test -z "$CC" && CC=cc
  6703. test -z "$LTCC" && LTCC=$CC
  6704. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6705. test -z "$LD" && LD=ld
  6706. test -z "$ac_objext" && ac_objext=o
  6707. for cc_temp in $compiler""; do
  6708. case $cc_temp in
  6709. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6710. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6711. \-*) ;;
  6712. *) break;;
  6713. esac
  6714. done
  6715. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6716. # Only perform the check for file, if the check method requires it
  6717. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6718. case $deplibs_check_method in
  6719. file_magic*)
  6720. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6722. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6723. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6724. $as_echo_n "(cached) " >&6
  6725. else
  6726. case $MAGIC_CMD in
  6727. [\\/*] | ?:[\\/]*)
  6728. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6729. ;;
  6730. *)
  6731. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6732. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6733. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6734. for ac_dir in $ac_dummy; do
  6735. IFS="$lt_save_ifs"
  6736. test -z "$ac_dir" && ac_dir=.
  6737. if test -f $ac_dir/${ac_tool_prefix}file; then
  6738. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6739. if test -n "$file_magic_test_file"; then
  6740. case $deplibs_check_method in
  6741. "file_magic "*)
  6742. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6743. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6744. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6745. $EGREP "$file_magic_regex" > /dev/null; then
  6746. :
  6747. else
  6748. cat <<_LT_EOF 1>&2
  6749. *** Warning: the command libtool uses to detect shared libraries,
  6750. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6751. *** The result is that libtool may fail to recognize shared libraries
  6752. *** as such. This will affect the creation of libtool libraries that
  6753. *** depend on shared libraries, but programs linked with such libtool
  6754. *** libraries will work regardless of this problem. Nevertheless, you
  6755. *** may want to report the problem to your system manager and/or to
  6756. *** bug-libtool@gnu.org
  6757. _LT_EOF
  6758. fi ;;
  6759. esac
  6760. fi
  6761. break
  6762. fi
  6763. done
  6764. IFS="$lt_save_ifs"
  6765. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6766. ;;
  6767. esac
  6768. fi
  6769. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6770. if test -n "$MAGIC_CMD"; then
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6772. $as_echo "$MAGIC_CMD" >&6; }
  6773. else
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6775. $as_echo "no" >&6; }
  6776. fi
  6777. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6778. if test -n "$ac_tool_prefix"; then
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6780. $as_echo_n "checking for file... " >&6; }
  6781. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6782. $as_echo_n "(cached) " >&6
  6783. else
  6784. case $MAGIC_CMD in
  6785. [\\/*] | ?:[\\/]*)
  6786. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6787. ;;
  6788. *)
  6789. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6790. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6791. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6792. for ac_dir in $ac_dummy; do
  6793. IFS="$lt_save_ifs"
  6794. test -z "$ac_dir" && ac_dir=.
  6795. if test -f $ac_dir/file; then
  6796. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6797. if test -n "$file_magic_test_file"; then
  6798. case $deplibs_check_method in
  6799. "file_magic "*)
  6800. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6801. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6802. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6803. $EGREP "$file_magic_regex" > /dev/null; then
  6804. :
  6805. else
  6806. cat <<_LT_EOF 1>&2
  6807. *** Warning: the command libtool uses to detect shared libraries,
  6808. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6809. *** The result is that libtool may fail to recognize shared libraries
  6810. *** as such. This will affect the creation of libtool libraries that
  6811. *** depend on shared libraries, but programs linked with such libtool
  6812. *** libraries will work regardless of this problem. Nevertheless, you
  6813. *** may want to report the problem to your system manager and/or to
  6814. *** bug-libtool@gnu.org
  6815. _LT_EOF
  6816. fi ;;
  6817. esac
  6818. fi
  6819. break
  6820. fi
  6821. done
  6822. IFS="$lt_save_ifs"
  6823. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6824. ;;
  6825. esac
  6826. fi
  6827. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6828. if test -n "$MAGIC_CMD"; then
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6830. $as_echo "$MAGIC_CMD" >&6; }
  6831. else
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6833. $as_echo "no" >&6; }
  6834. fi
  6835. else
  6836. MAGIC_CMD=:
  6837. fi
  6838. fi
  6839. fi
  6840. ;;
  6841. esac
  6842. # Use C for the default configuration in the libtool script
  6843. lt_save_CC="$CC"
  6844. ac_ext=c
  6845. ac_cpp='$CPP $CPPFLAGS'
  6846. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6847. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6848. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6849. # Source file extension for C test sources.
  6850. ac_ext=c
  6851. # Object file extension for compiled C test sources.
  6852. objext=o
  6853. objext=$objext
  6854. # Code to be used in simple compile tests
  6855. lt_simple_compile_test_code="int some_variable = 0;"
  6856. # Code to be used in simple link tests
  6857. lt_simple_link_test_code='int main(){return(0);}'
  6858. # If no C compiler was specified, use CC.
  6859. LTCC=${LTCC-"$CC"}
  6860. # If no C compiler flags were specified, use CFLAGS.
  6861. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6862. # Allow CC to be a program name with arguments.
  6863. compiler=$CC
  6864. # Save the default compiler, since it gets overwritten when the other
  6865. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6866. compiler_DEFAULT=$CC
  6867. # save warnings/boilerplate of simple test code
  6868. ac_outfile=conftest.$ac_objext
  6869. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6870. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6871. _lt_compiler_boilerplate=`cat conftest.err`
  6872. $RM conftest*
  6873. ac_outfile=conftest.$ac_objext
  6874. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6875. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6876. _lt_linker_boilerplate=`cat conftest.err`
  6877. $RM -r conftest*
  6878. ## CAVEAT EMPTOR:
  6879. ## There is no encapsulation within the following macros, do not change
  6880. ## the running order or otherwise move them around unless you know exactly
  6881. ## what you are doing...
  6882. if test -n "$compiler"; then
  6883. lt_prog_compiler_no_builtin_flag=
  6884. if test "$GCC" = yes; then
  6885. case $cc_basename in
  6886. nvcc*)
  6887. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6888. *)
  6889. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6890. esac
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6892. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6893. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6894. $as_echo_n "(cached) " >&6
  6895. else
  6896. lt_cv_prog_compiler_rtti_exceptions=no
  6897. ac_outfile=conftest.$ac_objext
  6898. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6899. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6900. # Insert the option either (1) after the last *FLAGS variable, or
  6901. # (2) before a word containing "conftest.", or (3) at the end.
  6902. # Note that $ac_compile itself does not contain backslashes and begins
  6903. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6904. # The option is referenced via a variable to avoid confusing sed.
  6905. lt_compile=`echo "$ac_compile" | $SED \
  6906. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6907. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6908. -e 's:$: $lt_compiler_flag:'`
  6909. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6910. (eval "$lt_compile" 2>conftest.err)
  6911. ac_status=$?
  6912. cat conftest.err >&5
  6913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6914. if (exit $ac_status) && test -s "$ac_outfile"; then
  6915. # The compiler can only warn and ignore the option if not recognized
  6916. # So say no if there are warnings other than the usual output.
  6917. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6918. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6919. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6920. lt_cv_prog_compiler_rtti_exceptions=yes
  6921. fi
  6922. fi
  6923. $RM conftest*
  6924. fi
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6926. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6927. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6928. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6929. else
  6930. :
  6931. fi
  6932. fi
  6933. lt_prog_compiler_wl=
  6934. lt_prog_compiler_pic=
  6935. lt_prog_compiler_static=
  6936. if test "$GCC" = yes; then
  6937. lt_prog_compiler_wl='-Wl,'
  6938. lt_prog_compiler_static='-static'
  6939. case $host_os in
  6940. aix*)
  6941. # All AIX code is PIC.
  6942. if test "$host_cpu" = ia64; then
  6943. # AIX 5 now supports IA64 processor
  6944. lt_prog_compiler_static='-Bstatic'
  6945. fi
  6946. ;;
  6947. amigaos*)
  6948. case $host_cpu in
  6949. powerpc)
  6950. # see comment about AmigaOS4 .so support
  6951. lt_prog_compiler_pic='-fPIC'
  6952. ;;
  6953. m68k)
  6954. # FIXME: we need at least 68020 code to build shared libraries, but
  6955. # adding the `-m68020' flag to GCC prevents building anything better,
  6956. # like `-m68040'.
  6957. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6958. ;;
  6959. esac
  6960. ;;
  6961. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6962. # PIC is the default for these OSes.
  6963. ;;
  6964. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6965. # This hack is so that the source file can tell whether it is being
  6966. # built for inclusion in a dll (and should export symbols for example).
  6967. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6968. # (--disable-auto-import) libraries
  6969. lt_prog_compiler_pic='-DDLL_EXPORT'
  6970. ;;
  6971. darwin* | rhapsody*)
  6972. # PIC is the default on this platform
  6973. # Common symbols not allowed in MH_DYLIB files
  6974. lt_prog_compiler_pic='-fno-common'
  6975. ;;
  6976. haiku*)
  6977. # PIC is the default for Haiku.
  6978. # The "-static" flag exists, but is broken.
  6979. lt_prog_compiler_static=
  6980. ;;
  6981. hpux*)
  6982. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6983. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6984. # sets the default TLS model and affects inlining.
  6985. case $host_cpu in
  6986. hppa*64*)
  6987. # +Z the default
  6988. ;;
  6989. *)
  6990. lt_prog_compiler_pic='-fPIC'
  6991. ;;
  6992. esac
  6993. ;;
  6994. interix[3-9]*)
  6995. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6996. # Instead, we relocate shared libraries at runtime.
  6997. ;;
  6998. msdosdjgpp*)
  6999. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7000. # on systems that don't support them.
  7001. lt_prog_compiler_can_build_shared=no
  7002. enable_shared=no
  7003. ;;
  7004. *nto* | *qnx*)
  7005. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7006. # it will coredump.
  7007. lt_prog_compiler_pic='-fPIC -shared'
  7008. ;;
  7009. sysv4*MP*)
  7010. if test -d /usr/nec; then
  7011. lt_prog_compiler_pic=-Kconform_pic
  7012. fi
  7013. ;;
  7014. *)
  7015. lt_prog_compiler_pic='-fPIC'
  7016. ;;
  7017. esac
  7018. case $cc_basename in
  7019. nvcc*) # Cuda Compiler Driver 2.2
  7020. lt_prog_compiler_wl='-Xlinker '
  7021. if test -n "$lt_prog_compiler_pic"; then
  7022. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7023. fi
  7024. ;;
  7025. esac
  7026. else
  7027. # PORTME Check for flag to pass linker flags through the system compiler.
  7028. case $host_os in
  7029. aix*)
  7030. lt_prog_compiler_wl='-Wl,'
  7031. if test "$host_cpu" = ia64; then
  7032. # AIX 5 now supports IA64 processor
  7033. lt_prog_compiler_static='-Bstatic'
  7034. else
  7035. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7036. fi
  7037. ;;
  7038. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7039. # This hack is so that the source file can tell whether it is being
  7040. # built for inclusion in a dll (and should export symbols for example).
  7041. lt_prog_compiler_pic='-DDLL_EXPORT'
  7042. ;;
  7043. hpux9* | hpux10* | hpux11*)
  7044. lt_prog_compiler_wl='-Wl,'
  7045. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7046. # not for PA HP-UX.
  7047. case $host_cpu in
  7048. hppa*64*|ia64*)
  7049. # +Z the default
  7050. ;;
  7051. *)
  7052. lt_prog_compiler_pic='+Z'
  7053. ;;
  7054. esac
  7055. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7056. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7057. ;;
  7058. irix5* | irix6* | nonstopux*)
  7059. lt_prog_compiler_wl='-Wl,'
  7060. # PIC (with -KPIC) is the default.
  7061. lt_prog_compiler_static='-non_shared'
  7062. ;;
  7063. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7064. case $cc_basename in
  7065. # old Intel for x86_64 which still supported -KPIC.
  7066. ecc*)
  7067. lt_prog_compiler_wl='-Wl,'
  7068. lt_prog_compiler_pic='-KPIC'
  7069. lt_prog_compiler_static='-static'
  7070. ;;
  7071. # icc used to be incompatible with GCC.
  7072. # ICC 10 doesn't accept -KPIC any more.
  7073. icc* | ifort*)
  7074. lt_prog_compiler_wl='-Wl,'
  7075. lt_prog_compiler_pic='-fPIC'
  7076. lt_prog_compiler_static='-static'
  7077. ;;
  7078. # Lahey Fortran 8.1.
  7079. lf95*)
  7080. lt_prog_compiler_wl='-Wl,'
  7081. lt_prog_compiler_pic='--shared'
  7082. lt_prog_compiler_static='--static'
  7083. ;;
  7084. nagfor*)
  7085. # NAG Fortran compiler
  7086. lt_prog_compiler_wl='-Wl,-Wl,,'
  7087. lt_prog_compiler_pic='-PIC'
  7088. lt_prog_compiler_static='-Bstatic'
  7089. ;;
  7090. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7091. # Portland Group compilers (*not* the Pentium gcc compiler,
  7092. # which looks to be a dead project)
  7093. lt_prog_compiler_wl='-Wl,'
  7094. lt_prog_compiler_pic='-fpic'
  7095. lt_prog_compiler_static='-Bstatic'
  7096. ;;
  7097. ccc*)
  7098. lt_prog_compiler_wl='-Wl,'
  7099. # All Alpha code is PIC.
  7100. lt_prog_compiler_static='-non_shared'
  7101. ;;
  7102. xl* | bgxl* | bgf* | mpixl*)
  7103. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7104. lt_prog_compiler_wl='-Wl,'
  7105. lt_prog_compiler_pic='-qpic'
  7106. lt_prog_compiler_static='-qstaticlink'
  7107. ;;
  7108. *)
  7109. case `$CC -V 2>&1 | sed 5q` in
  7110. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7111. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7112. lt_prog_compiler_pic='-KPIC'
  7113. lt_prog_compiler_static='-Bstatic'
  7114. lt_prog_compiler_wl=''
  7115. ;;
  7116. *Sun\ F* | *Sun*Fortran*)
  7117. lt_prog_compiler_pic='-KPIC'
  7118. lt_prog_compiler_static='-Bstatic'
  7119. lt_prog_compiler_wl='-Qoption ld '
  7120. ;;
  7121. *Sun\ C*)
  7122. # Sun C 5.9
  7123. lt_prog_compiler_pic='-KPIC'
  7124. lt_prog_compiler_static='-Bstatic'
  7125. lt_prog_compiler_wl='-Wl,'
  7126. ;;
  7127. *Intel*\ [CF]*Compiler*)
  7128. lt_prog_compiler_wl='-Wl,'
  7129. lt_prog_compiler_pic='-fPIC'
  7130. lt_prog_compiler_static='-static'
  7131. ;;
  7132. *Portland\ Group*)
  7133. lt_prog_compiler_wl='-Wl,'
  7134. lt_prog_compiler_pic='-fpic'
  7135. lt_prog_compiler_static='-Bstatic'
  7136. ;;
  7137. esac
  7138. ;;
  7139. esac
  7140. ;;
  7141. newsos6)
  7142. lt_prog_compiler_pic='-KPIC'
  7143. lt_prog_compiler_static='-Bstatic'
  7144. ;;
  7145. *nto* | *qnx*)
  7146. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7147. # it will coredump.
  7148. lt_prog_compiler_pic='-fPIC -shared'
  7149. ;;
  7150. osf3* | osf4* | osf5*)
  7151. lt_prog_compiler_wl='-Wl,'
  7152. # All OSF/1 code is PIC.
  7153. lt_prog_compiler_static='-non_shared'
  7154. ;;
  7155. rdos*)
  7156. lt_prog_compiler_static='-non_shared'
  7157. ;;
  7158. solaris*)
  7159. lt_prog_compiler_pic='-KPIC'
  7160. lt_prog_compiler_static='-Bstatic'
  7161. case $cc_basename in
  7162. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7163. lt_prog_compiler_wl='-Qoption ld ';;
  7164. *)
  7165. lt_prog_compiler_wl='-Wl,';;
  7166. esac
  7167. ;;
  7168. sunos4*)
  7169. lt_prog_compiler_wl='-Qoption ld '
  7170. lt_prog_compiler_pic='-PIC'
  7171. lt_prog_compiler_static='-Bstatic'
  7172. ;;
  7173. sysv4 | sysv4.2uw2* | sysv4.3*)
  7174. lt_prog_compiler_wl='-Wl,'
  7175. lt_prog_compiler_pic='-KPIC'
  7176. lt_prog_compiler_static='-Bstatic'
  7177. ;;
  7178. sysv4*MP*)
  7179. if test -d /usr/nec ;then
  7180. lt_prog_compiler_pic='-Kconform_pic'
  7181. lt_prog_compiler_static='-Bstatic'
  7182. fi
  7183. ;;
  7184. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_pic='-KPIC'
  7187. lt_prog_compiler_static='-Bstatic'
  7188. ;;
  7189. unicos*)
  7190. lt_prog_compiler_wl='-Wl,'
  7191. lt_prog_compiler_can_build_shared=no
  7192. ;;
  7193. uts4*)
  7194. lt_prog_compiler_pic='-pic'
  7195. lt_prog_compiler_static='-Bstatic'
  7196. ;;
  7197. *)
  7198. lt_prog_compiler_can_build_shared=no
  7199. ;;
  7200. esac
  7201. fi
  7202. case $host_os in
  7203. # For platforms which do not support PIC, -DPIC is meaningless:
  7204. *djgpp*)
  7205. lt_prog_compiler_pic=
  7206. ;;
  7207. *)
  7208. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7209. ;;
  7210. esac
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7212. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7213. if ${lt_cv_prog_compiler_pic+:} false; then :
  7214. $as_echo_n "(cached) " >&6
  7215. else
  7216. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7217. fi
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7219. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7220. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7221. #
  7222. # Check to make sure the PIC flag actually works.
  7223. #
  7224. if test -n "$lt_prog_compiler_pic"; then
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7226. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7227. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. lt_cv_prog_compiler_pic_works=no
  7231. ac_outfile=conftest.$ac_objext
  7232. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7233. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7234. # Insert the option either (1) after the last *FLAGS variable, or
  7235. # (2) before a word containing "conftest.", or (3) at the end.
  7236. # Note that $ac_compile itself does not contain backslashes and begins
  7237. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7238. # The option is referenced via a variable to avoid confusing sed.
  7239. lt_compile=`echo "$ac_compile" | $SED \
  7240. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7241. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7242. -e 's:$: $lt_compiler_flag:'`
  7243. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7244. (eval "$lt_compile" 2>conftest.err)
  7245. ac_status=$?
  7246. cat conftest.err >&5
  7247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7248. if (exit $ac_status) && test -s "$ac_outfile"; then
  7249. # The compiler can only warn and ignore the option if not recognized
  7250. # So say no if there are warnings other than the usual output.
  7251. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7252. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7253. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7254. lt_cv_prog_compiler_pic_works=yes
  7255. fi
  7256. fi
  7257. $RM conftest*
  7258. fi
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7260. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7261. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7262. case $lt_prog_compiler_pic in
  7263. "" | " "*) ;;
  7264. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7265. esac
  7266. else
  7267. lt_prog_compiler_pic=
  7268. lt_prog_compiler_can_build_shared=no
  7269. fi
  7270. fi
  7271. #
  7272. # Check to make sure the static flag actually works.
  7273. #
  7274. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7276. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7277. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7278. $as_echo_n "(cached) " >&6
  7279. else
  7280. lt_cv_prog_compiler_static_works=no
  7281. save_LDFLAGS="$LDFLAGS"
  7282. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7283. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7284. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7285. # The linker can only warn and ignore the option if not recognized
  7286. # So say no if there are warnings
  7287. if test -s conftest.err; then
  7288. # Append any errors to the config.log.
  7289. cat conftest.err 1>&5
  7290. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7291. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7292. if diff conftest.exp conftest.er2 >/dev/null; then
  7293. lt_cv_prog_compiler_static_works=yes
  7294. fi
  7295. else
  7296. lt_cv_prog_compiler_static_works=yes
  7297. fi
  7298. fi
  7299. $RM -r conftest*
  7300. LDFLAGS="$save_LDFLAGS"
  7301. fi
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7303. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7304. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7305. :
  7306. else
  7307. lt_prog_compiler_static=
  7308. fi
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7310. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7311. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7312. $as_echo_n "(cached) " >&6
  7313. else
  7314. lt_cv_prog_compiler_c_o=no
  7315. $RM -r conftest 2>/dev/null
  7316. mkdir conftest
  7317. cd conftest
  7318. mkdir out
  7319. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7320. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7321. # Insert the option either (1) after the last *FLAGS variable, or
  7322. # (2) before a word containing "conftest.", or (3) at the end.
  7323. # Note that $ac_compile itself does not contain backslashes and begins
  7324. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7325. lt_compile=`echo "$ac_compile" | $SED \
  7326. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7327. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7328. -e 's:$: $lt_compiler_flag:'`
  7329. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7330. (eval "$lt_compile" 2>out/conftest.err)
  7331. ac_status=$?
  7332. cat out/conftest.err >&5
  7333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7334. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7335. then
  7336. # The compiler can only warn and ignore the option if not recognized
  7337. # So say no if there are warnings
  7338. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7339. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7340. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7341. lt_cv_prog_compiler_c_o=yes
  7342. fi
  7343. fi
  7344. chmod u+w . 2>&5
  7345. $RM conftest*
  7346. # SGI C++ compiler will create directory out/ii_files/ for
  7347. # template instantiation
  7348. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7349. $RM out/* && rmdir out
  7350. cd ..
  7351. $RM -r conftest
  7352. $RM conftest*
  7353. fi
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7355. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7357. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7358. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7359. $as_echo_n "(cached) " >&6
  7360. else
  7361. lt_cv_prog_compiler_c_o=no
  7362. $RM -r conftest 2>/dev/null
  7363. mkdir conftest
  7364. cd conftest
  7365. mkdir out
  7366. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7367. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7368. # Insert the option either (1) after the last *FLAGS variable, or
  7369. # (2) before a word containing "conftest.", or (3) at the end.
  7370. # Note that $ac_compile itself does not contain backslashes and begins
  7371. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7372. lt_compile=`echo "$ac_compile" | $SED \
  7373. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7374. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7375. -e 's:$: $lt_compiler_flag:'`
  7376. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7377. (eval "$lt_compile" 2>out/conftest.err)
  7378. ac_status=$?
  7379. cat out/conftest.err >&5
  7380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7381. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7382. then
  7383. # The compiler can only warn and ignore the option if not recognized
  7384. # So say no if there are warnings
  7385. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7386. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7387. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7388. lt_cv_prog_compiler_c_o=yes
  7389. fi
  7390. fi
  7391. chmod u+w . 2>&5
  7392. $RM conftest*
  7393. # SGI C++ compiler will create directory out/ii_files/ for
  7394. # template instantiation
  7395. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7396. $RM out/* && rmdir out
  7397. cd ..
  7398. $RM -r conftest
  7399. $RM conftest*
  7400. fi
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7402. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7403. hard_links="nottested"
  7404. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7405. # do not overwrite the value of need_locks provided by the user
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7407. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7408. hard_links=yes
  7409. $RM conftest*
  7410. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7411. touch conftest.a
  7412. ln conftest.a conftest.b 2>&5 || hard_links=no
  7413. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7415. $as_echo "$hard_links" >&6; }
  7416. if test "$hard_links" = no; then
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7418. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7419. need_locks=warn
  7420. fi
  7421. else
  7422. need_locks=no
  7423. fi
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7425. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7426. runpath_var=
  7427. allow_undefined_flag=
  7428. always_export_symbols=no
  7429. archive_cmds=
  7430. archive_expsym_cmds=
  7431. compiler_needs_object=no
  7432. enable_shared_with_static_runtimes=no
  7433. export_dynamic_flag_spec=
  7434. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7435. hardcode_automatic=no
  7436. hardcode_direct=no
  7437. hardcode_direct_absolute=no
  7438. hardcode_libdir_flag_spec=
  7439. hardcode_libdir_separator=
  7440. hardcode_minus_L=no
  7441. hardcode_shlibpath_var=unsupported
  7442. inherit_rpath=no
  7443. link_all_deplibs=unknown
  7444. module_cmds=
  7445. module_expsym_cmds=
  7446. old_archive_from_new_cmds=
  7447. old_archive_from_expsyms_cmds=
  7448. thread_safe_flag_spec=
  7449. whole_archive_flag_spec=
  7450. # include_expsyms should be a list of space-separated symbols to be *always*
  7451. # included in the symbol list
  7452. include_expsyms=
  7453. # exclude_expsyms can be an extended regexp of symbols to exclude
  7454. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7455. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7456. # as well as any symbol that contains `d'.
  7457. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7458. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7459. # platforms (ab)use it in PIC code, but their linkers get confused if
  7460. # the symbol is explicitly referenced. Since portable code cannot
  7461. # rely on this symbol name, it's probably fine to never include it in
  7462. # preloaded symbol tables.
  7463. # Exclude shared library initialization/finalization symbols.
  7464. extract_expsyms_cmds=
  7465. case $host_os in
  7466. cygwin* | mingw* | pw32* | cegcc*)
  7467. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7468. # When not using gcc, we currently assume that we are using
  7469. # Microsoft Visual C++.
  7470. if test "$GCC" != yes; then
  7471. with_gnu_ld=no
  7472. fi
  7473. ;;
  7474. interix*)
  7475. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7476. with_gnu_ld=yes
  7477. ;;
  7478. openbsd*)
  7479. with_gnu_ld=no
  7480. ;;
  7481. esac
  7482. ld_shlibs=yes
  7483. # On some targets, GNU ld is compatible enough with the native linker
  7484. # that we're better off using the native interface for both.
  7485. lt_use_gnu_ld_interface=no
  7486. if test "$with_gnu_ld" = yes; then
  7487. case $host_os in
  7488. aix*)
  7489. # The AIX port of GNU ld has always aspired to compatibility
  7490. # with the native linker. However, as the warning in the GNU ld
  7491. # block says, versions before 2.19.5* couldn't really create working
  7492. # shared libraries, regardless of the interface used.
  7493. case `$LD -v 2>&1` in
  7494. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7495. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7496. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7497. *)
  7498. lt_use_gnu_ld_interface=yes
  7499. ;;
  7500. esac
  7501. ;;
  7502. *)
  7503. lt_use_gnu_ld_interface=yes
  7504. ;;
  7505. esac
  7506. fi
  7507. if test "$lt_use_gnu_ld_interface" = yes; then
  7508. # If archive_cmds runs LD, not CC, wlarc should be empty
  7509. wlarc='${wl}'
  7510. # Set some defaults for GNU ld with shared library support. These
  7511. # are reset later if shared libraries are not supported. Putting them
  7512. # here allows them to be overridden if necessary.
  7513. runpath_var=LD_RUN_PATH
  7514. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7515. export_dynamic_flag_spec='${wl}--export-dynamic'
  7516. # ancient GNU ld didn't support --whole-archive et. al.
  7517. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7518. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7519. else
  7520. whole_archive_flag_spec=
  7521. fi
  7522. supports_anon_versioning=no
  7523. case `$LD -v 2>&1` in
  7524. *GNU\ gold*) supports_anon_versioning=yes ;;
  7525. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7526. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7527. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7528. *\ 2.11.*) ;; # other 2.11 versions
  7529. *) supports_anon_versioning=yes ;;
  7530. esac
  7531. # See if GNU ld supports shared libraries.
  7532. case $host_os in
  7533. aix[3-9]*)
  7534. # On AIX/PPC, the GNU linker is very broken
  7535. if test "$host_cpu" != ia64; then
  7536. ld_shlibs=no
  7537. cat <<_LT_EOF 1>&2
  7538. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7539. *** to be unable to reliably create shared libraries on AIX.
  7540. *** Therefore, libtool is disabling shared libraries support. If you
  7541. *** really care for shared libraries, you may want to install binutils
  7542. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7543. *** You will then need to restart the configuration process.
  7544. _LT_EOF
  7545. fi
  7546. ;;
  7547. amigaos*)
  7548. case $host_cpu in
  7549. powerpc)
  7550. # see comment about AmigaOS4 .so support
  7551. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7552. archive_expsym_cmds=''
  7553. ;;
  7554. m68k)
  7555. 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)'
  7556. hardcode_libdir_flag_spec='-L$libdir'
  7557. hardcode_minus_L=yes
  7558. ;;
  7559. esac
  7560. ;;
  7561. beos*)
  7562. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7563. allow_undefined_flag=unsupported
  7564. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7565. # support --undefined. This deserves some investigation. FIXME
  7566. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7567. else
  7568. ld_shlibs=no
  7569. fi
  7570. ;;
  7571. cygwin* | mingw* | pw32* | cegcc*)
  7572. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7573. # as there is no search path for DLLs.
  7574. hardcode_libdir_flag_spec='-L$libdir'
  7575. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7576. allow_undefined_flag=unsupported
  7577. always_export_symbols=no
  7578. enable_shared_with_static_runtimes=yes
  7579. 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'
  7580. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7581. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7582. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7583. # If the export-symbols file already is a .def file (1st line
  7584. # is EXPORTS), use it as is; otherwise, prepend...
  7585. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7586. cp $export_symbols $output_objdir/$soname.def;
  7587. else
  7588. echo EXPORTS > $output_objdir/$soname.def;
  7589. cat $export_symbols >> $output_objdir/$soname.def;
  7590. fi~
  7591. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7592. else
  7593. ld_shlibs=no
  7594. fi
  7595. ;;
  7596. haiku*)
  7597. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7598. link_all_deplibs=yes
  7599. ;;
  7600. interix[3-9]*)
  7601. hardcode_direct=no
  7602. hardcode_shlibpath_var=no
  7603. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7604. export_dynamic_flag_spec='${wl}-E'
  7605. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7606. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7607. # default) and relocated if they conflict, which is a slow very memory
  7608. # consuming and fragmenting process. To avoid this, we pick a random,
  7609. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7610. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7611. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7612. 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'
  7613. ;;
  7614. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7615. tmp_diet=no
  7616. if test "$host_os" = linux-dietlibc; then
  7617. case $cc_basename in
  7618. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7619. esac
  7620. fi
  7621. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7622. && test "$tmp_diet" = no
  7623. then
  7624. tmp_addflag=' $pic_flag'
  7625. tmp_sharedflag='-shared'
  7626. case $cc_basename,$host_cpu in
  7627. pgcc*) # Portland Group C compiler
  7628. 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'
  7629. tmp_addflag=' $pic_flag'
  7630. ;;
  7631. pgf77* | pgf90* | pgf95* | pgfortran*)
  7632. # Portland Group f77 and f90 compilers
  7633. 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'
  7634. tmp_addflag=' $pic_flag -Mnomain' ;;
  7635. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7636. tmp_addflag=' -i_dynamic' ;;
  7637. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7638. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7639. ifc* | ifort*) # Intel Fortran compiler
  7640. tmp_addflag=' -nofor_main' ;;
  7641. lf95*) # Lahey Fortran 8.1
  7642. whole_archive_flag_spec=
  7643. tmp_sharedflag='--shared' ;;
  7644. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7645. tmp_sharedflag='-qmkshrobj'
  7646. tmp_addflag= ;;
  7647. nvcc*) # Cuda Compiler Driver 2.2
  7648. 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'
  7649. compiler_needs_object=yes
  7650. ;;
  7651. esac
  7652. case `$CC -V 2>&1 | sed 5q` in
  7653. *Sun\ C*) # Sun C 5.9
  7654. 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'
  7655. compiler_needs_object=yes
  7656. tmp_sharedflag='-G' ;;
  7657. *Sun\ F*) # Sun Fortran 8.3
  7658. tmp_sharedflag='-G' ;;
  7659. esac
  7660. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7661. if test "x$supports_anon_versioning" = xyes; then
  7662. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7663. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7664. echo "local: *; };" >> $output_objdir/$libname.ver~
  7665. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7666. fi
  7667. case $cc_basename in
  7668. xlf* | bgf* | bgxlf* | mpixlf*)
  7669. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7670. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7671. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7672. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7673. if test "x$supports_anon_versioning" = xyes; then
  7674. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7675. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7676. echo "local: *; };" >> $output_objdir/$libname.ver~
  7677. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7678. fi
  7679. ;;
  7680. esac
  7681. else
  7682. ld_shlibs=no
  7683. fi
  7684. ;;
  7685. netbsd*)
  7686. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7687. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7688. wlarc=
  7689. else
  7690. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7691. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7692. fi
  7693. ;;
  7694. solaris*)
  7695. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7696. ld_shlibs=no
  7697. cat <<_LT_EOF 1>&2
  7698. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7699. *** create shared libraries on Solaris systems. Therefore, libtool
  7700. *** is disabling shared libraries support. We urge you to upgrade GNU
  7701. *** binutils to release 2.9.1 or newer. Another option is to modify
  7702. *** your PATH or compiler configuration so that the native linker is
  7703. *** used, and then restart.
  7704. _LT_EOF
  7705. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7706. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7707. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7708. else
  7709. ld_shlibs=no
  7710. fi
  7711. ;;
  7712. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7713. case `$LD -v 2>&1` in
  7714. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7715. ld_shlibs=no
  7716. cat <<_LT_EOF 1>&2
  7717. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7718. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7719. *** is disabling shared libraries support. We urge you to upgrade GNU
  7720. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7721. *** your PATH or compiler configuration so that the native linker is
  7722. *** used, and then restart.
  7723. _LT_EOF
  7724. ;;
  7725. *)
  7726. # For security reasons, it is highly recommended that you always
  7727. # use absolute paths for naming shared libraries, and exclude the
  7728. # DT_RUNPATH tag from executables and libraries. But doing so
  7729. # requires that you compile everything twice, which is a pain.
  7730. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7731. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7732. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7733. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7734. else
  7735. ld_shlibs=no
  7736. fi
  7737. ;;
  7738. esac
  7739. ;;
  7740. sunos4*)
  7741. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7742. wlarc=
  7743. hardcode_direct=yes
  7744. hardcode_shlibpath_var=no
  7745. ;;
  7746. *)
  7747. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7748. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7749. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7750. else
  7751. ld_shlibs=no
  7752. fi
  7753. ;;
  7754. esac
  7755. if test "$ld_shlibs" = no; then
  7756. runpath_var=
  7757. hardcode_libdir_flag_spec=
  7758. export_dynamic_flag_spec=
  7759. whole_archive_flag_spec=
  7760. fi
  7761. else
  7762. # PORTME fill in a description of your system's linker (not GNU ld)
  7763. case $host_os in
  7764. aix3*)
  7765. allow_undefined_flag=unsupported
  7766. always_export_symbols=yes
  7767. 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'
  7768. # Note: this linker hardcodes the directories in LIBPATH if there
  7769. # are no directories specified by -L.
  7770. hardcode_minus_L=yes
  7771. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7772. # Neither direct hardcoding nor static linking is supported with a
  7773. # broken collect2.
  7774. hardcode_direct=unsupported
  7775. fi
  7776. ;;
  7777. aix[4-9]*)
  7778. if test "$host_cpu" = ia64; then
  7779. # On IA64, the linker does run time linking by default, so we don't
  7780. # have to do anything special.
  7781. aix_use_runtimelinking=no
  7782. exp_sym_flag='-Bexport'
  7783. no_entry_flag=""
  7784. else
  7785. # If we're using GNU nm, then we don't want the "-C" option.
  7786. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7787. # Also, AIX nm treats weak defined symbols like other global
  7788. # defined symbols, whereas GNU nm marks them as "W".
  7789. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7790. 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'
  7791. else
  7792. 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'
  7793. fi
  7794. aix_use_runtimelinking=no
  7795. # Test if we are trying to use run time linking or normal
  7796. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7797. # need to do runtime linking.
  7798. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7799. for ld_flag in $LDFLAGS; do
  7800. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7801. aix_use_runtimelinking=yes
  7802. break
  7803. fi
  7804. done
  7805. ;;
  7806. esac
  7807. exp_sym_flag='-bexport'
  7808. no_entry_flag='-bnoentry'
  7809. fi
  7810. # When large executables or shared objects are built, AIX ld can
  7811. # have problems creating the table of contents. If linking a library
  7812. # or program results in "error TOC overflow" add -mminimal-toc to
  7813. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7814. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7815. archive_cmds=''
  7816. hardcode_direct=yes
  7817. hardcode_direct_absolute=yes
  7818. hardcode_libdir_separator=':'
  7819. link_all_deplibs=yes
  7820. file_list_spec='${wl}-f,'
  7821. if test "$GCC" = yes; then
  7822. case $host_os in aix4.[012]|aix4.[012].*)
  7823. # We only want to do this on AIX 4.2 and lower, the check
  7824. # below for broken collect2 doesn't work under 4.3+
  7825. collect2name=`${CC} -print-prog-name=collect2`
  7826. if test -f "$collect2name" &&
  7827. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7828. then
  7829. # We have reworked collect2
  7830. :
  7831. else
  7832. # We have old collect2
  7833. hardcode_direct=unsupported
  7834. # It fails to find uninstalled libraries when the uninstalled
  7835. # path is not listed in the libpath. Setting hardcode_minus_L
  7836. # to unsupported forces relinking
  7837. hardcode_minus_L=yes
  7838. hardcode_libdir_flag_spec='-L$libdir'
  7839. hardcode_libdir_separator=
  7840. fi
  7841. ;;
  7842. esac
  7843. shared_flag='-shared'
  7844. if test "$aix_use_runtimelinking" = yes; then
  7845. shared_flag="$shared_flag "'${wl}-G'
  7846. fi
  7847. else
  7848. # not using gcc
  7849. if test "$host_cpu" = ia64; then
  7850. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7851. # chokes on -Wl,-G. The following line is correct:
  7852. shared_flag='-G'
  7853. else
  7854. if test "$aix_use_runtimelinking" = yes; then
  7855. shared_flag='${wl}-G'
  7856. else
  7857. shared_flag='${wl}-bM:SRE'
  7858. fi
  7859. fi
  7860. fi
  7861. export_dynamic_flag_spec='${wl}-bexpall'
  7862. # It seems that -bexpall does not export symbols beginning with
  7863. # underscore (_), so it is better to generate a list of symbols to export.
  7864. always_export_symbols=yes
  7865. if test "$aix_use_runtimelinking" = yes; then
  7866. # Warning - without using the other runtime loading flags (-brtl),
  7867. # -berok will link without error, but may produce a broken library.
  7868. allow_undefined_flag='-berok'
  7869. # Determine the default libpath from the value encoded in an
  7870. # empty executable.
  7871. if test "${lt_cv_aix_libpath+set}" = set; then
  7872. aix_libpath=$lt_cv_aix_libpath
  7873. else
  7874. if ${lt_cv_aix_libpath_+:} false; then :
  7875. $as_echo_n "(cached) " >&6
  7876. else
  7877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7878. /* end confdefs.h. */
  7879. int
  7880. main ()
  7881. {
  7882. ;
  7883. return 0;
  7884. }
  7885. _ACEOF
  7886. if ac_fn_c_try_link "$LINENO"; then :
  7887. lt_aix_libpath_sed='
  7888. /Import File Strings/,/^$/ {
  7889. /^0/ {
  7890. s/^0 *\([^ ]*\) *$/\1/
  7891. p
  7892. }
  7893. }'
  7894. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7895. # Check for a 64-bit object if we didn't find anything.
  7896. if test -z "$lt_cv_aix_libpath_"; then
  7897. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7898. fi
  7899. fi
  7900. rm -f core conftest.err conftest.$ac_objext \
  7901. conftest$ac_exeext conftest.$ac_ext
  7902. if test -z "$lt_cv_aix_libpath_"; then
  7903. lt_cv_aix_libpath_="/usr/lib:/lib"
  7904. fi
  7905. fi
  7906. aix_libpath=$lt_cv_aix_libpath_
  7907. fi
  7908. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7909. 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"
  7910. else
  7911. if test "$host_cpu" = ia64; then
  7912. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7913. allow_undefined_flag="-z nodefs"
  7914. 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"
  7915. else
  7916. # Determine the default libpath from the value encoded in an
  7917. # empty executable.
  7918. if test "${lt_cv_aix_libpath+set}" = set; then
  7919. aix_libpath=$lt_cv_aix_libpath
  7920. else
  7921. if ${lt_cv_aix_libpath_+:} false; then :
  7922. $as_echo_n "(cached) " >&6
  7923. else
  7924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7925. /* end confdefs.h. */
  7926. int
  7927. main ()
  7928. {
  7929. ;
  7930. return 0;
  7931. }
  7932. _ACEOF
  7933. if ac_fn_c_try_link "$LINENO"; then :
  7934. lt_aix_libpath_sed='
  7935. /Import File Strings/,/^$/ {
  7936. /^0/ {
  7937. s/^0 *\([^ ]*\) *$/\1/
  7938. p
  7939. }
  7940. }'
  7941. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7942. # Check for a 64-bit object if we didn't find anything.
  7943. if test -z "$lt_cv_aix_libpath_"; then
  7944. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7945. fi
  7946. fi
  7947. rm -f core conftest.err conftest.$ac_objext \
  7948. conftest$ac_exeext conftest.$ac_ext
  7949. if test -z "$lt_cv_aix_libpath_"; then
  7950. lt_cv_aix_libpath_="/usr/lib:/lib"
  7951. fi
  7952. fi
  7953. aix_libpath=$lt_cv_aix_libpath_
  7954. fi
  7955. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7956. # Warning - without using the other run time loading flags,
  7957. # -berok will link without error, but may produce a broken library.
  7958. no_undefined_flag=' ${wl}-bernotok'
  7959. allow_undefined_flag=' ${wl}-berok'
  7960. if test "$with_gnu_ld" = yes; then
  7961. # We only use this code for GNU lds that support --whole-archive.
  7962. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7963. else
  7964. # Exported symbols can be pulled into shared objects from archives
  7965. whole_archive_flag_spec='$convenience'
  7966. fi
  7967. archive_cmds_need_lc=yes
  7968. # This is similar to how AIX traditionally builds its shared libraries.
  7969. 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'
  7970. fi
  7971. fi
  7972. ;;
  7973. amigaos*)
  7974. case $host_cpu in
  7975. powerpc)
  7976. # see comment about AmigaOS4 .so support
  7977. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7978. archive_expsym_cmds=''
  7979. ;;
  7980. m68k)
  7981. 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)'
  7982. hardcode_libdir_flag_spec='-L$libdir'
  7983. hardcode_minus_L=yes
  7984. ;;
  7985. esac
  7986. ;;
  7987. bsdi[45]*)
  7988. export_dynamic_flag_spec=-rdynamic
  7989. ;;
  7990. cygwin* | mingw* | pw32* | cegcc*)
  7991. # When not using gcc, we currently assume that we are using
  7992. # Microsoft Visual C++.
  7993. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7994. # no search path for DLLs.
  7995. case $cc_basename in
  7996. cl*)
  7997. # Native MSVC
  7998. hardcode_libdir_flag_spec=' '
  7999. allow_undefined_flag=unsupported
  8000. always_export_symbols=yes
  8001. file_list_spec='@'
  8002. # Tell ltmain to make .lib files, not .a files.
  8003. libext=lib
  8004. # Tell ltmain to make .dll files, not .so files.
  8005. shrext_cmds=".dll"
  8006. # FIXME: Setting linknames here is a bad hack.
  8007. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8008. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8009. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8010. else
  8011. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8012. fi~
  8013. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8014. linknames='
  8015. # The linker will not automatically build a static lib if we build a DLL.
  8016. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8017. enable_shared_with_static_runtimes=yes
  8018. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8019. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8020. # Don't use ranlib
  8021. old_postinstall_cmds='chmod 644 $oldlib'
  8022. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8023. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8024. case $lt_outputfile in
  8025. *.exe|*.EXE) ;;
  8026. *)
  8027. lt_outputfile="$lt_outputfile.exe"
  8028. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8029. ;;
  8030. esac~
  8031. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8032. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8033. $RM "$lt_outputfile.manifest";
  8034. fi'
  8035. ;;
  8036. *)
  8037. # Assume MSVC wrapper
  8038. hardcode_libdir_flag_spec=' '
  8039. allow_undefined_flag=unsupported
  8040. # Tell ltmain to make .lib files, not .a files.
  8041. libext=lib
  8042. # Tell ltmain to make .dll files, not .so files.
  8043. shrext_cmds=".dll"
  8044. # FIXME: Setting linknames here is a bad hack.
  8045. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8046. # The linker will automatically build a .lib file if we build a DLL.
  8047. old_archive_from_new_cmds='true'
  8048. # FIXME: Should let the user specify the lib program.
  8049. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8050. enable_shared_with_static_runtimes=yes
  8051. ;;
  8052. esac
  8053. ;;
  8054. darwin* | rhapsody*)
  8055. archive_cmds_need_lc=no
  8056. hardcode_direct=no
  8057. hardcode_automatic=yes
  8058. hardcode_shlibpath_var=unsupported
  8059. if test "$lt_cv_ld_force_load" = "yes"; then
  8060. 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\"`'
  8061. else
  8062. whole_archive_flag_spec=''
  8063. fi
  8064. link_all_deplibs=yes
  8065. allow_undefined_flag="$_lt_dar_allow_undefined"
  8066. case $cc_basename in
  8067. ifort*) _lt_dar_can_shared=yes ;;
  8068. *) _lt_dar_can_shared=$GCC ;;
  8069. esac
  8070. if test "$_lt_dar_can_shared" = "yes"; then
  8071. output_verbose_link_cmd=func_echo_all
  8072. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8073. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8074. 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}"
  8075. 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}"
  8076. else
  8077. ld_shlibs=no
  8078. fi
  8079. ;;
  8080. dgux*)
  8081. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8082. hardcode_libdir_flag_spec='-L$libdir'
  8083. hardcode_shlibpath_var=no
  8084. ;;
  8085. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8086. # support. Future versions do this automatically, but an explicit c++rt0.o
  8087. # does not break anything, and helps significantly (at the cost of a little
  8088. # extra space).
  8089. freebsd2.2*)
  8090. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8091. hardcode_libdir_flag_spec='-R$libdir'
  8092. hardcode_direct=yes
  8093. hardcode_shlibpath_var=no
  8094. ;;
  8095. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8096. freebsd2.*)
  8097. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8098. hardcode_direct=yes
  8099. hardcode_minus_L=yes
  8100. hardcode_shlibpath_var=no
  8101. ;;
  8102. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8103. freebsd* | dragonfly*)
  8104. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8105. hardcode_libdir_flag_spec='-R$libdir'
  8106. hardcode_direct=yes
  8107. hardcode_shlibpath_var=no
  8108. ;;
  8109. hpux9*)
  8110. if test "$GCC" = yes; then
  8111. 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'
  8112. else
  8113. 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'
  8114. fi
  8115. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8116. hardcode_libdir_separator=:
  8117. hardcode_direct=yes
  8118. # hardcode_minus_L: Not really in the search PATH,
  8119. # but as the default location of the library.
  8120. hardcode_minus_L=yes
  8121. export_dynamic_flag_spec='${wl}-E'
  8122. ;;
  8123. hpux10*)
  8124. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8125. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8126. else
  8127. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8128. fi
  8129. if test "$with_gnu_ld" = no; then
  8130. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8131. hardcode_libdir_separator=:
  8132. hardcode_direct=yes
  8133. hardcode_direct_absolute=yes
  8134. export_dynamic_flag_spec='${wl}-E'
  8135. # hardcode_minus_L: Not really in the search PATH,
  8136. # but as the default location of the library.
  8137. hardcode_minus_L=yes
  8138. fi
  8139. ;;
  8140. hpux11*)
  8141. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8142. case $host_cpu in
  8143. hppa*64*)
  8144. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8145. ;;
  8146. ia64*)
  8147. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8148. ;;
  8149. *)
  8150. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8151. ;;
  8152. esac
  8153. else
  8154. case $host_cpu in
  8155. hppa*64*)
  8156. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8157. ;;
  8158. ia64*)
  8159. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8160. ;;
  8161. *)
  8162. # Older versions of the 11.00 compiler do not understand -b yet
  8163. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8165. $as_echo_n "checking if $CC understands -b... " >&6; }
  8166. if ${lt_cv_prog_compiler__b+:} false; then :
  8167. $as_echo_n "(cached) " >&6
  8168. else
  8169. lt_cv_prog_compiler__b=no
  8170. save_LDFLAGS="$LDFLAGS"
  8171. LDFLAGS="$LDFLAGS -b"
  8172. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8173. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8174. # The linker can only warn and ignore the option if not recognized
  8175. # So say no if there are warnings
  8176. if test -s conftest.err; then
  8177. # Append any errors to the config.log.
  8178. cat conftest.err 1>&5
  8179. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8180. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8181. if diff conftest.exp conftest.er2 >/dev/null; then
  8182. lt_cv_prog_compiler__b=yes
  8183. fi
  8184. else
  8185. lt_cv_prog_compiler__b=yes
  8186. fi
  8187. fi
  8188. $RM -r conftest*
  8189. LDFLAGS="$save_LDFLAGS"
  8190. fi
  8191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8192. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8193. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8194. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8195. else
  8196. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8197. fi
  8198. ;;
  8199. esac
  8200. fi
  8201. if test "$with_gnu_ld" = no; then
  8202. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8203. hardcode_libdir_separator=:
  8204. case $host_cpu in
  8205. hppa*64*|ia64*)
  8206. hardcode_direct=no
  8207. hardcode_shlibpath_var=no
  8208. ;;
  8209. *)
  8210. hardcode_direct=yes
  8211. hardcode_direct_absolute=yes
  8212. export_dynamic_flag_spec='${wl}-E'
  8213. # hardcode_minus_L: Not really in the search PATH,
  8214. # but as the default location of the library.
  8215. hardcode_minus_L=yes
  8216. ;;
  8217. esac
  8218. fi
  8219. ;;
  8220. irix5* | irix6* | nonstopux*)
  8221. if test "$GCC" = yes; then
  8222. 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'
  8223. # Try to use the -exported_symbol ld option, if it does not
  8224. # work, assume that -exports_file does not work either and
  8225. # implicitly export all symbols.
  8226. # This should be the same for all languages, so no per-tag cache variable.
  8227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8228. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8229. if ${lt_cv_irix_exported_symbol+:} false; then :
  8230. $as_echo_n "(cached) " >&6
  8231. else
  8232. save_LDFLAGS="$LDFLAGS"
  8233. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8235. /* end confdefs.h. */
  8236. int foo (void) { return 0; }
  8237. _ACEOF
  8238. if ac_fn_c_try_link "$LINENO"; then :
  8239. lt_cv_irix_exported_symbol=yes
  8240. else
  8241. lt_cv_irix_exported_symbol=no
  8242. fi
  8243. rm -f core conftest.err conftest.$ac_objext \
  8244. conftest$ac_exeext conftest.$ac_ext
  8245. LDFLAGS="$save_LDFLAGS"
  8246. fi
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8248. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8249. if test "$lt_cv_irix_exported_symbol" = yes; then
  8250. 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'
  8251. fi
  8252. else
  8253. 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'
  8254. 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'
  8255. fi
  8256. archive_cmds_need_lc='no'
  8257. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8258. hardcode_libdir_separator=:
  8259. inherit_rpath=yes
  8260. link_all_deplibs=yes
  8261. ;;
  8262. netbsd*)
  8263. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8264. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8265. else
  8266. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8267. fi
  8268. hardcode_libdir_flag_spec='-R$libdir'
  8269. hardcode_direct=yes
  8270. hardcode_shlibpath_var=no
  8271. ;;
  8272. newsos6)
  8273. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8274. hardcode_direct=yes
  8275. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8276. hardcode_libdir_separator=:
  8277. hardcode_shlibpath_var=no
  8278. ;;
  8279. *nto* | *qnx*)
  8280. ;;
  8281. openbsd*)
  8282. if test -f /usr/libexec/ld.so; then
  8283. hardcode_direct=yes
  8284. hardcode_shlibpath_var=no
  8285. hardcode_direct_absolute=yes
  8286. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8287. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8288. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8289. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8290. export_dynamic_flag_spec='${wl}-E'
  8291. else
  8292. case $host_os in
  8293. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8294. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8295. hardcode_libdir_flag_spec='-R$libdir'
  8296. ;;
  8297. *)
  8298. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8299. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8300. ;;
  8301. esac
  8302. fi
  8303. else
  8304. ld_shlibs=no
  8305. fi
  8306. ;;
  8307. os2*)
  8308. hardcode_libdir_flag_spec='-L$libdir'
  8309. hardcode_minus_L=yes
  8310. allow_undefined_flag=unsupported
  8311. 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'
  8312. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8313. ;;
  8314. osf3*)
  8315. if test "$GCC" = yes; then
  8316. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8317. 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'
  8318. else
  8319. allow_undefined_flag=' -expect_unresolved \*'
  8320. 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'
  8321. fi
  8322. archive_cmds_need_lc='no'
  8323. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8324. hardcode_libdir_separator=:
  8325. ;;
  8326. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8327. if test "$GCC" = yes; then
  8328. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8329. 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'
  8330. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8331. else
  8332. allow_undefined_flag=' -expect_unresolved \*'
  8333. 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'
  8334. 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~
  8335. $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'
  8336. # Both c and cxx compiler support -rpath directly
  8337. hardcode_libdir_flag_spec='-rpath $libdir'
  8338. fi
  8339. archive_cmds_need_lc='no'
  8340. hardcode_libdir_separator=:
  8341. ;;
  8342. solaris*)
  8343. no_undefined_flag=' -z defs'
  8344. if test "$GCC" = yes; then
  8345. wlarc='${wl}'
  8346. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8347. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8348. $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'
  8349. else
  8350. case `$CC -V 2>&1` in
  8351. *"Compilers 5.0"*)
  8352. wlarc=''
  8353. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8354. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8355. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8356. ;;
  8357. *)
  8358. wlarc='${wl}'
  8359. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8360. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8361. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8362. ;;
  8363. esac
  8364. fi
  8365. hardcode_libdir_flag_spec='-R$libdir'
  8366. hardcode_shlibpath_var=no
  8367. case $host_os in
  8368. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8369. *)
  8370. # The compiler driver will combine and reorder linker options,
  8371. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8372. # but is careful enough not to reorder.
  8373. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8374. if test "$GCC" = yes; then
  8375. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8376. else
  8377. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8378. fi
  8379. ;;
  8380. esac
  8381. link_all_deplibs=yes
  8382. ;;
  8383. sunos4*)
  8384. if test "x$host_vendor" = xsequent; then
  8385. # Use $CC to link under sequent, because it throws in some extra .o
  8386. # files that make .init and .fini sections work.
  8387. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8388. else
  8389. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8390. fi
  8391. hardcode_libdir_flag_spec='-L$libdir'
  8392. hardcode_direct=yes
  8393. hardcode_minus_L=yes
  8394. hardcode_shlibpath_var=no
  8395. ;;
  8396. sysv4)
  8397. case $host_vendor in
  8398. sni)
  8399. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8400. hardcode_direct=yes # is this really true???
  8401. ;;
  8402. siemens)
  8403. ## LD is ld it makes a PLAMLIB
  8404. ## CC just makes a GrossModule.
  8405. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8406. reload_cmds='$CC -r -o $output$reload_objs'
  8407. hardcode_direct=no
  8408. ;;
  8409. motorola)
  8410. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8411. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8412. ;;
  8413. esac
  8414. runpath_var='LD_RUN_PATH'
  8415. hardcode_shlibpath_var=no
  8416. ;;
  8417. sysv4.3*)
  8418. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8419. hardcode_shlibpath_var=no
  8420. export_dynamic_flag_spec='-Bexport'
  8421. ;;
  8422. sysv4*MP*)
  8423. if test -d /usr/nec; then
  8424. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8425. hardcode_shlibpath_var=no
  8426. runpath_var=LD_RUN_PATH
  8427. hardcode_runpath_var=yes
  8428. ld_shlibs=yes
  8429. fi
  8430. ;;
  8431. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8432. no_undefined_flag='${wl}-z,text'
  8433. archive_cmds_need_lc=no
  8434. hardcode_shlibpath_var=no
  8435. runpath_var='LD_RUN_PATH'
  8436. if test "$GCC" = yes; then
  8437. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8438. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8439. else
  8440. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8441. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8442. fi
  8443. ;;
  8444. sysv5* | sco3.2v5* | sco5v6*)
  8445. # Note: We can NOT use -z defs as we might desire, because we do not
  8446. # link with -lc, and that would cause any symbols used from libc to
  8447. # always be unresolved, which means just about no library would
  8448. # ever link correctly. If we're not using GNU ld we use -z text
  8449. # though, which does catch some bad symbols but isn't as heavy-handed
  8450. # as -z defs.
  8451. no_undefined_flag='${wl}-z,text'
  8452. allow_undefined_flag='${wl}-z,nodefs'
  8453. archive_cmds_need_lc=no
  8454. hardcode_shlibpath_var=no
  8455. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8456. hardcode_libdir_separator=':'
  8457. link_all_deplibs=yes
  8458. export_dynamic_flag_spec='${wl}-Bexport'
  8459. runpath_var='LD_RUN_PATH'
  8460. if test "$GCC" = yes; then
  8461. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8462. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8463. else
  8464. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8465. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8466. fi
  8467. ;;
  8468. uts4*)
  8469. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8470. hardcode_libdir_flag_spec='-L$libdir'
  8471. hardcode_shlibpath_var=no
  8472. ;;
  8473. *)
  8474. ld_shlibs=no
  8475. ;;
  8476. esac
  8477. if test x$host_vendor = xsni; then
  8478. case $host in
  8479. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8480. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8481. ;;
  8482. esac
  8483. fi
  8484. fi
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8486. $as_echo "$ld_shlibs" >&6; }
  8487. test "$ld_shlibs" = no && can_build_shared=no
  8488. with_gnu_ld=$with_gnu_ld
  8489. #
  8490. # Do we need to explicitly link libc?
  8491. #
  8492. case "x$archive_cmds_need_lc" in
  8493. x|xyes)
  8494. # Assume -lc should be added
  8495. archive_cmds_need_lc=yes
  8496. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8497. case $archive_cmds in
  8498. *'~'*)
  8499. # FIXME: we may have to deal with multi-command sequences.
  8500. ;;
  8501. '$CC '*)
  8502. # Test whether the compiler implicitly links with -lc since on some
  8503. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8504. # to ld, don't add -lc before -lgcc.
  8505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8506. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8507. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8508. $as_echo_n "(cached) " >&6
  8509. else
  8510. $RM conftest*
  8511. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8512. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8513. (eval $ac_compile) 2>&5
  8514. ac_status=$?
  8515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8516. test $ac_status = 0; } 2>conftest.err; then
  8517. soname=conftest
  8518. lib=conftest
  8519. libobjs=conftest.$ac_objext
  8520. deplibs=
  8521. wl=$lt_prog_compiler_wl
  8522. pic_flag=$lt_prog_compiler_pic
  8523. compiler_flags=-v
  8524. linker_flags=-v
  8525. verstring=
  8526. output_objdir=.
  8527. libname=conftest
  8528. lt_save_allow_undefined_flag=$allow_undefined_flag
  8529. allow_undefined_flag=
  8530. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8531. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8532. ac_status=$?
  8533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8534. test $ac_status = 0; }
  8535. then
  8536. lt_cv_archive_cmds_need_lc=no
  8537. else
  8538. lt_cv_archive_cmds_need_lc=yes
  8539. fi
  8540. allow_undefined_flag=$lt_save_allow_undefined_flag
  8541. else
  8542. cat conftest.err 1>&5
  8543. fi
  8544. $RM conftest*
  8545. fi
  8546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8547. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8548. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8549. ;;
  8550. esac
  8551. fi
  8552. ;;
  8553. esac
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8555. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8556. if test "$GCC" = yes; then
  8557. case $host_os in
  8558. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8559. *) lt_awk_arg="/^libraries:/" ;;
  8560. esac
  8561. case $host_os in
  8562. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8563. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8564. esac
  8565. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8566. case $lt_search_path_spec in
  8567. *\;*)
  8568. # if the path contains ";" then we assume it to be the separator
  8569. # otherwise default to the standard path separator (i.e. ":") - it is
  8570. # assumed that no part of a normal pathname contains ";" but that should
  8571. # okay in the real world where ";" in dirpaths is itself problematic.
  8572. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8573. ;;
  8574. *)
  8575. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8576. ;;
  8577. esac
  8578. # Ok, now we have the path, separated by spaces, we can step through it
  8579. # and add multilib dir if necessary...
  8580. lt_tmp_lt_search_path_spec=
  8581. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8582. # ...but if some path already ends with the multilib dir we assume
  8583. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8584. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8585. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8586. lt_multi_os_dir=
  8587. ;;
  8588. esac
  8589. for lt_sys_path in $lt_search_path_spec; do
  8590. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8591. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8592. elif test -n "$lt_multi_os_dir"; then
  8593. test -d "$lt_sys_path" && \
  8594. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8595. fi
  8596. done
  8597. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8598. BEGIN {RS=" "; FS="/|\n";} {
  8599. lt_foo="";
  8600. lt_count=0;
  8601. for (lt_i = NF; lt_i > 0; lt_i--) {
  8602. if ($lt_i != "" && $lt_i != ".") {
  8603. if ($lt_i == "..") {
  8604. lt_count++;
  8605. } else {
  8606. if (lt_count == 0) {
  8607. lt_foo="/" $lt_i lt_foo;
  8608. } else {
  8609. lt_count--;
  8610. }
  8611. }
  8612. }
  8613. }
  8614. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8615. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8616. }'`
  8617. # AWK program above erroneously prepends '/' to C:/dos/paths
  8618. # for these hosts.
  8619. case $host_os in
  8620. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8621. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8622. esac
  8623. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8624. else
  8625. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8626. fi
  8627. library_names_spec=
  8628. libname_spec='lib$name'
  8629. soname_spec=
  8630. shrext_cmds=".so"
  8631. postinstall_cmds=
  8632. postuninstall_cmds=
  8633. finish_cmds=
  8634. finish_eval=
  8635. shlibpath_var=
  8636. shlibpath_overrides_runpath=unknown
  8637. version_type=none
  8638. dynamic_linker="$host_os ld.so"
  8639. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8640. need_lib_prefix=unknown
  8641. hardcode_into_libs=no
  8642. # when you set need_version to no, make sure it does not cause -set_version
  8643. # flags to be left without arguments
  8644. need_version=unknown
  8645. case $host_os in
  8646. aix3*)
  8647. version_type=linux # correct to gnu/linux during the next big refactor
  8648. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8649. shlibpath_var=LIBPATH
  8650. # AIX 3 has no versioning support, so we append a major version to the name.
  8651. soname_spec='${libname}${release}${shared_ext}$major'
  8652. ;;
  8653. aix[4-9]*)
  8654. version_type=linux # correct to gnu/linux during the next big refactor
  8655. need_lib_prefix=no
  8656. need_version=no
  8657. hardcode_into_libs=yes
  8658. if test "$host_cpu" = ia64; then
  8659. # AIX 5 supports IA64
  8660. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8661. shlibpath_var=LD_LIBRARY_PATH
  8662. else
  8663. # With GCC up to 2.95.x, collect2 would create an import file
  8664. # for dependence libraries. The import file would start with
  8665. # the line `#! .'. This would cause the generated library to
  8666. # depend on `.', always an invalid library. This was fixed in
  8667. # development snapshots of GCC prior to 3.0.
  8668. case $host_os in
  8669. aix4 | aix4.[01] | aix4.[01].*)
  8670. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8671. echo ' yes '
  8672. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8673. :
  8674. else
  8675. can_build_shared=no
  8676. fi
  8677. ;;
  8678. esac
  8679. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8680. # soname into executable. Probably we can add versioning support to
  8681. # collect2, so additional links can be useful in future.
  8682. if test "$aix_use_runtimelinking" = yes; then
  8683. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8684. # instead of lib<name>.a to let people know that these are not
  8685. # typical AIX shared libraries.
  8686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8687. else
  8688. # We preserve .a as extension for shared libraries through AIX4.2
  8689. # and later when we are not doing run time linking.
  8690. library_names_spec='${libname}${release}.a $libname.a'
  8691. soname_spec='${libname}${release}${shared_ext}$major'
  8692. fi
  8693. shlibpath_var=LIBPATH
  8694. fi
  8695. ;;
  8696. amigaos*)
  8697. case $host_cpu in
  8698. powerpc)
  8699. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8700. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8702. ;;
  8703. m68k)
  8704. library_names_spec='$libname.ixlibrary $libname.a'
  8705. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8706. 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'
  8707. ;;
  8708. esac
  8709. ;;
  8710. beos*)
  8711. library_names_spec='${libname}${shared_ext}'
  8712. dynamic_linker="$host_os ld.so"
  8713. shlibpath_var=LIBRARY_PATH
  8714. ;;
  8715. bsdi[45]*)
  8716. version_type=linux # correct to gnu/linux during the next big refactor
  8717. need_version=no
  8718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8719. soname_spec='${libname}${release}${shared_ext}$major'
  8720. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8721. shlibpath_var=LD_LIBRARY_PATH
  8722. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8723. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8724. # the default ld.so.conf also contains /usr/contrib/lib and
  8725. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8726. # libtool to hard-code these into programs
  8727. ;;
  8728. cygwin* | mingw* | pw32* | cegcc*)
  8729. version_type=windows
  8730. shrext_cmds=".dll"
  8731. need_version=no
  8732. need_lib_prefix=no
  8733. case $GCC,$cc_basename in
  8734. yes,*)
  8735. # gcc
  8736. library_names_spec='$libname.dll.a'
  8737. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8738. postinstall_cmds='base_file=`basename \${file}`~
  8739. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8740. dldir=$destdir/`dirname \$dlpath`~
  8741. test -d \$dldir || mkdir -p \$dldir~
  8742. $install_prog $dir/$dlname \$dldir/$dlname~
  8743. chmod a+x \$dldir/$dlname~
  8744. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8745. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8746. fi'
  8747. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8748. dlpath=$dir/\$dldll~
  8749. $RM \$dlpath'
  8750. shlibpath_overrides_runpath=yes
  8751. case $host_os in
  8752. cygwin*)
  8753. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8754. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8755. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8756. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8757. ;;
  8758. mingw* | cegcc*)
  8759. # MinGW DLLs use traditional 'lib' prefix
  8760. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8761. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8762. ;;
  8763. pw32*)
  8764. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8765. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8766. ;;
  8767. esac
  8768. dynamic_linker='Win32 ld.exe'
  8769. ;;
  8770. *,cl*)
  8771. # Native MSVC
  8772. libname_spec='$name'
  8773. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8774. library_names_spec='${libname}.dll.lib'
  8775. case $build_os in
  8776. mingw*)
  8777. sys_lib_search_path_spec=
  8778. lt_save_ifs=$IFS
  8779. IFS=';'
  8780. for lt_path in $LIB
  8781. do
  8782. IFS=$lt_save_ifs
  8783. # Let DOS variable expansion print the short 8.3 style file name.
  8784. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8785. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8786. done
  8787. IFS=$lt_save_ifs
  8788. # Convert to MSYS style.
  8789. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8790. ;;
  8791. cygwin*)
  8792. # Convert to unix form, then to dos form, then back to unix form
  8793. # but this time dos style (no spaces!) so that the unix form looks
  8794. # like /cygdrive/c/PROGRA~1:/cygdr...
  8795. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8796. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8797. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8798. ;;
  8799. *)
  8800. sys_lib_search_path_spec="$LIB"
  8801. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8802. # It is most probably a Windows format PATH.
  8803. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8804. else
  8805. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8806. fi
  8807. # FIXME: find the short name or the path components, as spaces are
  8808. # common. (e.g. "Program Files" -> "PROGRA~1")
  8809. ;;
  8810. esac
  8811. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8812. postinstall_cmds='base_file=`basename \${file}`~
  8813. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8814. dldir=$destdir/`dirname \$dlpath`~
  8815. test -d \$dldir || mkdir -p \$dldir~
  8816. $install_prog $dir/$dlname \$dldir/$dlname'
  8817. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8818. dlpath=$dir/\$dldll~
  8819. $RM \$dlpath'
  8820. shlibpath_overrides_runpath=yes
  8821. dynamic_linker='Win32 link.exe'
  8822. ;;
  8823. *)
  8824. # Assume MSVC wrapper
  8825. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8826. dynamic_linker='Win32 ld.exe'
  8827. ;;
  8828. esac
  8829. # FIXME: first we should search . and the directory the executable is in
  8830. shlibpath_var=PATH
  8831. ;;
  8832. darwin* | rhapsody*)
  8833. dynamic_linker="$host_os dyld"
  8834. version_type=darwin
  8835. need_lib_prefix=no
  8836. need_version=no
  8837. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8838. soname_spec='${libname}${release}${major}$shared_ext'
  8839. shlibpath_overrides_runpath=yes
  8840. shlibpath_var=DYLD_LIBRARY_PATH
  8841. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8842. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8843. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8844. ;;
  8845. dgux*)
  8846. version_type=linux # correct to gnu/linux during the next big refactor
  8847. need_lib_prefix=no
  8848. need_version=no
  8849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8850. soname_spec='${libname}${release}${shared_ext}$major'
  8851. shlibpath_var=LD_LIBRARY_PATH
  8852. ;;
  8853. freebsd* | dragonfly*)
  8854. # DragonFly does not have aout. When/if they implement a new
  8855. # versioning mechanism, adjust this.
  8856. if test -x /usr/bin/objformat; then
  8857. objformat=`/usr/bin/objformat`
  8858. else
  8859. case $host_os in
  8860. freebsd[23].*) objformat=aout ;;
  8861. *) objformat=elf ;;
  8862. esac
  8863. fi
  8864. version_type=freebsd-$objformat
  8865. case $version_type in
  8866. freebsd-elf*)
  8867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8868. need_version=no
  8869. need_lib_prefix=no
  8870. ;;
  8871. freebsd-*)
  8872. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8873. need_version=yes
  8874. ;;
  8875. esac
  8876. shlibpath_var=LD_LIBRARY_PATH
  8877. case $host_os in
  8878. freebsd2.*)
  8879. shlibpath_overrides_runpath=yes
  8880. ;;
  8881. freebsd3.[01]* | freebsdelf3.[01]*)
  8882. shlibpath_overrides_runpath=yes
  8883. hardcode_into_libs=yes
  8884. ;;
  8885. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8886. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8887. shlibpath_overrides_runpath=no
  8888. hardcode_into_libs=yes
  8889. ;;
  8890. *) # from 4.6 on, and DragonFly
  8891. shlibpath_overrides_runpath=yes
  8892. hardcode_into_libs=yes
  8893. ;;
  8894. esac
  8895. ;;
  8896. gnu*)
  8897. version_type=linux # correct to gnu/linux during the next big refactor
  8898. need_lib_prefix=no
  8899. need_version=no
  8900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8901. soname_spec='${libname}${release}${shared_ext}$major'
  8902. shlibpath_var=LD_LIBRARY_PATH
  8903. shlibpath_overrides_runpath=no
  8904. hardcode_into_libs=yes
  8905. ;;
  8906. haiku*)
  8907. version_type=linux # correct to gnu/linux during the next big refactor
  8908. need_lib_prefix=no
  8909. need_version=no
  8910. dynamic_linker="$host_os runtime_loader"
  8911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8912. soname_spec='${libname}${release}${shared_ext}$major'
  8913. shlibpath_var=LIBRARY_PATH
  8914. shlibpath_overrides_runpath=yes
  8915. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8916. hardcode_into_libs=yes
  8917. ;;
  8918. hpux9* | hpux10* | hpux11*)
  8919. # Give a soname corresponding to the major version so that dld.sl refuses to
  8920. # link against other versions.
  8921. version_type=sunos
  8922. need_lib_prefix=no
  8923. need_version=no
  8924. case $host_cpu in
  8925. ia64*)
  8926. shrext_cmds='.so'
  8927. hardcode_into_libs=yes
  8928. dynamic_linker="$host_os dld.so"
  8929. shlibpath_var=LD_LIBRARY_PATH
  8930. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8932. soname_spec='${libname}${release}${shared_ext}$major'
  8933. if test "X$HPUX_IA64_MODE" = X32; then
  8934. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8935. else
  8936. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8937. fi
  8938. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8939. ;;
  8940. hppa*64*)
  8941. shrext_cmds='.sl'
  8942. hardcode_into_libs=yes
  8943. dynamic_linker="$host_os dld.sl"
  8944. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8945. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8947. soname_spec='${libname}${release}${shared_ext}$major'
  8948. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8949. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8950. ;;
  8951. *)
  8952. shrext_cmds='.sl'
  8953. dynamic_linker="$host_os dld.sl"
  8954. shlibpath_var=SHLIB_PATH
  8955. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8957. soname_spec='${libname}${release}${shared_ext}$major'
  8958. ;;
  8959. esac
  8960. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8961. postinstall_cmds='chmod 555 $lib'
  8962. # or fails outright, so override atomically:
  8963. install_override_mode=555
  8964. ;;
  8965. interix[3-9]*)
  8966. version_type=linux # correct to gnu/linux during the next big refactor
  8967. need_lib_prefix=no
  8968. need_version=no
  8969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8970. soname_spec='${libname}${release}${shared_ext}$major'
  8971. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8972. shlibpath_var=LD_LIBRARY_PATH
  8973. shlibpath_overrides_runpath=no
  8974. hardcode_into_libs=yes
  8975. ;;
  8976. irix5* | irix6* | nonstopux*)
  8977. case $host_os in
  8978. nonstopux*) version_type=nonstopux ;;
  8979. *)
  8980. if test "$lt_cv_prog_gnu_ld" = yes; then
  8981. version_type=linux # correct to gnu/linux during the next big refactor
  8982. else
  8983. version_type=irix
  8984. fi ;;
  8985. esac
  8986. need_lib_prefix=no
  8987. need_version=no
  8988. soname_spec='${libname}${release}${shared_ext}$major'
  8989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8990. case $host_os in
  8991. irix5* | nonstopux*)
  8992. libsuff= shlibsuff=
  8993. ;;
  8994. *)
  8995. case $LD in # libtool.m4 will add one of these switches to LD
  8996. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8997. libsuff= shlibsuff= libmagic=32-bit;;
  8998. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8999. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9000. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9001. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9002. *) libsuff= shlibsuff= libmagic=never-match;;
  9003. esac
  9004. ;;
  9005. esac
  9006. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9007. shlibpath_overrides_runpath=no
  9008. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9009. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9010. hardcode_into_libs=yes
  9011. ;;
  9012. # No shared lib support for Linux oldld, aout, or coff.
  9013. linux*oldld* | linux*aout* | linux*coff*)
  9014. dynamic_linker=no
  9015. ;;
  9016. # This must be glibc/ELF.
  9017. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9018. version_type=linux # correct to gnu/linux during the next big refactor
  9019. need_lib_prefix=no
  9020. need_version=no
  9021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9022. soname_spec='${libname}${release}${shared_ext}$major'
  9023. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9024. shlibpath_var=LD_LIBRARY_PATH
  9025. shlibpath_overrides_runpath=no
  9026. # Some binutils ld are patched to set DT_RUNPATH
  9027. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9028. $as_echo_n "(cached) " >&6
  9029. else
  9030. lt_cv_shlibpath_overrides_runpath=no
  9031. save_LDFLAGS=$LDFLAGS
  9032. save_libdir=$libdir
  9033. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9034. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9036. /* end confdefs.h. */
  9037. int
  9038. main ()
  9039. {
  9040. ;
  9041. return 0;
  9042. }
  9043. _ACEOF
  9044. if ac_fn_c_try_link "$LINENO"; then :
  9045. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9046. lt_cv_shlibpath_overrides_runpath=yes
  9047. fi
  9048. fi
  9049. rm -f core conftest.err conftest.$ac_objext \
  9050. conftest$ac_exeext conftest.$ac_ext
  9051. LDFLAGS=$save_LDFLAGS
  9052. libdir=$save_libdir
  9053. fi
  9054. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9055. # This implies no fast_install, which is unacceptable.
  9056. # Some rework will be needed to allow for fast_install
  9057. # before this can be enabled.
  9058. hardcode_into_libs=yes
  9059. # Append ld.so.conf contents to the search path
  9060. if test -f /etc/ld.so.conf; then
  9061. 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' ' '`
  9062. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9063. fi
  9064. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9065. # powerpc, because MkLinux only supported shared libraries with the
  9066. # GNU dynamic linker. Since this was broken with cross compilers,
  9067. # most powerpc-linux boxes support dynamic linking these days and
  9068. # people can always --disable-shared, the test was removed, and we
  9069. # assume the GNU/Linux dynamic linker is in use.
  9070. dynamic_linker='GNU/Linux ld.so'
  9071. ;;
  9072. netbsd*)
  9073. version_type=sunos
  9074. need_lib_prefix=no
  9075. need_version=no
  9076. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9078. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9079. dynamic_linker='NetBSD (a.out) ld.so'
  9080. else
  9081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9082. soname_spec='${libname}${release}${shared_ext}$major'
  9083. dynamic_linker='NetBSD ld.elf_so'
  9084. fi
  9085. shlibpath_var=LD_LIBRARY_PATH
  9086. shlibpath_overrides_runpath=yes
  9087. hardcode_into_libs=yes
  9088. ;;
  9089. newsos6)
  9090. version_type=linux # correct to gnu/linux during the next big refactor
  9091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9092. shlibpath_var=LD_LIBRARY_PATH
  9093. shlibpath_overrides_runpath=yes
  9094. ;;
  9095. *nto* | *qnx*)
  9096. version_type=qnx
  9097. need_lib_prefix=no
  9098. need_version=no
  9099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9100. soname_spec='${libname}${release}${shared_ext}$major'
  9101. shlibpath_var=LD_LIBRARY_PATH
  9102. shlibpath_overrides_runpath=no
  9103. hardcode_into_libs=yes
  9104. dynamic_linker='ldqnx.so'
  9105. ;;
  9106. openbsd*)
  9107. version_type=sunos
  9108. sys_lib_dlsearch_path_spec="/usr/lib"
  9109. need_lib_prefix=no
  9110. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9111. case $host_os in
  9112. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9113. *) need_version=no ;;
  9114. esac
  9115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9116. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9117. shlibpath_var=LD_LIBRARY_PATH
  9118. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9119. case $host_os in
  9120. openbsd2.[89] | openbsd2.[89].*)
  9121. shlibpath_overrides_runpath=no
  9122. ;;
  9123. *)
  9124. shlibpath_overrides_runpath=yes
  9125. ;;
  9126. esac
  9127. else
  9128. shlibpath_overrides_runpath=yes
  9129. fi
  9130. ;;
  9131. os2*)
  9132. libname_spec='$name'
  9133. shrext_cmds=".dll"
  9134. need_lib_prefix=no
  9135. library_names_spec='$libname${shared_ext} $libname.a'
  9136. dynamic_linker='OS/2 ld.exe'
  9137. shlibpath_var=LIBPATH
  9138. ;;
  9139. osf3* | osf4* | osf5*)
  9140. version_type=osf
  9141. need_lib_prefix=no
  9142. need_version=no
  9143. soname_spec='${libname}${release}${shared_ext}$major'
  9144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9145. shlibpath_var=LD_LIBRARY_PATH
  9146. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9147. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9148. ;;
  9149. rdos*)
  9150. dynamic_linker=no
  9151. ;;
  9152. solaris*)
  9153. version_type=linux # correct to gnu/linux during the next big refactor
  9154. need_lib_prefix=no
  9155. need_version=no
  9156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9157. soname_spec='${libname}${release}${shared_ext}$major'
  9158. shlibpath_var=LD_LIBRARY_PATH
  9159. shlibpath_overrides_runpath=yes
  9160. hardcode_into_libs=yes
  9161. # ldd complains unless libraries are executable
  9162. postinstall_cmds='chmod +x $lib'
  9163. ;;
  9164. sunos4*)
  9165. version_type=sunos
  9166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9167. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9168. shlibpath_var=LD_LIBRARY_PATH
  9169. shlibpath_overrides_runpath=yes
  9170. if test "$with_gnu_ld" = yes; then
  9171. need_lib_prefix=no
  9172. fi
  9173. need_version=yes
  9174. ;;
  9175. sysv4 | sysv4.3*)
  9176. version_type=linux # correct to gnu/linux during the next big refactor
  9177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9178. soname_spec='${libname}${release}${shared_ext}$major'
  9179. shlibpath_var=LD_LIBRARY_PATH
  9180. case $host_vendor in
  9181. sni)
  9182. shlibpath_overrides_runpath=no
  9183. need_lib_prefix=no
  9184. runpath_var=LD_RUN_PATH
  9185. ;;
  9186. siemens)
  9187. need_lib_prefix=no
  9188. ;;
  9189. motorola)
  9190. need_lib_prefix=no
  9191. need_version=no
  9192. shlibpath_overrides_runpath=no
  9193. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9194. ;;
  9195. esac
  9196. ;;
  9197. sysv4*MP*)
  9198. if test -d /usr/nec ;then
  9199. version_type=linux # correct to gnu/linux during the next big refactor
  9200. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9201. soname_spec='$libname${shared_ext}.$major'
  9202. shlibpath_var=LD_LIBRARY_PATH
  9203. fi
  9204. ;;
  9205. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9206. version_type=freebsd-elf
  9207. need_lib_prefix=no
  9208. need_version=no
  9209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9210. soname_spec='${libname}${release}${shared_ext}$major'
  9211. shlibpath_var=LD_LIBRARY_PATH
  9212. shlibpath_overrides_runpath=yes
  9213. hardcode_into_libs=yes
  9214. if test "$with_gnu_ld" = yes; then
  9215. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9216. else
  9217. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9218. case $host_os in
  9219. sco3.2v5*)
  9220. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9221. ;;
  9222. esac
  9223. fi
  9224. sys_lib_dlsearch_path_spec='/usr/lib'
  9225. ;;
  9226. tpf*)
  9227. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9228. version_type=linux # correct to gnu/linux during the next big refactor
  9229. need_lib_prefix=no
  9230. need_version=no
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9232. shlibpath_var=LD_LIBRARY_PATH
  9233. shlibpath_overrides_runpath=no
  9234. hardcode_into_libs=yes
  9235. ;;
  9236. uts4*)
  9237. version_type=linux # correct to gnu/linux during the next big refactor
  9238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9239. soname_spec='${libname}${release}${shared_ext}$major'
  9240. shlibpath_var=LD_LIBRARY_PATH
  9241. ;;
  9242. *)
  9243. dynamic_linker=no
  9244. ;;
  9245. esac
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9247. $as_echo "$dynamic_linker" >&6; }
  9248. test "$dynamic_linker" = no && can_build_shared=no
  9249. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9250. if test "$GCC" = yes; then
  9251. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9252. fi
  9253. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9254. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9255. fi
  9256. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9257. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9258. fi
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9260. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9261. hardcode_action=
  9262. if test -n "$hardcode_libdir_flag_spec" ||
  9263. test -n "$runpath_var" ||
  9264. test "X$hardcode_automatic" = "Xyes" ; then
  9265. # We can hardcode non-existent directories.
  9266. if test "$hardcode_direct" != no &&
  9267. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9268. # have to relink, otherwise we might link with an installed library
  9269. # when we should be linking with a yet-to-be-installed one
  9270. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9271. test "$hardcode_minus_L" != no; then
  9272. # Linking always hardcodes the temporary library directory.
  9273. hardcode_action=relink
  9274. else
  9275. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9276. hardcode_action=immediate
  9277. fi
  9278. else
  9279. # We cannot hardcode anything, or else we can only hardcode existing
  9280. # directories.
  9281. hardcode_action=unsupported
  9282. fi
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9284. $as_echo "$hardcode_action" >&6; }
  9285. if test "$hardcode_action" = relink ||
  9286. test "$inherit_rpath" = yes; then
  9287. # Fast installation is not supported
  9288. enable_fast_install=no
  9289. elif test "$shlibpath_overrides_runpath" = yes ||
  9290. test "$enable_shared" = no; then
  9291. # Fast installation is not necessary
  9292. enable_fast_install=needless
  9293. fi
  9294. if test "x$enable_dlopen" != xyes; then
  9295. enable_dlopen=unknown
  9296. enable_dlopen_self=unknown
  9297. enable_dlopen_self_static=unknown
  9298. else
  9299. lt_cv_dlopen=no
  9300. lt_cv_dlopen_libs=
  9301. case $host_os in
  9302. beos*)
  9303. lt_cv_dlopen="load_add_on"
  9304. lt_cv_dlopen_libs=
  9305. lt_cv_dlopen_self=yes
  9306. ;;
  9307. mingw* | pw32* | cegcc*)
  9308. lt_cv_dlopen="LoadLibrary"
  9309. lt_cv_dlopen_libs=
  9310. ;;
  9311. cygwin*)
  9312. lt_cv_dlopen="dlopen"
  9313. lt_cv_dlopen_libs=
  9314. ;;
  9315. darwin*)
  9316. # if libdl is installed we need to link against it
  9317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9318. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9319. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9320. $as_echo_n "(cached) " >&6
  9321. else
  9322. ac_check_lib_save_LIBS=$LIBS
  9323. LIBS="-ldl $LIBS"
  9324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9325. /* end confdefs.h. */
  9326. /* Override any GCC internal prototype to avoid an error.
  9327. Use char because int might match the return type of a GCC
  9328. builtin and then its argument prototype would still apply. */
  9329. #ifdef __cplusplus
  9330. extern "C"
  9331. #endif
  9332. char dlopen ();
  9333. int
  9334. main ()
  9335. {
  9336. return dlopen ();
  9337. ;
  9338. return 0;
  9339. }
  9340. _ACEOF
  9341. if ac_fn_c_try_link "$LINENO"; then :
  9342. ac_cv_lib_dl_dlopen=yes
  9343. else
  9344. ac_cv_lib_dl_dlopen=no
  9345. fi
  9346. rm -f core conftest.err conftest.$ac_objext \
  9347. conftest$ac_exeext conftest.$ac_ext
  9348. LIBS=$ac_check_lib_save_LIBS
  9349. fi
  9350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9351. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9352. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9353. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9354. else
  9355. lt_cv_dlopen="dyld"
  9356. lt_cv_dlopen_libs=
  9357. lt_cv_dlopen_self=yes
  9358. fi
  9359. ;;
  9360. *)
  9361. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9362. if test "x$ac_cv_func_shl_load" = xyes; then :
  9363. lt_cv_dlopen="shl_load"
  9364. else
  9365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9366. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9367. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9368. $as_echo_n "(cached) " >&6
  9369. else
  9370. ac_check_lib_save_LIBS=$LIBS
  9371. LIBS="-ldld $LIBS"
  9372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9373. /* end confdefs.h. */
  9374. /* Override any GCC internal prototype to avoid an error.
  9375. Use char because int might match the return type of a GCC
  9376. builtin and then its argument prototype would still apply. */
  9377. #ifdef __cplusplus
  9378. extern "C"
  9379. #endif
  9380. char shl_load ();
  9381. int
  9382. main ()
  9383. {
  9384. return shl_load ();
  9385. ;
  9386. return 0;
  9387. }
  9388. _ACEOF
  9389. if ac_fn_c_try_link "$LINENO"; then :
  9390. ac_cv_lib_dld_shl_load=yes
  9391. else
  9392. ac_cv_lib_dld_shl_load=no
  9393. fi
  9394. rm -f core conftest.err conftest.$ac_objext \
  9395. conftest$ac_exeext conftest.$ac_ext
  9396. LIBS=$ac_check_lib_save_LIBS
  9397. fi
  9398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9399. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9400. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9401. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9402. else
  9403. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9404. if test "x$ac_cv_func_dlopen" = xyes; then :
  9405. lt_cv_dlopen="dlopen"
  9406. else
  9407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9408. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9409. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9410. $as_echo_n "(cached) " >&6
  9411. else
  9412. ac_check_lib_save_LIBS=$LIBS
  9413. LIBS="-ldl $LIBS"
  9414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9415. /* end confdefs.h. */
  9416. /* Override any GCC internal prototype to avoid an error.
  9417. Use char because int might match the return type of a GCC
  9418. builtin and then its argument prototype would still apply. */
  9419. #ifdef __cplusplus
  9420. extern "C"
  9421. #endif
  9422. char dlopen ();
  9423. int
  9424. main ()
  9425. {
  9426. return dlopen ();
  9427. ;
  9428. return 0;
  9429. }
  9430. _ACEOF
  9431. if ac_fn_c_try_link "$LINENO"; then :
  9432. ac_cv_lib_dl_dlopen=yes
  9433. else
  9434. ac_cv_lib_dl_dlopen=no
  9435. fi
  9436. rm -f core conftest.err conftest.$ac_objext \
  9437. conftest$ac_exeext conftest.$ac_ext
  9438. LIBS=$ac_check_lib_save_LIBS
  9439. fi
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9441. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9442. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9443. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9444. else
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9446. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9447. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9448. $as_echo_n "(cached) " >&6
  9449. else
  9450. ac_check_lib_save_LIBS=$LIBS
  9451. LIBS="-lsvld $LIBS"
  9452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9453. /* end confdefs.h. */
  9454. /* Override any GCC internal prototype to avoid an error.
  9455. Use char because int might match the return type of a GCC
  9456. builtin and then its argument prototype would still apply. */
  9457. #ifdef __cplusplus
  9458. extern "C"
  9459. #endif
  9460. char dlopen ();
  9461. int
  9462. main ()
  9463. {
  9464. return dlopen ();
  9465. ;
  9466. return 0;
  9467. }
  9468. _ACEOF
  9469. if ac_fn_c_try_link "$LINENO"; then :
  9470. ac_cv_lib_svld_dlopen=yes
  9471. else
  9472. ac_cv_lib_svld_dlopen=no
  9473. fi
  9474. rm -f core conftest.err conftest.$ac_objext \
  9475. conftest$ac_exeext conftest.$ac_ext
  9476. LIBS=$ac_check_lib_save_LIBS
  9477. fi
  9478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9479. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9480. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9481. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9482. else
  9483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9484. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9485. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9486. $as_echo_n "(cached) " >&6
  9487. else
  9488. ac_check_lib_save_LIBS=$LIBS
  9489. LIBS="-ldld $LIBS"
  9490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9491. /* end confdefs.h. */
  9492. /* Override any GCC internal prototype to avoid an error.
  9493. Use char because int might match the return type of a GCC
  9494. builtin and then its argument prototype would still apply. */
  9495. #ifdef __cplusplus
  9496. extern "C"
  9497. #endif
  9498. char dld_link ();
  9499. int
  9500. main ()
  9501. {
  9502. return dld_link ();
  9503. ;
  9504. return 0;
  9505. }
  9506. _ACEOF
  9507. if ac_fn_c_try_link "$LINENO"; then :
  9508. ac_cv_lib_dld_dld_link=yes
  9509. else
  9510. ac_cv_lib_dld_dld_link=no
  9511. fi
  9512. rm -f core conftest.err conftest.$ac_objext \
  9513. conftest$ac_exeext conftest.$ac_ext
  9514. LIBS=$ac_check_lib_save_LIBS
  9515. fi
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9517. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9518. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9519. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9520. fi
  9521. fi
  9522. fi
  9523. fi
  9524. fi
  9525. fi
  9526. ;;
  9527. esac
  9528. if test "x$lt_cv_dlopen" != xno; then
  9529. enable_dlopen=yes
  9530. else
  9531. enable_dlopen=no
  9532. fi
  9533. case $lt_cv_dlopen in
  9534. dlopen)
  9535. save_CPPFLAGS="$CPPFLAGS"
  9536. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9537. save_LDFLAGS="$LDFLAGS"
  9538. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9539. save_LIBS="$LIBS"
  9540. LIBS="$lt_cv_dlopen_libs $LIBS"
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9542. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9543. if ${lt_cv_dlopen_self+:} false; then :
  9544. $as_echo_n "(cached) " >&6
  9545. else
  9546. if test "$cross_compiling" = yes; then :
  9547. lt_cv_dlopen_self=cross
  9548. else
  9549. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9550. lt_status=$lt_dlunknown
  9551. cat > conftest.$ac_ext <<_LT_EOF
  9552. #line $LINENO "configure"
  9553. #include "confdefs.h"
  9554. #if HAVE_DLFCN_H
  9555. #include <dlfcn.h>
  9556. #endif
  9557. #include <stdio.h>
  9558. #ifdef RTLD_GLOBAL
  9559. # define LT_DLGLOBAL RTLD_GLOBAL
  9560. #else
  9561. # ifdef DL_GLOBAL
  9562. # define LT_DLGLOBAL DL_GLOBAL
  9563. # else
  9564. # define LT_DLGLOBAL 0
  9565. # endif
  9566. #endif
  9567. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9568. find out it does not work in some platform. */
  9569. #ifndef LT_DLLAZY_OR_NOW
  9570. # ifdef RTLD_LAZY
  9571. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9572. # else
  9573. # ifdef DL_LAZY
  9574. # define LT_DLLAZY_OR_NOW DL_LAZY
  9575. # else
  9576. # ifdef RTLD_NOW
  9577. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9578. # else
  9579. # ifdef DL_NOW
  9580. # define LT_DLLAZY_OR_NOW DL_NOW
  9581. # else
  9582. # define LT_DLLAZY_OR_NOW 0
  9583. # endif
  9584. # endif
  9585. # endif
  9586. # endif
  9587. #endif
  9588. /* When -fvisbility=hidden is used, assume the code has been annotated
  9589. correspondingly for the symbols needed. */
  9590. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9591. int fnord () __attribute__((visibility("default")));
  9592. #endif
  9593. int fnord () { return 42; }
  9594. int main ()
  9595. {
  9596. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9597. int status = $lt_dlunknown;
  9598. if (self)
  9599. {
  9600. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9601. else
  9602. {
  9603. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9604. else puts (dlerror ());
  9605. }
  9606. /* dlclose (self); */
  9607. }
  9608. else
  9609. puts (dlerror ());
  9610. return status;
  9611. }
  9612. _LT_EOF
  9613. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9614. (eval $ac_link) 2>&5
  9615. ac_status=$?
  9616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9617. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9618. (./conftest; exit; ) >&5 2>/dev/null
  9619. lt_status=$?
  9620. case x$lt_status in
  9621. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9622. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9623. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9624. esac
  9625. else :
  9626. # compilation failed
  9627. lt_cv_dlopen_self=no
  9628. fi
  9629. fi
  9630. rm -fr conftest*
  9631. fi
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9633. $as_echo "$lt_cv_dlopen_self" >&6; }
  9634. if test "x$lt_cv_dlopen_self" = xyes; then
  9635. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9637. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9638. if ${lt_cv_dlopen_self_static+:} false; then :
  9639. $as_echo_n "(cached) " >&6
  9640. else
  9641. if test "$cross_compiling" = yes; then :
  9642. lt_cv_dlopen_self_static=cross
  9643. else
  9644. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9645. lt_status=$lt_dlunknown
  9646. cat > conftest.$ac_ext <<_LT_EOF
  9647. #line $LINENO "configure"
  9648. #include "confdefs.h"
  9649. #if HAVE_DLFCN_H
  9650. #include <dlfcn.h>
  9651. #endif
  9652. #include <stdio.h>
  9653. #ifdef RTLD_GLOBAL
  9654. # define LT_DLGLOBAL RTLD_GLOBAL
  9655. #else
  9656. # ifdef DL_GLOBAL
  9657. # define LT_DLGLOBAL DL_GLOBAL
  9658. # else
  9659. # define LT_DLGLOBAL 0
  9660. # endif
  9661. #endif
  9662. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9663. find out it does not work in some platform. */
  9664. #ifndef LT_DLLAZY_OR_NOW
  9665. # ifdef RTLD_LAZY
  9666. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9667. # else
  9668. # ifdef DL_LAZY
  9669. # define LT_DLLAZY_OR_NOW DL_LAZY
  9670. # else
  9671. # ifdef RTLD_NOW
  9672. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9673. # else
  9674. # ifdef DL_NOW
  9675. # define LT_DLLAZY_OR_NOW DL_NOW
  9676. # else
  9677. # define LT_DLLAZY_OR_NOW 0
  9678. # endif
  9679. # endif
  9680. # endif
  9681. # endif
  9682. #endif
  9683. /* When -fvisbility=hidden is used, assume the code has been annotated
  9684. correspondingly for the symbols needed. */
  9685. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9686. int fnord () __attribute__((visibility("default")));
  9687. #endif
  9688. int fnord () { return 42; }
  9689. int main ()
  9690. {
  9691. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9692. int status = $lt_dlunknown;
  9693. if (self)
  9694. {
  9695. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9696. else
  9697. {
  9698. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9699. else puts (dlerror ());
  9700. }
  9701. /* dlclose (self); */
  9702. }
  9703. else
  9704. puts (dlerror ());
  9705. return status;
  9706. }
  9707. _LT_EOF
  9708. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9709. (eval $ac_link) 2>&5
  9710. ac_status=$?
  9711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9712. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9713. (./conftest; exit; ) >&5 2>/dev/null
  9714. lt_status=$?
  9715. case x$lt_status in
  9716. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9717. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9718. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9719. esac
  9720. else :
  9721. # compilation failed
  9722. lt_cv_dlopen_self_static=no
  9723. fi
  9724. fi
  9725. rm -fr conftest*
  9726. fi
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9728. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9729. fi
  9730. CPPFLAGS="$save_CPPFLAGS"
  9731. LDFLAGS="$save_LDFLAGS"
  9732. LIBS="$save_LIBS"
  9733. ;;
  9734. esac
  9735. case $lt_cv_dlopen_self in
  9736. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9737. *) enable_dlopen_self=unknown ;;
  9738. esac
  9739. case $lt_cv_dlopen_self_static in
  9740. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9741. *) enable_dlopen_self_static=unknown ;;
  9742. esac
  9743. fi
  9744. striplib=
  9745. old_striplib=
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9747. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9748. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9749. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9750. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9752. $as_echo "yes" >&6; }
  9753. else
  9754. # FIXME - insert some real tests, host_os isn't really good enough
  9755. case $host_os in
  9756. darwin*)
  9757. if test -n "$STRIP" ; then
  9758. striplib="$STRIP -x"
  9759. old_striplib="$STRIP -S"
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9761. $as_echo "yes" >&6; }
  9762. else
  9763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9764. $as_echo "no" >&6; }
  9765. fi
  9766. ;;
  9767. *)
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9769. $as_echo "no" >&6; }
  9770. ;;
  9771. esac
  9772. fi
  9773. # Report which library types will actually be built
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9775. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9777. $as_echo "$can_build_shared" >&6; }
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9779. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9780. test "$can_build_shared" = "no" && enable_shared=no
  9781. # On AIX, shared libraries and static libraries use the same namespace, and
  9782. # are all built from PIC.
  9783. case $host_os in
  9784. aix3*)
  9785. test "$enable_shared" = yes && enable_static=no
  9786. if test -n "$RANLIB"; then
  9787. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9788. postinstall_cmds='$RANLIB $lib'
  9789. fi
  9790. ;;
  9791. aix[4-9]*)
  9792. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9793. test "$enable_shared" = yes && enable_static=no
  9794. fi
  9795. ;;
  9796. esac
  9797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9798. $as_echo "$enable_shared" >&6; }
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9800. $as_echo_n "checking whether to build static libraries... " >&6; }
  9801. # Make sure either enable_shared or enable_static is yes.
  9802. test "$enable_shared" = yes || enable_static=yes
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9804. $as_echo "$enable_static" >&6; }
  9805. fi
  9806. ac_ext=c
  9807. ac_cpp='$CPP $CPPFLAGS'
  9808. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9809. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9810. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9811. CC="$lt_save_CC"
  9812. ac_config_commands="$ac_config_commands libtool"
  9813. # Only expand once:
  9814. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9815. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9816. LT_REVISION=$SDL_INTERFACE_AGE
  9817. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9818. ac_ext=c
  9819. ac_cpp='$CPP $CPPFLAGS'
  9820. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9821. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9822. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9823. if test -n "$ac_tool_prefix"; then
  9824. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9825. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9827. $as_echo_n "checking for $ac_word... " >&6; }
  9828. if ${ac_cv_prog_CC+:} false; then :
  9829. $as_echo_n "(cached) " >&6
  9830. else
  9831. if test -n "$CC"; then
  9832. ac_cv_prog_CC="$CC" # Let the user override the test.
  9833. else
  9834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9835. for as_dir in $PATH
  9836. do
  9837. IFS=$as_save_IFS
  9838. test -z "$as_dir" && as_dir=.
  9839. for ac_exec_ext in '' $ac_executable_extensions; do
  9840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9841. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9843. break 2
  9844. fi
  9845. done
  9846. done
  9847. IFS=$as_save_IFS
  9848. fi
  9849. fi
  9850. CC=$ac_cv_prog_CC
  9851. if test -n "$CC"; then
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9853. $as_echo "$CC" >&6; }
  9854. else
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9856. $as_echo "no" >&6; }
  9857. fi
  9858. fi
  9859. if test -z "$ac_cv_prog_CC"; then
  9860. ac_ct_CC=$CC
  9861. # Extract the first word of "gcc", so it can be a program name with args.
  9862. set dummy gcc; ac_word=$2
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9864. $as_echo_n "checking for $ac_word... " >&6; }
  9865. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9866. $as_echo_n "(cached) " >&6
  9867. else
  9868. if test -n "$ac_ct_CC"; then
  9869. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9870. else
  9871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9872. for as_dir in $PATH
  9873. do
  9874. IFS=$as_save_IFS
  9875. test -z "$as_dir" && as_dir=.
  9876. for ac_exec_ext in '' $ac_executable_extensions; do
  9877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9878. ac_cv_prog_ac_ct_CC="gcc"
  9879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9880. break 2
  9881. fi
  9882. done
  9883. done
  9884. IFS=$as_save_IFS
  9885. fi
  9886. fi
  9887. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9888. if test -n "$ac_ct_CC"; then
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9890. $as_echo "$ac_ct_CC" >&6; }
  9891. else
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9893. $as_echo "no" >&6; }
  9894. fi
  9895. if test "x$ac_ct_CC" = x; then
  9896. CC=""
  9897. else
  9898. case $cross_compiling:$ac_tool_warned in
  9899. yes:)
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9901. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9902. ac_tool_warned=yes ;;
  9903. esac
  9904. CC=$ac_ct_CC
  9905. fi
  9906. else
  9907. CC="$ac_cv_prog_CC"
  9908. fi
  9909. if test -z "$CC"; then
  9910. if test -n "$ac_tool_prefix"; then
  9911. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9912. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9914. $as_echo_n "checking for $ac_word... " >&6; }
  9915. if ${ac_cv_prog_CC+:} false; then :
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. if test -n "$CC"; then
  9919. ac_cv_prog_CC="$CC" # Let the user override the test.
  9920. else
  9921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9922. for as_dir in $PATH
  9923. do
  9924. IFS=$as_save_IFS
  9925. test -z "$as_dir" && as_dir=.
  9926. for ac_exec_ext in '' $ac_executable_extensions; do
  9927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9928. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9930. break 2
  9931. fi
  9932. done
  9933. done
  9934. IFS=$as_save_IFS
  9935. fi
  9936. fi
  9937. CC=$ac_cv_prog_CC
  9938. if test -n "$CC"; then
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9940. $as_echo "$CC" >&6; }
  9941. else
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9943. $as_echo "no" >&6; }
  9944. fi
  9945. fi
  9946. fi
  9947. if test -z "$CC"; then
  9948. # Extract the first word of "cc", so it can be a program name with args.
  9949. set dummy cc; ac_word=$2
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9951. $as_echo_n "checking for $ac_word... " >&6; }
  9952. if ${ac_cv_prog_CC+:} false; then :
  9953. $as_echo_n "(cached) " >&6
  9954. else
  9955. if test -n "$CC"; then
  9956. ac_cv_prog_CC="$CC" # Let the user override the test.
  9957. else
  9958. ac_prog_rejected=no
  9959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9960. for as_dir in $PATH
  9961. do
  9962. IFS=$as_save_IFS
  9963. test -z "$as_dir" && as_dir=.
  9964. for ac_exec_ext in '' $ac_executable_extensions; do
  9965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9966. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9967. ac_prog_rejected=yes
  9968. continue
  9969. fi
  9970. ac_cv_prog_CC="cc"
  9971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9972. break 2
  9973. fi
  9974. done
  9975. done
  9976. IFS=$as_save_IFS
  9977. if test $ac_prog_rejected = yes; then
  9978. # We found a bogon in the path, so make sure we never use it.
  9979. set dummy $ac_cv_prog_CC
  9980. shift
  9981. if test $# != 0; then
  9982. # We chose a different compiler from the bogus one.
  9983. # However, it has the same basename, so the bogon will be chosen
  9984. # first if we set CC to just the basename; use the full file name.
  9985. shift
  9986. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9987. fi
  9988. fi
  9989. fi
  9990. fi
  9991. CC=$ac_cv_prog_CC
  9992. if test -n "$CC"; then
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9994. $as_echo "$CC" >&6; }
  9995. else
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9997. $as_echo "no" >&6; }
  9998. fi
  9999. fi
  10000. if test -z "$CC"; then
  10001. if test -n "$ac_tool_prefix"; then
  10002. for ac_prog in cl.exe
  10003. do
  10004. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10005. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10007. $as_echo_n "checking for $ac_word... " >&6; }
  10008. if ${ac_cv_prog_CC+:} false; then :
  10009. $as_echo_n "(cached) " >&6
  10010. else
  10011. if test -n "$CC"; then
  10012. ac_cv_prog_CC="$CC" # Let the user override the test.
  10013. else
  10014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10015. for as_dir in $PATH
  10016. do
  10017. IFS=$as_save_IFS
  10018. test -z "$as_dir" && as_dir=.
  10019. for ac_exec_ext in '' $ac_executable_extensions; do
  10020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10021. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10023. break 2
  10024. fi
  10025. done
  10026. done
  10027. IFS=$as_save_IFS
  10028. fi
  10029. fi
  10030. CC=$ac_cv_prog_CC
  10031. if test -n "$CC"; then
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10033. $as_echo "$CC" >&6; }
  10034. else
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10036. $as_echo "no" >&6; }
  10037. fi
  10038. test -n "$CC" && break
  10039. done
  10040. fi
  10041. if test -z "$CC"; then
  10042. ac_ct_CC=$CC
  10043. for ac_prog in cl.exe
  10044. do
  10045. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10046. set dummy $ac_prog; ac_word=$2
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10048. $as_echo_n "checking for $ac_word... " >&6; }
  10049. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10050. $as_echo_n "(cached) " >&6
  10051. else
  10052. if test -n "$ac_ct_CC"; then
  10053. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10054. else
  10055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10056. for as_dir in $PATH
  10057. do
  10058. IFS=$as_save_IFS
  10059. test -z "$as_dir" && as_dir=.
  10060. for ac_exec_ext in '' $ac_executable_extensions; do
  10061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10062. ac_cv_prog_ac_ct_CC="$ac_prog"
  10063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10064. break 2
  10065. fi
  10066. done
  10067. done
  10068. IFS=$as_save_IFS
  10069. fi
  10070. fi
  10071. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10072. if test -n "$ac_ct_CC"; then
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10074. $as_echo "$ac_ct_CC" >&6; }
  10075. else
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10077. $as_echo "no" >&6; }
  10078. fi
  10079. test -n "$ac_ct_CC" && break
  10080. done
  10081. if test "x$ac_ct_CC" = x; then
  10082. CC=""
  10083. else
  10084. case $cross_compiling:$ac_tool_warned in
  10085. yes:)
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10087. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10088. ac_tool_warned=yes ;;
  10089. esac
  10090. CC=$ac_ct_CC
  10091. fi
  10092. fi
  10093. fi
  10094. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10095. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10096. as_fn_error $? "no acceptable C compiler found in \$PATH
  10097. See \`config.log' for more details" "$LINENO" 5; }
  10098. # Provide some information about the compiler.
  10099. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10100. set X $ac_compile
  10101. ac_compiler=$2
  10102. for ac_option in --version -v -V -qversion; do
  10103. { { ac_try="$ac_compiler $ac_option >&5"
  10104. case "(($ac_try" in
  10105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10106. *) ac_try_echo=$ac_try;;
  10107. esac
  10108. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10109. $as_echo "$ac_try_echo"; } >&5
  10110. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10111. ac_status=$?
  10112. if test -s conftest.err; then
  10113. sed '10a\
  10114. ... rest of stderr output deleted ...
  10115. 10q' conftest.err >conftest.er1
  10116. cat conftest.er1 >&5
  10117. fi
  10118. rm -f conftest.er1 conftest.err
  10119. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10120. test $ac_status = 0; }
  10121. done
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10123. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10124. if ${ac_cv_c_compiler_gnu+:} false; then :
  10125. $as_echo_n "(cached) " >&6
  10126. else
  10127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10128. /* end confdefs.h. */
  10129. int
  10130. main ()
  10131. {
  10132. #ifndef __GNUC__
  10133. choke me
  10134. #endif
  10135. ;
  10136. return 0;
  10137. }
  10138. _ACEOF
  10139. if ac_fn_c_try_compile "$LINENO"; then :
  10140. ac_compiler_gnu=yes
  10141. else
  10142. ac_compiler_gnu=no
  10143. fi
  10144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10145. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10146. fi
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10148. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10149. if test $ac_compiler_gnu = yes; then
  10150. GCC=yes
  10151. else
  10152. GCC=
  10153. fi
  10154. ac_test_CFLAGS=${CFLAGS+set}
  10155. ac_save_CFLAGS=$CFLAGS
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10157. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10158. if ${ac_cv_prog_cc_g+:} false; then :
  10159. $as_echo_n "(cached) " >&6
  10160. else
  10161. ac_save_c_werror_flag=$ac_c_werror_flag
  10162. ac_c_werror_flag=yes
  10163. ac_cv_prog_cc_g=no
  10164. CFLAGS="-g"
  10165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10166. /* end confdefs.h. */
  10167. int
  10168. main ()
  10169. {
  10170. ;
  10171. return 0;
  10172. }
  10173. _ACEOF
  10174. if ac_fn_c_try_compile "$LINENO"; then :
  10175. ac_cv_prog_cc_g=yes
  10176. else
  10177. CFLAGS=""
  10178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10179. /* end confdefs.h. */
  10180. int
  10181. main ()
  10182. {
  10183. ;
  10184. return 0;
  10185. }
  10186. _ACEOF
  10187. if ac_fn_c_try_compile "$LINENO"; then :
  10188. else
  10189. ac_c_werror_flag=$ac_save_c_werror_flag
  10190. CFLAGS="-g"
  10191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10192. /* end confdefs.h. */
  10193. int
  10194. main ()
  10195. {
  10196. ;
  10197. return 0;
  10198. }
  10199. _ACEOF
  10200. if ac_fn_c_try_compile "$LINENO"; then :
  10201. ac_cv_prog_cc_g=yes
  10202. fi
  10203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10204. fi
  10205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10206. fi
  10207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10208. ac_c_werror_flag=$ac_save_c_werror_flag
  10209. fi
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10211. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10212. if test "$ac_test_CFLAGS" = set; then
  10213. CFLAGS=$ac_save_CFLAGS
  10214. elif test $ac_cv_prog_cc_g = yes; then
  10215. if test "$GCC" = yes; then
  10216. CFLAGS="-g -O2"
  10217. else
  10218. CFLAGS="-g"
  10219. fi
  10220. else
  10221. if test "$GCC" = yes; then
  10222. CFLAGS="-O2"
  10223. else
  10224. CFLAGS=
  10225. fi
  10226. fi
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10228. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10229. if ${ac_cv_prog_cc_c89+:} false; then :
  10230. $as_echo_n "(cached) " >&6
  10231. else
  10232. ac_cv_prog_cc_c89=no
  10233. ac_save_CC=$CC
  10234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10235. /* end confdefs.h. */
  10236. #include <stdarg.h>
  10237. #include <stdio.h>
  10238. struct stat;
  10239. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10240. struct buf { int x; };
  10241. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10242. static char *e (p, i)
  10243. char **p;
  10244. int i;
  10245. {
  10246. return p[i];
  10247. }
  10248. static char *f (char * (*g) (char **, int), char **p, ...)
  10249. {
  10250. char *s;
  10251. va_list v;
  10252. va_start (v,p);
  10253. s = g (p, va_arg (v,int));
  10254. va_end (v);
  10255. return s;
  10256. }
  10257. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10258. function prototypes and stuff, but not '\xHH' hex character constants.
  10259. These don't provoke an error unfortunately, instead are silently treated
  10260. as 'x'. The following induces an error, until -std is added to get
  10261. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10262. array size at least. It's necessary to write '\x00'==0 to get something
  10263. that's true only with -std. */
  10264. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10265. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10266. inside strings and character constants. */
  10267. #define FOO(x) 'x'
  10268. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10269. int test (int i, double x);
  10270. struct s1 {int (*f) (int a);};
  10271. struct s2 {int (*f) (double a);};
  10272. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10273. int argc;
  10274. char **argv;
  10275. int
  10276. main ()
  10277. {
  10278. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10279. ;
  10280. return 0;
  10281. }
  10282. _ACEOF
  10283. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10284. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10285. do
  10286. CC="$ac_save_CC $ac_arg"
  10287. if ac_fn_c_try_compile "$LINENO"; then :
  10288. ac_cv_prog_cc_c89=$ac_arg
  10289. fi
  10290. rm -f core conftest.err conftest.$ac_objext
  10291. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10292. done
  10293. rm -f conftest.$ac_ext
  10294. CC=$ac_save_CC
  10295. fi
  10296. # AC_CACHE_VAL
  10297. case "x$ac_cv_prog_cc_c89" in
  10298. x)
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10300. $as_echo "none needed" >&6; } ;;
  10301. xno)
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10303. $as_echo "unsupported" >&6; } ;;
  10304. *)
  10305. CC="$CC $ac_cv_prog_cc_c89"
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10307. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10308. esac
  10309. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10310. fi
  10311. ac_ext=c
  10312. ac_cpp='$CPP $CPPFLAGS'
  10313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10316. ac_ext=cpp
  10317. ac_cpp='$CXXCPP $CPPFLAGS'
  10318. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10319. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10320. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10321. if test -z "$CXX"; then
  10322. if test -n "$CCC"; then
  10323. CXX=$CCC
  10324. else
  10325. if test -n "$ac_tool_prefix"; then
  10326. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10327. do
  10328. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10329. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10331. $as_echo_n "checking for $ac_word... " >&6; }
  10332. if ${ac_cv_prog_CXX+:} false; then :
  10333. $as_echo_n "(cached) " >&6
  10334. else
  10335. if test -n "$CXX"; then
  10336. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10337. else
  10338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10339. for as_dir in $PATH
  10340. do
  10341. IFS=$as_save_IFS
  10342. test -z "$as_dir" && as_dir=.
  10343. for ac_exec_ext in '' $ac_executable_extensions; do
  10344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10345. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10347. break 2
  10348. fi
  10349. done
  10350. done
  10351. IFS=$as_save_IFS
  10352. fi
  10353. fi
  10354. CXX=$ac_cv_prog_CXX
  10355. if test -n "$CXX"; then
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10357. $as_echo "$CXX" >&6; }
  10358. else
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10360. $as_echo "no" >&6; }
  10361. fi
  10362. test -n "$CXX" && break
  10363. done
  10364. fi
  10365. if test -z "$CXX"; then
  10366. ac_ct_CXX=$CXX
  10367. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10368. do
  10369. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10370. set dummy $ac_prog; ac_word=$2
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10372. $as_echo_n "checking for $ac_word... " >&6; }
  10373. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10374. $as_echo_n "(cached) " >&6
  10375. else
  10376. if test -n "$ac_ct_CXX"; then
  10377. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10378. else
  10379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10380. for as_dir in $PATH
  10381. do
  10382. IFS=$as_save_IFS
  10383. test -z "$as_dir" && as_dir=.
  10384. for ac_exec_ext in '' $ac_executable_extensions; do
  10385. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10386. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10388. break 2
  10389. fi
  10390. done
  10391. done
  10392. IFS=$as_save_IFS
  10393. fi
  10394. fi
  10395. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10396. if test -n "$ac_ct_CXX"; then
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10398. $as_echo "$ac_ct_CXX" >&6; }
  10399. else
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10401. $as_echo "no" >&6; }
  10402. fi
  10403. test -n "$ac_ct_CXX" && break
  10404. done
  10405. if test "x$ac_ct_CXX" = x; then
  10406. CXX="g++"
  10407. else
  10408. case $cross_compiling:$ac_tool_warned in
  10409. yes:)
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10411. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10412. ac_tool_warned=yes ;;
  10413. esac
  10414. CXX=$ac_ct_CXX
  10415. fi
  10416. fi
  10417. fi
  10418. fi
  10419. # Provide some information about the compiler.
  10420. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10421. set X $ac_compile
  10422. ac_compiler=$2
  10423. for ac_option in --version -v -V -qversion; do
  10424. { { ac_try="$ac_compiler $ac_option >&5"
  10425. case "(($ac_try" in
  10426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10427. *) ac_try_echo=$ac_try;;
  10428. esac
  10429. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10430. $as_echo "$ac_try_echo"; } >&5
  10431. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10432. ac_status=$?
  10433. if test -s conftest.err; then
  10434. sed '10a\
  10435. ... rest of stderr output deleted ...
  10436. 10q' conftest.err >conftest.er1
  10437. cat conftest.er1 >&5
  10438. fi
  10439. rm -f conftest.er1 conftest.err
  10440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10441. test $ac_status = 0; }
  10442. done
  10443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10444. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10445. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10446. $as_echo_n "(cached) " >&6
  10447. else
  10448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10449. /* end confdefs.h. */
  10450. int
  10451. main ()
  10452. {
  10453. #ifndef __GNUC__
  10454. choke me
  10455. #endif
  10456. ;
  10457. return 0;
  10458. }
  10459. _ACEOF
  10460. if ac_fn_cxx_try_compile "$LINENO"; then :
  10461. ac_compiler_gnu=yes
  10462. else
  10463. ac_compiler_gnu=no
  10464. fi
  10465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10466. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10467. fi
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10469. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10470. if test $ac_compiler_gnu = yes; then
  10471. GXX=yes
  10472. else
  10473. GXX=
  10474. fi
  10475. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10476. ac_save_CXXFLAGS=$CXXFLAGS
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10478. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10479. if ${ac_cv_prog_cxx_g+:} false; then :
  10480. $as_echo_n "(cached) " >&6
  10481. else
  10482. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10483. ac_cxx_werror_flag=yes
  10484. ac_cv_prog_cxx_g=no
  10485. CXXFLAGS="-g"
  10486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10487. /* end confdefs.h. */
  10488. int
  10489. main ()
  10490. {
  10491. ;
  10492. return 0;
  10493. }
  10494. _ACEOF
  10495. if ac_fn_cxx_try_compile "$LINENO"; then :
  10496. ac_cv_prog_cxx_g=yes
  10497. else
  10498. CXXFLAGS=""
  10499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10500. /* end confdefs.h. */
  10501. int
  10502. main ()
  10503. {
  10504. ;
  10505. return 0;
  10506. }
  10507. _ACEOF
  10508. if ac_fn_cxx_try_compile "$LINENO"; then :
  10509. else
  10510. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10511. CXXFLAGS="-g"
  10512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10513. /* end confdefs.h. */
  10514. int
  10515. main ()
  10516. {
  10517. ;
  10518. return 0;
  10519. }
  10520. _ACEOF
  10521. if ac_fn_cxx_try_compile "$LINENO"; then :
  10522. ac_cv_prog_cxx_g=yes
  10523. fi
  10524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10525. fi
  10526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10527. fi
  10528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10529. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10530. fi
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10532. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10533. if test "$ac_test_CXXFLAGS" = set; then
  10534. CXXFLAGS=$ac_save_CXXFLAGS
  10535. elif test $ac_cv_prog_cxx_g = yes; then
  10536. if test "$GXX" = yes; then
  10537. CXXFLAGS="-g -O2"
  10538. else
  10539. CXXFLAGS="-g"
  10540. fi
  10541. else
  10542. if test "$GXX" = yes; then
  10543. CXXFLAGS="-O2"
  10544. else
  10545. CXXFLAGS=
  10546. fi
  10547. fi
  10548. ac_ext=c
  10549. ac_cpp='$CPP $CPPFLAGS'
  10550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10553. func_stripname_cnf ()
  10554. {
  10555. case ${2} in
  10556. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10557. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10558. esac
  10559. } # func_stripname_cnf
  10560. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10561. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10562. (test "X$CXX" != "Xg++"))) ; then
  10563. ac_ext=cpp
  10564. ac_cpp='$CXXCPP $CPPFLAGS'
  10565. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10566. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10567. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10569. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10570. if test -z "$CXXCPP"; then
  10571. if ${ac_cv_prog_CXXCPP+:} false; then :
  10572. $as_echo_n "(cached) " >&6
  10573. else
  10574. # Double quotes because CXXCPP needs to be expanded
  10575. for CXXCPP in "$CXX -E" "/lib/cpp"
  10576. do
  10577. ac_preproc_ok=false
  10578. for ac_cxx_preproc_warn_flag in '' yes
  10579. do
  10580. # Use a header file that comes with gcc, so configuring glibc
  10581. # with a fresh cross-compiler works.
  10582. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10583. # <limits.h> exists even on freestanding compilers.
  10584. # On the NeXT, cc -E runs the code through the compiler's parser,
  10585. # not just through cpp. "Syntax error" is here to catch this case.
  10586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10587. /* end confdefs.h. */
  10588. #ifdef __STDC__
  10589. # include <limits.h>
  10590. #else
  10591. # include <assert.h>
  10592. #endif
  10593. Syntax error
  10594. _ACEOF
  10595. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10596. else
  10597. # Broken: fails on valid input.
  10598. continue
  10599. fi
  10600. rm -f conftest.err conftest.i conftest.$ac_ext
  10601. # OK, works on sane cases. Now check whether nonexistent headers
  10602. # can be detected and how.
  10603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10604. /* end confdefs.h. */
  10605. #include <ac_nonexistent.h>
  10606. _ACEOF
  10607. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10608. # Broken: success on invalid input.
  10609. continue
  10610. else
  10611. # Passes both tests.
  10612. ac_preproc_ok=:
  10613. break
  10614. fi
  10615. rm -f conftest.err conftest.i conftest.$ac_ext
  10616. done
  10617. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10618. rm -f conftest.i conftest.err conftest.$ac_ext
  10619. if $ac_preproc_ok; then :
  10620. break
  10621. fi
  10622. done
  10623. ac_cv_prog_CXXCPP=$CXXCPP
  10624. fi
  10625. CXXCPP=$ac_cv_prog_CXXCPP
  10626. else
  10627. ac_cv_prog_CXXCPP=$CXXCPP
  10628. fi
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10630. $as_echo "$CXXCPP" >&6; }
  10631. ac_preproc_ok=false
  10632. for ac_cxx_preproc_warn_flag in '' yes
  10633. do
  10634. # Use a header file that comes with gcc, so configuring glibc
  10635. # with a fresh cross-compiler works.
  10636. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10637. # <limits.h> exists even on freestanding compilers.
  10638. # On the NeXT, cc -E runs the code through the compiler's parser,
  10639. # not just through cpp. "Syntax error" is here to catch this case.
  10640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10641. /* end confdefs.h. */
  10642. #ifdef __STDC__
  10643. # include <limits.h>
  10644. #else
  10645. # include <assert.h>
  10646. #endif
  10647. Syntax error
  10648. _ACEOF
  10649. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10650. else
  10651. # Broken: fails on valid input.
  10652. continue
  10653. fi
  10654. rm -f conftest.err conftest.i conftest.$ac_ext
  10655. # OK, works on sane cases. Now check whether nonexistent headers
  10656. # can be detected and how.
  10657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10658. /* end confdefs.h. */
  10659. #include <ac_nonexistent.h>
  10660. _ACEOF
  10661. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10662. # Broken: success on invalid input.
  10663. continue
  10664. else
  10665. # Passes both tests.
  10666. ac_preproc_ok=:
  10667. break
  10668. fi
  10669. rm -f conftest.err conftest.i conftest.$ac_ext
  10670. done
  10671. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10672. rm -f conftest.i conftest.err conftest.$ac_ext
  10673. if $ac_preproc_ok; then :
  10674. else
  10675. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10676. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10677. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10678. See \`config.log' for more details" "$LINENO" 5; }
  10679. fi
  10680. ac_ext=c
  10681. ac_cpp='$CPP $CPPFLAGS'
  10682. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10683. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10684. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10685. else
  10686. _lt_caught_CXX_error=yes
  10687. fi
  10688. ac_ext=cpp
  10689. ac_cpp='$CXXCPP $CPPFLAGS'
  10690. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10691. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10692. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10693. archive_cmds_need_lc_CXX=no
  10694. allow_undefined_flag_CXX=
  10695. always_export_symbols_CXX=no
  10696. archive_expsym_cmds_CXX=
  10697. compiler_needs_object_CXX=no
  10698. export_dynamic_flag_spec_CXX=
  10699. hardcode_direct_CXX=no
  10700. hardcode_direct_absolute_CXX=no
  10701. hardcode_libdir_flag_spec_CXX=
  10702. hardcode_libdir_separator_CXX=
  10703. hardcode_minus_L_CXX=no
  10704. hardcode_shlibpath_var_CXX=unsupported
  10705. hardcode_automatic_CXX=no
  10706. inherit_rpath_CXX=no
  10707. module_cmds_CXX=
  10708. module_expsym_cmds_CXX=
  10709. link_all_deplibs_CXX=unknown
  10710. old_archive_cmds_CXX=$old_archive_cmds
  10711. reload_flag_CXX=$reload_flag
  10712. reload_cmds_CXX=$reload_cmds
  10713. no_undefined_flag_CXX=
  10714. whole_archive_flag_spec_CXX=
  10715. enable_shared_with_static_runtimes_CXX=no
  10716. # Source file extension for C++ test sources.
  10717. ac_ext=cpp
  10718. # Object file extension for compiled C++ test sources.
  10719. objext=o
  10720. objext_CXX=$objext
  10721. # No sense in running all these tests if we already determined that
  10722. # the CXX compiler isn't working. Some variables (like enable_shared)
  10723. # are currently assumed to apply to all compilers on this platform,
  10724. # and will be corrupted by setting them based on a non-working compiler.
  10725. if test "$_lt_caught_CXX_error" != yes; then
  10726. # Code to be used in simple compile tests
  10727. lt_simple_compile_test_code="int some_variable = 0;"
  10728. # Code to be used in simple link tests
  10729. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10730. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10731. # If no C compiler was specified, use CC.
  10732. LTCC=${LTCC-"$CC"}
  10733. # If no C compiler flags were specified, use CFLAGS.
  10734. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10735. # Allow CC to be a program name with arguments.
  10736. compiler=$CC
  10737. # save warnings/boilerplate of simple test code
  10738. ac_outfile=conftest.$ac_objext
  10739. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10740. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10741. _lt_compiler_boilerplate=`cat conftest.err`
  10742. $RM conftest*
  10743. ac_outfile=conftest.$ac_objext
  10744. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10745. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10746. _lt_linker_boilerplate=`cat conftest.err`
  10747. $RM -r conftest*
  10748. # Allow CC to be a program name with arguments.
  10749. lt_save_CC=$CC
  10750. lt_save_CFLAGS=$CFLAGS
  10751. lt_save_LD=$LD
  10752. lt_save_GCC=$GCC
  10753. GCC=$GXX
  10754. lt_save_with_gnu_ld=$with_gnu_ld
  10755. lt_save_path_LD=$lt_cv_path_LD
  10756. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10757. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10758. else
  10759. $as_unset lt_cv_prog_gnu_ld
  10760. fi
  10761. if test -n "${lt_cv_path_LDCXX+set}"; then
  10762. lt_cv_path_LD=$lt_cv_path_LDCXX
  10763. else
  10764. $as_unset lt_cv_path_LD
  10765. fi
  10766. test -z "${LDCXX+set}" || LD=$LDCXX
  10767. CC=${CXX-"c++"}
  10768. CFLAGS=$CXXFLAGS
  10769. compiler=$CC
  10770. compiler_CXX=$CC
  10771. for cc_temp in $compiler""; do
  10772. case $cc_temp in
  10773. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10774. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10775. \-*) ;;
  10776. *) break;;
  10777. esac
  10778. done
  10779. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10780. if test -n "$compiler"; then
  10781. # We don't want -fno-exception when compiling C++ code, so set the
  10782. # no_builtin_flag separately
  10783. if test "$GXX" = yes; then
  10784. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10785. else
  10786. lt_prog_compiler_no_builtin_flag_CXX=
  10787. fi
  10788. if test "$GXX" = yes; then
  10789. # Set up default GNU C++ configuration
  10790. # Check whether --with-gnu-ld was given.
  10791. if test "${with_gnu_ld+set}" = set; then :
  10792. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10793. else
  10794. with_gnu_ld=no
  10795. fi
  10796. ac_prog=ld
  10797. if test "$GCC" = yes; then
  10798. # Check if gcc -print-prog-name=ld gives a path.
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10800. $as_echo_n "checking for ld used by $CC... " >&6; }
  10801. case $host in
  10802. *-*-mingw*)
  10803. # gcc leaves a trailing carriage return which upsets mingw
  10804. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10805. *)
  10806. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10807. esac
  10808. case $ac_prog in
  10809. # Accept absolute paths.
  10810. [\\/]* | ?:[\\/]*)
  10811. re_direlt='/[^/][^/]*/\.\./'
  10812. # Canonicalize the pathname of ld
  10813. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10814. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10815. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10816. done
  10817. test -z "$LD" && LD="$ac_prog"
  10818. ;;
  10819. "")
  10820. # If it fails, then pretend we aren't using GCC.
  10821. ac_prog=ld
  10822. ;;
  10823. *)
  10824. # If it is relative, then search for the first ld in PATH.
  10825. with_gnu_ld=unknown
  10826. ;;
  10827. esac
  10828. elif test "$with_gnu_ld" = yes; then
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10830. $as_echo_n "checking for GNU ld... " >&6; }
  10831. else
  10832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10833. $as_echo_n "checking for non-GNU ld... " >&6; }
  10834. fi
  10835. if ${lt_cv_path_LD+:} false; then :
  10836. $as_echo_n "(cached) " >&6
  10837. else
  10838. if test -z "$LD"; then
  10839. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10840. for ac_dir in $PATH; do
  10841. IFS="$lt_save_ifs"
  10842. test -z "$ac_dir" && ac_dir=.
  10843. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10844. lt_cv_path_LD="$ac_dir/$ac_prog"
  10845. # Check to see if the program is GNU ld. I'd rather use --version,
  10846. # but apparently some variants of GNU ld only accept -v.
  10847. # Break only if it was the GNU/non-GNU ld that we prefer.
  10848. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10849. *GNU* | *'with BFD'*)
  10850. test "$with_gnu_ld" != no && break
  10851. ;;
  10852. *)
  10853. test "$with_gnu_ld" != yes && break
  10854. ;;
  10855. esac
  10856. fi
  10857. done
  10858. IFS="$lt_save_ifs"
  10859. else
  10860. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10861. fi
  10862. fi
  10863. LD="$lt_cv_path_LD"
  10864. if test -n "$LD"; then
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10866. $as_echo "$LD" >&6; }
  10867. else
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10869. $as_echo "no" >&6; }
  10870. fi
  10871. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10873. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10874. if ${lt_cv_prog_gnu_ld+:} false; then :
  10875. $as_echo_n "(cached) " >&6
  10876. else
  10877. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10878. case `$LD -v 2>&1 </dev/null` in
  10879. *GNU* | *'with BFD'*)
  10880. lt_cv_prog_gnu_ld=yes
  10881. ;;
  10882. *)
  10883. lt_cv_prog_gnu_ld=no
  10884. ;;
  10885. esac
  10886. fi
  10887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10888. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10889. with_gnu_ld=$lt_cv_prog_gnu_ld
  10890. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10891. # archiving commands below assume that GNU ld is being used.
  10892. if test "$with_gnu_ld" = yes; then
  10893. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10894. 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'
  10895. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10896. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10897. # If archive_cmds runs LD, not CC, wlarc should be empty
  10898. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10899. # investigate it a little bit more. (MM)
  10900. wlarc='${wl}'
  10901. # ancient GNU ld didn't support --whole-archive et. al.
  10902. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10903. $GREP 'no-whole-archive' > /dev/null; then
  10904. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10905. else
  10906. whole_archive_flag_spec_CXX=
  10907. fi
  10908. else
  10909. with_gnu_ld=no
  10910. wlarc=
  10911. # A generic and very simple default shared library creation
  10912. # command for GNU C++ for the case where it uses the native
  10913. # linker, instead of GNU ld. If possible, this setting should
  10914. # overridden to take advantage of the native linker features on
  10915. # the platform it is being used on.
  10916. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10917. fi
  10918. # Commands to make compiler produce verbose output that lists
  10919. # what "hidden" libraries, object files and flags are used when
  10920. # linking a shared library.
  10921. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10922. else
  10923. GXX=no
  10924. with_gnu_ld=no
  10925. wlarc=
  10926. fi
  10927. # PORTME: fill in a description of your system's C++ link characteristics
  10928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10929. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10930. ld_shlibs_CXX=yes
  10931. case $host_os in
  10932. aix3*)
  10933. # FIXME: insert proper C++ library support
  10934. ld_shlibs_CXX=no
  10935. ;;
  10936. aix[4-9]*)
  10937. if test "$host_cpu" = ia64; then
  10938. # On IA64, the linker does run time linking by default, so we don't
  10939. # have to do anything special.
  10940. aix_use_runtimelinking=no
  10941. exp_sym_flag='-Bexport'
  10942. no_entry_flag=""
  10943. else
  10944. aix_use_runtimelinking=no
  10945. # Test if we are trying to use run time linking or normal
  10946. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10947. # need to do runtime linking.
  10948. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10949. for ld_flag in $LDFLAGS; do
  10950. case $ld_flag in
  10951. *-brtl*)
  10952. aix_use_runtimelinking=yes
  10953. break
  10954. ;;
  10955. esac
  10956. done
  10957. ;;
  10958. esac
  10959. exp_sym_flag='-bexport'
  10960. no_entry_flag='-bnoentry'
  10961. fi
  10962. # When large executables or shared objects are built, AIX ld can
  10963. # have problems creating the table of contents. If linking a library
  10964. # or program results in "error TOC overflow" add -mminimal-toc to
  10965. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10966. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10967. archive_cmds_CXX=''
  10968. hardcode_direct_CXX=yes
  10969. hardcode_direct_absolute_CXX=yes
  10970. hardcode_libdir_separator_CXX=':'
  10971. link_all_deplibs_CXX=yes
  10972. file_list_spec_CXX='${wl}-f,'
  10973. if test "$GXX" = yes; then
  10974. case $host_os in aix4.[012]|aix4.[012].*)
  10975. # We only want to do this on AIX 4.2 and lower, the check
  10976. # below for broken collect2 doesn't work under 4.3+
  10977. collect2name=`${CC} -print-prog-name=collect2`
  10978. if test -f "$collect2name" &&
  10979. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10980. then
  10981. # We have reworked collect2
  10982. :
  10983. else
  10984. # We have old collect2
  10985. hardcode_direct_CXX=unsupported
  10986. # It fails to find uninstalled libraries when the uninstalled
  10987. # path is not listed in the libpath. Setting hardcode_minus_L
  10988. # to unsupported forces relinking
  10989. hardcode_minus_L_CXX=yes
  10990. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10991. hardcode_libdir_separator_CXX=
  10992. fi
  10993. esac
  10994. shared_flag='-shared'
  10995. if test "$aix_use_runtimelinking" = yes; then
  10996. shared_flag="$shared_flag "'${wl}-G'
  10997. fi
  10998. else
  10999. # not using gcc
  11000. if test "$host_cpu" = ia64; then
  11001. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11002. # chokes on -Wl,-G. The following line is correct:
  11003. shared_flag='-G'
  11004. else
  11005. if test "$aix_use_runtimelinking" = yes; then
  11006. shared_flag='${wl}-G'
  11007. else
  11008. shared_flag='${wl}-bM:SRE'
  11009. fi
  11010. fi
  11011. fi
  11012. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11013. # It seems that -bexpall does not export symbols beginning with
  11014. # underscore (_), so it is better to generate a list of symbols to
  11015. # export.
  11016. always_export_symbols_CXX=yes
  11017. if test "$aix_use_runtimelinking" = yes; then
  11018. # Warning - without using the other runtime loading flags (-brtl),
  11019. # -berok will link without error, but may produce a broken library.
  11020. allow_undefined_flag_CXX='-berok'
  11021. # Determine the default libpath from the value encoded in an empty
  11022. # executable.
  11023. if test "${lt_cv_aix_libpath+set}" = set; then
  11024. aix_libpath=$lt_cv_aix_libpath
  11025. else
  11026. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11027. $as_echo_n "(cached) " >&6
  11028. else
  11029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11030. /* end confdefs.h. */
  11031. int
  11032. main ()
  11033. {
  11034. ;
  11035. return 0;
  11036. }
  11037. _ACEOF
  11038. if ac_fn_cxx_try_link "$LINENO"; then :
  11039. lt_aix_libpath_sed='
  11040. /Import File Strings/,/^$/ {
  11041. /^0/ {
  11042. s/^0 *\([^ ]*\) *$/\1/
  11043. p
  11044. }
  11045. }'
  11046. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11047. # Check for a 64-bit object if we didn't find anything.
  11048. if test -z "$lt_cv_aix_libpath__CXX"; then
  11049. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11050. fi
  11051. fi
  11052. rm -f core conftest.err conftest.$ac_objext \
  11053. conftest$ac_exeext conftest.$ac_ext
  11054. if test -z "$lt_cv_aix_libpath__CXX"; then
  11055. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11056. fi
  11057. fi
  11058. aix_libpath=$lt_cv_aix_libpath__CXX
  11059. fi
  11060. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11061. 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"
  11062. else
  11063. if test "$host_cpu" = ia64; then
  11064. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11065. allow_undefined_flag_CXX="-z nodefs"
  11066. 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"
  11067. else
  11068. # Determine the default libpath from the value encoded in an
  11069. # empty executable.
  11070. if test "${lt_cv_aix_libpath+set}" = set; then
  11071. aix_libpath=$lt_cv_aix_libpath
  11072. else
  11073. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11074. $as_echo_n "(cached) " >&6
  11075. else
  11076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11077. /* end confdefs.h. */
  11078. int
  11079. main ()
  11080. {
  11081. ;
  11082. return 0;
  11083. }
  11084. _ACEOF
  11085. if ac_fn_cxx_try_link "$LINENO"; then :
  11086. lt_aix_libpath_sed='
  11087. /Import File Strings/,/^$/ {
  11088. /^0/ {
  11089. s/^0 *\([^ ]*\) *$/\1/
  11090. p
  11091. }
  11092. }'
  11093. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11094. # Check for a 64-bit object if we didn't find anything.
  11095. if test -z "$lt_cv_aix_libpath__CXX"; then
  11096. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11097. fi
  11098. fi
  11099. rm -f core conftest.err conftest.$ac_objext \
  11100. conftest$ac_exeext conftest.$ac_ext
  11101. if test -z "$lt_cv_aix_libpath__CXX"; then
  11102. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11103. fi
  11104. fi
  11105. aix_libpath=$lt_cv_aix_libpath__CXX
  11106. fi
  11107. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11108. # Warning - without using the other run time loading flags,
  11109. # -berok will link without error, but may produce a broken library.
  11110. no_undefined_flag_CXX=' ${wl}-bernotok'
  11111. allow_undefined_flag_CXX=' ${wl}-berok'
  11112. if test "$with_gnu_ld" = yes; then
  11113. # We only use this code for GNU lds that support --whole-archive.
  11114. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11115. else
  11116. # Exported symbols can be pulled into shared objects from archives
  11117. whole_archive_flag_spec_CXX='$convenience'
  11118. fi
  11119. archive_cmds_need_lc_CXX=yes
  11120. # This is similar to how AIX traditionally builds its shared
  11121. # libraries.
  11122. 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'
  11123. fi
  11124. fi
  11125. ;;
  11126. beos*)
  11127. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11128. allow_undefined_flag_CXX=unsupported
  11129. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11130. # support --undefined. This deserves some investigation. FIXME
  11131. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11132. else
  11133. ld_shlibs_CXX=no
  11134. fi
  11135. ;;
  11136. chorus*)
  11137. case $cc_basename in
  11138. *)
  11139. # FIXME: insert proper C++ library support
  11140. ld_shlibs_CXX=no
  11141. ;;
  11142. esac
  11143. ;;
  11144. cygwin* | mingw* | pw32* | cegcc*)
  11145. case $GXX,$cc_basename in
  11146. ,cl* | no,cl*)
  11147. # Native MSVC
  11148. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11149. # no search path for DLLs.
  11150. hardcode_libdir_flag_spec_CXX=' '
  11151. allow_undefined_flag_CXX=unsupported
  11152. always_export_symbols_CXX=yes
  11153. file_list_spec_CXX='@'
  11154. # Tell ltmain to make .lib files, not .a files.
  11155. libext=lib
  11156. # Tell ltmain to make .dll files, not .so files.
  11157. shrext_cmds=".dll"
  11158. # FIXME: Setting linknames here is a bad hack.
  11159. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11160. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11161. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11162. else
  11163. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11164. fi~
  11165. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11166. linknames='
  11167. # The linker will not automatically build a static lib if we build a DLL.
  11168. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11169. enable_shared_with_static_runtimes_CXX=yes
  11170. # Don't use ranlib
  11171. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11172. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11173. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11174. case $lt_outputfile in
  11175. *.exe|*.EXE) ;;
  11176. *)
  11177. lt_outputfile="$lt_outputfile.exe"
  11178. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11179. ;;
  11180. esac~
  11181. func_to_tool_file "$lt_outputfile"~
  11182. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11183. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11184. $RM "$lt_outputfile.manifest";
  11185. fi'
  11186. ;;
  11187. *)
  11188. # g++
  11189. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11190. # as there is no search path for DLLs.
  11191. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11192. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11193. allow_undefined_flag_CXX=unsupported
  11194. always_export_symbols_CXX=no
  11195. enable_shared_with_static_runtimes_CXX=yes
  11196. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11197. 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'
  11198. # If the export-symbols file already is a .def file (1st line
  11199. # is EXPORTS), use it as is; otherwise, prepend...
  11200. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11201. cp $export_symbols $output_objdir/$soname.def;
  11202. else
  11203. echo EXPORTS > $output_objdir/$soname.def;
  11204. cat $export_symbols >> $output_objdir/$soname.def;
  11205. fi~
  11206. $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'
  11207. else
  11208. ld_shlibs_CXX=no
  11209. fi
  11210. ;;
  11211. esac
  11212. ;;
  11213. darwin* | rhapsody*)
  11214. archive_cmds_need_lc_CXX=no
  11215. hardcode_direct_CXX=no
  11216. hardcode_automatic_CXX=yes
  11217. hardcode_shlibpath_var_CXX=unsupported
  11218. if test "$lt_cv_ld_force_load" = "yes"; then
  11219. 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\"`'
  11220. else
  11221. whole_archive_flag_spec_CXX=''
  11222. fi
  11223. link_all_deplibs_CXX=yes
  11224. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11225. case $cc_basename in
  11226. ifort*) _lt_dar_can_shared=yes ;;
  11227. *) _lt_dar_can_shared=$GCC ;;
  11228. esac
  11229. if test "$_lt_dar_can_shared" = "yes"; then
  11230. output_verbose_link_cmd=func_echo_all
  11231. 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}"
  11232. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11233. 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}"
  11234. 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}"
  11235. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11236. 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}"
  11237. 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}"
  11238. fi
  11239. else
  11240. ld_shlibs_CXX=no
  11241. fi
  11242. ;;
  11243. dgux*)
  11244. case $cc_basename in
  11245. ec++*)
  11246. # FIXME: insert proper C++ library support
  11247. ld_shlibs_CXX=no
  11248. ;;
  11249. ghcx*)
  11250. # Green Hills C++ Compiler
  11251. # FIXME: insert proper C++ library support
  11252. ld_shlibs_CXX=no
  11253. ;;
  11254. *)
  11255. # FIXME: insert proper C++ library support
  11256. ld_shlibs_CXX=no
  11257. ;;
  11258. esac
  11259. ;;
  11260. freebsd2.*)
  11261. # C++ shared libraries reported to be fairly broken before
  11262. # switch to ELF
  11263. ld_shlibs_CXX=no
  11264. ;;
  11265. freebsd-elf*)
  11266. archive_cmds_need_lc_CXX=no
  11267. ;;
  11268. freebsd* | dragonfly*)
  11269. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11270. # conventions
  11271. ld_shlibs_CXX=yes
  11272. ;;
  11273. gnu*)
  11274. ;;
  11275. haiku*)
  11276. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11277. link_all_deplibs_CXX=yes
  11278. ;;
  11279. hpux9*)
  11280. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11281. hardcode_libdir_separator_CXX=:
  11282. export_dynamic_flag_spec_CXX='${wl}-E'
  11283. hardcode_direct_CXX=yes
  11284. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11285. # but as the default
  11286. # location of the library.
  11287. case $cc_basename in
  11288. CC*)
  11289. # FIXME: insert proper C++ library support
  11290. ld_shlibs_CXX=no
  11291. ;;
  11292. aCC*)
  11293. 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'
  11294. # Commands to make compiler produce verbose output that lists
  11295. # what "hidden" libraries, object files and flags are used when
  11296. # linking a shared library.
  11297. #
  11298. # There doesn't appear to be a way to prevent this compiler from
  11299. # explicitly linking system object files so we need to strip them
  11300. # from the output so that they don't get included in the library
  11301. # dependencies.
  11302. 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"'
  11303. ;;
  11304. *)
  11305. if test "$GXX" = yes; then
  11306. 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'
  11307. else
  11308. # FIXME: insert proper C++ library support
  11309. ld_shlibs_CXX=no
  11310. fi
  11311. ;;
  11312. esac
  11313. ;;
  11314. hpux10*|hpux11*)
  11315. if test $with_gnu_ld = no; then
  11316. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11317. hardcode_libdir_separator_CXX=:
  11318. case $host_cpu in
  11319. hppa*64*|ia64*)
  11320. ;;
  11321. *)
  11322. export_dynamic_flag_spec_CXX='${wl}-E'
  11323. ;;
  11324. esac
  11325. fi
  11326. case $host_cpu in
  11327. hppa*64*|ia64*)
  11328. hardcode_direct_CXX=no
  11329. hardcode_shlibpath_var_CXX=no
  11330. ;;
  11331. *)
  11332. hardcode_direct_CXX=yes
  11333. hardcode_direct_absolute_CXX=yes
  11334. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11335. # but as the default
  11336. # location of the library.
  11337. ;;
  11338. esac
  11339. case $cc_basename in
  11340. CC*)
  11341. # FIXME: insert proper C++ library support
  11342. ld_shlibs_CXX=no
  11343. ;;
  11344. aCC*)
  11345. case $host_cpu in
  11346. hppa*64*)
  11347. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11348. ;;
  11349. ia64*)
  11350. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11351. ;;
  11352. *)
  11353. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11354. ;;
  11355. esac
  11356. # Commands to make compiler produce verbose output that lists
  11357. # what "hidden" libraries, object files and flags are used when
  11358. # linking a shared library.
  11359. #
  11360. # There doesn't appear to be a way to prevent this compiler from
  11361. # explicitly linking system object files so we need to strip them
  11362. # from the output so that they don't get included in the library
  11363. # dependencies.
  11364. 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"'
  11365. ;;
  11366. *)
  11367. if test "$GXX" = yes; then
  11368. if test $with_gnu_ld = no; then
  11369. case $host_cpu in
  11370. hppa*64*)
  11371. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11372. ;;
  11373. ia64*)
  11374. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11375. ;;
  11376. *)
  11377. 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'
  11378. ;;
  11379. esac
  11380. fi
  11381. else
  11382. # FIXME: insert proper C++ library support
  11383. ld_shlibs_CXX=no
  11384. fi
  11385. ;;
  11386. esac
  11387. ;;
  11388. interix[3-9]*)
  11389. hardcode_direct_CXX=no
  11390. hardcode_shlibpath_var_CXX=no
  11391. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11392. export_dynamic_flag_spec_CXX='${wl}-E'
  11393. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11394. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11395. # default) and relocated if they conflict, which is a slow very memory
  11396. # consuming and fragmenting process. To avoid this, we pick a random,
  11397. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11398. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11399. 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'
  11400. 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'
  11401. ;;
  11402. irix5* | irix6*)
  11403. case $cc_basename in
  11404. CC*)
  11405. # SGI C++
  11406. 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'
  11407. # Archives containing C++ object files must be created using
  11408. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11409. # necessary to make sure instantiated templates are included
  11410. # in the archive.
  11411. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11412. ;;
  11413. *)
  11414. if test "$GXX" = yes; then
  11415. if test "$with_gnu_ld" = no; then
  11416. 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'
  11417. else
  11418. 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'
  11419. fi
  11420. fi
  11421. link_all_deplibs_CXX=yes
  11422. ;;
  11423. esac
  11424. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11425. hardcode_libdir_separator_CXX=:
  11426. inherit_rpath_CXX=yes
  11427. ;;
  11428. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11429. case $cc_basename in
  11430. KCC*)
  11431. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11432. # KCC will only create a shared library if the output file
  11433. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11434. # to its proper name (with version) after linking.
  11435. 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'
  11436. 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'
  11437. # Commands to make compiler produce verbose output that lists
  11438. # what "hidden" libraries, object files and flags are used when
  11439. # linking a shared library.
  11440. #
  11441. # There doesn't appear to be a way to prevent this compiler from
  11442. # explicitly linking system object files so we need to strip them
  11443. # from the output so that they don't get included in the library
  11444. # dependencies.
  11445. 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"'
  11446. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11447. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11448. # Archives containing C++ object files must be created using
  11449. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11450. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11451. ;;
  11452. icpc* | ecpc* )
  11453. # Intel C++
  11454. with_gnu_ld=yes
  11455. # version 8.0 and above of icpc choke on multiply defined symbols
  11456. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11457. # earlier do not add the objects themselves.
  11458. case `$CC -V 2>&1` in
  11459. *"Version 7."*)
  11460. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11461. 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'
  11462. ;;
  11463. *) # Version 8.0 or newer
  11464. tmp_idyn=
  11465. case $host_cpu in
  11466. ia64*) tmp_idyn=' -i_dynamic';;
  11467. esac
  11468. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11469. 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'
  11470. ;;
  11471. esac
  11472. archive_cmds_need_lc_CXX=no
  11473. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11474. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11475. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11476. ;;
  11477. pgCC* | pgcpp*)
  11478. # Portland Group C++ compiler
  11479. case `$CC -V` in
  11480. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11481. prelink_cmds_CXX='tpldir=Template.dir~
  11482. rm -rf $tpldir~
  11483. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11484. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11485. old_archive_cmds_CXX='tpldir=Template.dir~
  11486. rm -rf $tpldir~
  11487. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11488. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11489. $RANLIB $oldlib'
  11490. archive_cmds_CXX='tpldir=Template.dir~
  11491. rm -rf $tpldir~
  11492. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11493. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11494. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11495. rm -rf $tpldir~
  11496. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11497. $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'
  11498. ;;
  11499. *) # Version 6 and above use weak symbols
  11500. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11501. 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'
  11502. ;;
  11503. esac
  11504. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11505. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11506. 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'
  11507. ;;
  11508. cxx*)
  11509. # Compaq C++
  11510. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11511. 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'
  11512. runpath_var=LD_RUN_PATH
  11513. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11514. hardcode_libdir_separator_CXX=:
  11515. # Commands to make compiler produce verbose output that lists
  11516. # what "hidden" libraries, object files and flags are used when
  11517. # linking a shared library.
  11518. #
  11519. # There doesn't appear to be a way to prevent this compiler from
  11520. # explicitly linking system object files so we need to strip them
  11521. # from the output so that they don't get included in the library
  11522. # dependencies.
  11523. 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'
  11524. ;;
  11525. xl* | mpixl* | bgxl*)
  11526. # IBM XL 8.0 on PPC, with GNU ld
  11527. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11528. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11529. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11530. if test "x$supports_anon_versioning" = xyes; then
  11531. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11532. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11533. echo "local: *; };" >> $output_objdir/$libname.ver~
  11534. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11535. fi
  11536. ;;
  11537. *)
  11538. case `$CC -V 2>&1 | sed 5q` in
  11539. *Sun\ C*)
  11540. # Sun C++ 5.9
  11541. no_undefined_flag_CXX=' -zdefs'
  11542. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11543. 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'
  11544. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11545. 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'
  11546. compiler_needs_object_CXX=yes
  11547. # Not sure whether something based on
  11548. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11549. # would be better.
  11550. output_verbose_link_cmd='func_echo_all'
  11551. # Archives containing C++ object files must be created using
  11552. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11553. # necessary to make sure instantiated templates are included
  11554. # in the archive.
  11555. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11556. ;;
  11557. esac
  11558. ;;
  11559. esac
  11560. ;;
  11561. lynxos*)
  11562. # FIXME: insert proper C++ library support
  11563. ld_shlibs_CXX=no
  11564. ;;
  11565. m88k*)
  11566. # FIXME: insert proper C++ library support
  11567. ld_shlibs_CXX=no
  11568. ;;
  11569. mvs*)
  11570. case $cc_basename in
  11571. cxx*)
  11572. # FIXME: insert proper C++ library support
  11573. ld_shlibs_CXX=no
  11574. ;;
  11575. *)
  11576. # FIXME: insert proper C++ library support
  11577. ld_shlibs_CXX=no
  11578. ;;
  11579. esac
  11580. ;;
  11581. netbsd*)
  11582. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11583. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11584. wlarc=
  11585. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11586. hardcode_direct_CXX=yes
  11587. hardcode_shlibpath_var_CXX=no
  11588. fi
  11589. # Workaround some broken pre-1.5 toolchains
  11590. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11591. ;;
  11592. *nto* | *qnx*)
  11593. ld_shlibs_CXX=yes
  11594. ;;
  11595. openbsd2*)
  11596. # C++ shared libraries are fairly broken
  11597. ld_shlibs_CXX=no
  11598. ;;
  11599. openbsd*)
  11600. if test -f /usr/libexec/ld.so; then
  11601. hardcode_direct_CXX=yes
  11602. hardcode_shlibpath_var_CXX=no
  11603. hardcode_direct_absolute_CXX=yes
  11604. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11605. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11606. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11607. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11608. export_dynamic_flag_spec_CXX='${wl}-E'
  11609. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11610. fi
  11611. output_verbose_link_cmd=func_echo_all
  11612. else
  11613. ld_shlibs_CXX=no
  11614. fi
  11615. ;;
  11616. osf3* | osf4* | osf5*)
  11617. case $cc_basename in
  11618. KCC*)
  11619. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11620. # KCC will only create a shared library if the output file
  11621. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11622. # to its proper name (with version) after linking.
  11623. 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'
  11624. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11625. hardcode_libdir_separator_CXX=:
  11626. # Archives containing C++ object files must be created using
  11627. # the KAI C++ compiler.
  11628. case $host in
  11629. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11630. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11631. esac
  11632. ;;
  11633. RCC*)
  11634. # Rational C++ 2.4.1
  11635. # FIXME: insert proper C++ library support
  11636. ld_shlibs_CXX=no
  11637. ;;
  11638. cxx*)
  11639. case $host in
  11640. osf3*)
  11641. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11642. 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'
  11643. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11644. ;;
  11645. *)
  11646. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11647. 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'
  11648. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11649. echo "-hidden">> $lib.exp~
  11650. $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~
  11651. $RM $lib.exp'
  11652. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11653. ;;
  11654. esac
  11655. hardcode_libdir_separator_CXX=:
  11656. # Commands to make compiler produce verbose output that lists
  11657. # what "hidden" libraries, object files and flags are used when
  11658. # linking a shared library.
  11659. #
  11660. # There doesn't appear to be a way to prevent this compiler from
  11661. # explicitly linking system object files so we need to strip them
  11662. # from the output so that they don't get included in the library
  11663. # dependencies.
  11664. 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"'
  11665. ;;
  11666. *)
  11667. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11668. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11669. case $host in
  11670. osf3*)
  11671. 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'
  11672. ;;
  11673. *)
  11674. 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'
  11675. ;;
  11676. esac
  11677. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11678. hardcode_libdir_separator_CXX=:
  11679. # Commands to make compiler produce verbose output that lists
  11680. # what "hidden" libraries, object files and flags are used when
  11681. # linking a shared library.
  11682. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11683. else
  11684. # FIXME: insert proper C++ library support
  11685. ld_shlibs_CXX=no
  11686. fi
  11687. ;;
  11688. esac
  11689. ;;
  11690. psos*)
  11691. # FIXME: insert proper C++ library support
  11692. ld_shlibs_CXX=no
  11693. ;;
  11694. sunos4*)
  11695. case $cc_basename in
  11696. CC*)
  11697. # Sun C++ 4.x
  11698. # FIXME: insert proper C++ library support
  11699. ld_shlibs_CXX=no
  11700. ;;
  11701. lcc*)
  11702. # Lucid
  11703. # FIXME: insert proper C++ library support
  11704. ld_shlibs_CXX=no
  11705. ;;
  11706. *)
  11707. # FIXME: insert proper C++ library support
  11708. ld_shlibs_CXX=no
  11709. ;;
  11710. esac
  11711. ;;
  11712. solaris*)
  11713. case $cc_basename in
  11714. CC* | sunCC*)
  11715. # Sun C++ 4.2, 5.x and Centerline C++
  11716. archive_cmds_need_lc_CXX=yes
  11717. no_undefined_flag_CXX=' -zdefs'
  11718. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11719. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11720. $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'
  11721. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11722. hardcode_shlibpath_var_CXX=no
  11723. case $host_os in
  11724. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11725. *)
  11726. # The compiler driver will combine and reorder linker options,
  11727. # but understands `-z linker_flag'.
  11728. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11729. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11730. ;;
  11731. esac
  11732. link_all_deplibs_CXX=yes
  11733. output_verbose_link_cmd='func_echo_all'
  11734. # Archives containing C++ object files must be created using
  11735. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11736. # necessary to make sure instantiated templates are included
  11737. # in the archive.
  11738. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11739. ;;
  11740. gcx*)
  11741. # Green Hills C++ Compiler
  11742. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11743. # The C++ compiler must be used to create the archive.
  11744. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11745. ;;
  11746. *)
  11747. # GNU C++ compiler with Solaris linker
  11748. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11749. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11750. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11751. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11752. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11753. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11754. # Commands to make compiler produce verbose output that lists
  11755. # what "hidden" libraries, object files and flags are used when
  11756. # linking a shared library.
  11757. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11758. else
  11759. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11760. # platform.
  11761. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11762. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11763. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11764. # Commands to make compiler produce verbose output that lists
  11765. # what "hidden" libraries, object files and flags are used when
  11766. # linking a shared library.
  11767. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11768. fi
  11769. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11770. case $host_os in
  11771. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11772. *)
  11773. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11774. ;;
  11775. esac
  11776. fi
  11777. ;;
  11778. esac
  11779. ;;
  11780. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11781. no_undefined_flag_CXX='${wl}-z,text'
  11782. archive_cmds_need_lc_CXX=no
  11783. hardcode_shlibpath_var_CXX=no
  11784. runpath_var='LD_RUN_PATH'
  11785. case $cc_basename in
  11786. CC*)
  11787. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11788. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11789. ;;
  11790. *)
  11791. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11792. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11793. ;;
  11794. esac
  11795. ;;
  11796. sysv5* | sco3.2v5* | sco5v6*)
  11797. # Note: We can NOT use -z defs as we might desire, because we do not
  11798. # link with -lc, and that would cause any symbols used from libc to
  11799. # always be unresolved, which means just about no library would
  11800. # ever link correctly. If we're not using GNU ld we use -z text
  11801. # though, which does catch some bad symbols but isn't as heavy-handed
  11802. # as -z defs.
  11803. no_undefined_flag_CXX='${wl}-z,text'
  11804. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11805. archive_cmds_need_lc_CXX=no
  11806. hardcode_shlibpath_var_CXX=no
  11807. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11808. hardcode_libdir_separator_CXX=':'
  11809. link_all_deplibs_CXX=yes
  11810. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11811. runpath_var='LD_RUN_PATH'
  11812. case $cc_basename in
  11813. CC*)
  11814. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11815. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11816. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11817. '"$old_archive_cmds_CXX"
  11818. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11819. '"$reload_cmds_CXX"
  11820. ;;
  11821. *)
  11822. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11823. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11824. ;;
  11825. esac
  11826. ;;
  11827. tandem*)
  11828. case $cc_basename in
  11829. NCC*)
  11830. # NonStop-UX NCC 3.20
  11831. # FIXME: insert proper C++ library support
  11832. ld_shlibs_CXX=no
  11833. ;;
  11834. *)
  11835. # FIXME: insert proper C++ library support
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. esac
  11839. ;;
  11840. vxworks*)
  11841. # FIXME: insert proper C++ library support
  11842. ld_shlibs_CXX=no
  11843. ;;
  11844. *)
  11845. # FIXME: insert proper C++ library support
  11846. ld_shlibs_CXX=no
  11847. ;;
  11848. esac
  11849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11850. $as_echo "$ld_shlibs_CXX" >&6; }
  11851. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11852. GCC_CXX="$GXX"
  11853. LD_CXX="$LD"
  11854. ## CAVEAT EMPTOR:
  11855. ## There is no encapsulation within the following macros, do not change
  11856. ## the running order or otherwise move them around unless you know exactly
  11857. ## what you are doing...
  11858. # Dependencies to place before and after the object being linked:
  11859. predep_objects_CXX=
  11860. postdep_objects_CXX=
  11861. predeps_CXX=
  11862. postdeps_CXX=
  11863. compiler_lib_search_path_CXX=
  11864. cat > conftest.$ac_ext <<_LT_EOF
  11865. class Foo
  11866. {
  11867. public:
  11868. Foo (void) { a = 0; }
  11869. private:
  11870. int a;
  11871. };
  11872. _LT_EOF
  11873. _lt_libdeps_save_CFLAGS=$CFLAGS
  11874. case "$CC $CFLAGS " in #(
  11875. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11876. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11877. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11878. esac
  11879. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11880. (eval $ac_compile) 2>&5
  11881. ac_status=$?
  11882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11883. test $ac_status = 0; }; then
  11884. # Parse the compiler output and extract the necessary
  11885. # objects, libraries and library flags.
  11886. # Sentinel used to keep track of whether or not we are before
  11887. # the conftest object file.
  11888. pre_test_object_deps_done=no
  11889. for p in `eval "$output_verbose_link_cmd"`; do
  11890. case ${prev}${p} in
  11891. -L* | -R* | -l*)
  11892. # Some compilers place space between "-{L,R}" and the path.
  11893. # Remove the space.
  11894. if test $p = "-L" ||
  11895. test $p = "-R"; then
  11896. prev=$p
  11897. continue
  11898. fi
  11899. # Expand the sysroot to ease extracting the directories later.
  11900. if test -z "$prev"; then
  11901. case $p in
  11902. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11903. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11904. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11905. esac
  11906. fi
  11907. case $p in
  11908. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11909. esac
  11910. if test "$pre_test_object_deps_done" = no; then
  11911. case ${prev} in
  11912. -L | -R)
  11913. # Internal compiler library paths should come after those
  11914. # provided the user. The postdeps already come after the
  11915. # user supplied libs so there is no need to process them.
  11916. if test -z "$compiler_lib_search_path_CXX"; then
  11917. compiler_lib_search_path_CXX="${prev}${p}"
  11918. else
  11919. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11920. fi
  11921. ;;
  11922. # The "-l" case would never come before the object being
  11923. # linked, so don't bother handling this case.
  11924. esac
  11925. else
  11926. if test -z "$postdeps_CXX"; then
  11927. postdeps_CXX="${prev}${p}"
  11928. else
  11929. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11930. fi
  11931. fi
  11932. prev=
  11933. ;;
  11934. *.lto.$objext) ;; # Ignore GCC LTO objects
  11935. *.$objext)
  11936. # This assumes that the test object file only shows up
  11937. # once in the compiler output.
  11938. if test "$p" = "conftest.$objext"; then
  11939. pre_test_object_deps_done=yes
  11940. continue
  11941. fi
  11942. if test "$pre_test_object_deps_done" = no; then
  11943. if test -z "$predep_objects_CXX"; then
  11944. predep_objects_CXX="$p"
  11945. else
  11946. predep_objects_CXX="$predep_objects_CXX $p"
  11947. fi
  11948. else
  11949. if test -z "$postdep_objects_CXX"; then
  11950. postdep_objects_CXX="$p"
  11951. else
  11952. postdep_objects_CXX="$postdep_objects_CXX $p"
  11953. fi
  11954. fi
  11955. ;;
  11956. *) ;; # Ignore the rest.
  11957. esac
  11958. done
  11959. # Clean up.
  11960. rm -f a.out a.exe
  11961. else
  11962. echo "libtool.m4: error: problem compiling CXX test program"
  11963. fi
  11964. $RM -f confest.$objext
  11965. CFLAGS=$_lt_libdeps_save_CFLAGS
  11966. # PORTME: override above test on systems where it is broken
  11967. case $host_os in
  11968. interix[3-9]*)
  11969. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11970. # hack all around it, let's just trust "g++" to DTRT.
  11971. predep_objects_CXX=
  11972. postdep_objects_CXX=
  11973. postdeps_CXX=
  11974. ;;
  11975. linux*)
  11976. case `$CC -V 2>&1 | sed 5q` in
  11977. *Sun\ C*)
  11978. # Sun C++ 5.9
  11979. # The more standards-conforming stlport4 library is
  11980. # incompatible with the Cstd library. Avoid specifying
  11981. # it if it's in CXXFLAGS. Ignore libCrun as
  11982. # -library=stlport4 depends on it.
  11983. case " $CXX $CXXFLAGS " in
  11984. *" -library=stlport4 "*)
  11985. solaris_use_stlport4=yes
  11986. ;;
  11987. esac
  11988. if test "$solaris_use_stlport4" != yes; then
  11989. postdeps_CXX='-library=Cstd -library=Crun'
  11990. fi
  11991. ;;
  11992. esac
  11993. ;;
  11994. solaris*)
  11995. case $cc_basename in
  11996. CC* | sunCC*)
  11997. # The more standards-conforming stlport4 library is
  11998. # incompatible with the Cstd library. Avoid specifying
  11999. # it if it's in CXXFLAGS. Ignore libCrun as
  12000. # -library=stlport4 depends on it.
  12001. case " $CXX $CXXFLAGS " in
  12002. *" -library=stlport4 "*)
  12003. solaris_use_stlport4=yes
  12004. ;;
  12005. esac
  12006. # Adding this requires a known-good setup of shared libraries for
  12007. # Sun compiler versions before 5.6, else PIC objects from an old
  12008. # archive will be linked into the output, leading to subtle bugs.
  12009. if test "$solaris_use_stlport4" != yes; then
  12010. postdeps_CXX='-library=Cstd -library=Crun'
  12011. fi
  12012. ;;
  12013. esac
  12014. ;;
  12015. esac
  12016. case " $postdeps_CXX " in
  12017. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12018. esac
  12019. compiler_lib_search_dirs_CXX=
  12020. if test -n "${compiler_lib_search_path_CXX}"; then
  12021. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12022. fi
  12023. lt_prog_compiler_wl_CXX=
  12024. lt_prog_compiler_pic_CXX=
  12025. lt_prog_compiler_static_CXX=
  12026. # C++ specific cases for pic, static, wl, etc.
  12027. if test "$GXX" = yes; then
  12028. lt_prog_compiler_wl_CXX='-Wl,'
  12029. lt_prog_compiler_static_CXX='-static'
  12030. case $host_os in
  12031. aix*)
  12032. # All AIX code is PIC.
  12033. if test "$host_cpu" = ia64; then
  12034. # AIX 5 now supports IA64 processor
  12035. lt_prog_compiler_static_CXX='-Bstatic'
  12036. fi
  12037. ;;
  12038. amigaos*)
  12039. case $host_cpu in
  12040. powerpc)
  12041. # see comment about AmigaOS4 .so support
  12042. lt_prog_compiler_pic_CXX='-fPIC'
  12043. ;;
  12044. m68k)
  12045. # FIXME: we need at least 68020 code to build shared libraries, but
  12046. # adding the `-m68020' flag to GCC prevents building anything better,
  12047. # like `-m68040'.
  12048. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12049. ;;
  12050. esac
  12051. ;;
  12052. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12053. # PIC is the default for these OSes.
  12054. ;;
  12055. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12056. # This hack is so that the source file can tell whether it is being
  12057. # built for inclusion in a dll (and should export symbols for example).
  12058. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12059. # (--disable-auto-import) libraries
  12060. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12061. ;;
  12062. darwin* | rhapsody*)
  12063. # PIC is the default on this platform
  12064. # Common symbols not allowed in MH_DYLIB files
  12065. lt_prog_compiler_pic_CXX='-fno-common'
  12066. ;;
  12067. *djgpp*)
  12068. # DJGPP does not support shared libraries at all
  12069. lt_prog_compiler_pic_CXX=
  12070. ;;
  12071. haiku*)
  12072. # PIC is the default for Haiku.
  12073. # The "-static" flag exists, but is broken.
  12074. lt_prog_compiler_static_CXX=
  12075. ;;
  12076. interix[3-9]*)
  12077. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12078. # Instead, we relocate shared libraries at runtime.
  12079. ;;
  12080. sysv4*MP*)
  12081. if test -d /usr/nec; then
  12082. lt_prog_compiler_pic_CXX=-Kconform_pic
  12083. fi
  12084. ;;
  12085. hpux*)
  12086. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12087. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12088. # sets the default TLS model and affects inlining.
  12089. case $host_cpu in
  12090. hppa*64*)
  12091. ;;
  12092. *)
  12093. lt_prog_compiler_pic_CXX='-fPIC'
  12094. ;;
  12095. esac
  12096. ;;
  12097. *qnx* | *nto*)
  12098. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12099. # it will coredump.
  12100. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12101. ;;
  12102. *)
  12103. lt_prog_compiler_pic_CXX='-fPIC'
  12104. ;;
  12105. esac
  12106. else
  12107. case $host_os in
  12108. aix[4-9]*)
  12109. # All AIX code is PIC.
  12110. if test "$host_cpu" = ia64; then
  12111. # AIX 5 now supports IA64 processor
  12112. lt_prog_compiler_static_CXX='-Bstatic'
  12113. else
  12114. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12115. fi
  12116. ;;
  12117. chorus*)
  12118. case $cc_basename in
  12119. cxch68*)
  12120. # Green Hills C++ Compiler
  12121. # _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"
  12122. ;;
  12123. esac
  12124. ;;
  12125. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12126. # This hack is so that the source file can tell whether it is being
  12127. # built for inclusion in a dll (and should export symbols for example).
  12128. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12129. ;;
  12130. dgux*)
  12131. case $cc_basename in
  12132. ec++*)
  12133. lt_prog_compiler_pic_CXX='-KPIC'
  12134. ;;
  12135. ghcx*)
  12136. # Green Hills C++ Compiler
  12137. lt_prog_compiler_pic_CXX='-pic'
  12138. ;;
  12139. *)
  12140. ;;
  12141. esac
  12142. ;;
  12143. freebsd* | dragonfly*)
  12144. # FreeBSD uses GNU C++
  12145. ;;
  12146. hpux9* | hpux10* | hpux11*)
  12147. case $cc_basename in
  12148. CC*)
  12149. lt_prog_compiler_wl_CXX='-Wl,'
  12150. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12151. if test "$host_cpu" != ia64; then
  12152. lt_prog_compiler_pic_CXX='+Z'
  12153. fi
  12154. ;;
  12155. aCC*)
  12156. lt_prog_compiler_wl_CXX='-Wl,'
  12157. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12158. case $host_cpu in
  12159. hppa*64*|ia64*)
  12160. # +Z the default
  12161. ;;
  12162. *)
  12163. lt_prog_compiler_pic_CXX='+Z'
  12164. ;;
  12165. esac
  12166. ;;
  12167. *)
  12168. ;;
  12169. esac
  12170. ;;
  12171. interix*)
  12172. # This is c89, which is MS Visual C++ (no shared libs)
  12173. # Anyone wants to do a port?
  12174. ;;
  12175. irix5* | irix6* | nonstopux*)
  12176. case $cc_basename in
  12177. CC*)
  12178. lt_prog_compiler_wl_CXX='-Wl,'
  12179. lt_prog_compiler_static_CXX='-non_shared'
  12180. # CC pic flag -KPIC is the default.
  12181. ;;
  12182. *)
  12183. ;;
  12184. esac
  12185. ;;
  12186. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12187. case $cc_basename in
  12188. KCC*)
  12189. # KAI C++ Compiler
  12190. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12191. lt_prog_compiler_pic_CXX='-fPIC'
  12192. ;;
  12193. ecpc* )
  12194. # old Intel C++ for x86_64 which still supported -KPIC.
  12195. lt_prog_compiler_wl_CXX='-Wl,'
  12196. lt_prog_compiler_pic_CXX='-KPIC'
  12197. lt_prog_compiler_static_CXX='-static'
  12198. ;;
  12199. icpc* )
  12200. # Intel C++, used to be incompatible with GCC.
  12201. # ICC 10 doesn't accept -KPIC any more.
  12202. lt_prog_compiler_wl_CXX='-Wl,'
  12203. lt_prog_compiler_pic_CXX='-fPIC'
  12204. lt_prog_compiler_static_CXX='-static'
  12205. ;;
  12206. pgCC* | pgcpp*)
  12207. # Portland Group C++ compiler
  12208. lt_prog_compiler_wl_CXX='-Wl,'
  12209. lt_prog_compiler_pic_CXX='-fpic'
  12210. lt_prog_compiler_static_CXX='-Bstatic'
  12211. ;;
  12212. cxx*)
  12213. # Compaq C++
  12214. # Make sure the PIC flag is empty. It appears that all Alpha
  12215. # Linux and Compaq Tru64 Unix objects are PIC.
  12216. lt_prog_compiler_pic_CXX=
  12217. lt_prog_compiler_static_CXX='-non_shared'
  12218. ;;
  12219. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12220. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12221. lt_prog_compiler_wl_CXX='-Wl,'
  12222. lt_prog_compiler_pic_CXX='-qpic'
  12223. lt_prog_compiler_static_CXX='-qstaticlink'
  12224. ;;
  12225. *)
  12226. case `$CC -V 2>&1 | sed 5q` in
  12227. *Sun\ C*)
  12228. # Sun C++ 5.9
  12229. lt_prog_compiler_pic_CXX='-KPIC'
  12230. lt_prog_compiler_static_CXX='-Bstatic'
  12231. lt_prog_compiler_wl_CXX='-Qoption ld '
  12232. ;;
  12233. esac
  12234. ;;
  12235. esac
  12236. ;;
  12237. lynxos*)
  12238. ;;
  12239. m88k*)
  12240. ;;
  12241. mvs*)
  12242. case $cc_basename in
  12243. cxx*)
  12244. lt_prog_compiler_pic_CXX='-W c,exportall'
  12245. ;;
  12246. *)
  12247. ;;
  12248. esac
  12249. ;;
  12250. netbsd*)
  12251. ;;
  12252. *qnx* | *nto*)
  12253. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12254. # it will coredump.
  12255. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12256. ;;
  12257. osf3* | osf4* | osf5*)
  12258. case $cc_basename in
  12259. KCC*)
  12260. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12261. ;;
  12262. RCC*)
  12263. # Rational C++ 2.4.1
  12264. lt_prog_compiler_pic_CXX='-pic'
  12265. ;;
  12266. cxx*)
  12267. # Digital/Compaq C++
  12268. lt_prog_compiler_wl_CXX='-Wl,'
  12269. # Make sure the PIC flag is empty. It appears that all Alpha
  12270. # Linux and Compaq Tru64 Unix objects are PIC.
  12271. lt_prog_compiler_pic_CXX=
  12272. lt_prog_compiler_static_CXX='-non_shared'
  12273. ;;
  12274. *)
  12275. ;;
  12276. esac
  12277. ;;
  12278. psos*)
  12279. ;;
  12280. solaris*)
  12281. case $cc_basename in
  12282. CC* | sunCC*)
  12283. # Sun C++ 4.2, 5.x and Centerline C++
  12284. lt_prog_compiler_pic_CXX='-KPIC'
  12285. lt_prog_compiler_static_CXX='-Bstatic'
  12286. lt_prog_compiler_wl_CXX='-Qoption ld '
  12287. ;;
  12288. gcx*)
  12289. # Green Hills C++ Compiler
  12290. lt_prog_compiler_pic_CXX='-PIC'
  12291. ;;
  12292. *)
  12293. ;;
  12294. esac
  12295. ;;
  12296. sunos4*)
  12297. case $cc_basename in
  12298. CC*)
  12299. # Sun C++ 4.x
  12300. lt_prog_compiler_pic_CXX='-pic'
  12301. lt_prog_compiler_static_CXX='-Bstatic'
  12302. ;;
  12303. lcc*)
  12304. # Lucid
  12305. lt_prog_compiler_pic_CXX='-pic'
  12306. ;;
  12307. *)
  12308. ;;
  12309. esac
  12310. ;;
  12311. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12312. case $cc_basename in
  12313. CC*)
  12314. lt_prog_compiler_wl_CXX='-Wl,'
  12315. lt_prog_compiler_pic_CXX='-KPIC'
  12316. lt_prog_compiler_static_CXX='-Bstatic'
  12317. ;;
  12318. esac
  12319. ;;
  12320. tandem*)
  12321. case $cc_basename in
  12322. NCC*)
  12323. # NonStop-UX NCC 3.20
  12324. lt_prog_compiler_pic_CXX='-KPIC'
  12325. ;;
  12326. *)
  12327. ;;
  12328. esac
  12329. ;;
  12330. vxworks*)
  12331. ;;
  12332. *)
  12333. lt_prog_compiler_can_build_shared_CXX=no
  12334. ;;
  12335. esac
  12336. fi
  12337. case $host_os in
  12338. # For platforms which do not support PIC, -DPIC is meaningless:
  12339. *djgpp*)
  12340. lt_prog_compiler_pic_CXX=
  12341. ;;
  12342. *)
  12343. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12344. ;;
  12345. esac
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12347. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12348. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12349. $as_echo_n "(cached) " >&6
  12350. else
  12351. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12352. fi
  12353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12354. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12355. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12356. #
  12357. # Check to make sure the PIC flag actually works.
  12358. #
  12359. if test -n "$lt_prog_compiler_pic_CXX"; then
  12360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12361. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12362. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12363. $as_echo_n "(cached) " >&6
  12364. else
  12365. lt_cv_prog_compiler_pic_works_CXX=no
  12366. ac_outfile=conftest.$ac_objext
  12367. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12368. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12369. # Insert the option either (1) after the last *FLAGS variable, or
  12370. # (2) before a word containing "conftest.", or (3) at the end.
  12371. # Note that $ac_compile itself does not contain backslashes and begins
  12372. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12373. # The option is referenced via a variable to avoid confusing sed.
  12374. lt_compile=`echo "$ac_compile" | $SED \
  12375. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12376. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12377. -e 's:$: $lt_compiler_flag:'`
  12378. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12379. (eval "$lt_compile" 2>conftest.err)
  12380. ac_status=$?
  12381. cat conftest.err >&5
  12382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12383. if (exit $ac_status) && test -s "$ac_outfile"; then
  12384. # The compiler can only warn and ignore the option if not recognized
  12385. # So say no if there are warnings other than the usual output.
  12386. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12387. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12388. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12389. lt_cv_prog_compiler_pic_works_CXX=yes
  12390. fi
  12391. fi
  12392. $RM conftest*
  12393. fi
  12394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12395. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12396. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12397. case $lt_prog_compiler_pic_CXX in
  12398. "" | " "*) ;;
  12399. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12400. esac
  12401. else
  12402. lt_prog_compiler_pic_CXX=
  12403. lt_prog_compiler_can_build_shared_CXX=no
  12404. fi
  12405. fi
  12406. #
  12407. # Check to make sure the static flag actually works.
  12408. #
  12409. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12411. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12412. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12413. $as_echo_n "(cached) " >&6
  12414. else
  12415. lt_cv_prog_compiler_static_works_CXX=no
  12416. save_LDFLAGS="$LDFLAGS"
  12417. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12418. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12419. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12420. # The linker can only warn and ignore the option if not recognized
  12421. # So say no if there are warnings
  12422. if test -s conftest.err; then
  12423. # Append any errors to the config.log.
  12424. cat conftest.err 1>&5
  12425. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12426. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12427. if diff conftest.exp conftest.er2 >/dev/null; then
  12428. lt_cv_prog_compiler_static_works_CXX=yes
  12429. fi
  12430. else
  12431. lt_cv_prog_compiler_static_works_CXX=yes
  12432. fi
  12433. fi
  12434. $RM -r conftest*
  12435. LDFLAGS="$save_LDFLAGS"
  12436. fi
  12437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12438. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12439. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12440. :
  12441. else
  12442. lt_prog_compiler_static_CXX=
  12443. fi
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12445. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12446. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12447. $as_echo_n "(cached) " >&6
  12448. else
  12449. lt_cv_prog_compiler_c_o_CXX=no
  12450. $RM -r conftest 2>/dev/null
  12451. mkdir conftest
  12452. cd conftest
  12453. mkdir out
  12454. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12455. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12456. # Insert the option either (1) after the last *FLAGS variable, or
  12457. # (2) before a word containing "conftest.", or (3) at the end.
  12458. # Note that $ac_compile itself does not contain backslashes and begins
  12459. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12460. lt_compile=`echo "$ac_compile" | $SED \
  12461. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12462. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12463. -e 's:$: $lt_compiler_flag:'`
  12464. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12465. (eval "$lt_compile" 2>out/conftest.err)
  12466. ac_status=$?
  12467. cat out/conftest.err >&5
  12468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12469. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12470. then
  12471. # The compiler can only warn and ignore the option if not recognized
  12472. # So say no if there are warnings
  12473. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12474. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12475. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12476. lt_cv_prog_compiler_c_o_CXX=yes
  12477. fi
  12478. fi
  12479. chmod u+w . 2>&5
  12480. $RM conftest*
  12481. # SGI C++ compiler will create directory out/ii_files/ for
  12482. # template instantiation
  12483. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12484. $RM out/* && rmdir out
  12485. cd ..
  12486. $RM -r conftest
  12487. $RM conftest*
  12488. fi
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12490. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12492. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12493. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12494. $as_echo_n "(cached) " >&6
  12495. else
  12496. lt_cv_prog_compiler_c_o_CXX=no
  12497. $RM -r conftest 2>/dev/null
  12498. mkdir conftest
  12499. cd conftest
  12500. mkdir out
  12501. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12502. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12503. # Insert the option either (1) after the last *FLAGS variable, or
  12504. # (2) before a word containing "conftest.", or (3) at the end.
  12505. # Note that $ac_compile itself does not contain backslashes and begins
  12506. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12507. lt_compile=`echo "$ac_compile" | $SED \
  12508. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12509. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12510. -e 's:$: $lt_compiler_flag:'`
  12511. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12512. (eval "$lt_compile" 2>out/conftest.err)
  12513. ac_status=$?
  12514. cat out/conftest.err >&5
  12515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12516. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12517. then
  12518. # The compiler can only warn and ignore the option if not recognized
  12519. # So say no if there are warnings
  12520. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12521. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12522. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12523. lt_cv_prog_compiler_c_o_CXX=yes
  12524. fi
  12525. fi
  12526. chmod u+w . 2>&5
  12527. $RM conftest*
  12528. # SGI C++ compiler will create directory out/ii_files/ for
  12529. # template instantiation
  12530. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12531. $RM out/* && rmdir out
  12532. cd ..
  12533. $RM -r conftest
  12534. $RM conftest*
  12535. fi
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12537. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12538. hard_links="nottested"
  12539. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12540. # do not overwrite the value of need_locks provided by the user
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12542. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12543. hard_links=yes
  12544. $RM conftest*
  12545. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12546. touch conftest.a
  12547. ln conftest.a conftest.b 2>&5 || hard_links=no
  12548. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12550. $as_echo "$hard_links" >&6; }
  12551. if test "$hard_links" = no; then
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12553. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12554. need_locks=warn
  12555. fi
  12556. else
  12557. need_locks=no
  12558. fi
  12559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12560. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12561. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12562. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12563. case $host_os in
  12564. aix[4-9]*)
  12565. # If we're using GNU nm, then we don't want the "-C" option.
  12566. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12567. # Also, AIX nm treats weak defined symbols like other global defined
  12568. # symbols, whereas GNU nm marks them as "W".
  12569. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12570. 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'
  12571. else
  12572. 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'
  12573. fi
  12574. ;;
  12575. pw32*)
  12576. export_symbols_cmds_CXX="$ltdll_cmds"
  12577. ;;
  12578. cygwin* | mingw* | cegcc*)
  12579. case $cc_basename in
  12580. cl*)
  12581. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12582. ;;
  12583. *)
  12584. 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'
  12585. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12586. ;;
  12587. esac
  12588. ;;
  12589. *)
  12590. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12591. ;;
  12592. esac
  12593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12594. $as_echo "$ld_shlibs_CXX" >&6; }
  12595. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12596. with_gnu_ld_CXX=$with_gnu_ld
  12597. #
  12598. # Do we need to explicitly link libc?
  12599. #
  12600. case "x$archive_cmds_need_lc_CXX" in
  12601. x|xyes)
  12602. # Assume -lc should be added
  12603. archive_cmds_need_lc_CXX=yes
  12604. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12605. case $archive_cmds_CXX in
  12606. *'~'*)
  12607. # FIXME: we may have to deal with multi-command sequences.
  12608. ;;
  12609. '$CC '*)
  12610. # Test whether the compiler implicitly links with -lc since on some
  12611. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12612. # to ld, don't add -lc before -lgcc.
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12614. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12615. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12616. $as_echo_n "(cached) " >&6
  12617. else
  12618. $RM conftest*
  12619. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12620. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12621. (eval $ac_compile) 2>&5
  12622. ac_status=$?
  12623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12624. test $ac_status = 0; } 2>conftest.err; then
  12625. soname=conftest
  12626. lib=conftest
  12627. libobjs=conftest.$ac_objext
  12628. deplibs=
  12629. wl=$lt_prog_compiler_wl_CXX
  12630. pic_flag=$lt_prog_compiler_pic_CXX
  12631. compiler_flags=-v
  12632. linker_flags=-v
  12633. verstring=
  12634. output_objdir=.
  12635. libname=conftest
  12636. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12637. allow_undefined_flag_CXX=
  12638. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12639. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12640. ac_status=$?
  12641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12642. test $ac_status = 0; }
  12643. then
  12644. lt_cv_archive_cmds_need_lc_CXX=no
  12645. else
  12646. lt_cv_archive_cmds_need_lc_CXX=yes
  12647. fi
  12648. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12649. else
  12650. cat conftest.err 1>&5
  12651. fi
  12652. $RM conftest*
  12653. fi
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12655. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12656. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12657. ;;
  12658. esac
  12659. fi
  12660. ;;
  12661. esac
  12662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12663. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12664. library_names_spec=
  12665. libname_spec='lib$name'
  12666. soname_spec=
  12667. shrext_cmds=".so"
  12668. postinstall_cmds=
  12669. postuninstall_cmds=
  12670. finish_cmds=
  12671. finish_eval=
  12672. shlibpath_var=
  12673. shlibpath_overrides_runpath=unknown
  12674. version_type=none
  12675. dynamic_linker="$host_os ld.so"
  12676. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12677. need_lib_prefix=unknown
  12678. hardcode_into_libs=no
  12679. # when you set need_version to no, make sure it does not cause -set_version
  12680. # flags to be left without arguments
  12681. need_version=unknown
  12682. case $host_os in
  12683. aix3*)
  12684. version_type=linux # correct to gnu/linux during the next big refactor
  12685. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12686. shlibpath_var=LIBPATH
  12687. # AIX 3 has no versioning support, so we append a major version to the name.
  12688. soname_spec='${libname}${release}${shared_ext}$major'
  12689. ;;
  12690. aix[4-9]*)
  12691. version_type=linux # correct to gnu/linux during the next big refactor
  12692. need_lib_prefix=no
  12693. need_version=no
  12694. hardcode_into_libs=yes
  12695. if test "$host_cpu" = ia64; then
  12696. # AIX 5 supports IA64
  12697. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12698. shlibpath_var=LD_LIBRARY_PATH
  12699. else
  12700. # With GCC up to 2.95.x, collect2 would create an import file
  12701. # for dependence libraries. The import file would start with
  12702. # the line `#! .'. This would cause the generated library to
  12703. # depend on `.', always an invalid library. This was fixed in
  12704. # development snapshots of GCC prior to 3.0.
  12705. case $host_os in
  12706. aix4 | aix4.[01] | aix4.[01].*)
  12707. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12708. echo ' yes '
  12709. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12710. :
  12711. else
  12712. can_build_shared=no
  12713. fi
  12714. ;;
  12715. esac
  12716. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12717. # soname into executable. Probably we can add versioning support to
  12718. # collect2, so additional links can be useful in future.
  12719. if test "$aix_use_runtimelinking" = yes; then
  12720. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12721. # instead of lib<name>.a to let people know that these are not
  12722. # typical AIX shared libraries.
  12723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12724. else
  12725. # We preserve .a as extension for shared libraries through AIX4.2
  12726. # and later when we are not doing run time linking.
  12727. library_names_spec='${libname}${release}.a $libname.a'
  12728. soname_spec='${libname}${release}${shared_ext}$major'
  12729. fi
  12730. shlibpath_var=LIBPATH
  12731. fi
  12732. ;;
  12733. amigaos*)
  12734. case $host_cpu in
  12735. powerpc)
  12736. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12737. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12739. ;;
  12740. m68k)
  12741. library_names_spec='$libname.ixlibrary $libname.a'
  12742. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12743. 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'
  12744. ;;
  12745. esac
  12746. ;;
  12747. beos*)
  12748. library_names_spec='${libname}${shared_ext}'
  12749. dynamic_linker="$host_os ld.so"
  12750. shlibpath_var=LIBRARY_PATH
  12751. ;;
  12752. bsdi[45]*)
  12753. version_type=linux # correct to gnu/linux during the next big refactor
  12754. need_version=no
  12755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12756. soname_spec='${libname}${release}${shared_ext}$major'
  12757. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12758. shlibpath_var=LD_LIBRARY_PATH
  12759. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12760. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12761. # the default ld.so.conf also contains /usr/contrib/lib and
  12762. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12763. # libtool to hard-code these into programs
  12764. ;;
  12765. cygwin* | mingw* | pw32* | cegcc*)
  12766. version_type=windows
  12767. shrext_cmds=".dll"
  12768. need_version=no
  12769. need_lib_prefix=no
  12770. case $GCC,$cc_basename in
  12771. yes,*)
  12772. # gcc
  12773. library_names_spec='$libname.dll.a'
  12774. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12775. postinstall_cmds='base_file=`basename \${file}`~
  12776. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12777. dldir=$destdir/`dirname \$dlpath`~
  12778. test -d \$dldir || mkdir -p \$dldir~
  12779. $install_prog $dir/$dlname \$dldir/$dlname~
  12780. chmod a+x \$dldir/$dlname~
  12781. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12782. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12783. fi'
  12784. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12785. dlpath=$dir/\$dldll~
  12786. $RM \$dlpath'
  12787. shlibpath_overrides_runpath=yes
  12788. case $host_os in
  12789. cygwin*)
  12790. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12791. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12792. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12793. ;;
  12794. mingw* | cegcc*)
  12795. # MinGW DLLs use traditional 'lib' prefix
  12796. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12797. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12798. ;;
  12799. pw32*)
  12800. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12801. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12802. ;;
  12803. esac
  12804. dynamic_linker='Win32 ld.exe'
  12805. ;;
  12806. *,cl*)
  12807. # Native MSVC
  12808. libname_spec='$name'
  12809. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12810. library_names_spec='${libname}.dll.lib'
  12811. case $build_os in
  12812. mingw*)
  12813. sys_lib_search_path_spec=
  12814. lt_save_ifs=$IFS
  12815. IFS=';'
  12816. for lt_path in $LIB
  12817. do
  12818. IFS=$lt_save_ifs
  12819. # Let DOS variable expansion print the short 8.3 style file name.
  12820. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12821. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12822. done
  12823. IFS=$lt_save_ifs
  12824. # Convert to MSYS style.
  12825. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12826. ;;
  12827. cygwin*)
  12828. # Convert to unix form, then to dos form, then back to unix form
  12829. # but this time dos style (no spaces!) so that the unix form looks
  12830. # like /cygdrive/c/PROGRA~1:/cygdr...
  12831. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12832. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12833. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12834. ;;
  12835. *)
  12836. sys_lib_search_path_spec="$LIB"
  12837. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12838. # It is most probably a Windows format PATH.
  12839. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12840. else
  12841. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12842. fi
  12843. # FIXME: find the short name or the path components, as spaces are
  12844. # common. (e.g. "Program Files" -> "PROGRA~1")
  12845. ;;
  12846. esac
  12847. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12848. postinstall_cmds='base_file=`basename \${file}`~
  12849. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12850. dldir=$destdir/`dirname \$dlpath`~
  12851. test -d \$dldir || mkdir -p \$dldir~
  12852. $install_prog $dir/$dlname \$dldir/$dlname'
  12853. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12854. dlpath=$dir/\$dldll~
  12855. $RM \$dlpath'
  12856. shlibpath_overrides_runpath=yes
  12857. dynamic_linker='Win32 link.exe'
  12858. ;;
  12859. *)
  12860. # Assume MSVC wrapper
  12861. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12862. dynamic_linker='Win32 ld.exe'
  12863. ;;
  12864. esac
  12865. # FIXME: first we should search . and the directory the executable is in
  12866. shlibpath_var=PATH
  12867. ;;
  12868. darwin* | rhapsody*)
  12869. dynamic_linker="$host_os dyld"
  12870. version_type=darwin
  12871. need_lib_prefix=no
  12872. need_version=no
  12873. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12874. soname_spec='${libname}${release}${major}$shared_ext'
  12875. shlibpath_overrides_runpath=yes
  12876. shlibpath_var=DYLD_LIBRARY_PATH
  12877. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12878. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12879. ;;
  12880. dgux*)
  12881. version_type=linux # correct to gnu/linux during the next big refactor
  12882. need_lib_prefix=no
  12883. need_version=no
  12884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12885. soname_spec='${libname}${release}${shared_ext}$major'
  12886. shlibpath_var=LD_LIBRARY_PATH
  12887. ;;
  12888. freebsd* | dragonfly*)
  12889. # DragonFly does not have aout. When/if they implement a new
  12890. # versioning mechanism, adjust this.
  12891. if test -x /usr/bin/objformat; then
  12892. objformat=`/usr/bin/objformat`
  12893. else
  12894. case $host_os in
  12895. freebsd[23].*) objformat=aout ;;
  12896. *) objformat=elf ;;
  12897. esac
  12898. fi
  12899. version_type=freebsd-$objformat
  12900. case $version_type in
  12901. freebsd-elf*)
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12903. need_version=no
  12904. need_lib_prefix=no
  12905. ;;
  12906. freebsd-*)
  12907. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12908. need_version=yes
  12909. ;;
  12910. esac
  12911. shlibpath_var=LD_LIBRARY_PATH
  12912. case $host_os in
  12913. freebsd2.*)
  12914. shlibpath_overrides_runpath=yes
  12915. ;;
  12916. freebsd3.[01]* | freebsdelf3.[01]*)
  12917. shlibpath_overrides_runpath=yes
  12918. hardcode_into_libs=yes
  12919. ;;
  12920. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12921. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12922. shlibpath_overrides_runpath=no
  12923. hardcode_into_libs=yes
  12924. ;;
  12925. *) # from 4.6 on, and DragonFly
  12926. shlibpath_overrides_runpath=yes
  12927. hardcode_into_libs=yes
  12928. ;;
  12929. esac
  12930. ;;
  12931. gnu*)
  12932. version_type=linux # correct to gnu/linux during the next big refactor
  12933. need_lib_prefix=no
  12934. need_version=no
  12935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12936. soname_spec='${libname}${release}${shared_ext}$major'
  12937. shlibpath_var=LD_LIBRARY_PATH
  12938. shlibpath_overrides_runpath=no
  12939. hardcode_into_libs=yes
  12940. ;;
  12941. haiku*)
  12942. version_type=linux # correct to gnu/linux during the next big refactor
  12943. need_lib_prefix=no
  12944. need_version=no
  12945. dynamic_linker="$host_os runtime_loader"
  12946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12947. soname_spec='${libname}${release}${shared_ext}$major'
  12948. shlibpath_var=LIBRARY_PATH
  12949. shlibpath_overrides_runpath=yes
  12950. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12951. hardcode_into_libs=yes
  12952. ;;
  12953. hpux9* | hpux10* | hpux11*)
  12954. # Give a soname corresponding to the major version so that dld.sl refuses to
  12955. # link against other versions.
  12956. version_type=sunos
  12957. need_lib_prefix=no
  12958. need_version=no
  12959. case $host_cpu in
  12960. ia64*)
  12961. shrext_cmds='.so'
  12962. hardcode_into_libs=yes
  12963. dynamic_linker="$host_os dld.so"
  12964. shlibpath_var=LD_LIBRARY_PATH
  12965. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12967. soname_spec='${libname}${release}${shared_ext}$major'
  12968. if test "X$HPUX_IA64_MODE" = X32; then
  12969. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12970. else
  12971. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12972. fi
  12973. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12974. ;;
  12975. hppa*64*)
  12976. shrext_cmds='.sl'
  12977. hardcode_into_libs=yes
  12978. dynamic_linker="$host_os dld.sl"
  12979. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12980. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12982. soname_spec='${libname}${release}${shared_ext}$major'
  12983. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12984. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12985. ;;
  12986. *)
  12987. shrext_cmds='.sl'
  12988. dynamic_linker="$host_os dld.sl"
  12989. shlibpath_var=SHLIB_PATH
  12990. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12992. soname_spec='${libname}${release}${shared_ext}$major'
  12993. ;;
  12994. esac
  12995. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12996. postinstall_cmds='chmod 555 $lib'
  12997. # or fails outright, so override atomically:
  12998. install_override_mode=555
  12999. ;;
  13000. interix[3-9]*)
  13001. version_type=linux # correct to gnu/linux during the next big refactor
  13002. need_lib_prefix=no
  13003. need_version=no
  13004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13005. soname_spec='${libname}${release}${shared_ext}$major'
  13006. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13007. shlibpath_var=LD_LIBRARY_PATH
  13008. shlibpath_overrides_runpath=no
  13009. hardcode_into_libs=yes
  13010. ;;
  13011. irix5* | irix6* | nonstopux*)
  13012. case $host_os in
  13013. nonstopux*) version_type=nonstopux ;;
  13014. *)
  13015. if test "$lt_cv_prog_gnu_ld" = yes; then
  13016. version_type=linux # correct to gnu/linux during the next big refactor
  13017. else
  13018. version_type=irix
  13019. fi ;;
  13020. esac
  13021. need_lib_prefix=no
  13022. need_version=no
  13023. soname_spec='${libname}${release}${shared_ext}$major'
  13024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13025. case $host_os in
  13026. irix5* | nonstopux*)
  13027. libsuff= shlibsuff=
  13028. ;;
  13029. *)
  13030. case $LD in # libtool.m4 will add one of these switches to LD
  13031. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13032. libsuff= shlibsuff= libmagic=32-bit;;
  13033. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13034. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13035. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13036. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13037. *) libsuff= shlibsuff= libmagic=never-match;;
  13038. esac
  13039. ;;
  13040. esac
  13041. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13042. shlibpath_overrides_runpath=no
  13043. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13044. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13045. hardcode_into_libs=yes
  13046. ;;
  13047. # No shared lib support for Linux oldld, aout, or coff.
  13048. linux*oldld* | linux*aout* | linux*coff*)
  13049. dynamic_linker=no
  13050. ;;
  13051. # This must be glibc/ELF.
  13052. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13053. version_type=linux # correct to gnu/linux during the next big refactor
  13054. need_lib_prefix=no
  13055. need_version=no
  13056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13057. soname_spec='${libname}${release}${shared_ext}$major'
  13058. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13059. shlibpath_var=LD_LIBRARY_PATH
  13060. shlibpath_overrides_runpath=no
  13061. # Some binutils ld are patched to set DT_RUNPATH
  13062. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13063. $as_echo_n "(cached) " >&6
  13064. else
  13065. lt_cv_shlibpath_overrides_runpath=no
  13066. save_LDFLAGS=$LDFLAGS
  13067. save_libdir=$libdir
  13068. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13069. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13071. /* end confdefs.h. */
  13072. int
  13073. main ()
  13074. {
  13075. ;
  13076. return 0;
  13077. }
  13078. _ACEOF
  13079. if ac_fn_cxx_try_link "$LINENO"; then :
  13080. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13081. lt_cv_shlibpath_overrides_runpath=yes
  13082. fi
  13083. fi
  13084. rm -f core conftest.err conftest.$ac_objext \
  13085. conftest$ac_exeext conftest.$ac_ext
  13086. LDFLAGS=$save_LDFLAGS
  13087. libdir=$save_libdir
  13088. fi
  13089. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13090. # This implies no fast_install, which is unacceptable.
  13091. # Some rework will be needed to allow for fast_install
  13092. # before this can be enabled.
  13093. hardcode_into_libs=yes
  13094. # Append ld.so.conf contents to the search path
  13095. if test -f /etc/ld.so.conf; then
  13096. 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' ' '`
  13097. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13098. fi
  13099. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13100. # powerpc, because MkLinux only supported shared libraries with the
  13101. # GNU dynamic linker. Since this was broken with cross compilers,
  13102. # most powerpc-linux boxes support dynamic linking these days and
  13103. # people can always --disable-shared, the test was removed, and we
  13104. # assume the GNU/Linux dynamic linker is in use.
  13105. dynamic_linker='GNU/Linux ld.so'
  13106. ;;
  13107. netbsd*)
  13108. version_type=sunos
  13109. need_lib_prefix=no
  13110. need_version=no
  13111. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13113. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13114. dynamic_linker='NetBSD (a.out) ld.so'
  13115. else
  13116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13117. soname_spec='${libname}${release}${shared_ext}$major'
  13118. dynamic_linker='NetBSD ld.elf_so'
  13119. fi
  13120. shlibpath_var=LD_LIBRARY_PATH
  13121. shlibpath_overrides_runpath=yes
  13122. hardcode_into_libs=yes
  13123. ;;
  13124. newsos6)
  13125. version_type=linux # correct to gnu/linux during the next big refactor
  13126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13127. shlibpath_var=LD_LIBRARY_PATH
  13128. shlibpath_overrides_runpath=yes
  13129. ;;
  13130. *nto* | *qnx*)
  13131. version_type=qnx
  13132. need_lib_prefix=no
  13133. need_version=no
  13134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13135. soname_spec='${libname}${release}${shared_ext}$major'
  13136. shlibpath_var=LD_LIBRARY_PATH
  13137. shlibpath_overrides_runpath=no
  13138. hardcode_into_libs=yes
  13139. dynamic_linker='ldqnx.so'
  13140. ;;
  13141. openbsd*)
  13142. version_type=sunos
  13143. sys_lib_dlsearch_path_spec="/usr/lib"
  13144. need_lib_prefix=no
  13145. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13146. case $host_os in
  13147. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13148. *) need_version=no ;;
  13149. esac
  13150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13151. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13152. shlibpath_var=LD_LIBRARY_PATH
  13153. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13154. case $host_os in
  13155. openbsd2.[89] | openbsd2.[89].*)
  13156. shlibpath_overrides_runpath=no
  13157. ;;
  13158. *)
  13159. shlibpath_overrides_runpath=yes
  13160. ;;
  13161. esac
  13162. else
  13163. shlibpath_overrides_runpath=yes
  13164. fi
  13165. ;;
  13166. os2*)
  13167. libname_spec='$name'
  13168. shrext_cmds=".dll"
  13169. need_lib_prefix=no
  13170. library_names_spec='$libname${shared_ext} $libname.a'
  13171. dynamic_linker='OS/2 ld.exe'
  13172. shlibpath_var=LIBPATH
  13173. ;;
  13174. osf3* | osf4* | osf5*)
  13175. version_type=osf
  13176. need_lib_prefix=no
  13177. need_version=no
  13178. soname_spec='${libname}${release}${shared_ext}$major'
  13179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13180. shlibpath_var=LD_LIBRARY_PATH
  13181. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13182. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13183. ;;
  13184. rdos*)
  13185. dynamic_linker=no
  13186. ;;
  13187. solaris*)
  13188. version_type=linux # correct to gnu/linux during the next big refactor
  13189. need_lib_prefix=no
  13190. need_version=no
  13191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13192. soname_spec='${libname}${release}${shared_ext}$major'
  13193. shlibpath_var=LD_LIBRARY_PATH
  13194. shlibpath_overrides_runpath=yes
  13195. hardcode_into_libs=yes
  13196. # ldd complains unless libraries are executable
  13197. postinstall_cmds='chmod +x $lib'
  13198. ;;
  13199. sunos4*)
  13200. version_type=sunos
  13201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13202. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13203. shlibpath_var=LD_LIBRARY_PATH
  13204. shlibpath_overrides_runpath=yes
  13205. if test "$with_gnu_ld" = yes; then
  13206. need_lib_prefix=no
  13207. fi
  13208. need_version=yes
  13209. ;;
  13210. sysv4 | sysv4.3*)
  13211. version_type=linux # correct to gnu/linux during the next big refactor
  13212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13213. soname_spec='${libname}${release}${shared_ext}$major'
  13214. shlibpath_var=LD_LIBRARY_PATH
  13215. case $host_vendor in
  13216. sni)
  13217. shlibpath_overrides_runpath=no
  13218. need_lib_prefix=no
  13219. runpath_var=LD_RUN_PATH
  13220. ;;
  13221. siemens)
  13222. need_lib_prefix=no
  13223. ;;
  13224. motorola)
  13225. need_lib_prefix=no
  13226. need_version=no
  13227. shlibpath_overrides_runpath=no
  13228. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13229. ;;
  13230. esac
  13231. ;;
  13232. sysv4*MP*)
  13233. if test -d /usr/nec ;then
  13234. version_type=linux # correct to gnu/linux during the next big refactor
  13235. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13236. soname_spec='$libname${shared_ext}.$major'
  13237. shlibpath_var=LD_LIBRARY_PATH
  13238. fi
  13239. ;;
  13240. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13241. version_type=freebsd-elf
  13242. need_lib_prefix=no
  13243. need_version=no
  13244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13245. soname_spec='${libname}${release}${shared_ext}$major'
  13246. shlibpath_var=LD_LIBRARY_PATH
  13247. shlibpath_overrides_runpath=yes
  13248. hardcode_into_libs=yes
  13249. if test "$with_gnu_ld" = yes; then
  13250. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13251. else
  13252. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13253. case $host_os in
  13254. sco3.2v5*)
  13255. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13256. ;;
  13257. esac
  13258. fi
  13259. sys_lib_dlsearch_path_spec='/usr/lib'
  13260. ;;
  13261. tpf*)
  13262. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13263. version_type=linux # correct to gnu/linux during the next big refactor
  13264. need_lib_prefix=no
  13265. need_version=no
  13266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13267. shlibpath_var=LD_LIBRARY_PATH
  13268. shlibpath_overrides_runpath=no
  13269. hardcode_into_libs=yes
  13270. ;;
  13271. uts4*)
  13272. version_type=linux # correct to gnu/linux during the next big refactor
  13273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13274. soname_spec='${libname}${release}${shared_ext}$major'
  13275. shlibpath_var=LD_LIBRARY_PATH
  13276. ;;
  13277. *)
  13278. dynamic_linker=no
  13279. ;;
  13280. esac
  13281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13282. $as_echo "$dynamic_linker" >&6; }
  13283. test "$dynamic_linker" = no && can_build_shared=no
  13284. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13285. if test "$GCC" = yes; then
  13286. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13287. fi
  13288. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13289. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13290. fi
  13291. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13292. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13293. fi
  13294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13295. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13296. hardcode_action_CXX=
  13297. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13298. test -n "$runpath_var_CXX" ||
  13299. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13300. # We can hardcode non-existent directories.
  13301. if test "$hardcode_direct_CXX" != no &&
  13302. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13303. # have to relink, otherwise we might link with an installed library
  13304. # when we should be linking with a yet-to-be-installed one
  13305. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13306. test "$hardcode_minus_L_CXX" != no; then
  13307. # Linking always hardcodes the temporary library directory.
  13308. hardcode_action_CXX=relink
  13309. else
  13310. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13311. hardcode_action_CXX=immediate
  13312. fi
  13313. else
  13314. # We cannot hardcode anything, or else we can only hardcode existing
  13315. # directories.
  13316. hardcode_action_CXX=unsupported
  13317. fi
  13318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13319. $as_echo "$hardcode_action_CXX" >&6; }
  13320. if test "$hardcode_action_CXX" = relink ||
  13321. test "$inherit_rpath_CXX" = yes; then
  13322. # Fast installation is not supported
  13323. enable_fast_install=no
  13324. elif test "$shlibpath_overrides_runpath" = yes ||
  13325. test "$enable_shared" = no; then
  13326. # Fast installation is not necessary
  13327. enable_fast_install=needless
  13328. fi
  13329. fi # test -n "$compiler"
  13330. CC=$lt_save_CC
  13331. CFLAGS=$lt_save_CFLAGS
  13332. LDCXX=$LD
  13333. LD=$lt_save_LD
  13334. GCC=$lt_save_GCC
  13335. with_gnu_ld=$lt_save_with_gnu_ld
  13336. lt_cv_path_LDCXX=$lt_cv_path_LD
  13337. lt_cv_path_LD=$lt_save_path_LD
  13338. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13339. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13340. fi # test "$_lt_caught_CXX_error" != yes
  13341. ac_ext=c
  13342. ac_cpp='$CPP $CPPFLAGS'
  13343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13346. # Find a good install program. We prefer a C program (faster),
  13347. # so one script is as good as another. But avoid the broken or
  13348. # incompatible versions:
  13349. # SysV /etc/install, /usr/sbin/install
  13350. # SunOS /usr/etc/install
  13351. # IRIX /sbin/install
  13352. # AIX /bin/install
  13353. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13354. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13355. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13356. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13357. # OS/2's system install, which has a completely different semantic
  13358. # ./install, which can be erroneously created by make from ./install.sh.
  13359. # Reject install programs that cannot install multiple files.
  13360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13361. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13362. if test -z "$INSTALL"; then
  13363. if ${ac_cv_path_install+:} false; then :
  13364. $as_echo_n "(cached) " >&6
  13365. else
  13366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13367. for as_dir in $PATH
  13368. do
  13369. IFS=$as_save_IFS
  13370. test -z "$as_dir" && as_dir=.
  13371. # Account for people who put trailing slashes in PATH elements.
  13372. case $as_dir/ in #((
  13373. ./ | .// | /[cC]/* | \
  13374. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13375. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13376. /usr/ucb/* ) ;;
  13377. *)
  13378. # OSF1 and SCO ODT 3.0 have their own names for install.
  13379. # Don't use installbsd from OSF since it installs stuff as root
  13380. # by default.
  13381. for ac_prog in ginstall scoinst install; do
  13382. for ac_exec_ext in '' $ac_executable_extensions; do
  13383. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13384. if test $ac_prog = install &&
  13385. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13386. # AIX install. It has an incompatible calling convention.
  13387. :
  13388. elif test $ac_prog = install &&
  13389. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13390. # program-specific install script used by HP pwplus--don't use.
  13391. :
  13392. else
  13393. rm -rf conftest.one conftest.two conftest.dir
  13394. echo one > conftest.one
  13395. echo two > conftest.two
  13396. mkdir conftest.dir
  13397. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13398. test -s conftest.one && test -s conftest.two &&
  13399. test -s conftest.dir/conftest.one &&
  13400. test -s conftest.dir/conftest.two
  13401. then
  13402. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13403. break 3
  13404. fi
  13405. fi
  13406. fi
  13407. done
  13408. done
  13409. ;;
  13410. esac
  13411. done
  13412. IFS=$as_save_IFS
  13413. rm -rf conftest.one conftest.two conftest.dir
  13414. fi
  13415. if test "${ac_cv_path_install+set}" = set; then
  13416. INSTALL=$ac_cv_path_install
  13417. else
  13418. # As a last resort, use the slow shell script. Don't cache a
  13419. # value for INSTALL within a source directory, because that will
  13420. # break other packages using the cache if that directory is
  13421. # removed, or if the value is a relative name.
  13422. INSTALL=$ac_install_sh
  13423. fi
  13424. fi
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13426. $as_echo "$INSTALL" >&6; }
  13427. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13428. # It thinks the first close brace ends the variable substitution.
  13429. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13430. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13431. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13433. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13434. set x ${MAKE-make}
  13435. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13436. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13437. $as_echo_n "(cached) " >&6
  13438. else
  13439. cat >conftest.make <<\_ACEOF
  13440. SHELL = /bin/sh
  13441. all:
  13442. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13443. _ACEOF
  13444. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13445. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13446. *@@@%%%=?*=@@@%%%*)
  13447. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13448. *)
  13449. eval ac_cv_prog_make_${ac_make}_set=no;;
  13450. esac
  13451. rm -f conftest.make
  13452. fi
  13453. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13455. $as_echo "yes" >&6; }
  13456. SET_MAKE=
  13457. else
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13459. $as_echo "no" >&6; }
  13460. SET_MAKE="MAKE=${MAKE-make}"
  13461. fi
  13462. if test -n "$ac_tool_prefix"; then
  13463. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13464. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13466. $as_echo_n "checking for $ac_word... " >&6; }
  13467. if ${ac_cv_prog_WINDRES+:} false; then :
  13468. $as_echo_n "(cached) " >&6
  13469. else
  13470. if test -n "$WINDRES"; then
  13471. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13472. else
  13473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13474. for as_dir in $PATH
  13475. do
  13476. IFS=$as_save_IFS
  13477. test -z "$as_dir" && as_dir=.
  13478. for ac_exec_ext in '' $ac_executable_extensions; do
  13479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13480. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13482. break 2
  13483. fi
  13484. done
  13485. done
  13486. IFS=$as_save_IFS
  13487. fi
  13488. fi
  13489. WINDRES=$ac_cv_prog_WINDRES
  13490. if test -n "$WINDRES"; then
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13492. $as_echo "$WINDRES" >&6; }
  13493. else
  13494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13495. $as_echo "no" >&6; }
  13496. fi
  13497. fi
  13498. if test -z "$ac_cv_prog_WINDRES"; then
  13499. ac_ct_WINDRES=$WINDRES
  13500. # Extract the first word of "windres", so it can be a program name with args.
  13501. set dummy windres; ac_word=$2
  13502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13503. $as_echo_n "checking for $ac_word... " >&6; }
  13504. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13505. $as_echo_n "(cached) " >&6
  13506. else
  13507. if test -n "$ac_ct_WINDRES"; then
  13508. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13509. else
  13510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13511. for as_dir in $PATH
  13512. do
  13513. IFS=$as_save_IFS
  13514. test -z "$as_dir" && as_dir=.
  13515. for ac_exec_ext in '' $ac_executable_extensions; do
  13516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13517. ac_cv_prog_ac_ct_WINDRES="windres"
  13518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13519. break 2
  13520. fi
  13521. done
  13522. done
  13523. IFS=$as_save_IFS
  13524. fi
  13525. fi
  13526. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13527. if test -n "$ac_ct_WINDRES"; then
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13529. $as_echo "$ac_ct_WINDRES" >&6; }
  13530. else
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13532. $as_echo "no" >&6; }
  13533. fi
  13534. if test "x$ac_ct_WINDRES" = x; then
  13535. WINDRES=":"
  13536. else
  13537. case $cross_compiling:$ac_tool_warned in
  13538. yes:)
  13539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13540. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13541. ac_tool_warned=yes ;;
  13542. esac
  13543. WINDRES=$ac_ct_WINDRES
  13544. fi
  13545. else
  13546. WINDRES="$ac_cv_prog_WINDRES"
  13547. fi
  13548. case "$host" in
  13549. *-*-mingw32*)
  13550. # Except on msys, where make can't handle full pathnames (bug 1972)
  13551. ;;
  13552. *)
  13553. srcdir=`cd $srcdir && pwd`
  13554. ;;
  13555. esac
  13556. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13557. if test x$srcdir != x.; then
  13558. INCLUDE="-Iinclude $INCLUDE"
  13559. elif test -d .hg; then
  13560. as_fn_error $? "
  13561. *** When building from Mercurial you should configure and build in a
  13562. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13563. " "$LINENO" 5
  13564. fi
  13565. BASE_CFLAGS=""
  13566. BASE_LDFLAGS=""
  13567. case "$host" in
  13568. *-*-cygwin*)
  13569. # We build SDL on cygwin without the UNIX emulation layer
  13570. save_CFLAGS="$CFLAGS"
  13571. have_no_cygwin=no
  13572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13573. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13574. CFLAGS="$save_CFLAGS -mno-cygwin"
  13575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13576. /* end confdefs.h. */
  13577. int
  13578. main ()
  13579. {
  13580. ;
  13581. return 0;
  13582. }
  13583. _ACEOF
  13584. if ac_fn_c_try_compile "$LINENO"; then :
  13585. have_no_cygwin=yes
  13586. fi
  13587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13589. $as_echo "$have_no_cygwin" >&6; }
  13590. CFLAGS="$save_CFLAGS"
  13591. if test x$have_no_cygwin = xyes; then
  13592. BASE_CFLAGS="-mno-cygwin"
  13593. BASE_LDFLAGS="-mno-cygwin"
  13594. fi
  13595. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13596. ;;
  13597. esac
  13598. # Uncomment the following line if you want to force SDL and applications
  13599. # built with it to be compiled for a particular architecture.
  13600. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13601. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13602. # The default optimization for SDL is -O3 (Bug #31)
  13603. if test "x$orig_CFLAGS" = x; then
  13604. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13605. fi
  13606. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13607. BUILD_LDFLAGS="$LDFLAGS"
  13608. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13609. ## These are common directories to find software packages
  13610. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13611. # if test -d $path/include; then
  13612. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13613. # fi
  13614. # if test -d $path/lib; then
  13615. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13616. # fi
  13617. #done
  13618. SDL_CFLAGS="$BASE_CFLAGS"
  13619. SDL_LIBS="-lSDL2"
  13620. if test "x$BASE_LDFLAGS" != x; then
  13621. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13622. fi
  13623. if test "x$EXTRA_CFLAGS" != x; then
  13624. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13625. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13626. fi
  13627. if test "x$EXTRA_LDFLAGS" != x; then
  13628. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13629. fi
  13630. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13631. find_lib()
  13632. {
  13633. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13634. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13635. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13636. if test "$cross_compiling" = yes; then
  13637. host_lib_path=""
  13638. else
  13639. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13640. fi
  13641. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13642. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13643. if test x$lib != x; then
  13644. echo $lib
  13645. return
  13646. fi
  13647. done
  13648. }
  13649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13650. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13651. if ${ac_cv_c_const+:} false; then :
  13652. $as_echo_n "(cached) " >&6
  13653. else
  13654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13655. /* end confdefs.h. */
  13656. int
  13657. main ()
  13658. {
  13659. #ifndef __cplusplus
  13660. /* Ultrix mips cc rejects this sort of thing. */
  13661. typedef int charset[2];
  13662. const charset cs = { 0, 0 };
  13663. /* SunOS 4.1.1 cc rejects this. */
  13664. char const *const *pcpcc;
  13665. char **ppc;
  13666. /* NEC SVR4.0.2 mips cc rejects this. */
  13667. struct point {int x, y;};
  13668. static struct point const zero = {0,0};
  13669. /* AIX XL C 1.02.0.0 rejects this.
  13670. It does not let you subtract one const X* pointer from another in
  13671. an arm of an if-expression whose if-part is not a constant
  13672. expression */
  13673. const char *g = "string";
  13674. pcpcc = &g + (g ? g-g : 0);
  13675. /* HPUX 7.0 cc rejects these. */
  13676. ++pcpcc;
  13677. ppc = (char**) pcpcc;
  13678. pcpcc = (char const *const *) ppc;
  13679. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13680. char tx;
  13681. char *t = &tx;
  13682. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13683. *t++ = 0;
  13684. if (s) return 0;
  13685. }
  13686. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13687. int x[] = {25, 17};
  13688. const int *foo = &x[0];
  13689. ++foo;
  13690. }
  13691. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13692. typedef const int *iptr;
  13693. iptr p = 0;
  13694. ++p;
  13695. }
  13696. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13697. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13698. struct s { int j; const int *ap[3]; } bx;
  13699. struct s *b = &bx; b->j = 5;
  13700. }
  13701. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13702. const int foo = 10;
  13703. if (!foo) return 0;
  13704. }
  13705. return !cs[0] && !zero.x;
  13706. #endif
  13707. ;
  13708. return 0;
  13709. }
  13710. _ACEOF
  13711. if ac_fn_c_try_compile "$LINENO"; then :
  13712. ac_cv_c_const=yes
  13713. else
  13714. ac_cv_c_const=no
  13715. fi
  13716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13717. fi
  13718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13719. $as_echo "$ac_cv_c_const" >&6; }
  13720. if test $ac_cv_c_const = no; then
  13721. $as_echo "#define const /**/" >>confdefs.h
  13722. fi
  13723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13724. $as_echo_n "checking for inline... " >&6; }
  13725. if ${ac_cv_c_inline+:} false; then :
  13726. $as_echo_n "(cached) " >&6
  13727. else
  13728. ac_cv_c_inline=no
  13729. for ac_kw in inline __inline__ __inline; do
  13730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13731. /* end confdefs.h. */
  13732. #ifndef __cplusplus
  13733. typedef int foo_t;
  13734. static $ac_kw foo_t static_foo () {return 0; }
  13735. $ac_kw foo_t foo () {return 0; }
  13736. #endif
  13737. _ACEOF
  13738. if ac_fn_c_try_compile "$LINENO"; then :
  13739. ac_cv_c_inline=$ac_kw
  13740. fi
  13741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13742. test "$ac_cv_c_inline" != no && break
  13743. done
  13744. fi
  13745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13746. $as_echo "$ac_cv_c_inline" >&6; }
  13747. case $ac_cv_c_inline in
  13748. inline | yes) ;;
  13749. *)
  13750. case $ac_cv_c_inline in
  13751. no) ac_val=;;
  13752. *) ac_val=$ac_cv_c_inline;;
  13753. esac
  13754. cat >>confdefs.h <<_ACEOF
  13755. #ifndef __cplusplus
  13756. #define inline $ac_val
  13757. #endif
  13758. _ACEOF
  13759. ;;
  13760. esac
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13762. $as_echo_n "checking for working volatile... " >&6; }
  13763. if ${ac_cv_c_volatile+:} false; then :
  13764. $as_echo_n "(cached) " >&6
  13765. else
  13766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13767. /* end confdefs.h. */
  13768. int
  13769. main ()
  13770. {
  13771. volatile int x;
  13772. int * volatile y = (int *) 0;
  13773. return !x && !y;
  13774. ;
  13775. return 0;
  13776. }
  13777. _ACEOF
  13778. if ac_fn_c_try_compile "$LINENO"; then :
  13779. ac_cv_c_volatile=yes
  13780. else
  13781. ac_cv_c_volatile=no
  13782. fi
  13783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13784. fi
  13785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13786. $as_echo "$ac_cv_c_volatile" >&6; }
  13787. if test $ac_cv_c_volatile = no; then
  13788. $as_echo "#define volatile /**/" >>confdefs.h
  13789. fi
  13790. # Check whether --enable-assertions was given.
  13791. if test "${enable_assertions+set}" = set; then :
  13792. enableval=$enable_assertions;
  13793. else
  13794. enable_assertions=auto
  13795. fi
  13796. case "$enable_assertions" in
  13797. auto) # Use optimization settings to determine assertion level
  13798. ;;
  13799. disabled)
  13800. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13801. ;;
  13802. release)
  13803. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13804. ;;
  13805. enabled)
  13806. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13807. ;;
  13808. paranoid)
  13809. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13810. ;;
  13811. *)
  13812. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13813. ;;
  13814. esac
  13815. # Check whether --enable-dependency-tracking was given.
  13816. if test "${enable_dependency_tracking+set}" = set; then :
  13817. enableval=$enable_dependency_tracking;
  13818. else
  13819. enable_dependency_tracking=yes
  13820. fi
  13821. if test x$enable_dependency_tracking = xyes; then
  13822. have_gcc_mmd_mt=no
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13824. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13826. /* end confdefs.h. */
  13827. #if !defined(__GNUC__) || __GNUC__ < 3
  13828. #error Dependency tracking requires GCC 3.0 or newer
  13829. #endif
  13830. int
  13831. main ()
  13832. {
  13833. ;
  13834. return 0;
  13835. }
  13836. _ACEOF
  13837. if ac_fn_c_try_compile "$LINENO"; then :
  13838. have_gcc_mmd_mt=yes
  13839. fi
  13840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13842. $as_echo "$have_gcc_mmd_mt" >&6; }
  13843. if test x$have_gcc_mmd_mt = xyes; then
  13844. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13845. fi
  13846. fi
  13847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13848. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13849. have_no_undefined=no
  13850. case "$host" in
  13851. *-*-openbsd*)
  13852. ;;
  13853. *)
  13854. save_LDFLAGS="$LDFLAGS"
  13855. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13857. /* end confdefs.h. */
  13858. int
  13859. main ()
  13860. {
  13861. ;
  13862. return 0;
  13863. }
  13864. _ACEOF
  13865. if ac_fn_c_try_link "$LINENO"; then :
  13866. have_no_undefined=yes
  13867. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13868. fi
  13869. rm -f core conftest.err conftest.$ac_objext \
  13870. conftest$ac_exeext conftest.$ac_ext
  13871. LDFLAGS="$save_LDFLAGS"
  13872. ;;
  13873. esac
  13874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13875. $as_echo "$have_no_undefined" >&6; }
  13876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  13877. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  13878. have_dynamicbase=no
  13879. case "$host" in
  13880. *)
  13881. save_LDFLAGS="$LDFLAGS"
  13882. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  13883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13884. /* end confdefs.h. */
  13885. int
  13886. main ()
  13887. {
  13888. ;
  13889. return 0;
  13890. }
  13891. _ACEOF
  13892. if ac_fn_c_try_link "$LINENO"; then :
  13893. have_dynamicbase=yes
  13894. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  13895. fi
  13896. rm -f core conftest.err conftest.$ac_objext \
  13897. conftest$ac_exeext conftest.$ac_ext
  13898. LDFLAGS="$save_LDFLAGS"
  13899. ;;
  13900. esac
  13901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  13902. $as_echo "$have_dynamicbase" >&6; }
  13903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  13904. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  13905. have_nxcompat=no
  13906. case "$host" in
  13907. *)
  13908. save_LDFLAGS="$LDFLAGS"
  13909. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  13910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13911. /* end confdefs.h. */
  13912. int
  13913. main ()
  13914. {
  13915. ;
  13916. return 0;
  13917. }
  13918. _ACEOF
  13919. if ac_fn_c_try_link "$LINENO"; then :
  13920. have_nxcompat=yes
  13921. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  13922. fi
  13923. rm -f core conftest.err conftest.$ac_objext \
  13924. conftest$ac_exeext conftest.$ac_ext
  13925. LDFLAGS="$save_LDFLAGS"
  13926. ;;
  13927. esac
  13928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  13929. $as_echo "$have_nxcompat" >&6; }
  13930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  13931. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  13932. have_high_entropy_va=no
  13933. case "$host" in
  13934. *)
  13935. save_LDFLAGS="$LDFLAGS"
  13936. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  13937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13938. /* end confdefs.h. */
  13939. int
  13940. main ()
  13941. {
  13942. ;
  13943. return 0;
  13944. }
  13945. _ACEOF
  13946. if ac_fn_c_try_link "$LINENO"; then :
  13947. have_high_entropy_va=yes
  13948. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  13949. fi
  13950. rm -f core conftest.err conftest.$ac_objext \
  13951. conftest$ac_exeext conftest.$ac_ext
  13952. LDFLAGS="$save_LDFLAGS"
  13953. ;;
  13954. esac
  13955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  13956. $as_echo "$have_high_entropy_va" >&6; }
  13957. # Check whether --enable-libc was given.
  13958. if test "${enable_libc+set}" = set; then :
  13959. enableval=$enable_libc;
  13960. else
  13961. enable_libc=yes
  13962. fi
  13963. if test x$enable_libc = xyes; then
  13964. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13966. $as_echo_n "checking for ANSI C header files... " >&6; }
  13967. if ${ac_cv_header_stdc+:} false; then :
  13968. $as_echo_n "(cached) " >&6
  13969. else
  13970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13971. /* end confdefs.h. */
  13972. #include <stdlib.h>
  13973. #include <stdarg.h>
  13974. #include <string.h>
  13975. #include <float.h>
  13976. int
  13977. main ()
  13978. {
  13979. ;
  13980. return 0;
  13981. }
  13982. _ACEOF
  13983. if ac_fn_c_try_compile "$LINENO"; then :
  13984. ac_cv_header_stdc=yes
  13985. else
  13986. ac_cv_header_stdc=no
  13987. fi
  13988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13989. if test $ac_cv_header_stdc = yes; then
  13990. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13992. /* end confdefs.h. */
  13993. #include <string.h>
  13994. _ACEOF
  13995. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13996. $EGREP "memchr" >/dev/null 2>&1; then :
  13997. else
  13998. ac_cv_header_stdc=no
  13999. fi
  14000. rm -f conftest*
  14001. fi
  14002. if test $ac_cv_header_stdc = yes; then
  14003. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14005. /* end confdefs.h. */
  14006. #include <stdlib.h>
  14007. _ACEOF
  14008. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14009. $EGREP "free" >/dev/null 2>&1; then :
  14010. else
  14011. ac_cv_header_stdc=no
  14012. fi
  14013. rm -f conftest*
  14014. fi
  14015. if test $ac_cv_header_stdc = yes; then
  14016. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14017. if test "$cross_compiling" = yes; then :
  14018. :
  14019. else
  14020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14021. /* end confdefs.h. */
  14022. #include <ctype.h>
  14023. #include <stdlib.h>
  14024. #if ((' ' & 0x0FF) == 0x020)
  14025. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14026. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14027. #else
  14028. # define ISLOWER(c) \
  14029. (('a' <= (c) && (c) <= 'i') \
  14030. || ('j' <= (c) && (c) <= 'r') \
  14031. || ('s' <= (c) && (c) <= 'z'))
  14032. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14033. #endif
  14034. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14035. int
  14036. main ()
  14037. {
  14038. int i;
  14039. for (i = 0; i < 256; i++)
  14040. if (XOR (islower (i), ISLOWER (i))
  14041. || toupper (i) != TOUPPER (i))
  14042. return 2;
  14043. return 0;
  14044. }
  14045. _ACEOF
  14046. if ac_fn_c_try_run "$LINENO"; then :
  14047. else
  14048. ac_cv_header_stdc=no
  14049. fi
  14050. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14051. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14052. fi
  14053. fi
  14054. fi
  14055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14056. $as_echo "$ac_cv_header_stdc" >&6; }
  14057. if test $ac_cv_header_stdc = yes; then
  14058. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14059. fi
  14060. 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
  14061. do :
  14062. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14063. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14064. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14065. cat >>confdefs.h <<_ACEOF
  14066. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14067. _ACEOF
  14068. fi
  14069. done
  14070. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14071. if test "x$ac_cv_type_size_t" = xyes; then :
  14072. else
  14073. cat >>confdefs.h <<_ACEOF
  14074. #define size_t unsigned int
  14075. _ACEOF
  14076. fi
  14077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14078. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14079. if ${ac_cv_define_M_PI+:} false; then :
  14080. $as_echo_n "(cached) " >&6
  14081. else
  14082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14083. /* end confdefs.h. */
  14084. #include <math.h>
  14085. #ifdef M_PI
  14086. YES_IS_DEFINED
  14087. #endif
  14088. _ACEOF
  14089. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14090. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14091. ac_cv_define_M_PI=yes
  14092. else
  14093. ac_cv_define_M_PI=no
  14094. fi
  14095. rm -f conftest*
  14096. fi
  14097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14098. $as_echo "$ac_cv_define_M_PI" >&6; }
  14099. if test "$ac_cv_define_M_PI" = "yes" ; then
  14100. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14101. fi
  14102. case "$host" in
  14103. *-*-cygwin* | *-*-mingw32*)
  14104. ;;
  14105. *)
  14106. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14107. # for constant arguments. Useless!
  14108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14109. $as_echo_n "checking for working alloca.h... " >&6; }
  14110. if ${ac_cv_working_alloca_h+:} false; then :
  14111. $as_echo_n "(cached) " >&6
  14112. else
  14113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14114. /* end confdefs.h. */
  14115. #include <alloca.h>
  14116. int
  14117. main ()
  14118. {
  14119. char *p = (char *) alloca (2 * sizeof (int));
  14120. if (p) return 0;
  14121. ;
  14122. return 0;
  14123. }
  14124. _ACEOF
  14125. if ac_fn_c_try_link "$LINENO"; then :
  14126. ac_cv_working_alloca_h=yes
  14127. else
  14128. ac_cv_working_alloca_h=no
  14129. fi
  14130. rm -f core conftest.err conftest.$ac_objext \
  14131. conftest$ac_exeext conftest.$ac_ext
  14132. fi
  14133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14134. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14135. if test $ac_cv_working_alloca_h = yes; then
  14136. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14137. fi
  14138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14139. $as_echo_n "checking for alloca... " >&6; }
  14140. if ${ac_cv_func_alloca_works+:} false; then :
  14141. $as_echo_n "(cached) " >&6
  14142. else
  14143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14144. /* end confdefs.h. */
  14145. #ifdef __GNUC__
  14146. # define alloca __builtin_alloca
  14147. #else
  14148. # ifdef _MSC_VER
  14149. # include <malloc.h>
  14150. # define alloca _alloca
  14151. # else
  14152. # ifdef HAVE_ALLOCA_H
  14153. # include <alloca.h>
  14154. # else
  14155. # ifdef _AIX
  14156. #pragma alloca
  14157. # else
  14158. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14159. void *alloca (size_t);
  14160. # endif
  14161. # endif
  14162. # endif
  14163. # endif
  14164. #endif
  14165. int
  14166. main ()
  14167. {
  14168. char *p = (char *) alloca (1);
  14169. if (p) return 0;
  14170. ;
  14171. return 0;
  14172. }
  14173. _ACEOF
  14174. if ac_fn_c_try_link "$LINENO"; then :
  14175. ac_cv_func_alloca_works=yes
  14176. else
  14177. ac_cv_func_alloca_works=no
  14178. fi
  14179. rm -f core conftest.err conftest.$ac_objext \
  14180. conftest$ac_exeext conftest.$ac_ext
  14181. fi
  14182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14183. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14184. if test $ac_cv_func_alloca_works = yes; then
  14185. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14186. else
  14187. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14188. # that cause trouble. Some versions do not even contain alloca or
  14189. # contain a buggy version. If you still want to use their alloca,
  14190. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14191. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14192. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14194. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14195. if ${ac_cv_os_cray+:} false; then :
  14196. $as_echo_n "(cached) " >&6
  14197. else
  14198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14199. /* end confdefs.h. */
  14200. #if defined CRAY && ! defined CRAY2
  14201. webecray
  14202. #else
  14203. wenotbecray
  14204. #endif
  14205. _ACEOF
  14206. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14207. $EGREP "webecray" >/dev/null 2>&1; then :
  14208. ac_cv_os_cray=yes
  14209. else
  14210. ac_cv_os_cray=no
  14211. fi
  14212. rm -f conftest*
  14213. fi
  14214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14215. $as_echo "$ac_cv_os_cray" >&6; }
  14216. if test $ac_cv_os_cray = yes; then
  14217. for ac_func in _getb67 GETB67 getb67; do
  14218. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14219. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14220. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14221. cat >>confdefs.h <<_ACEOF
  14222. #define CRAY_STACKSEG_END $ac_func
  14223. _ACEOF
  14224. break
  14225. fi
  14226. done
  14227. fi
  14228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14229. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14230. if ${ac_cv_c_stack_direction+:} false; then :
  14231. $as_echo_n "(cached) " >&6
  14232. else
  14233. if test "$cross_compiling" = yes; then :
  14234. ac_cv_c_stack_direction=0
  14235. else
  14236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14237. /* end confdefs.h. */
  14238. $ac_includes_default
  14239. int
  14240. find_stack_direction (int *addr, int depth)
  14241. {
  14242. int dir, dummy = 0;
  14243. if (! addr)
  14244. addr = &dummy;
  14245. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14246. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14247. return dir + dummy;
  14248. }
  14249. int
  14250. main (int argc, char **argv)
  14251. {
  14252. return find_stack_direction (0, argc + !argv + 20) < 0;
  14253. }
  14254. _ACEOF
  14255. if ac_fn_c_try_run "$LINENO"; then :
  14256. ac_cv_c_stack_direction=1
  14257. else
  14258. ac_cv_c_stack_direction=-1
  14259. fi
  14260. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14261. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14262. fi
  14263. fi
  14264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14265. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14266. cat >>confdefs.h <<_ACEOF
  14267. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14268. _ACEOF
  14269. fi
  14270. ;;
  14271. esac
  14272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14273. $as_echo_n "checking for working memcmp... " >&6; }
  14274. if ${ac_cv_func_memcmp_working+:} false; then :
  14275. $as_echo_n "(cached) " >&6
  14276. else
  14277. if test "$cross_compiling" = yes; then :
  14278. ac_cv_func_memcmp_working=no
  14279. else
  14280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14281. /* end confdefs.h. */
  14282. $ac_includes_default
  14283. int
  14284. main ()
  14285. {
  14286. /* Some versions of memcmp are not 8-bit clean. */
  14287. char c0 = '\100', c1 = '\200', c2 = '\201';
  14288. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14289. return 1;
  14290. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14291. or more and with at least one buffer not starting on a 4-byte boundary.
  14292. William Lewis provided this test program. */
  14293. {
  14294. char foo[21];
  14295. char bar[21];
  14296. int i;
  14297. for (i = 0; i < 4; i++)
  14298. {
  14299. char *a = foo + i;
  14300. char *b = bar + i;
  14301. strcpy (a, "--------01111111");
  14302. strcpy (b, "--------10000000");
  14303. if (memcmp (a, b, 16) >= 0)
  14304. return 1;
  14305. }
  14306. return 0;
  14307. }
  14308. ;
  14309. return 0;
  14310. }
  14311. _ACEOF
  14312. if ac_fn_c_try_run "$LINENO"; then :
  14313. ac_cv_func_memcmp_working=yes
  14314. else
  14315. ac_cv_func_memcmp_working=no
  14316. fi
  14317. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14318. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14319. fi
  14320. fi
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14322. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14323. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14324. *" memcmp.$ac_objext "* ) ;;
  14325. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14326. ;;
  14327. esac
  14328. if test x$ac_cv_func_memcmp_working = xyes; then
  14329. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14330. fi
  14331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14332. $as_echo_n "checking for working strtod... " >&6; }
  14333. if ${ac_cv_func_strtod+:} false; then :
  14334. $as_echo_n "(cached) " >&6
  14335. else
  14336. if test "$cross_compiling" = yes; then :
  14337. ac_cv_func_strtod=no
  14338. else
  14339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14340. /* end confdefs.h. */
  14341. $ac_includes_default
  14342. #ifndef strtod
  14343. double strtod ();
  14344. #endif
  14345. int
  14346. main()
  14347. {
  14348. {
  14349. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14350. char *string = " +69";
  14351. char *term;
  14352. double value;
  14353. value = strtod (string, &term);
  14354. if (value != 69 || term != (string + 4))
  14355. return 1;
  14356. }
  14357. {
  14358. /* Under Solaris 2.4, strtod returns the wrong value for the
  14359. terminating character under some conditions. */
  14360. char *string = "NaN";
  14361. char *term;
  14362. strtod (string, &term);
  14363. if (term != string && *(term - 1) == 0)
  14364. return 1;
  14365. }
  14366. return 0;
  14367. }
  14368. _ACEOF
  14369. if ac_fn_c_try_run "$LINENO"; then :
  14370. ac_cv_func_strtod=yes
  14371. else
  14372. ac_cv_func_strtod=no
  14373. fi
  14374. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14375. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14376. fi
  14377. fi
  14378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14379. $as_echo "$ac_cv_func_strtod" >&6; }
  14380. if test $ac_cv_func_strtod = no; then
  14381. case " $LIBOBJS " in
  14382. *" strtod.$ac_objext "* ) ;;
  14383. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14384. ;;
  14385. esac
  14386. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14387. if test "x$ac_cv_func_pow" = xyes; then :
  14388. fi
  14389. if test $ac_cv_func_pow = no; then
  14390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14391. $as_echo_n "checking for pow in -lm... " >&6; }
  14392. if ${ac_cv_lib_m_pow+:} false; then :
  14393. $as_echo_n "(cached) " >&6
  14394. else
  14395. ac_check_lib_save_LIBS=$LIBS
  14396. LIBS="-lm $LIBS"
  14397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14398. /* end confdefs.h. */
  14399. /* Override any GCC internal prototype to avoid an error.
  14400. Use char because int might match the return type of a GCC
  14401. builtin and then its argument prototype would still apply. */
  14402. #ifdef __cplusplus
  14403. extern "C"
  14404. #endif
  14405. char pow ();
  14406. int
  14407. main ()
  14408. {
  14409. return pow ();
  14410. ;
  14411. return 0;
  14412. }
  14413. _ACEOF
  14414. if ac_fn_c_try_link "$LINENO"; then :
  14415. ac_cv_lib_m_pow=yes
  14416. else
  14417. ac_cv_lib_m_pow=no
  14418. fi
  14419. rm -f core conftest.err conftest.$ac_objext \
  14420. conftest$ac_exeext conftest.$ac_ext
  14421. LIBS=$ac_check_lib_save_LIBS
  14422. fi
  14423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14424. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14425. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14426. POW_LIB=-lm
  14427. else
  14428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14429. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14430. fi
  14431. fi
  14432. fi
  14433. if test x$ac_cv_func_strtod = xyes; then
  14434. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14435. fi
  14436. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14437. if test "x$ac_cv_func_mprotect" = xyes; then :
  14438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14439. /* end confdefs.h. */
  14440. #include <sys/types.h>
  14441. #include <sys/mman.h>
  14442. int
  14443. main ()
  14444. {
  14445. ;
  14446. return 0;
  14447. }
  14448. _ACEOF
  14449. if ac_fn_c_try_compile "$LINENO"; then :
  14450. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14451. fi
  14452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14453. fi
  14454. 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
  14455. do :
  14456. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14457. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14458. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14459. cat >>confdefs.h <<_ACEOF
  14460. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14461. _ACEOF
  14462. fi
  14463. done
  14464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14465. $as_echo_n "checking for pow in -lm... " >&6; }
  14466. if ${ac_cv_lib_m_pow+:} false; then :
  14467. $as_echo_n "(cached) " >&6
  14468. else
  14469. ac_check_lib_save_LIBS=$LIBS
  14470. LIBS="-lm $LIBS"
  14471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14472. /* end confdefs.h. */
  14473. /* Override any GCC internal prototype to avoid an error.
  14474. Use char because int might match the return type of a GCC
  14475. builtin and then its argument prototype would still apply. */
  14476. #ifdef __cplusplus
  14477. extern "C"
  14478. #endif
  14479. char pow ();
  14480. int
  14481. main ()
  14482. {
  14483. return pow ();
  14484. ;
  14485. return 0;
  14486. }
  14487. _ACEOF
  14488. if ac_fn_c_try_link "$LINENO"; then :
  14489. ac_cv_lib_m_pow=yes
  14490. else
  14491. ac_cv_lib_m_pow=no
  14492. fi
  14493. rm -f core conftest.err conftest.$ac_objext \
  14494. conftest$ac_exeext conftest.$ac_ext
  14495. LIBS=$ac_check_lib_save_LIBS
  14496. fi
  14497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14498. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14499. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14500. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14501. fi
  14502. 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
  14503. do :
  14504. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14505. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14506. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14507. cat >>confdefs.h <<_ACEOF
  14508. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14509. _ACEOF
  14510. fi
  14511. done
  14512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14513. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14514. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14515. $as_echo_n "(cached) " >&6
  14516. else
  14517. ac_check_lib_save_LIBS=$LIBS
  14518. LIBS="-liconv $LIBS"
  14519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14520. /* end confdefs.h. */
  14521. /* Override any GCC internal prototype to avoid an error.
  14522. Use char because int might match the return type of a GCC
  14523. builtin and then its argument prototype would still apply. */
  14524. #ifdef __cplusplus
  14525. extern "C"
  14526. #endif
  14527. char iconv_open ();
  14528. int
  14529. main ()
  14530. {
  14531. return iconv_open ();
  14532. ;
  14533. return 0;
  14534. }
  14535. _ACEOF
  14536. if ac_fn_c_try_link "$LINENO"; then :
  14537. ac_cv_lib_iconv_iconv_open=yes
  14538. else
  14539. ac_cv_lib_iconv_iconv_open=no
  14540. fi
  14541. rm -f core conftest.err conftest.$ac_objext \
  14542. conftest$ac_exeext conftest.$ac_ext
  14543. LIBS=$ac_check_lib_save_LIBS
  14544. fi
  14545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14546. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14547. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14548. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14549. fi
  14550. for ac_func in iconv
  14551. do :
  14552. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14553. if test "x$ac_cv_func_iconv" = xyes; then :
  14554. cat >>confdefs.h <<_ACEOF
  14555. #define HAVE_ICONV 1
  14556. _ACEOF
  14557. fi
  14558. done
  14559. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14560. "
  14561. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14562. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14563. fi
  14564. for ac_header in libunwind.h
  14565. do :
  14566. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14567. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14568. cat >>confdefs.h <<_ACEOF
  14569. #define HAVE_LIBUNWIND_H 1
  14570. _ACEOF
  14571. fi
  14572. done
  14573. fi
  14574. # Check whether --enable-gcc-atomics was given.
  14575. if test "${enable_gcc_atomics+set}" = set; then :
  14576. enableval=$enable_gcc_atomics;
  14577. else
  14578. enable_gcc_atomics=yes
  14579. fi
  14580. if test x$enable_gcc_atomics = xyes; then
  14581. have_gcc_atomics=no
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14583. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14585. /* end confdefs.h. */
  14586. int
  14587. main ()
  14588. {
  14589. int a;
  14590. void *x, *y, *z;
  14591. __sync_lock_test_and_set(&a, 4);
  14592. __sync_lock_test_and_set(&x, y);
  14593. __sync_fetch_and_add(&a, 1);
  14594. __sync_bool_compare_and_swap(&a, 5, 10);
  14595. __sync_bool_compare_and_swap(&x, y, z);
  14596. ;
  14597. return 0;
  14598. }
  14599. _ACEOF
  14600. if ac_fn_c_try_link "$LINENO"; then :
  14601. have_gcc_atomics=yes
  14602. fi
  14603. rm -f core conftest.err conftest.$ac_objext \
  14604. conftest$ac_exeext conftest.$ac_ext
  14605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14606. $as_echo "$have_gcc_atomics" >&6; }
  14607. if test x$have_gcc_atomics = xyes; then
  14608. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14609. else
  14610. # See if we have the minimum operation needed for GCC atomics
  14611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14612. /* end confdefs.h. */
  14613. int
  14614. main ()
  14615. {
  14616. int a;
  14617. __sync_lock_test_and_set(&a, 1);
  14618. __sync_lock_release(&a);
  14619. ;
  14620. return 0;
  14621. }
  14622. _ACEOF
  14623. if ac_fn_c_try_link "$LINENO"; then :
  14624. have_gcc_sync_lock_test_and_set=yes
  14625. fi
  14626. rm -f core conftest.err conftest.$ac_objext \
  14627. conftest$ac_exeext conftest.$ac_ext
  14628. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14629. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14630. fi
  14631. fi
  14632. fi
  14633. # Standard C sources
  14634. SOURCES="$SOURCES $srcdir/src/*.c"
  14635. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14636. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14637. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14638. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14639. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14640. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14641. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14642. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14643. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14644. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14645. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14646. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14647. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14648. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14649. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14650. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14651. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14652. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14653. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14654. # Check whether --enable-atomic was given.
  14655. if test "${enable_atomic+set}" = set; then :
  14656. enableval=$enable_atomic;
  14657. else
  14658. enable_atomic=yes
  14659. fi
  14660. if test x$enable_atomic != xyes; then
  14661. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14662. else
  14663. SUMMARY_modules="${SUMMARY_modules} atomic"
  14664. fi
  14665. # Check whether --enable-audio was given.
  14666. if test "${enable_audio+set}" = set; then :
  14667. enableval=$enable_audio;
  14668. else
  14669. enable_audio=yes
  14670. fi
  14671. if test x$enable_audio != xyes; then
  14672. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14673. else
  14674. SUMMARY_modules="${SUMMARY_modules} audio"
  14675. fi
  14676. # Check whether --enable-video was given.
  14677. if test "${enable_video+set}" = set; then :
  14678. enableval=$enable_video;
  14679. else
  14680. enable_video=yes
  14681. fi
  14682. if test x$enable_video != xyes; then
  14683. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14684. else
  14685. SUMMARY_modules="${SUMMARY_modules} video"
  14686. fi
  14687. # Check whether --enable-render was given.
  14688. if test "${enable_render+set}" = set; then :
  14689. enableval=$enable_render;
  14690. else
  14691. enable_render=yes
  14692. fi
  14693. if test x$enable_render != xyes; then
  14694. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14695. else
  14696. SUMMARY_modules="${SUMMARY_modules} render"
  14697. fi
  14698. # Check whether --enable-events was given.
  14699. if test "${enable_events+set}" = set; then :
  14700. enableval=$enable_events;
  14701. else
  14702. enable_events=yes
  14703. fi
  14704. if test x$enable_events != xyes; then
  14705. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14706. else
  14707. SUMMARY_modules="${SUMMARY_modules} events"
  14708. fi
  14709. # Check whether --enable-joystick was given.
  14710. if test "${enable_joystick+set}" = set; then :
  14711. enableval=$enable_joystick;
  14712. else
  14713. enable_joystick=yes
  14714. fi
  14715. if test x$enable_joystick != xyes; then
  14716. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14717. else
  14718. SUMMARY_modules="${SUMMARY_modules} joystick"
  14719. fi
  14720. # Check whether --enable-haptic was given.
  14721. if test "${enable_haptic+set}" = set; then :
  14722. enableval=$enable_haptic;
  14723. else
  14724. enable_haptic=yes
  14725. fi
  14726. if test x$enable_haptic != xyes; then
  14727. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14728. else
  14729. SUMMARY_modules="${SUMMARY_modules} haptic"
  14730. fi
  14731. # Check whether --enable-sensor was given.
  14732. if test "${enable_sensor+set}" = set; then :
  14733. enableval=$enable_sensor;
  14734. else
  14735. enable_sensor=yes
  14736. fi
  14737. if test x$enable_sensor != xyes; then
  14738. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14739. else
  14740. SUMMARY_modules="${SUMMARY_modules} sensor"
  14741. fi
  14742. # Check whether --enable-power was given.
  14743. if test "${enable_power+set}" = set; then :
  14744. enableval=$enable_power;
  14745. else
  14746. enable_power=yes
  14747. fi
  14748. if test x$enable_power != xyes; then
  14749. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14750. else
  14751. SUMMARY_modules="${SUMMARY_modules} power"
  14752. fi
  14753. # Check whether --enable-filesystem was given.
  14754. if test "${enable_filesystem+set}" = set; then :
  14755. enableval=$enable_filesystem;
  14756. else
  14757. enable_filesystem=yes
  14758. fi
  14759. if test x$enable_filesystem != xyes; then
  14760. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14761. else
  14762. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14763. fi
  14764. # Check whether --enable-threads was given.
  14765. if test "${enable_threads+set}" = set; then :
  14766. enableval=$enable_threads;
  14767. else
  14768. enable_threads=yes
  14769. fi
  14770. if test x$enable_threads != xyes; then
  14771. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14772. else
  14773. SUMMARY_modules="${SUMMARY_modules} threads"
  14774. fi
  14775. # Check whether --enable-timers was given.
  14776. if test "${enable_timers+set}" = set; then :
  14777. enableval=$enable_timers;
  14778. else
  14779. enable_timers=yes
  14780. fi
  14781. if test x$enable_timers != xyes; then
  14782. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14783. else
  14784. SUMMARY_modules="${SUMMARY_modules} timers"
  14785. fi
  14786. # Check whether --enable-file was given.
  14787. if test "${enable_file+set}" = set; then :
  14788. enableval=$enable_file;
  14789. else
  14790. enable_file=yes
  14791. fi
  14792. if test x$enable_file != xyes; then
  14793. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14794. else
  14795. SUMMARY_modules="${SUMMARY_modules} file"
  14796. fi
  14797. # Check whether --enable-loadso was given.
  14798. if test "${enable_loadso+set}" = set; then :
  14799. enableval=$enable_loadso;
  14800. else
  14801. enable_loadso=yes
  14802. fi
  14803. if test x$enable_loadso != xyes; then
  14804. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14805. else
  14806. SUMMARY_modules="${SUMMARY_modules} loadso"
  14807. fi
  14808. # Check whether --enable-cpuinfo was given.
  14809. if test "${enable_cpuinfo+set}" = set; then :
  14810. enableval=$enable_cpuinfo;
  14811. else
  14812. enable_cpuinfo=yes
  14813. fi
  14814. if test x$enable_cpuinfo != xyes; then
  14815. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14816. else
  14817. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14818. fi
  14819. # Check whether --enable-assembly was given.
  14820. if test "${enable_assembly+set}" = set; then :
  14821. enableval=$enable_assembly;
  14822. else
  14823. enable_assembly=yes
  14824. fi
  14825. if test x$enable_assembly = xyes; then
  14826. SUMMARY_modules="${SUMMARY_modules} assembly"
  14827. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14828. # Make sure that we don't generate floating point code that would
  14829. # cause illegal instruction exceptions on older processors
  14830. case "$host" in
  14831. *-*-darwin*)
  14832. # Don't need to worry about Apple hardware, it's all SSE capable
  14833. default_ssemath=yes
  14834. ;;
  14835. *64-*-*)
  14836. # x86 64-bit architectures all have SSE instructions
  14837. default_ssemath=yes
  14838. ;;
  14839. *)
  14840. default_ssemath=no
  14841. ;;
  14842. esac
  14843. # Check whether --enable-ssemath was given.
  14844. if test "${enable_ssemath+set}" = set; then :
  14845. enableval=$enable_ssemath;
  14846. else
  14847. enable_ssemath=$default_ssemath
  14848. fi
  14849. if test x$enable_ssemath = xno; then
  14850. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14851. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14852. fi
  14853. fi
  14854. # Check whether --enable-mmx was given.
  14855. if test "${enable_mmx+set}" = set; then :
  14856. enableval=$enable_mmx;
  14857. else
  14858. enable_mmx=yes
  14859. fi
  14860. if test x$enable_mmx = xyes; then
  14861. save_CFLAGS="$CFLAGS"
  14862. have_gcc_mmx=no
  14863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14864. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14865. mmx_CFLAGS="-mmmx"
  14866. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14868. /* end confdefs.h. */
  14869. #ifdef __MINGW32__
  14870. #include <_mingw.h>
  14871. #ifdef __MINGW64_VERSION_MAJOR
  14872. #include <intrin.h>
  14873. #else
  14874. #include <mmintrin.h>
  14875. #endif
  14876. #else
  14877. #include <mmintrin.h>
  14878. #endif
  14879. #ifndef __MMX__
  14880. #error Assembler CPP flag not enabled
  14881. #endif
  14882. int
  14883. main ()
  14884. {
  14885. ;
  14886. return 0;
  14887. }
  14888. _ACEOF
  14889. if ac_fn_c_try_compile "$LINENO"; then :
  14890. have_gcc_mmx=yes
  14891. fi
  14892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14894. $as_echo "$have_gcc_mmx" >&6; }
  14895. CFLAGS="$save_CFLAGS"
  14896. if test x$have_gcc_mmx = xyes; then
  14897. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14898. SUMMARY_math="${SUMMARY_math} mmx"
  14899. fi
  14900. fi
  14901. # Check whether --enable-3dnow was given.
  14902. if test "${enable_3dnow+set}" = set; then :
  14903. enableval=$enable_3dnow;
  14904. else
  14905. enable_3dnow=yes
  14906. fi
  14907. if test x$enable_3dnow = xyes; then
  14908. save_CFLAGS="$CFLAGS"
  14909. have_gcc_3dnow=no
  14910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14911. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14912. amd3dnow_CFLAGS="-m3dnow"
  14913. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14915. /* end confdefs.h. */
  14916. #include <mm3dnow.h>
  14917. #ifndef __3dNOW__
  14918. #error Assembler CPP flag not enabled
  14919. #endif
  14920. int
  14921. main ()
  14922. {
  14923. void *p = 0;
  14924. _m_prefetch(p);
  14925. ;
  14926. return 0;
  14927. }
  14928. _ACEOF
  14929. if ac_fn_c_try_link "$LINENO"; then :
  14930. have_gcc_3dnow=yes
  14931. fi
  14932. rm -f core conftest.err conftest.$ac_objext \
  14933. conftest$ac_exeext conftest.$ac_ext
  14934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14935. $as_echo "$have_gcc_3dnow" >&6; }
  14936. CFLAGS="$save_CFLAGS"
  14937. if test x$have_gcc_3dnow = xyes; then
  14938. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14939. SUMMARY_math="${SUMMARY_math} 3dnow"
  14940. fi
  14941. fi
  14942. # Check whether --enable-sse was given.
  14943. if test "${enable_sse+set}" = set; then :
  14944. enableval=$enable_sse;
  14945. else
  14946. enable_sse=yes
  14947. fi
  14948. if test x$enable_sse = xyes; then
  14949. save_CFLAGS="$CFLAGS"
  14950. have_gcc_sse=no
  14951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14952. $as_echo_n "checking for GCC -msse option... " >&6; }
  14953. sse_CFLAGS="-msse"
  14954. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14956. /* end confdefs.h. */
  14957. #ifdef __MINGW32__
  14958. #include <_mingw.h>
  14959. #ifdef __MINGW64_VERSION_MAJOR
  14960. #include <intrin.h>
  14961. #else
  14962. #include <xmmintrin.h>
  14963. #endif
  14964. #else
  14965. #include <xmmintrin.h>
  14966. #endif
  14967. #ifndef __SSE__
  14968. #error Assembler CPP flag not enabled
  14969. #endif
  14970. int
  14971. main ()
  14972. {
  14973. ;
  14974. return 0;
  14975. }
  14976. _ACEOF
  14977. if ac_fn_c_try_compile "$LINENO"; then :
  14978. have_gcc_sse=yes
  14979. fi
  14980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14982. $as_echo "$have_gcc_sse" >&6; }
  14983. CFLAGS="$save_CFLAGS"
  14984. if test x$have_gcc_sse = xyes; then
  14985. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14986. SUMMARY_math="${SUMMARY_math} sse"
  14987. fi
  14988. fi
  14989. # Check whether --enable-sse2 was given.
  14990. if test "${enable_sse2+set}" = set; then :
  14991. enableval=$enable_sse2;
  14992. else
  14993. enable_sse2=$default_ssemath
  14994. fi
  14995. if test x$enable_sse2 = xyes; then
  14996. save_CFLAGS="$CFLAGS"
  14997. have_gcc_sse2=no
  14998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14999. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15000. sse2_CFLAGS="-msse2"
  15001. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15003. /* end confdefs.h. */
  15004. #ifdef __MINGW32__
  15005. #include <_mingw.h>
  15006. #ifdef __MINGW64_VERSION_MAJOR
  15007. #include <intrin.h>
  15008. #else
  15009. #include <emmintrin.h>
  15010. #endif
  15011. #else
  15012. #include <emmintrin.h>
  15013. #endif
  15014. #ifndef __SSE2__
  15015. #error Assembler CPP flag not enabled
  15016. #endif
  15017. int
  15018. main ()
  15019. {
  15020. ;
  15021. return 0;
  15022. }
  15023. _ACEOF
  15024. if ac_fn_c_try_compile "$LINENO"; then :
  15025. have_gcc_sse2=yes
  15026. fi
  15027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15029. $as_echo "$have_gcc_sse2" >&6; }
  15030. CFLAGS="$save_CFLAGS"
  15031. if test x$have_gcc_sse2 = xyes; then
  15032. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15033. SUMMARY_math="${SUMMARY_math} sse2"
  15034. fi
  15035. fi
  15036. # Check whether --enable-sse3 was given.
  15037. if test "${enable_sse3+set}" = set; then :
  15038. enableval=$enable_sse3;
  15039. else
  15040. enable_sse3=$default_ssemath
  15041. fi
  15042. if test x$enable_sse3 = xyes; then
  15043. save_CFLAGS="$CFLAGS"
  15044. have_gcc_sse3=no
  15045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15046. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15047. sse3_CFLAGS="-msse3"
  15048. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15050. /* end confdefs.h. */
  15051. #ifdef __MINGW32__
  15052. #include <_mingw.h>
  15053. #ifdef __MINGW64_VERSION_MAJOR
  15054. #include <intrin.h>
  15055. #else
  15056. #include <pmmintrin.h>
  15057. #endif
  15058. #else
  15059. #include <pmmintrin.h>
  15060. #endif
  15061. #ifndef __SSE2__
  15062. #error Assembler CPP flag not enabled
  15063. #endif
  15064. int
  15065. main ()
  15066. {
  15067. ;
  15068. return 0;
  15069. }
  15070. _ACEOF
  15071. if ac_fn_c_try_compile "$LINENO"; then :
  15072. have_gcc_sse3=yes
  15073. fi
  15074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15076. $as_echo "$have_gcc_sse3" >&6; }
  15077. CFLAGS="$save_CFLAGS"
  15078. if test x$have_gcc_sse3 = xyes; then
  15079. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15080. SUMMARY_math="${SUMMARY_math} sse3"
  15081. fi
  15082. fi
  15083. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15084. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15085. have_immintrin_h_hdr=yes
  15086. else
  15087. have_immintrin_h_hdr=no
  15088. fi
  15089. if test x$have_immintrin_h_hdr = xyes; then
  15090. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15091. fi
  15092. # Check whether --enable-altivec was given.
  15093. if test "${enable_altivec+set}" = set; then :
  15094. enableval=$enable_altivec;
  15095. else
  15096. enable_altivec=yes
  15097. fi
  15098. if test x$enable_altivec = xyes; then
  15099. save_CFLAGS="$CFLAGS"
  15100. have_gcc_altivec=no
  15101. have_altivec_h_hdr=no
  15102. altivec_CFLAGS="-maltivec"
  15103. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15105. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15107. /* end confdefs.h. */
  15108. #include <altivec.h>
  15109. vector unsigned int vzero() {
  15110. return vec_splat_u32(0);
  15111. }
  15112. int
  15113. main ()
  15114. {
  15115. ;
  15116. return 0;
  15117. }
  15118. _ACEOF
  15119. if ac_fn_c_try_compile "$LINENO"; then :
  15120. have_gcc_altivec=yes
  15121. have_altivec_h_hdr=yes
  15122. fi
  15123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15125. $as_echo "$have_gcc_altivec" >&6; }
  15126. if test x$have_gcc_altivec = xno; then
  15127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15128. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15130. /* end confdefs.h. */
  15131. vector unsigned int vzero() {
  15132. return vec_splat_u32(0);
  15133. }
  15134. int
  15135. main ()
  15136. {
  15137. ;
  15138. return 0;
  15139. }
  15140. _ACEOF
  15141. if ac_fn_c_try_compile "$LINENO"; then :
  15142. have_gcc_altivec=yes
  15143. fi
  15144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15146. $as_echo "$have_gcc_altivec" >&6; }
  15147. fi
  15148. if test x$have_gcc_altivec = xno; then
  15149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15150. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15151. altivec_CFLAGS="-faltivec"
  15152. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15154. /* end confdefs.h. */
  15155. #include <altivec.h>
  15156. vector unsigned int vzero() {
  15157. return vec_splat_u32(0);
  15158. }
  15159. int
  15160. main ()
  15161. {
  15162. ;
  15163. return 0;
  15164. }
  15165. _ACEOF
  15166. if ac_fn_c_try_compile "$LINENO"; then :
  15167. have_gcc_altivec=yes
  15168. have_altivec_h_hdr=yes
  15169. fi
  15170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15172. $as_echo "$have_gcc_altivec" >&6; }
  15173. fi
  15174. if test x$have_gcc_altivec = xno; then
  15175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15176. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15178. /* end confdefs.h. */
  15179. vector unsigned int vzero() {
  15180. return vec_splat_u32(0);
  15181. }
  15182. int
  15183. main ()
  15184. {
  15185. ;
  15186. return 0;
  15187. }
  15188. _ACEOF
  15189. if ac_fn_c_try_compile "$LINENO"; then :
  15190. have_gcc_altivec=yes
  15191. fi
  15192. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15194. $as_echo "$have_gcc_altivec" >&6; }
  15195. fi
  15196. CFLAGS="$save_CFLAGS"
  15197. if test x$have_gcc_altivec = xyes; then
  15198. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15199. if test x$have_altivec_h_hdr = xyes; then
  15200. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15201. fi
  15202. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15203. SUMMARY_math="${SUMMARY_math} altivec"
  15204. fi
  15205. fi
  15206. fi
  15207. CheckOSS()
  15208. {
  15209. # Check whether --enable-oss was given.
  15210. if test "${enable_oss+set}" = set; then :
  15211. enableval=$enable_oss;
  15212. else
  15213. enable_oss=maybe
  15214. fi
  15215. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15216. # use sndio instead. So on there, we default to disabled. You can force
  15217. # it on if you really want, though.
  15218. if test x$enable_oss = xmaybe; then
  15219. enable_oss=yes
  15220. case "$host" in
  15221. *-*-openbsd*)
  15222. enable_oss=no;;
  15223. esac
  15224. fi
  15225. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15227. $as_echo_n "checking for OSS audio support... " >&6; }
  15228. have_oss=no
  15229. if test x$have_oss != xyes; then
  15230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15231. /* end confdefs.h. */
  15232. #include <sys/soundcard.h>
  15233. int
  15234. main ()
  15235. {
  15236. int arg = SNDCTL_DSP_SETFRAGMENT;
  15237. ;
  15238. return 0;
  15239. }
  15240. _ACEOF
  15241. if ac_fn_c_try_compile "$LINENO"; then :
  15242. have_oss=yes
  15243. fi
  15244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15245. fi
  15246. if test x$have_oss != xyes; then
  15247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15248. /* end confdefs.h. */
  15249. #include <soundcard.h>
  15250. int
  15251. main ()
  15252. {
  15253. int arg = SNDCTL_DSP_SETFRAGMENT;
  15254. ;
  15255. return 0;
  15256. }
  15257. _ACEOF
  15258. if ac_fn_c_try_compile "$LINENO"; then :
  15259. have_oss=yes
  15260. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15261. fi
  15262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15263. fi
  15264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15265. $as_echo "$have_oss" >&6; }
  15266. if test x$have_oss = xyes; then
  15267. SUMMARY_audio="${SUMMARY_audio} oss"
  15268. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15269. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15270. have_audio=yes
  15271. # We may need to link with ossaudio emulation library
  15272. case "$host" in
  15273. *-*-openbsd*|*-*-netbsd*)
  15274. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15275. esac
  15276. fi
  15277. fi
  15278. }
  15279. CheckALSA()
  15280. {
  15281. # Check whether --enable-alsa was given.
  15282. if test "${enable_alsa+set}" = set; then :
  15283. enableval=$enable_alsa;
  15284. else
  15285. enable_alsa=yes
  15286. fi
  15287. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15288. alsa_save_CFLAGS="$CFLAGS"
  15289. alsa_save_LDFLAGS="$LDFLAGS"
  15290. alsa_save_LIBS="$LIBS"
  15291. alsa_found=yes
  15292. # Check whether --with-alsa-prefix was given.
  15293. if test "${with_alsa_prefix+set}" = set; then :
  15294. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15295. else
  15296. alsa_prefix=""
  15297. fi
  15298. # Check whether --with-alsa-inc-prefix was given.
  15299. if test "${with_alsa_inc_prefix+set}" = set; then :
  15300. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15301. else
  15302. alsa_inc_prefix=""
  15303. fi
  15304. # Check whether --enable-alsatest was given.
  15305. if test "${enable_alsatest+set}" = set; then :
  15306. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15307. else
  15308. enable_alsatest=yes
  15309. fi
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15311. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15312. if test "$alsa_inc_prefix" != "" ; then
  15313. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15314. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15315. fi
  15316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15317. $as_echo "$ALSA_CFLAGS" >&6; }
  15318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15319. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15320. if test "$alsa_prefix" != "" ; then
  15321. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15322. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15323. fi
  15324. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15325. LIBS=`echo $LIBS | sed 's/-lm//'`
  15326. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15327. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15328. LIBS=`echo $LIBS | sed 's/ //'`
  15329. LIBS="$ALSA_LIBS $LIBS"
  15330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15331. $as_echo "$ALSA_LIBS" >&6; }
  15332. min_alsa_version=1.0.11
  15333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15334. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15335. no_alsa=""
  15336. alsa_min_major_version=`echo $min_alsa_version | \
  15337. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15338. alsa_min_minor_version=`echo $min_alsa_version | \
  15339. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15340. alsa_min_micro_version=`echo $min_alsa_version | \
  15341. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15342. ac_ext=c
  15343. ac_cpp='$CPP $CPPFLAGS'
  15344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15348. /* end confdefs.h. */
  15349. #include <alsa/asoundlib.h>
  15350. int
  15351. main ()
  15352. {
  15353. /* ensure backward compatibility */
  15354. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15355. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15356. #endif
  15357. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15358. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15359. #endif
  15360. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15361. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15362. #endif
  15363. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15364. exit(0);
  15365. # else
  15366. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15367. # error not present
  15368. # endif
  15369. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15370. exit(0);
  15371. # else
  15372. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15373. # error not present
  15374. # endif
  15375. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15376. # error not present
  15377. # endif
  15378. # endif
  15379. # endif
  15380. exit(0);
  15381. ;
  15382. return 0;
  15383. }
  15384. _ACEOF
  15385. if ac_fn_c_try_compile "$LINENO"; then :
  15386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15387. $as_echo "found." >&6; }
  15388. else
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15390. $as_echo "not present." >&6; }
  15391. alsa_found=no
  15392. fi
  15393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15394. ac_ext=c
  15395. ac_cpp='$CPP $CPPFLAGS'
  15396. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15397. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15398. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15399. if test "x$enable_alsatest" = "xyes"; then
  15400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15401. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15402. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15403. $as_echo_n "(cached) " >&6
  15404. else
  15405. ac_check_lib_save_LIBS=$LIBS
  15406. LIBS="-lasound $LIBS"
  15407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15408. /* end confdefs.h. */
  15409. /* Override any GCC internal prototype to avoid an error.
  15410. Use char because int might match the return type of a GCC
  15411. builtin and then its argument prototype would still apply. */
  15412. #ifdef __cplusplus
  15413. extern "C"
  15414. #endif
  15415. char snd_ctl_open ();
  15416. int
  15417. main ()
  15418. {
  15419. return snd_ctl_open ();
  15420. ;
  15421. return 0;
  15422. }
  15423. _ACEOF
  15424. if ac_fn_c_try_link "$LINENO"; then :
  15425. ac_cv_lib_asound_snd_ctl_open=yes
  15426. else
  15427. ac_cv_lib_asound_snd_ctl_open=no
  15428. fi
  15429. rm -f core conftest.err conftest.$ac_objext \
  15430. conftest$ac_exeext conftest.$ac_ext
  15431. LIBS=$ac_check_lib_save_LIBS
  15432. fi
  15433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15434. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15435. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15436. cat >>confdefs.h <<_ACEOF
  15437. #define HAVE_LIBASOUND 1
  15438. _ACEOF
  15439. LIBS="-lasound $LIBS"
  15440. else
  15441. alsa_found=no
  15442. fi
  15443. fi
  15444. if test "x$alsa_found" = "xyes" ; then
  15445. have_alsa=yes
  15446. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15447. LIBS=`echo $LIBS | sed 's/ //'`
  15448. LIBS="-lasound $LIBS"
  15449. fi
  15450. if test "x$alsa_found" = "xno" ; then
  15451. have_alsa=no
  15452. CFLAGS="$alsa_save_CFLAGS"
  15453. LDFLAGS="$alsa_save_LDFLAGS"
  15454. LIBS="$alsa_save_LIBS"
  15455. ALSA_CFLAGS=""
  15456. ALSA_LIBS=""
  15457. fi
  15458. # Restore all flags from before the ALSA detection runs
  15459. CFLAGS="$alsa_save_CFLAGS"
  15460. LDFLAGS="$alsa_save_LDFLAGS"
  15461. LIBS="$alsa_save_LIBS"
  15462. if test x$have_alsa = xyes; then
  15463. # Check whether --enable-alsa-shared was given.
  15464. if test "${enable_alsa_shared+set}" = set; then :
  15465. enableval=$enable_alsa_shared;
  15466. else
  15467. enable_alsa_shared=yes
  15468. fi
  15469. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15470. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15471. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15472. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15473. if test x$have_loadso != xyes && \
  15474. test x$enable_alsa_shared = xyes; then
  15475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15476. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15477. fi
  15478. if test x$have_loadso = xyes && \
  15479. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15480. echo "-- dynamic libasound -> $alsa_lib"
  15481. cat >>confdefs.h <<_ACEOF
  15482. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15483. _ACEOF
  15484. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15485. else
  15486. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15487. SUMMARY_audio="${SUMMARY_audio} alsa"
  15488. fi
  15489. have_audio=yes
  15490. fi
  15491. fi
  15492. }
  15493. CheckJACK()
  15494. {
  15495. # Check whether --enable-jack was given.
  15496. if test "${enable_jack+set}" = set; then :
  15497. enableval=$enable_jack;
  15498. else
  15499. enable_jack=yes
  15500. fi
  15501. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15502. audio_jack=no
  15503. JACK_REQUIRED_VERSION=0.125
  15504. # Extract the first word of "pkg-config", so it can be a program name with args.
  15505. set dummy pkg-config; ac_word=$2
  15506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15507. $as_echo_n "checking for $ac_word... " >&6; }
  15508. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15509. $as_echo_n "(cached) " >&6
  15510. else
  15511. case $PKG_CONFIG in
  15512. [\\/]* | ?:[\\/]*)
  15513. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15514. ;;
  15515. *)
  15516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15517. for as_dir in $PATH
  15518. do
  15519. IFS=$as_save_IFS
  15520. test -z "$as_dir" && as_dir=.
  15521. for ac_exec_ext in '' $ac_executable_extensions; do
  15522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15523. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15525. break 2
  15526. fi
  15527. done
  15528. done
  15529. IFS=$as_save_IFS
  15530. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15531. ;;
  15532. esac
  15533. fi
  15534. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15535. if test -n "$PKG_CONFIG"; then
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15537. $as_echo "$PKG_CONFIG" >&6; }
  15538. else
  15539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15540. $as_echo "no" >&6; }
  15541. fi
  15542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15543. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15544. if test x$PKG_CONFIG != xno; then
  15545. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15546. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15547. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15548. audio_jack=yes
  15549. fi
  15550. fi
  15551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15552. $as_echo "$audio_jack" >&6; }
  15553. if test x$audio_jack = xyes; then
  15554. # Check whether --enable-jack-shared was given.
  15555. if test "${enable_jack_shared+set}" = set; then :
  15556. enableval=$enable_jack_shared;
  15557. else
  15558. enable_jack_shared=yes
  15559. fi
  15560. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15561. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15562. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15563. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15564. if test x$have_loadso != xyes && \
  15565. test x$enable_jack_shared = xyes; then
  15566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15567. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15568. fi
  15569. if test x$have_loadso = xyes && \
  15570. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15571. echo "-- dynamic libjack -> $jack_lib"
  15572. cat >>confdefs.h <<_ACEOF
  15573. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15574. _ACEOF
  15575. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15576. case "$host" in
  15577. # On Solaris, jack must be linked deferred explicitly
  15578. # to prevent undefined symbol failures.
  15579. *-*-solaris*)
  15580. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15581. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15582. esac
  15583. else
  15584. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15585. SUMMARY_audio="${SUMMARY_audio} jack"
  15586. fi
  15587. have_audio=yes
  15588. fi
  15589. fi
  15590. }
  15591. CheckESD()
  15592. {
  15593. # Check whether --enable-esd was given.
  15594. if test "${enable_esd+set}" = set; then :
  15595. enableval=$enable_esd;
  15596. else
  15597. enable_esd=yes
  15598. fi
  15599. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15600. # Check whether --with-esd-prefix was given.
  15601. if test "${with_esd_prefix+set}" = set; then :
  15602. withval=$with_esd_prefix; esd_prefix="$withval"
  15603. else
  15604. esd_prefix=""
  15605. fi
  15606. # Check whether --with-esd-exec-prefix was given.
  15607. if test "${with_esd_exec_prefix+set}" = set; then :
  15608. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15609. else
  15610. esd_exec_prefix=""
  15611. fi
  15612. # Check whether --enable-esdtest was given.
  15613. if test "${enable_esdtest+set}" = set; then :
  15614. enableval=$enable_esdtest;
  15615. else
  15616. enable_esdtest=yes
  15617. fi
  15618. if test x$esd_exec_prefix != x ; then
  15619. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15620. if test x${ESD_CONFIG+set} != xset ; then
  15621. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15622. fi
  15623. fi
  15624. if test x$esd_prefix != x ; then
  15625. esd_args="$esd_args --prefix=$esd_prefix"
  15626. if test x${ESD_CONFIG+set} != xset ; then
  15627. ESD_CONFIG=$esd_prefix/bin/esd-config
  15628. fi
  15629. fi
  15630. # Extract the first word of "esd-config", so it can be a program name with args.
  15631. set dummy esd-config; ac_word=$2
  15632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15633. $as_echo_n "checking for $ac_word... " >&6; }
  15634. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15635. $as_echo_n "(cached) " >&6
  15636. else
  15637. case $ESD_CONFIG in
  15638. [\\/]* | ?:[\\/]*)
  15639. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15640. ;;
  15641. *)
  15642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15643. for as_dir in $PATH
  15644. do
  15645. IFS=$as_save_IFS
  15646. test -z "$as_dir" && as_dir=.
  15647. for ac_exec_ext in '' $ac_executable_extensions; do
  15648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15649. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15651. break 2
  15652. fi
  15653. done
  15654. done
  15655. IFS=$as_save_IFS
  15656. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15657. ;;
  15658. esac
  15659. fi
  15660. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15661. if test -n "$ESD_CONFIG"; then
  15662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15663. $as_echo "$ESD_CONFIG" >&6; }
  15664. else
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15666. $as_echo "no" >&6; }
  15667. fi
  15668. min_esd_version=0.2.8
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15670. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15671. no_esd=""
  15672. if test "$ESD_CONFIG" = "no" ; then
  15673. no_esd=yes
  15674. else
  15675. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15676. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15677. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15678. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15679. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15680. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15681. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15682. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15683. if test "x$enable_esdtest" = "xyes" ; then
  15684. ac_save_CFLAGS="$CFLAGS"
  15685. ac_save_LIBS="$LIBS"
  15686. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15687. LIBS="$LIBS $ESD_LIBS"
  15688. rm -f conf.esdtest
  15689. if test "$cross_compiling" = yes; then :
  15690. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15691. else
  15692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15693. /* end confdefs.h. */
  15694. #include <stdio.h>
  15695. #include <stdlib.h>
  15696. #include <string.h>
  15697. #include <esd.h>
  15698. char*
  15699. my_strdup (char *str)
  15700. {
  15701. char *new_str;
  15702. if (str)
  15703. {
  15704. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15705. strcpy (new_str, str);
  15706. }
  15707. else
  15708. new_str = NULL;
  15709. return new_str;
  15710. }
  15711. int main ()
  15712. {
  15713. int major, minor, micro;
  15714. char *tmp_version;
  15715. system ("touch conf.esdtest");
  15716. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15717. tmp_version = my_strdup("$min_esd_version");
  15718. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15719. printf("%s, bad version string\n", "$min_esd_version");
  15720. exit(1);
  15721. }
  15722. if (($esd_major_version > major) ||
  15723. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15724. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15725. {
  15726. return 0;
  15727. }
  15728. else
  15729. {
  15730. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15731. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15732. printf("*** best to upgrade to the required version.\n");
  15733. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15734. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15735. printf("*** config.cache before re-running configure\n");
  15736. return 1;
  15737. }
  15738. }
  15739. _ACEOF
  15740. if ac_fn_c_try_run "$LINENO"; then :
  15741. else
  15742. no_esd=yes
  15743. fi
  15744. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15745. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15746. fi
  15747. CFLAGS="$ac_save_CFLAGS"
  15748. LIBS="$ac_save_LIBS"
  15749. fi
  15750. fi
  15751. if test "x$no_esd" = x ; then
  15752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15753. $as_echo "yes" >&6; }
  15754. have_esd=yes
  15755. else
  15756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15757. $as_echo "no" >&6; }
  15758. if test "$ESD_CONFIG" = "no" ; then
  15759. echo "*** The esd-config script installed by ESD could not be found"
  15760. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15761. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15762. echo "*** full path to esd-config."
  15763. else
  15764. if test -f conf.esdtest ; then
  15765. :
  15766. else
  15767. echo "*** Could not run ESD test program, checking why..."
  15768. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15769. LIBS="$LIBS $ESD_LIBS"
  15770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15771. /* end confdefs.h. */
  15772. #include <stdio.h>
  15773. #include <esd.h>
  15774. int
  15775. main ()
  15776. {
  15777. return 0;
  15778. ;
  15779. return 0;
  15780. }
  15781. _ACEOF
  15782. if ac_fn_c_try_link "$LINENO"; then :
  15783. echo "*** The test program compiled, but did not run. This usually means"
  15784. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15785. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15786. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15787. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15788. echo "*** is required on your system"
  15789. echo "***"
  15790. echo "*** If you have an old version installed, it is best to remove it, although"
  15791. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15792. else
  15793. echo "*** The test program failed to compile or link. See the file config.log for the"
  15794. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15795. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15796. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15797. fi
  15798. rm -f core conftest.err conftest.$ac_objext \
  15799. conftest$ac_exeext conftest.$ac_ext
  15800. CFLAGS="$ac_save_CFLAGS"
  15801. LIBS="$ac_save_LIBS"
  15802. fi
  15803. fi
  15804. ESD_CFLAGS=""
  15805. ESD_LIBS=""
  15806. have_esd=no
  15807. fi
  15808. rm -f conf.esdtest
  15809. if test x$have_esd = xyes; then
  15810. # Check whether --enable-esd-shared was given.
  15811. if test "${enable_esd_shared+set}" = set; then :
  15812. enableval=$enable_esd_shared;
  15813. else
  15814. enable_esd_shared=yes
  15815. fi
  15816. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15817. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15818. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15819. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15820. if test x$have_loadso != xyes && \
  15821. test x$enable_esd_shared = xyes; then
  15822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15823. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15824. fi
  15825. if test x$have_loadso = xyes && \
  15826. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15827. echo "-- dynamic libesd -> $esd_lib"
  15828. cat >>confdefs.h <<_ACEOF
  15829. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15830. _ACEOF
  15831. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15832. else
  15833. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15834. SUMMARY_audio="${SUMMARY_audio} esd"
  15835. fi
  15836. have_audio=yes
  15837. fi
  15838. fi
  15839. }
  15840. CheckPulseAudio()
  15841. {
  15842. # Check whether --enable-pulseaudio was given.
  15843. if test "${enable_pulseaudio+set}" = set; then :
  15844. enableval=$enable_pulseaudio;
  15845. else
  15846. enable_pulseaudio=yes
  15847. fi
  15848. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15849. audio_pulseaudio=no
  15850. PULSEAUDIO_REQUIRED_VERSION=0.9
  15851. # Extract the first word of "pkg-config", so it can be a program name with args.
  15852. set dummy pkg-config; ac_word=$2
  15853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15854. $as_echo_n "checking for $ac_word... " >&6; }
  15855. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15856. $as_echo_n "(cached) " >&6
  15857. else
  15858. case $PKG_CONFIG in
  15859. [\\/]* | ?:[\\/]*)
  15860. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15861. ;;
  15862. *)
  15863. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15864. for as_dir in $PATH
  15865. do
  15866. IFS=$as_save_IFS
  15867. test -z "$as_dir" && as_dir=.
  15868. for ac_exec_ext in '' $ac_executable_extensions; do
  15869. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15870. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15872. break 2
  15873. fi
  15874. done
  15875. done
  15876. IFS=$as_save_IFS
  15877. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15878. ;;
  15879. esac
  15880. fi
  15881. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15882. if test -n "$PKG_CONFIG"; then
  15883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15884. $as_echo "$PKG_CONFIG" >&6; }
  15885. else
  15886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15887. $as_echo "no" >&6; }
  15888. fi
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15890. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15891. if test x$PKG_CONFIG != xno; then
  15892. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15893. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15894. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15895. audio_pulseaudio=yes
  15896. fi
  15897. fi
  15898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15899. $as_echo "$audio_pulseaudio" >&6; }
  15900. if test x$audio_pulseaudio = xyes; then
  15901. # Check whether --enable-pulseaudio-shared was given.
  15902. if test "${enable_pulseaudio_shared+set}" = set; then :
  15903. enableval=$enable_pulseaudio_shared;
  15904. else
  15905. enable_pulseaudio_shared=yes
  15906. fi
  15907. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15908. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15909. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15910. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15911. if test x$have_loadso != xyes && \
  15912. test x$enable_pulseaudio_shared = xyes; then
  15913. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15914. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15915. fi
  15916. if test x$have_loadso = xyes && \
  15917. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15918. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15919. cat >>confdefs.h <<_ACEOF
  15920. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15921. _ACEOF
  15922. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15923. case "$host" in
  15924. # On Solaris, pulseaudio must be linked deferred explicitly
  15925. # to prevent undefined symbol failures.
  15926. *-*-solaris*)
  15927. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15928. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15929. esac
  15930. else
  15931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15932. SUMMARY_audio="${SUMMARY_audio} pulse"
  15933. fi
  15934. have_audio=yes
  15935. fi
  15936. fi
  15937. }
  15938. CheckARTSC()
  15939. {
  15940. # Check whether --enable-arts was given.
  15941. if test "${enable_arts+set}" = set; then :
  15942. enableval=$enable_arts;
  15943. else
  15944. enable_arts=yes
  15945. fi
  15946. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15947. # Extract the first word of "artsc-config", so it can be a program name with args.
  15948. set dummy artsc-config; ac_word=$2
  15949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15950. $as_echo_n "checking for $ac_word... " >&6; }
  15951. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15952. $as_echo_n "(cached) " >&6
  15953. else
  15954. case $ARTSCONFIG in
  15955. [\\/]* | ?:[\\/]*)
  15956. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15957. ;;
  15958. *)
  15959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15960. for as_dir in $PATH
  15961. do
  15962. IFS=$as_save_IFS
  15963. test -z "$as_dir" && as_dir=.
  15964. for ac_exec_ext in '' $ac_executable_extensions; do
  15965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15966. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15968. break 2
  15969. fi
  15970. done
  15971. done
  15972. IFS=$as_save_IFS
  15973. ;;
  15974. esac
  15975. fi
  15976. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15977. if test -n "$ARTSCONFIG"; then
  15978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15979. $as_echo "$ARTSCONFIG" >&6; }
  15980. else
  15981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15982. $as_echo "no" >&6; }
  15983. fi
  15984. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15985. : # arts isn't installed
  15986. else
  15987. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15988. ARTS_LIBS=`$ARTSCONFIG --libs`
  15989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15990. $as_echo_n "checking for aRts development environment... " >&6; }
  15991. audio_arts=no
  15992. save_CFLAGS="$CFLAGS"
  15993. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15995. /* end confdefs.h. */
  15996. #include <artsc.h>
  15997. int
  15998. main ()
  15999. {
  16000. arts_stream_t stream;
  16001. ;
  16002. return 0;
  16003. }
  16004. _ACEOF
  16005. if ac_fn_c_try_compile "$LINENO"; then :
  16006. audio_arts=yes
  16007. fi
  16008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16009. CFLAGS="$save_CFLAGS"
  16010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16011. $as_echo "$audio_arts" >&6; }
  16012. if test x$audio_arts = xyes; then
  16013. # Check whether --enable-arts-shared was given.
  16014. if test "${enable_arts_shared+set}" = set; then :
  16015. enableval=$enable_arts_shared;
  16016. else
  16017. enable_arts_shared=yes
  16018. fi
  16019. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16020. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16021. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16022. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16023. if test x$have_loadso != xyes && \
  16024. test x$enable_arts_shared = xyes; then
  16025. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16026. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16027. fi
  16028. if test x$have_loadso = xyes && \
  16029. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16030. echo "-- dynamic libartsc -> $arts_lib"
  16031. cat >>confdefs.h <<_ACEOF
  16032. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16033. _ACEOF
  16034. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16035. else
  16036. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16037. SUMMARY_audio="${SUMMARY_audio} arts"
  16038. fi
  16039. have_audio=yes
  16040. fi
  16041. fi
  16042. fi
  16043. }
  16044. CheckNAS()
  16045. {
  16046. # Check whether --enable-nas was given.
  16047. if test "${enable_nas+set}" = set; then :
  16048. enableval=$enable_nas;
  16049. else
  16050. enable_nas=yes
  16051. fi
  16052. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16053. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16054. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16055. have_nas_hdr=yes
  16056. fi
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16058. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16059. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16060. $as_echo_n "(cached) " >&6
  16061. else
  16062. ac_check_lib_save_LIBS=$LIBS
  16063. LIBS="-laudio $LIBS"
  16064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16065. /* end confdefs.h. */
  16066. /* Override any GCC internal prototype to avoid an error.
  16067. Use char because int might match the return type of a GCC
  16068. builtin and then its argument prototype would still apply. */
  16069. #ifdef __cplusplus
  16070. extern "C"
  16071. #endif
  16072. char AuOpenServer ();
  16073. int
  16074. main ()
  16075. {
  16076. return AuOpenServer ();
  16077. ;
  16078. return 0;
  16079. }
  16080. _ACEOF
  16081. if ac_fn_c_try_link "$LINENO"; then :
  16082. ac_cv_lib_audio_AuOpenServer=yes
  16083. else
  16084. ac_cv_lib_audio_AuOpenServer=no
  16085. fi
  16086. rm -f core conftest.err conftest.$ac_objext \
  16087. conftest$ac_exeext conftest.$ac_ext
  16088. LIBS=$ac_check_lib_save_LIBS
  16089. fi
  16090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16091. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16092. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16093. have_nas_lib=yes
  16094. fi
  16095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16096. $as_echo_n "checking for NAS audio support... " >&6; }
  16097. have_nas=no
  16098. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16099. have_nas=yes
  16100. NAS_LIBS="-laudio"
  16101. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16102. have_nas=yes
  16103. NAS_CFLAGS="-I/usr/X11R6/include/"
  16104. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16105. fi
  16106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16107. $as_echo "$have_nas" >&6; }
  16108. if test x$have_nas = xyes; then
  16109. # Check whether --enable-nas-shared was given.
  16110. if test "${enable_nas_shared+set}" = set; then :
  16111. enableval=$enable_nas_shared;
  16112. else
  16113. enable_nas_shared=yes
  16114. fi
  16115. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16116. if test x$have_loadso != xyes && \
  16117. test x$enable_nas_shared = xyes; then
  16118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16119. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16120. fi
  16121. if test x$have_loadso = xyes && \
  16122. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16123. echo "-- dynamic libaudio -> $nas_lib"
  16124. cat >>confdefs.h <<_ACEOF
  16125. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16126. _ACEOF
  16127. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16128. else
  16129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16130. SUMMARY_audio="${SUMMARY_audio} nas"
  16131. fi
  16132. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16133. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16134. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16135. have_audio=yes
  16136. fi
  16137. fi
  16138. }
  16139. CheckSNDIO()
  16140. {
  16141. # Check whether --enable-sndio was given.
  16142. if test "${enable_sndio+set}" = set; then :
  16143. enableval=$enable_sndio;
  16144. else
  16145. enable_sndio=yes
  16146. fi
  16147. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16148. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16149. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16150. have_sndio_hdr=yes
  16151. fi
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16153. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16154. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16155. $as_echo_n "(cached) " >&6
  16156. else
  16157. ac_check_lib_save_LIBS=$LIBS
  16158. LIBS="-lsndio $LIBS"
  16159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16160. /* end confdefs.h. */
  16161. /* Override any GCC internal prototype to avoid an error.
  16162. Use char because int might match the return type of a GCC
  16163. builtin and then its argument prototype would still apply. */
  16164. #ifdef __cplusplus
  16165. extern "C"
  16166. #endif
  16167. char sio_open ();
  16168. int
  16169. main ()
  16170. {
  16171. return sio_open ();
  16172. ;
  16173. return 0;
  16174. }
  16175. _ACEOF
  16176. if ac_fn_c_try_link "$LINENO"; then :
  16177. ac_cv_lib_sndio_sio_open=yes
  16178. else
  16179. ac_cv_lib_sndio_sio_open=no
  16180. fi
  16181. rm -f core conftest.err conftest.$ac_objext \
  16182. conftest$ac_exeext conftest.$ac_ext
  16183. LIBS=$ac_check_lib_save_LIBS
  16184. fi
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16186. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16187. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16188. have_sndio_lib=yes
  16189. fi
  16190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16191. $as_echo_n "checking for sndio audio support... " >&6; }
  16192. have_sndio=no
  16193. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16194. have_sndio=yes
  16195. SNDIO_LIBS="-lsndio"
  16196. fi
  16197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16198. $as_echo "$have_sndio" >&6; }
  16199. if test x$have_sndio = xyes; then
  16200. # Check whether --enable-sndio-shared was given.
  16201. if test "${enable_sndio_shared+set}" = set; then :
  16202. enableval=$enable_sndio_shared;
  16203. else
  16204. enable_sndio_shared=yes
  16205. fi
  16206. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16207. if test x$have_loadso != xyes && \
  16208. test x$enable_sndio_shared = xyes; then
  16209. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16210. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16211. fi
  16212. if test x$have_loadso = xyes && \
  16213. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16214. echo "-- dynamic libsndio -> $sndio_lib"
  16215. cat >>confdefs.h <<_ACEOF
  16216. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16217. _ACEOF
  16218. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16219. else
  16220. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16221. SUMMARY_audio="${SUMMARY_audio} sndio"
  16222. fi
  16223. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16224. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16225. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16226. have_audio=yes
  16227. fi
  16228. fi
  16229. }
  16230. CheckFusionSound()
  16231. {
  16232. # Check whether --enable-fusionsound was given.
  16233. if test "${enable_fusionsound+set}" = set; then :
  16234. enableval=$enable_fusionsound;
  16235. else
  16236. enable_fusionsound=no
  16237. fi
  16238. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16239. fusionsound=no
  16240. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16241. # Extract the first word of "pkg-config", so it can be a program name with args.
  16242. set dummy pkg-config; ac_word=$2
  16243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16244. $as_echo_n "checking for $ac_word... " >&6; }
  16245. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16246. $as_echo_n "(cached) " >&6
  16247. else
  16248. case $PKG_CONFIG in
  16249. [\\/]* | ?:[\\/]*)
  16250. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16251. ;;
  16252. *)
  16253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16254. for as_dir in $PATH
  16255. do
  16256. IFS=$as_save_IFS
  16257. test -z "$as_dir" && as_dir=.
  16258. for ac_exec_ext in '' $ac_executable_extensions; do
  16259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16260. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16262. break 2
  16263. fi
  16264. done
  16265. done
  16266. IFS=$as_save_IFS
  16267. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16268. ;;
  16269. esac
  16270. fi
  16271. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16272. if test -n "$PKG_CONFIG"; then
  16273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16274. $as_echo "$PKG_CONFIG" >&6; }
  16275. else
  16276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16277. $as_echo "no" >&6; }
  16278. fi
  16279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16280. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16281. if test x$PKG_CONFIG != xno; then
  16282. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16283. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16284. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16285. fusionsound=yes
  16286. fi
  16287. fi
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16289. $as_echo "$fusionsound" >&6; }
  16290. if test x$fusionsound = xyes; then
  16291. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16292. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16293. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16294. # Check whether --enable-fusionsound-shared was given.
  16295. if test "${enable_fusionsound_shared+set}" = set; then :
  16296. enableval=$enable_fusionsound_shared;
  16297. else
  16298. enable_fusionsound_shared=yes
  16299. fi
  16300. fusionsound_shared=no
  16301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16302. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16303. if test x$have_loadso != xyes && \
  16304. test x$enable_fusionsound_shared = xyes; then
  16305. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16306. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16307. fi
  16308. if test x$have_loadso = xyes && \
  16309. test x$enable_fusionsound_shared = xyes; then
  16310. cat >>confdefs.h <<_ACEOF
  16311. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16312. _ACEOF
  16313. fusionsound_shared=yes
  16314. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16315. else
  16316. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16317. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16318. fi
  16319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16320. $as_echo "$fusionsound_shared" >&6; }
  16321. have_audio=yes
  16322. fi
  16323. fi
  16324. }
  16325. CheckDiskAudio()
  16326. {
  16327. # Check whether --enable-diskaudio was given.
  16328. if test "${enable_diskaudio+set}" = set; then :
  16329. enableval=$enable_diskaudio;
  16330. else
  16331. enable_diskaudio=yes
  16332. fi
  16333. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16334. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16335. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16336. SUMMARY_audio="${SUMMARY_audio} disk"
  16337. fi
  16338. }
  16339. CheckDummyAudio()
  16340. {
  16341. # Check whether --enable-dummyaudio was given.
  16342. if test "${enable_dummyaudio+set}" = set; then :
  16343. enableval=$enable_dummyaudio;
  16344. else
  16345. enable_dummyaudio=yes
  16346. fi
  16347. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16348. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16349. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16350. SUMMARY_audio="${SUMMARY_audio} dummy"
  16351. fi
  16352. }
  16353. CheckLibSampleRate()
  16354. {
  16355. # Check whether --enable-libsamplerate was given.
  16356. if test "${enable_libsamplerate+set}" = set; then :
  16357. enableval=$enable_libsamplerate;
  16358. else
  16359. enable_libsamplerate=yes
  16360. fi
  16361. if test x$enable_libsamplerate = xyes; then
  16362. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16363. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16364. have_samplerate_h_hdr=yes
  16365. else
  16366. have_samplerate_h_hdr=no
  16367. fi
  16368. if test x$have_samplerate_h_hdr = xyes; then
  16369. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16370. # Check whether --enable-libsamplerate-shared was given.
  16371. if test "${enable_libsamplerate_shared+set}" = set; then :
  16372. enableval=$enable_libsamplerate_shared;
  16373. else
  16374. enable_libsamplerate_shared=yes
  16375. fi
  16376. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16377. if test x$have_loadso != xyes && \
  16378. test x$enable_libsamplerate_shared = xyes; then
  16379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16380. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16381. fi
  16382. if test x$have_loadso = xyes && \
  16383. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16384. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16385. cat >>confdefs.h <<_ACEOF
  16386. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16387. _ACEOF
  16388. else
  16389. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16390. fi
  16391. fi
  16392. fi
  16393. }
  16394. CheckVisibilityHidden()
  16395. {
  16396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16397. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16398. have_gcc_fvisibility=no
  16399. visibility_CFLAGS="-fvisibility=hidden"
  16400. save_CFLAGS="$CFLAGS"
  16401. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16403. /* end confdefs.h. */
  16404. #if !defined(__GNUC__) || __GNUC__ < 4
  16405. #error SDL only uses visibility attributes in GCC 4 or newer
  16406. #endif
  16407. int
  16408. main ()
  16409. {
  16410. ;
  16411. return 0;
  16412. }
  16413. _ACEOF
  16414. if ac_fn_c_try_compile "$LINENO"; then :
  16415. have_gcc_fvisibility=yes
  16416. fi
  16417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16419. $as_echo "$have_gcc_fvisibility" >&6; }
  16420. CFLAGS="$save_CFLAGS"
  16421. if test x$have_gcc_fvisibility = xyes; then
  16422. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16423. fi
  16424. }
  16425. CheckStackBoundary()
  16426. {
  16427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16428. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16429. have_gcc_preferred_stack_boundary=no
  16430. save_CFLAGS="$CFLAGS"
  16431. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16433. /* end confdefs.h. */
  16434. int x = 0;
  16435. int
  16436. main ()
  16437. {
  16438. ;
  16439. return 0;
  16440. }
  16441. _ACEOF
  16442. if ac_fn_c_try_compile "$LINENO"; then :
  16443. have_gcc_preferred_stack_boundary=yes
  16444. fi
  16445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16447. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16448. CFLAGS="$save_CFLAGS"
  16449. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16450. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16451. fi
  16452. }
  16453. CheckDeclarationAfterStatement()
  16454. {
  16455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16456. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16457. have_gcc_declaration_after_statement=no
  16458. save_CFLAGS="$CFLAGS"
  16459. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16461. /* end confdefs.h. */
  16462. int x = 0;
  16463. int
  16464. main ()
  16465. {
  16466. ;
  16467. return 0;
  16468. }
  16469. _ACEOF
  16470. if ac_fn_c_try_compile "$LINENO"; then :
  16471. have_gcc_declaration_after_statement=yes
  16472. fi
  16473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16475. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16476. CFLAGS="$save_CFLAGS"
  16477. if test x$have_gcc_declaration_after_statement = xyes; then
  16478. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16479. fi
  16480. }
  16481. CheckWarnAll()
  16482. {
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16484. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16485. have_gcc_Wall=no
  16486. save_CFLAGS="$CFLAGS"
  16487. CFLAGS="$save_CFLAGS -Wall"
  16488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16489. /* end confdefs.h. */
  16490. int x = 0;
  16491. int
  16492. main ()
  16493. {
  16494. ;
  16495. return 0;
  16496. }
  16497. _ACEOF
  16498. if ac_fn_c_try_compile "$LINENO"; then :
  16499. have_gcc_Wall=yes
  16500. fi
  16501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16503. $as_echo "$have_gcc_Wall" >&6; }
  16504. CFLAGS="$save_CFLAGS"
  16505. if test x$have_gcc_Wall = xyes; then
  16506. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16508. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16509. need_gcc_Wno_multichar=no
  16510. case "$host" in
  16511. *-*-haiku*)
  16512. need_gcc_Wno_multichar=yes
  16513. ;;
  16514. esac
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16516. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16517. if test x$need_gcc_Wno_multichar = xyes; then
  16518. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16519. fi
  16520. fi
  16521. }
  16522. CheckWayland()
  16523. {
  16524. # Check whether --enable-video-wayland was given.
  16525. if test "${enable_video_wayland+set}" = set; then :
  16526. enableval=$enable_video_wayland;
  16527. else
  16528. enable_video_wayland=yes
  16529. fi
  16530. # Check whether --enable-video-wayland-qt-touch was given.
  16531. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16532. enableval=$enable_video_wayland_qt_touch;
  16533. else
  16534. enable_video_wayland_qt_touch=yes
  16535. fi
  16536. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16537. # Extract the first word of "pkg-config", so it can be a program name with args.
  16538. set dummy pkg-config; ac_word=$2
  16539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16540. $as_echo_n "checking for $ac_word... " >&6; }
  16541. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16542. $as_echo_n "(cached) " >&6
  16543. else
  16544. case $PKG_CONFIG in
  16545. [\\/]* | ?:[\\/]*)
  16546. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16547. ;;
  16548. *)
  16549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16550. for as_dir in $PATH
  16551. do
  16552. IFS=$as_save_IFS
  16553. test -z "$as_dir" && as_dir=.
  16554. for ac_exec_ext in '' $ac_executable_extensions; do
  16555. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16556. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16557. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16558. break 2
  16559. fi
  16560. done
  16561. done
  16562. IFS=$as_save_IFS
  16563. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16564. ;;
  16565. esac
  16566. fi
  16567. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16568. if test -n "$PKG_CONFIG"; then
  16569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16570. $as_echo "$PKG_CONFIG" >&6; }
  16571. else
  16572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16573. $as_echo "no" >&6; }
  16574. fi
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16576. $as_echo_n "checking for Wayland support... " >&6; }
  16577. video_wayland=no
  16578. if test x$PKG_CONFIG != xno && \
  16579. test x$video_opengl_egl = xyes && \
  16580. test x$video_opengles_v2 = xyes; then
  16581. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16582. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16583. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16584. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16585. video_wayland=yes
  16586. fi
  16587. fi
  16588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16589. $as_echo "$video_wayland" >&6; }
  16590. if test x$video_wayland = xyes; then
  16591. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16592. if test x$enable_video_wayland_qt_touch = xyes; then
  16593. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16594. fi
  16595. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16596. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16597. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16598. # Check whether --enable-wayland-shared was given.
  16599. if test "${enable_wayland_shared+set}" = set; then :
  16600. enableval=$enable_wayland_shared;
  16601. else
  16602. enable_wayland_shared=maybe
  16603. fi
  16604. case "$host" in
  16605. *)
  16606. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16607. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16608. if test x$wayland_egl_lib = x; then
  16609. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16610. fi
  16611. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16612. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16613. ;;
  16614. esac
  16615. if test x$enable_wayland_shared = xmaybe; then
  16616. enable_wayland_shared=yes
  16617. fi
  16618. if test x$have_loadso != xyes && \
  16619. test x$enable_wayland_shared = xyes; then
  16620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16621. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16622. enable_wayland_shared=no
  16623. fi
  16624. if test x$have_loadso = xyes && \
  16625. test x$enable_wayland_shared = xyes && \
  16626. test x$wayland_client_lib != x && \
  16627. test x$wayland_egl_lib != x && \
  16628. test x$wayland_cursor_lib != x && \
  16629. test x$xkbcommon_lib != x; then
  16630. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16631. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16632. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16633. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16634. cat >>confdefs.h <<_ACEOF
  16635. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16636. _ACEOF
  16637. cat >>confdefs.h <<_ACEOF
  16638. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16639. _ACEOF
  16640. cat >>confdefs.h <<_ACEOF
  16641. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16642. _ACEOF
  16643. cat >>confdefs.h <<_ACEOF
  16644. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16645. _ACEOF
  16646. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16647. else
  16648. enable_wayland_shared=no
  16649. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16650. SUMMARY_video="${SUMMARY_video} wayland"
  16651. fi
  16652. have_video=yes
  16653. fi
  16654. fi
  16655. }
  16656. CheckNativeClient()
  16657. {
  16658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16659. /* end confdefs.h. */
  16660. #if !defined(__native_client__)
  16661. #error "NO NACL"
  16662. #endif
  16663. int
  16664. main ()
  16665. {
  16666. ;
  16667. return 0;
  16668. }
  16669. _ACEOF
  16670. if ac_fn_c_try_compile "$LINENO"; then :
  16671. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16672. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16673. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16674. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16675. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16676. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16677. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16678. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16679. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16680. SUMMARY_audio="${SUMMARY_audio} nacl"
  16681. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16682. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16683. fi
  16684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16685. }
  16686. CheckRPI()
  16687. {
  16688. # Check whether --enable-video-rpi was given.
  16689. if test "${enable_video_rpi+set}" = set; then :
  16690. enableval=$enable_video_rpi;
  16691. else
  16692. enable_video_rpi=yes
  16693. fi
  16694. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16695. # Extract the first word of "pkg-config", so it can be a program name with args.
  16696. set dummy pkg-config; ac_word=$2
  16697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16698. $as_echo_n "checking for $ac_word... " >&6; }
  16699. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16700. $as_echo_n "(cached) " >&6
  16701. else
  16702. case $PKG_CONFIG in
  16703. [\\/]* | ?:[\\/]*)
  16704. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16705. ;;
  16706. *)
  16707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16708. for as_dir in $PATH
  16709. do
  16710. IFS=$as_save_IFS
  16711. test -z "$as_dir" && as_dir=.
  16712. for ac_exec_ext in '' $ac_executable_extensions; do
  16713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16714. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16716. break 2
  16717. fi
  16718. done
  16719. done
  16720. IFS=$as_save_IFS
  16721. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16722. ;;
  16723. esac
  16724. fi
  16725. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16726. if test -n "$PKG_CONFIG"; then
  16727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16728. $as_echo "$PKG_CONFIG" >&6; }
  16729. else
  16730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16731. $as_echo "no" >&6; }
  16732. fi
  16733. if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
  16734. RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
  16735. RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
  16736. elif test x$ARCH = xnetbsd; then
  16737. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16738. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16739. else
  16740. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16741. RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  16742. fi
  16743. # Save the original compiler flags and libraries
  16744. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16745. # Add the Raspberry Pi compiler flags and libraries
  16746. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16748. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16749. have_video_rpi=no
  16750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16751. /* end confdefs.h. */
  16752. #include <bcm_host.h>
  16753. int
  16754. main ()
  16755. {
  16756. bcm_host_init();
  16757. ;
  16758. return 0;
  16759. }
  16760. _ACEOF
  16761. if ac_fn_c_try_link "$LINENO"; then :
  16762. have_video_rpi=yes
  16763. fi
  16764. rm -f core conftest.err conftest.$ac_objext \
  16765. conftest$ac_exeext conftest.$ac_ext
  16766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16767. $as_echo "$have_video_rpi" >&6; }
  16768. # Restore the compiler flags and libraries
  16769. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16770. if test x$have_video_rpi = xyes; then
  16771. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16772. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16773. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16774. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16775. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16776. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16777. SUMMARY_video="${SUMMARY_video} rpi"
  16778. fi
  16779. fi
  16780. }
  16781. CheckX11()
  16782. {
  16783. # Check whether --enable-video-x11 was given.
  16784. if test "${enable_video_x11+set}" = set; then :
  16785. enableval=$enable_video_x11;
  16786. else
  16787. enable_video_x11=yes
  16788. fi
  16789. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16790. case "$host" in
  16791. *-*-darwin*)
  16792. # This isn't necessary for X11, but fixes GLX detection
  16793. if test "x$x_includes" = xNONE && \
  16794. test "x$x_libraries" = xNONE && \
  16795. test -d /usr/X11R6/include && \
  16796. test -d /usr/X11R6/lib; then
  16797. x_includes="/usr/X11R6/include"
  16798. x_libraries="/usr/X11R6/lib"
  16799. fi
  16800. ;;
  16801. esac
  16802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16803. $as_echo_n "checking for X... " >&6; }
  16804. # Check whether --with-x was given.
  16805. if test "${with_x+set}" = set; then :
  16806. withval=$with_x;
  16807. fi
  16808. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16809. if test "x$with_x" = xno; then
  16810. # The user explicitly disabled X.
  16811. have_x=disabled
  16812. else
  16813. case $x_includes,$x_libraries in #(
  16814. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16815. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16816. $as_echo_n "(cached) " >&6
  16817. else
  16818. # One or both of the vars are not set, and there is no cached value.
  16819. ac_x_includes=no ac_x_libraries=no
  16820. rm -f -r conftest.dir
  16821. if mkdir conftest.dir; then
  16822. cd conftest.dir
  16823. cat >Imakefile <<'_ACEOF'
  16824. incroot:
  16825. @echo incroot='${INCROOT}'
  16826. usrlibdir:
  16827. @echo usrlibdir='${USRLIBDIR}'
  16828. libdir:
  16829. @echo libdir='${LIBDIR}'
  16830. _ACEOF
  16831. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16832. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16833. for ac_var in incroot usrlibdir libdir; do
  16834. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16835. done
  16836. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16837. for ac_extension in a so sl dylib la dll; do
  16838. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16839. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16840. ac_im_usrlibdir=$ac_im_libdir; break
  16841. fi
  16842. done
  16843. # Screen out bogus values from the imake configuration. They are
  16844. # bogus both because they are the default anyway, and because
  16845. # using them would break gcc on systems where it needs fixed includes.
  16846. case $ac_im_incroot in
  16847. /usr/include) ac_x_includes= ;;
  16848. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16849. esac
  16850. case $ac_im_usrlibdir in
  16851. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16852. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16853. esac
  16854. fi
  16855. cd ..
  16856. rm -f -r conftest.dir
  16857. fi
  16858. # Standard set of common directories for X headers.
  16859. # Check X11 before X11Rn because it is often a symlink to the current release.
  16860. ac_x_header_dirs='
  16861. /usr/X11/include
  16862. /usr/X11R7/include
  16863. /usr/X11R6/include
  16864. /usr/X11R5/include
  16865. /usr/X11R4/include
  16866. /usr/include/X11
  16867. /usr/include/X11R7
  16868. /usr/include/X11R6
  16869. /usr/include/X11R5
  16870. /usr/include/X11R4
  16871. /usr/local/X11/include
  16872. /usr/local/X11R7/include
  16873. /usr/local/X11R6/include
  16874. /usr/local/X11R5/include
  16875. /usr/local/X11R4/include
  16876. /usr/local/include/X11
  16877. /usr/local/include/X11R7
  16878. /usr/local/include/X11R6
  16879. /usr/local/include/X11R5
  16880. /usr/local/include/X11R4
  16881. /usr/X386/include
  16882. /usr/x386/include
  16883. /usr/XFree86/include/X11
  16884. /usr/include
  16885. /usr/local/include
  16886. /usr/unsupported/include
  16887. /usr/athena/include
  16888. /usr/local/x11r5/include
  16889. /usr/lpp/Xamples/include
  16890. /usr/openwin/include
  16891. /usr/openwin/share/include'
  16892. if test "$ac_x_includes" = no; then
  16893. # Guess where to find include files, by looking for Xlib.h.
  16894. # First, try using that file with no special directory specified.
  16895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16896. /* end confdefs.h. */
  16897. #include <X11/Xlib.h>
  16898. _ACEOF
  16899. if ac_fn_c_try_cpp "$LINENO"; then :
  16900. # We can compile using X headers with no special include directory.
  16901. ac_x_includes=
  16902. else
  16903. for ac_dir in $ac_x_header_dirs; do
  16904. if test -r "$ac_dir/X11/Xlib.h"; then
  16905. ac_x_includes=$ac_dir
  16906. break
  16907. fi
  16908. done
  16909. fi
  16910. rm -f conftest.err conftest.i conftest.$ac_ext
  16911. fi # $ac_x_includes = no
  16912. if test "$ac_x_libraries" = no; then
  16913. # Check for the libraries.
  16914. # See if we find them without any special options.
  16915. # Don't add to $LIBS permanently.
  16916. ac_save_LIBS=$LIBS
  16917. LIBS="-lX11 $LIBS"
  16918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16919. /* end confdefs.h. */
  16920. #include <X11/Xlib.h>
  16921. int
  16922. main ()
  16923. {
  16924. XrmInitialize ()
  16925. ;
  16926. return 0;
  16927. }
  16928. _ACEOF
  16929. if ac_fn_c_try_link "$LINENO"; then :
  16930. LIBS=$ac_save_LIBS
  16931. # We can link X programs with no special library path.
  16932. ac_x_libraries=
  16933. else
  16934. LIBS=$ac_save_LIBS
  16935. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16936. do
  16937. # Don't even attempt the hair of trying to link an X program!
  16938. for ac_extension in a so sl dylib la dll; do
  16939. if test -r "$ac_dir/libX11.$ac_extension"; then
  16940. ac_x_libraries=$ac_dir
  16941. break 2
  16942. fi
  16943. done
  16944. done
  16945. fi
  16946. rm -f core conftest.err conftest.$ac_objext \
  16947. conftest$ac_exeext conftest.$ac_ext
  16948. fi # $ac_x_libraries = no
  16949. case $ac_x_includes,$ac_x_libraries in #(
  16950. no,* | *,no | *\'*)
  16951. # Didn't find X, or a directory has "'" in its name.
  16952. ac_cv_have_x="have_x=no";; #(
  16953. *)
  16954. # Record where we found X for the cache.
  16955. ac_cv_have_x="have_x=yes\
  16956. ac_x_includes='$ac_x_includes'\
  16957. ac_x_libraries='$ac_x_libraries'"
  16958. esac
  16959. fi
  16960. ;; #(
  16961. *) have_x=yes;;
  16962. esac
  16963. eval "$ac_cv_have_x"
  16964. fi # $with_x != no
  16965. if test "$have_x" != yes; then
  16966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16967. $as_echo "$have_x" >&6; }
  16968. no_x=yes
  16969. else
  16970. # If each of the values was on the command line, it overrides each guess.
  16971. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16972. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16973. # Update the cache value to reflect the command line values.
  16974. ac_cv_have_x="have_x=yes\
  16975. ac_x_includes='$x_includes'\
  16976. ac_x_libraries='$x_libraries'"
  16977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16978. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16979. fi
  16980. if test "$no_x" = yes; then
  16981. # Not all programs may use this symbol, but it does not hurt to define it.
  16982. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16983. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16984. else
  16985. if test -n "$x_includes"; then
  16986. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16987. fi
  16988. # It would also be nice to do this for all -L options, not just this one.
  16989. if test -n "$x_libraries"; then
  16990. X_LIBS="$X_LIBS -L$x_libraries"
  16991. # For Solaris; some versions of Sun CC require a space after -R and
  16992. # others require no space. Words are not sufficient . . . .
  16993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16994. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16995. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16996. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16997. ac_c_werror_flag=yes
  16998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16999. /* end confdefs.h. */
  17000. int
  17001. main ()
  17002. {
  17003. ;
  17004. return 0;
  17005. }
  17006. _ACEOF
  17007. if ac_fn_c_try_link "$LINENO"; then :
  17008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17009. $as_echo "no" >&6; }
  17010. X_LIBS="$X_LIBS -R$x_libraries"
  17011. else
  17012. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17014. /* end confdefs.h. */
  17015. int
  17016. main ()
  17017. {
  17018. ;
  17019. return 0;
  17020. }
  17021. _ACEOF
  17022. if ac_fn_c_try_link "$LINENO"; then :
  17023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17024. $as_echo "yes" >&6; }
  17025. X_LIBS="$X_LIBS -R $x_libraries"
  17026. else
  17027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17028. $as_echo "neither works" >&6; }
  17029. fi
  17030. rm -f core conftest.err conftest.$ac_objext \
  17031. conftest$ac_exeext conftest.$ac_ext
  17032. fi
  17033. rm -f core conftest.err conftest.$ac_objext \
  17034. conftest$ac_exeext conftest.$ac_ext
  17035. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17036. LIBS=$ac_xsave_LIBS
  17037. fi
  17038. # Check for system-dependent libraries X programs must link with.
  17039. # Do this before checking for the system-independent R6 libraries
  17040. # (-lICE), since we may need -lsocket or whatever for X linking.
  17041. if test "$ISC" = yes; then
  17042. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17043. else
  17044. # Martyn Johnson says this is needed for Ultrix, if the X
  17045. # libraries were built with DECnet support. And Karl Berry says
  17046. # the Alpha needs dnet_stub (dnet does not exist).
  17047. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17049. /* end confdefs.h. */
  17050. /* Override any GCC internal prototype to avoid an error.
  17051. Use char because int might match the return type of a GCC
  17052. builtin and then its argument prototype would still apply. */
  17053. #ifdef __cplusplus
  17054. extern "C"
  17055. #endif
  17056. char XOpenDisplay ();
  17057. int
  17058. main ()
  17059. {
  17060. return XOpenDisplay ();
  17061. ;
  17062. return 0;
  17063. }
  17064. _ACEOF
  17065. if ac_fn_c_try_link "$LINENO"; then :
  17066. else
  17067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17068. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17069. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17070. $as_echo_n "(cached) " >&6
  17071. else
  17072. ac_check_lib_save_LIBS=$LIBS
  17073. LIBS="-ldnet $LIBS"
  17074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17075. /* end confdefs.h. */
  17076. /* Override any GCC internal prototype to avoid an error.
  17077. Use char because int might match the return type of a GCC
  17078. builtin and then its argument prototype would still apply. */
  17079. #ifdef __cplusplus
  17080. extern "C"
  17081. #endif
  17082. char dnet_ntoa ();
  17083. int
  17084. main ()
  17085. {
  17086. return dnet_ntoa ();
  17087. ;
  17088. return 0;
  17089. }
  17090. _ACEOF
  17091. if ac_fn_c_try_link "$LINENO"; then :
  17092. ac_cv_lib_dnet_dnet_ntoa=yes
  17093. else
  17094. ac_cv_lib_dnet_dnet_ntoa=no
  17095. fi
  17096. rm -f core conftest.err conftest.$ac_objext \
  17097. conftest$ac_exeext conftest.$ac_ext
  17098. LIBS=$ac_check_lib_save_LIBS
  17099. fi
  17100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17101. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17102. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17103. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17104. fi
  17105. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17107. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17108. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17109. $as_echo_n "(cached) " >&6
  17110. else
  17111. ac_check_lib_save_LIBS=$LIBS
  17112. LIBS="-ldnet_stub $LIBS"
  17113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17114. /* end confdefs.h. */
  17115. /* Override any GCC internal prototype to avoid an error.
  17116. Use char because int might match the return type of a GCC
  17117. builtin and then its argument prototype would still apply. */
  17118. #ifdef __cplusplus
  17119. extern "C"
  17120. #endif
  17121. char dnet_ntoa ();
  17122. int
  17123. main ()
  17124. {
  17125. return dnet_ntoa ();
  17126. ;
  17127. return 0;
  17128. }
  17129. _ACEOF
  17130. if ac_fn_c_try_link "$LINENO"; then :
  17131. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17132. else
  17133. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17134. fi
  17135. rm -f core conftest.err conftest.$ac_objext \
  17136. conftest$ac_exeext conftest.$ac_ext
  17137. LIBS=$ac_check_lib_save_LIBS
  17138. fi
  17139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17140. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17141. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17142. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17143. fi
  17144. fi
  17145. fi
  17146. rm -f core conftest.err conftest.$ac_objext \
  17147. conftest$ac_exeext conftest.$ac_ext
  17148. LIBS="$ac_xsave_LIBS"
  17149. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17150. # to get the SysV transport functions.
  17151. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17152. # needs -lnsl.
  17153. # The nsl library prevents programs from opening the X display
  17154. # on Irix 5.2, according to T.E. Dickey.
  17155. # The functions gethostbyname, getservbyname, and inet_addr are
  17156. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17157. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17158. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17159. fi
  17160. if test $ac_cv_func_gethostbyname = no; then
  17161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17162. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17163. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17164. $as_echo_n "(cached) " >&6
  17165. else
  17166. ac_check_lib_save_LIBS=$LIBS
  17167. LIBS="-lnsl $LIBS"
  17168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17169. /* end confdefs.h. */
  17170. /* Override any GCC internal prototype to avoid an error.
  17171. Use char because int might match the return type of a GCC
  17172. builtin and then its argument prototype would still apply. */
  17173. #ifdef __cplusplus
  17174. extern "C"
  17175. #endif
  17176. char gethostbyname ();
  17177. int
  17178. main ()
  17179. {
  17180. return gethostbyname ();
  17181. ;
  17182. return 0;
  17183. }
  17184. _ACEOF
  17185. if ac_fn_c_try_link "$LINENO"; then :
  17186. ac_cv_lib_nsl_gethostbyname=yes
  17187. else
  17188. ac_cv_lib_nsl_gethostbyname=no
  17189. fi
  17190. rm -f core conftest.err conftest.$ac_objext \
  17191. conftest$ac_exeext conftest.$ac_ext
  17192. LIBS=$ac_check_lib_save_LIBS
  17193. fi
  17194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17195. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17196. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17197. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17198. fi
  17199. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17201. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17202. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17203. $as_echo_n "(cached) " >&6
  17204. else
  17205. ac_check_lib_save_LIBS=$LIBS
  17206. LIBS="-lbsd $LIBS"
  17207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17208. /* end confdefs.h. */
  17209. /* Override any GCC internal prototype to avoid an error.
  17210. Use char because int might match the return type of a GCC
  17211. builtin and then its argument prototype would still apply. */
  17212. #ifdef __cplusplus
  17213. extern "C"
  17214. #endif
  17215. char gethostbyname ();
  17216. int
  17217. main ()
  17218. {
  17219. return gethostbyname ();
  17220. ;
  17221. return 0;
  17222. }
  17223. _ACEOF
  17224. if ac_fn_c_try_link "$LINENO"; then :
  17225. ac_cv_lib_bsd_gethostbyname=yes
  17226. else
  17227. ac_cv_lib_bsd_gethostbyname=no
  17228. fi
  17229. rm -f core conftest.err conftest.$ac_objext \
  17230. conftest$ac_exeext conftest.$ac_ext
  17231. LIBS=$ac_check_lib_save_LIBS
  17232. fi
  17233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17234. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17235. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17236. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17237. fi
  17238. fi
  17239. fi
  17240. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17241. # socket/setsockopt and other routines are undefined under SCO ODT
  17242. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17243. # on later versions), says Simon Leinen: it contains gethostby*
  17244. # variants that don't use the name server (or something). -lsocket
  17245. # must be given before -lnsl if both are needed. We assume that
  17246. # if connect needs -lnsl, so does gethostbyname.
  17247. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17248. if test "x$ac_cv_func_connect" = xyes; then :
  17249. fi
  17250. if test $ac_cv_func_connect = no; then
  17251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17252. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17253. if ${ac_cv_lib_socket_connect+:} false; then :
  17254. $as_echo_n "(cached) " >&6
  17255. else
  17256. ac_check_lib_save_LIBS=$LIBS
  17257. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17259. /* end confdefs.h. */
  17260. /* Override any GCC internal prototype to avoid an error.
  17261. Use char because int might match the return type of a GCC
  17262. builtin and then its argument prototype would still apply. */
  17263. #ifdef __cplusplus
  17264. extern "C"
  17265. #endif
  17266. char connect ();
  17267. int
  17268. main ()
  17269. {
  17270. return connect ();
  17271. ;
  17272. return 0;
  17273. }
  17274. _ACEOF
  17275. if ac_fn_c_try_link "$LINENO"; then :
  17276. ac_cv_lib_socket_connect=yes
  17277. else
  17278. ac_cv_lib_socket_connect=no
  17279. fi
  17280. rm -f core conftest.err conftest.$ac_objext \
  17281. conftest$ac_exeext conftest.$ac_ext
  17282. LIBS=$ac_check_lib_save_LIBS
  17283. fi
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17285. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17286. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17287. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17288. fi
  17289. fi
  17290. # Guillermo Gomez says -lposix is necessary on A/UX.
  17291. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17292. if test "x$ac_cv_func_remove" = xyes; then :
  17293. fi
  17294. if test $ac_cv_func_remove = no; then
  17295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17296. $as_echo_n "checking for remove in -lposix... " >&6; }
  17297. if ${ac_cv_lib_posix_remove+:} false; then :
  17298. $as_echo_n "(cached) " >&6
  17299. else
  17300. ac_check_lib_save_LIBS=$LIBS
  17301. LIBS="-lposix $LIBS"
  17302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17303. /* end confdefs.h. */
  17304. /* Override any GCC internal prototype to avoid an error.
  17305. Use char because int might match the return type of a GCC
  17306. builtin and then its argument prototype would still apply. */
  17307. #ifdef __cplusplus
  17308. extern "C"
  17309. #endif
  17310. char remove ();
  17311. int
  17312. main ()
  17313. {
  17314. return remove ();
  17315. ;
  17316. return 0;
  17317. }
  17318. _ACEOF
  17319. if ac_fn_c_try_link "$LINENO"; then :
  17320. ac_cv_lib_posix_remove=yes
  17321. else
  17322. ac_cv_lib_posix_remove=no
  17323. fi
  17324. rm -f core conftest.err conftest.$ac_objext \
  17325. conftest$ac_exeext conftest.$ac_ext
  17326. LIBS=$ac_check_lib_save_LIBS
  17327. fi
  17328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17329. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17330. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17331. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17332. fi
  17333. fi
  17334. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17335. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17336. if test "x$ac_cv_func_shmat" = xyes; then :
  17337. fi
  17338. if test $ac_cv_func_shmat = no; then
  17339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17340. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17341. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17342. $as_echo_n "(cached) " >&6
  17343. else
  17344. ac_check_lib_save_LIBS=$LIBS
  17345. LIBS="-lipc $LIBS"
  17346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17347. /* end confdefs.h. */
  17348. /* Override any GCC internal prototype to avoid an error.
  17349. Use char because int might match the return type of a GCC
  17350. builtin and then its argument prototype would still apply. */
  17351. #ifdef __cplusplus
  17352. extern "C"
  17353. #endif
  17354. char shmat ();
  17355. int
  17356. main ()
  17357. {
  17358. return shmat ();
  17359. ;
  17360. return 0;
  17361. }
  17362. _ACEOF
  17363. if ac_fn_c_try_link "$LINENO"; then :
  17364. ac_cv_lib_ipc_shmat=yes
  17365. else
  17366. ac_cv_lib_ipc_shmat=no
  17367. fi
  17368. rm -f core conftest.err conftest.$ac_objext \
  17369. conftest$ac_exeext conftest.$ac_ext
  17370. LIBS=$ac_check_lib_save_LIBS
  17371. fi
  17372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17373. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17374. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17375. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17376. fi
  17377. fi
  17378. fi
  17379. # Check for libraries that X11R6 Xt/Xaw programs need.
  17380. ac_save_LDFLAGS=$LDFLAGS
  17381. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17382. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17383. # check for ICE first), but we must link in the order -lSM -lICE or
  17384. # we get undefined symbols. So assume we have SM if we have ICE.
  17385. # These have to be linked with before -lX11, unlike the other
  17386. # libraries we check for below, so use a different variable.
  17387. # John Interrante, Karl Berry
  17388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17389. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17390. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17391. $as_echo_n "(cached) " >&6
  17392. else
  17393. ac_check_lib_save_LIBS=$LIBS
  17394. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17396. /* end confdefs.h. */
  17397. /* Override any GCC internal prototype to avoid an error.
  17398. Use char because int might match the return type of a GCC
  17399. builtin and then its argument prototype would still apply. */
  17400. #ifdef __cplusplus
  17401. extern "C"
  17402. #endif
  17403. char IceConnectionNumber ();
  17404. int
  17405. main ()
  17406. {
  17407. return IceConnectionNumber ();
  17408. ;
  17409. return 0;
  17410. }
  17411. _ACEOF
  17412. if ac_fn_c_try_link "$LINENO"; then :
  17413. ac_cv_lib_ICE_IceConnectionNumber=yes
  17414. else
  17415. ac_cv_lib_ICE_IceConnectionNumber=no
  17416. fi
  17417. rm -f core conftest.err conftest.$ac_objext \
  17418. conftest$ac_exeext conftest.$ac_ext
  17419. LIBS=$ac_check_lib_save_LIBS
  17420. fi
  17421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17422. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17423. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17424. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17425. fi
  17426. LDFLAGS=$ac_save_LDFLAGS
  17427. fi
  17428. if test x$have_x = xyes; then
  17429. # Check whether --enable-x11-shared was given.
  17430. if test "${enable_x11_shared+set}" = set; then :
  17431. enableval=$enable_x11_shared;
  17432. else
  17433. enable_x11_shared=maybe
  17434. fi
  17435. case "$host" in
  17436. *-*-darwin*)
  17437. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17438. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17439. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17440. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17441. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17442. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17443. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17444. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17445. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17446. ;;
  17447. *-*-openbsd*)
  17448. x11_lib='libX11.so'
  17449. x11ext_lib='libXext.so'
  17450. xcursor_lib='libXcursor.so'
  17451. xinerama_lib='libXinerama.so'
  17452. xinput_lib='libXi.so'
  17453. xrandr_lib='libXrandr.so'
  17454. xrender_lib='libXrender.so'
  17455. xss_lib='libXss.so'
  17456. xvidmode_lib='libXxf86vm.so'
  17457. ;;
  17458. *)
  17459. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17460. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17461. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17462. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17463. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17464. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17465. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17466. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17467. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17468. ;;
  17469. esac
  17470. if test x$ac_cv_func_shmat != xyes; then
  17471. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17472. fi
  17473. CFLAGS="$CFLAGS $X_CFLAGS"
  17474. LDFLAGS="$LDFLAGS $X_LIBS"
  17475. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17476. #include <X11/Xproto.h>
  17477. "
  17478. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17479. have_xext_h_hdr=yes
  17480. else
  17481. have_xext_h_hdr=no
  17482. fi
  17483. if test x$have_xext_h_hdr != xyes; then
  17484. as_fn_error $? "
  17485. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17486. " "$LINENO" 5
  17487. fi
  17488. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17489. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17490. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17491. # Needed so SDL applications can include SDL_syswm.h
  17492. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17493. if test x$enable_x11_shared = xmaybe; then
  17494. enable_x11_shared=yes
  17495. fi
  17496. if test x$have_loadso != xyes && \
  17497. test x$enable_x11_shared = xyes; then
  17498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17499. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17500. enable_x11_shared=no
  17501. fi
  17502. if test x$have_loadso = xyes && \
  17503. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17504. echo "-- dynamic libX11 -> $x11_lib"
  17505. echo "-- dynamic libX11ext -> $x11ext_lib"
  17506. cat >>confdefs.h <<_ACEOF
  17507. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17508. _ACEOF
  17509. cat >>confdefs.h <<_ACEOF
  17510. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17511. _ACEOF
  17512. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17513. else
  17514. enable_x11_shared=no
  17515. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17516. SUMMARY_video="${SUMMARY_video} x11"
  17517. fi
  17518. have_video=yes
  17519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17520. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17521. have_const_param_XextAddDisplay=no
  17522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17523. /* end confdefs.h. */
  17524. #include <X11/Xlib.h>
  17525. #include <X11/Xproto.h>
  17526. #include <X11/extensions/Xext.h>
  17527. #include <X11/extensions/extutil.h>
  17528. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17529. int
  17530. main ()
  17531. {
  17532. ;
  17533. return 0;
  17534. }
  17535. _ACEOF
  17536. if ac_fn_c_try_compile "$LINENO"; then :
  17537. have_const_param_XextAddDisplay=yes
  17538. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17539. fi
  17540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17542. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17544. $as_echo_n "checking for XGenericEvent... " >&6; }
  17545. have_XGenericEvent=no
  17546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17547. /* end confdefs.h. */
  17548. #include <X11/Xlib.h>
  17549. int
  17550. main ()
  17551. {
  17552. Display *display;
  17553. XEvent event;
  17554. XGenericEventCookie *cookie = &event.xcookie;
  17555. XNextEvent(display, &event);
  17556. XGetEventData(display, cookie);
  17557. XFreeEventData(display, cookie);
  17558. ;
  17559. return 0;
  17560. }
  17561. _ACEOF
  17562. if ac_fn_c_try_compile "$LINENO"; then :
  17563. have_XGenericEvent=yes
  17564. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17565. fi
  17566. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17568. $as_echo "$have_XGenericEvent" >&6; }
  17569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17570. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17571. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17572. $as_echo_n "(cached) " >&6
  17573. else
  17574. ac_check_lib_save_LIBS=$LIBS
  17575. LIBS="-lX11 $LIBS"
  17576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17577. /* end confdefs.h. */
  17578. /* Override any GCC internal prototype to avoid an error.
  17579. Use char because int might match the return type of a GCC
  17580. builtin and then its argument prototype would still apply. */
  17581. #ifdef __cplusplus
  17582. extern "C"
  17583. #endif
  17584. char XkbKeycodeToKeysym ();
  17585. int
  17586. main ()
  17587. {
  17588. return XkbKeycodeToKeysym ();
  17589. ;
  17590. return 0;
  17591. }
  17592. _ACEOF
  17593. if ac_fn_c_try_link "$LINENO"; then :
  17594. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17595. else
  17596. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17597. fi
  17598. rm -f core conftest.err conftest.$ac_objext \
  17599. conftest$ac_exeext conftest.$ac_ext
  17600. LIBS=$ac_check_lib_save_LIBS
  17601. fi
  17602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17603. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17604. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17605. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17606. fi
  17607. # Check whether --enable-video-x11-xcursor was given.
  17608. if test "${enable_video_x11_xcursor+set}" = set; then :
  17609. enableval=$enable_video_x11_xcursor;
  17610. else
  17611. enable_video_x11_xcursor=yes
  17612. fi
  17613. if test x$enable_video_x11_xcursor = xyes; then
  17614. definitely_enable_video_x11_xcursor=no
  17615. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17616. "
  17617. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17618. have_xcursor_h_hdr=yes
  17619. else
  17620. have_xcursor_h_hdr=no
  17621. fi
  17622. if test x$have_xcursor_h_hdr = xyes; then
  17623. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17624. echo "-- dynamic libXcursor -> $xcursor_lib"
  17625. cat >>confdefs.h <<_ACEOF
  17626. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17627. _ACEOF
  17628. definitely_enable_video_x11_xcursor=yes
  17629. else
  17630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17631. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17632. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17633. $as_echo_n "(cached) " >&6
  17634. else
  17635. ac_check_lib_save_LIBS=$LIBS
  17636. LIBS="-lXcursor $LIBS"
  17637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17638. /* end confdefs.h. */
  17639. /* Override any GCC internal prototype to avoid an error.
  17640. Use char because int might match the return type of a GCC
  17641. builtin and then its argument prototype would still apply. */
  17642. #ifdef __cplusplus
  17643. extern "C"
  17644. #endif
  17645. char XcursorImageCreate ();
  17646. int
  17647. main ()
  17648. {
  17649. return XcursorImageCreate ();
  17650. ;
  17651. return 0;
  17652. }
  17653. _ACEOF
  17654. if ac_fn_c_try_link "$LINENO"; then :
  17655. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17656. else
  17657. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17658. fi
  17659. rm -f core conftest.err conftest.$ac_objext \
  17660. conftest$ac_exeext conftest.$ac_ext
  17661. LIBS=$ac_check_lib_save_LIBS
  17662. fi
  17663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17664. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17665. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17666. have_xcursor_lib=yes
  17667. fi
  17668. if test x$have_xcursor_lib = xyes ; then
  17669. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17670. definitely_enable_video_x11_xcursor=yes
  17671. fi
  17672. fi
  17673. fi
  17674. fi
  17675. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17676. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17677. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17678. fi
  17679. # Check whether --enable-video-x11-xdbe was given.
  17680. if test "${enable_video_x11_xdbe+set}" = set; then :
  17681. enableval=$enable_video_x11_xdbe;
  17682. else
  17683. enable_video_x11_xdbe=yes
  17684. fi
  17685. if test x$enable_video_x11_xdbe = xyes; then
  17686. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17687. "
  17688. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17689. have_dbe_h_hdr=yes
  17690. else
  17691. have_dbe_h_hdr=no
  17692. fi
  17693. if test x$have_dbe_h_hdr = xyes; then
  17694. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17695. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17696. fi
  17697. fi
  17698. # Check whether --enable-video-x11-xinerama was given.
  17699. if test "${enable_video_x11_xinerama+set}" = set; then :
  17700. enableval=$enable_video_x11_xinerama;
  17701. else
  17702. enable_video_x11_xinerama=yes
  17703. fi
  17704. if test x$enable_video_x11_xinerama = xyes; then
  17705. definitely_enable_video_x11_xinerama=no
  17706. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17707. "
  17708. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17709. have_xinerama_h_hdr=yes
  17710. else
  17711. have_xinerama_h_hdr=no
  17712. fi
  17713. if test x$have_xinerama_h_hdr = xyes; then
  17714. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17715. echo "-- dynamic libXinerama -> $xinerama_lib"
  17716. cat >>confdefs.h <<_ACEOF
  17717. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17718. _ACEOF
  17719. definitely_enable_video_x11_xinerama=yes
  17720. else
  17721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17722. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17723. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17724. $as_echo_n "(cached) " >&6
  17725. else
  17726. ac_check_lib_save_LIBS=$LIBS
  17727. LIBS="-lXinerama $LIBS"
  17728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17729. /* end confdefs.h. */
  17730. /* Override any GCC internal prototype to avoid an error.
  17731. Use char because int might match the return type of a GCC
  17732. builtin and then its argument prototype would still apply. */
  17733. #ifdef __cplusplus
  17734. extern "C"
  17735. #endif
  17736. char XineramaQueryExtension ();
  17737. int
  17738. main ()
  17739. {
  17740. return XineramaQueryExtension ();
  17741. ;
  17742. return 0;
  17743. }
  17744. _ACEOF
  17745. if ac_fn_c_try_link "$LINENO"; then :
  17746. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17747. else
  17748. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17749. fi
  17750. rm -f core conftest.err conftest.$ac_objext \
  17751. conftest$ac_exeext conftest.$ac_ext
  17752. LIBS=$ac_check_lib_save_LIBS
  17753. fi
  17754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17755. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17756. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17757. have_xinerama_lib=yes
  17758. fi
  17759. if test x$have_xinerama_lib = xyes ; then
  17760. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17761. definitely_enable_video_x11_xinerama=yes
  17762. fi
  17763. fi
  17764. fi
  17765. fi
  17766. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17767. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17768. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17769. fi
  17770. # Check whether --enable-video-x11-xinput was given.
  17771. if test "${enable_video_x11_xinput+set}" = set; then :
  17772. enableval=$enable_video_x11_xinput;
  17773. else
  17774. enable_video_x11_xinput=yes
  17775. fi
  17776. if test x$enable_video_x11_xinput = xyes; then
  17777. definitely_enable_video_x11_xinput=no
  17778. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17779. "
  17780. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17781. have_xinput_h_hdr=yes
  17782. else
  17783. have_xinput_h_hdr=no
  17784. fi
  17785. if test x$have_xinput_h_hdr = xyes; then
  17786. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17787. echo "-- dynamic libXi -> $xinput_lib"
  17788. cat >>confdefs.h <<_ACEOF
  17789. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17790. _ACEOF
  17791. definitely_enable_video_x11_xinput=yes
  17792. else
  17793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17794. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17795. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17796. $as_echo_n "(cached) " >&6
  17797. else
  17798. ac_check_lib_save_LIBS=$LIBS
  17799. LIBS="-lXi $LIBS"
  17800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17801. /* end confdefs.h. */
  17802. /* Override any GCC internal prototype to avoid an error.
  17803. Use char because int might match the return type of a GCC
  17804. builtin and then its argument prototype would still apply. */
  17805. #ifdef __cplusplus
  17806. extern "C"
  17807. #endif
  17808. char XOpenDevice ();
  17809. int
  17810. main ()
  17811. {
  17812. return XOpenDevice ();
  17813. ;
  17814. return 0;
  17815. }
  17816. _ACEOF
  17817. if ac_fn_c_try_link "$LINENO"; then :
  17818. ac_cv_lib_Xi_XOpenDevice=yes
  17819. else
  17820. ac_cv_lib_Xi_XOpenDevice=no
  17821. fi
  17822. rm -f core conftest.err conftest.$ac_objext \
  17823. conftest$ac_exeext conftest.$ac_ext
  17824. LIBS=$ac_check_lib_save_LIBS
  17825. fi
  17826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17827. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17828. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17829. have_xinput_lib=yes
  17830. fi
  17831. if test x$have_xinput_lib = xyes ; then
  17832. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17833. definitely_enable_video_x11_xinput=yes
  17834. fi
  17835. fi
  17836. fi
  17837. fi
  17838. if test x$definitely_enable_video_x11_xinput = xyes; then
  17839. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17840. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17842. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17843. have_xinput2_multitouch=no
  17844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17845. /* end confdefs.h. */
  17846. #include <X11/Xlib.h>
  17847. #include <X11/Xproto.h>
  17848. #include <X11/extensions/XInput2.h>
  17849. int
  17850. main ()
  17851. {
  17852. int event_type = XI_TouchBegin;
  17853. XITouchClassInfo *t;
  17854. ;
  17855. return 0;
  17856. }
  17857. _ACEOF
  17858. if ac_fn_c_try_compile "$LINENO"; then :
  17859. have_xinput2_multitouch=yes
  17860. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17861. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17862. fi
  17863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17865. $as_echo "$have_xinput2_multitouch" >&6; }
  17866. fi
  17867. # Check whether --enable-video-x11-xrandr was given.
  17868. if test "${enable_video_x11_xrandr+set}" = set; then :
  17869. enableval=$enable_video_x11_xrandr;
  17870. else
  17871. enable_video_x11_xrandr=yes
  17872. fi
  17873. if test x$enable_video_x11_xrandr = xyes; then
  17874. definitely_enable_video_x11_xrandr=no
  17875. have_xrandr_h_hdr=no
  17876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17877. /* end confdefs.h. */
  17878. #include <X11/Xlib.h>
  17879. #include <X11/extensions/Xrandr.h>
  17880. int
  17881. main ()
  17882. {
  17883. XRRScreenResources *res = NULL;
  17884. ;
  17885. return 0;
  17886. }
  17887. _ACEOF
  17888. if ac_fn_c_try_compile "$LINENO"; then :
  17889. have_xrandr_h_hdr=yes
  17890. fi
  17891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17892. if test x$have_xrandr_h_hdr = xyes; then
  17893. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17894. echo "-- dynamic libXrandr -> $xrandr_lib"
  17895. cat >>confdefs.h <<_ACEOF
  17896. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17897. _ACEOF
  17898. definitely_enable_video_x11_xrandr=yes
  17899. else
  17900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17901. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17902. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17903. $as_echo_n "(cached) " >&6
  17904. else
  17905. ac_check_lib_save_LIBS=$LIBS
  17906. LIBS="-lXrandr $LIBS"
  17907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17908. /* end confdefs.h. */
  17909. /* Override any GCC internal prototype to avoid an error.
  17910. Use char because int might match the return type of a GCC
  17911. builtin and then its argument prototype would still apply. */
  17912. #ifdef __cplusplus
  17913. extern "C"
  17914. #endif
  17915. char XRRQueryExtension ();
  17916. int
  17917. main ()
  17918. {
  17919. return XRRQueryExtension ();
  17920. ;
  17921. return 0;
  17922. }
  17923. _ACEOF
  17924. if ac_fn_c_try_link "$LINENO"; then :
  17925. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17926. else
  17927. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17928. fi
  17929. rm -f core conftest.err conftest.$ac_objext \
  17930. conftest$ac_exeext conftest.$ac_ext
  17931. LIBS=$ac_check_lib_save_LIBS
  17932. fi
  17933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17934. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17935. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17936. have_xrandr_lib=yes
  17937. fi
  17938. if test x$have_xrandr_lib = xyes ; then
  17939. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17940. definitely_enable_video_x11_xrandr=yes
  17941. fi
  17942. fi
  17943. fi
  17944. fi
  17945. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17946. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17947. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17948. fi
  17949. # Check whether --enable-video-x11-scrnsaver was given.
  17950. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17951. enableval=$enable_video_x11_scrnsaver;
  17952. else
  17953. enable_video_x11_scrnsaver=yes
  17954. fi
  17955. if test x$enable_video_x11_scrnsaver = xyes; then
  17956. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17957. "
  17958. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17959. have_scrnsaver_h_hdr=yes
  17960. else
  17961. have_scrnsaver_h_hdr=no
  17962. fi
  17963. if test x$have_scrnsaver_h_hdr = xyes; then
  17964. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17965. echo "-- dynamic libXss -> $xss_lib"
  17966. cat >>confdefs.h <<_ACEOF
  17967. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17968. _ACEOF
  17969. definitely_enable_video_x11_scrnsaver=yes
  17970. else
  17971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17972. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17973. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17974. $as_echo_n "(cached) " >&6
  17975. else
  17976. ac_check_lib_save_LIBS=$LIBS
  17977. LIBS="-lXss $LIBS"
  17978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17979. /* end confdefs.h. */
  17980. /* Override any GCC internal prototype to avoid an error.
  17981. Use char because int might match the return type of a GCC
  17982. builtin and then its argument prototype would still apply. */
  17983. #ifdef __cplusplus
  17984. extern "C"
  17985. #endif
  17986. char XScreenSaverSuspend ();
  17987. int
  17988. main ()
  17989. {
  17990. return XScreenSaverSuspend ();
  17991. ;
  17992. return 0;
  17993. }
  17994. _ACEOF
  17995. if ac_fn_c_try_link "$LINENO"; then :
  17996. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17997. else
  17998. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17999. fi
  18000. rm -f core conftest.err conftest.$ac_objext \
  18001. conftest$ac_exeext conftest.$ac_ext
  18002. LIBS=$ac_check_lib_save_LIBS
  18003. fi
  18004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18005. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18006. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18007. have_xss_lib=yes
  18008. fi
  18009. if test x$have_xss_lib = xyes ; then
  18010. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18011. definitely_enable_video_x11_scrnsaver=yes
  18012. fi
  18013. fi
  18014. fi
  18015. fi
  18016. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18017. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18018. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18019. fi
  18020. # Check whether --enable-video-x11-xshape was given.
  18021. if test "${enable_video_x11_xshape+set}" = set; then :
  18022. enableval=$enable_video_x11_xshape;
  18023. else
  18024. enable_video_x11_xshape=yes
  18025. fi
  18026. if test x$enable_video_x11_xshape = xyes; then
  18027. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18028. "
  18029. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18030. have_shape_h_hdr=yes
  18031. else
  18032. have_shape_h_hdr=no
  18033. fi
  18034. if test x$have_shape_h_hdr = xyes; then
  18035. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18036. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18037. fi
  18038. fi
  18039. # Check whether --enable-video-x11-vm was given.
  18040. if test "${enable_video_x11_vm+set}" = set; then :
  18041. enableval=$enable_video_x11_vm;
  18042. else
  18043. enable_video_x11_vm=yes
  18044. fi
  18045. if test x$enable_video_x11_vm = xyes; then
  18046. definitely_enable_video_x11_vm=no
  18047. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18048. "
  18049. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18050. have_vm_h_hdr=yes
  18051. else
  18052. have_vm_h_hdr=no
  18053. fi
  18054. if test x$have_vm_h_hdr = xyes; then
  18055. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18056. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18057. cat >>confdefs.h <<_ACEOF
  18058. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18059. _ACEOF
  18060. definitely_enable_video_x11_vm=yes
  18061. else
  18062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18063. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18064. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18065. $as_echo_n "(cached) " >&6
  18066. else
  18067. ac_check_lib_save_LIBS=$LIBS
  18068. LIBS="-lXxf86vm $LIBS"
  18069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18070. /* end confdefs.h. */
  18071. /* Override any GCC internal prototype to avoid an error.
  18072. Use char because int might match the return type of a GCC
  18073. builtin and then its argument prototype would still apply. */
  18074. #ifdef __cplusplus
  18075. extern "C"
  18076. #endif
  18077. char XF86VidModeQueryVersion ();
  18078. int
  18079. main ()
  18080. {
  18081. return XF86VidModeQueryVersion ();
  18082. ;
  18083. return 0;
  18084. }
  18085. _ACEOF
  18086. if ac_fn_c_try_link "$LINENO"; then :
  18087. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18088. else
  18089. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18090. fi
  18091. rm -f core conftest.err conftest.$ac_objext \
  18092. conftest$ac_exeext conftest.$ac_ext
  18093. LIBS=$ac_check_lib_save_LIBS
  18094. fi
  18095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18096. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18097. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18098. have_vm_lib=yes
  18099. fi
  18100. if test x$have_vm_lib = xyes ; then
  18101. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18102. definitely_enable_video_x11_vm=yes
  18103. fi
  18104. fi
  18105. fi
  18106. fi
  18107. if test x$definitely_enable_video_x11_vm = xyes; then
  18108. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18109. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18110. fi
  18111. fi
  18112. fi
  18113. }
  18114. CheckVivanteVideo()
  18115. {
  18116. # Check whether --enable-video-vivante was given.
  18117. if test "${enable_video_vivante+set}" = set; then :
  18118. enableval=$enable_video_vivante;
  18119. else
  18120. enable_video_vivante=yes
  18121. fi
  18122. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18124. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18125. have_vivante_vdk=no
  18126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18127. /* end confdefs.h. */
  18128. #define LINUX
  18129. #define EGL_API_FB
  18130. #include <gc_vdk.h>
  18131. int
  18132. main ()
  18133. {
  18134. ;
  18135. return 0;
  18136. }
  18137. _ACEOF
  18138. if ac_fn_c_try_compile "$LINENO"; then :
  18139. have_vivante_vdk=yes
  18140. fi
  18141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18143. $as_echo "$have_vivante_vdk" >&6; }
  18144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18145. $as_echo_n "checking for Vivante FB API... " >&6; }
  18146. have_vivante_egl=no
  18147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18148. /* end confdefs.h. */
  18149. #define LINUX
  18150. #define EGL_API_FB
  18151. #include <EGL/eglvivante.h>
  18152. int
  18153. main ()
  18154. {
  18155. ;
  18156. return 0;
  18157. }
  18158. _ACEOF
  18159. if ac_fn_c_try_compile "$LINENO"; then :
  18160. have_vivante_egl=yes
  18161. fi
  18162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18164. $as_echo "$have_vivante_egl" >&6; }
  18165. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18166. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18167. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18168. if test x$have_vivante_vdk = xyes; then
  18169. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18170. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18171. fi
  18172. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18173. SUMMARY_video="${SUMMARY_video} vivante"
  18174. have_video=yes
  18175. fi
  18176. fi
  18177. }
  18178. CheckHaikuVideo()
  18179. {
  18180. if test x$enable_video = xyes; then
  18181. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18182. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18183. have_video=yes
  18184. SUMMARY_video="${SUMMARY_video} haiku"
  18185. fi
  18186. }
  18187. CheckCOCOA()
  18188. {
  18189. # Check whether --enable-video-cocoa was given.
  18190. if test "${enable_video_cocoa+set}" = set; then :
  18191. enableval=$enable_video_cocoa;
  18192. else
  18193. enable_video_cocoa=yes
  18194. fi
  18195. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18196. save_CFLAGS="$CFLAGS"
  18197. CFLAGS="$CFLAGS -x objective-c"
  18198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18199. $as_echo_n "checking for Cocoa framework... " >&6; }
  18200. have_cocoa=no
  18201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18202. /* end confdefs.h. */
  18203. #import <Cocoa/Cocoa.h>
  18204. int
  18205. main ()
  18206. {
  18207. ;
  18208. return 0;
  18209. }
  18210. _ACEOF
  18211. if ac_fn_c_try_compile "$LINENO"; then :
  18212. have_cocoa=yes
  18213. fi
  18214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18216. $as_echo "$have_cocoa" >&6; }
  18217. CFLAGS="$save_CFLAGS"
  18218. if test x$have_cocoa = xyes; then
  18219. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18220. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18221. SUMMARY_video="${SUMMARY_video} cocoa"
  18222. have_video=yes
  18223. fi
  18224. fi
  18225. }
  18226. CheckMETAL()
  18227. {
  18228. # Check whether --enable-render-metal was given.
  18229. if test "${enable_render_metal+set}" = set; then :
  18230. enableval=$enable_render_metal;
  18231. else
  18232. enable_render_metal=yes
  18233. fi
  18234. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18235. save_CFLAGS="$CFLAGS"
  18236. CFLAGS="$CFLAGS -x objective-c"
  18237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18238. $as_echo_n "checking for Metal framework... " >&6; }
  18239. have_metal=no
  18240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18241. /* end confdefs.h. */
  18242. #import <Cocoa/Cocoa.h>
  18243. #import <Metal/Metal.h>
  18244. #import <QuartzCore/CAMetalLayer.h>
  18245. #if !TARGET_CPU_X86_64
  18246. #error Metal doesn't work on this configuration
  18247. #endif
  18248. int
  18249. main ()
  18250. {
  18251. ;
  18252. return 0;
  18253. }
  18254. _ACEOF
  18255. if ac_fn_c_try_compile "$LINENO"; then :
  18256. have_metal=yes
  18257. fi
  18258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18259. CFLAGS="$save_CFLAGS"
  18260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18261. $as_echo "$have_metal" >&6; }
  18262. if test x$have_metal = xyes; then
  18263. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18264. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18265. SUMMARY_video="${SUMMARY_video} metal"
  18266. else
  18267. enable_render_metal=no
  18268. fi
  18269. fi
  18270. }
  18271. CheckDirectFB()
  18272. {
  18273. # Check whether --enable-video-directfb was given.
  18274. if test "${enable_video_directfb+set}" = set; then :
  18275. enableval=$enable_video_directfb;
  18276. else
  18277. enable_video_directfb=no
  18278. fi
  18279. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18280. video_directfb=no
  18281. DIRECTFB_REQUIRED_VERSION=1.0.0
  18282. for ac_prog in directfb-config
  18283. do
  18284. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18285. set dummy $ac_prog; ac_word=$2
  18286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18287. $as_echo_n "checking for $ac_word... " >&6; }
  18288. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18289. $as_echo_n "(cached) " >&6
  18290. else
  18291. case $DIRECTFBCONFIG in
  18292. [\\/]* | ?:[\\/]*)
  18293. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18294. ;;
  18295. *)
  18296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18297. as_dummy="$prefix/bin:$PATH"
  18298. for as_dir in $as_dummy
  18299. do
  18300. IFS=$as_save_IFS
  18301. test -z "$as_dir" && as_dir=.
  18302. for ac_exec_ext in '' $ac_executable_extensions; do
  18303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18304. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18306. break 2
  18307. fi
  18308. done
  18309. done
  18310. IFS=$as_save_IFS
  18311. ;;
  18312. esac
  18313. fi
  18314. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18315. if test -n "$DIRECTFBCONFIG"; then
  18316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18317. $as_echo "$DIRECTFBCONFIG" >&6; }
  18318. else
  18319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18320. $as_echo "no" >&6; }
  18321. fi
  18322. test -n "$DIRECTFBCONFIG" && break
  18323. done
  18324. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18325. if test x$DIRECTFBCONFIG = xno; then
  18326. # Extract the first word of "pkg-config", so it can be a program name with args.
  18327. set dummy pkg-config; ac_word=$2
  18328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18329. $as_echo_n "checking for $ac_word... " >&6; }
  18330. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18331. $as_echo_n "(cached) " >&6
  18332. else
  18333. case $PKG_CONFIG in
  18334. [\\/]* | ?:[\\/]*)
  18335. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18336. ;;
  18337. *)
  18338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18339. for as_dir in $PATH
  18340. do
  18341. IFS=$as_save_IFS
  18342. test -z "$as_dir" && as_dir=.
  18343. for ac_exec_ext in '' $ac_executable_extensions; do
  18344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18345. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18347. break 2
  18348. fi
  18349. done
  18350. done
  18351. IFS=$as_save_IFS
  18352. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18353. ;;
  18354. esac
  18355. fi
  18356. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18357. if test -n "$PKG_CONFIG"; then
  18358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18359. $as_echo "$PKG_CONFIG" >&6; }
  18360. else
  18361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18362. $as_echo "no" >&6; }
  18363. fi
  18364. if test x$PKG_CONFIG != xno; then
  18365. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18366. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18367. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18368. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18369. video_directfb=yes
  18370. fi
  18371. fi
  18372. else
  18373. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18374. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18375. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18376. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18377. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18378. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18379. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18380. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18381. video_directfb=yes
  18382. fi
  18383. fi
  18384. if test x$video_directfb = xyes; then
  18385. # SuSE 11.1 installs directfb-config without directfb-devel
  18386. save_CPPFLAGS="$CPPFLAGS"
  18387. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18388. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18389. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18390. have_directfb_hdr=yes
  18391. else
  18392. have_directfb_hdr=no
  18393. fi
  18394. CPPFLAGS="$save_CPPFLAGS"
  18395. video_directfb=$have_directfb_hdr
  18396. fi
  18397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18398. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18400. $as_echo "$video_directfb" >&6; }
  18401. if test x$video_directfb = xyes; then
  18402. # Check whether --enable-directfb-shared was given.
  18403. if test "${enable_directfb_shared+set}" = set; then :
  18404. enableval=$enable_directfb_shared;
  18405. else
  18406. enable_directfb_shared=yes
  18407. fi
  18408. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18409. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18410. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18411. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18413. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18414. directfb_shared=no
  18415. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18416. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18418. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18419. if test x$have_loadso != xyes && \
  18420. test x$enable_directfb_shared = xyes; then
  18421. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18422. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18423. fi
  18424. if test x$have_loadso = xyes && \
  18425. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18426. directfb_shared=yes
  18427. echo "-- $directfb_lib_spec -> $directfb_lib"
  18428. cat >>confdefs.h <<_ACEOF
  18429. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18430. _ACEOF
  18431. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18432. else
  18433. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18434. SUMMARY_video="${SUMMARY_video} directfb"
  18435. fi
  18436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18437. $as_echo "$directfb_shared" >&6; }
  18438. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18439. have_video=yes
  18440. fi
  18441. fi
  18442. }
  18443. CheckKMSDRM()
  18444. {
  18445. # Check whether --enable-video-kmsdrm was given.
  18446. if test "${enable_video_kmsdrm+set}" = set; then :
  18447. enableval=$enable_video_kmsdrm;
  18448. else
  18449. enable_video_kmsdrm=no
  18450. fi
  18451. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18452. video_kmsdrm=no
  18453. libdrm_avail=no
  18454. libgbm_avail=no
  18455. LIBDRM_REQUIRED_VERSION=2.4.46
  18456. LIBGBM_REQUIRED_VERSION=9.0.0
  18457. # Extract the first word of "pkg-config", so it can be a program name with args.
  18458. set dummy pkg-config; ac_word=$2
  18459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18460. $as_echo_n "checking for $ac_word... " >&6; }
  18461. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18462. $as_echo_n "(cached) " >&6
  18463. else
  18464. case $PKG_CONFIG in
  18465. [\\/]* | ?:[\\/]*)
  18466. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18467. ;;
  18468. *)
  18469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18470. for as_dir in $PATH
  18471. do
  18472. IFS=$as_save_IFS
  18473. test -z "$as_dir" && as_dir=.
  18474. for ac_exec_ext in '' $ac_executable_extensions; do
  18475. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18476. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18478. break 2
  18479. fi
  18480. done
  18481. done
  18482. IFS=$as_save_IFS
  18483. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18484. ;;
  18485. esac
  18486. fi
  18487. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18488. if test -n "$PKG_CONFIG"; then
  18489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18490. $as_echo "$PKG_CONFIG" >&6; }
  18491. else
  18492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18493. $as_echo "no" >&6; }
  18494. fi
  18495. if test x$PKG_CONFIG != xno; then
  18496. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18497. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18498. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18499. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18500. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18501. libdrm_avail=yes
  18502. fi
  18503. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18504. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18505. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18506. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18507. libgbm_avail=yes
  18508. fi
  18509. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18510. video_kmsdrm=yes
  18511. fi
  18512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18513. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18515. $as_echo "$libdrm_avail" >&6; }
  18516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18517. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18519. $as_echo "$libgbm_avail" >&6; }
  18520. if test x$video_kmsdrm = xyes; then
  18521. # Check whether --enable-kmsdrm-shared was given.
  18522. if test "${enable_kmsdrm_shared+set}" = set; then :
  18523. enableval=$enable_kmsdrm_shared;
  18524. else
  18525. enable_kmsdrm_shared=yes
  18526. fi
  18527. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18528. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18529. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18531. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18532. kmsdrm_shared=no
  18533. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18534. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18535. if test x$have_loadso != xyes && \
  18536. test x$enable_kmsdrm_shared = xyes; then
  18537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18538. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18539. fi
  18540. if test x$have_loadso = xyes && \
  18541. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18542. kmsdrm_shared=yes
  18543. cat >>confdefs.h <<_ACEOF
  18544. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18545. _ACEOF
  18546. cat >>confdefs.h <<_ACEOF
  18547. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18548. _ACEOF
  18549. cat >>confdefs.h <<_ACEOF
  18550. #define HAVE_KMSDRM_SHARED "TRUE"
  18551. _ACEOF
  18552. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18553. else
  18554. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18555. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18556. fi
  18557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18558. $as_echo "$kmsdrm_shared" >&6; }
  18559. have_video=yes
  18560. fi
  18561. fi
  18562. fi
  18563. fi
  18564. }
  18565. CheckDummyVideo()
  18566. {
  18567. # Check whether --enable-video-dummy was given.
  18568. if test "${enable_video_dummy+set}" = set; then :
  18569. enableval=$enable_video_dummy;
  18570. else
  18571. enable_video_dummy=yes
  18572. fi
  18573. if test x$enable_video_dummy = xyes; then
  18574. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18575. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18576. have_video=yes
  18577. SUMMARY_video="${SUMMARY_video} dummy"
  18578. fi
  18579. }
  18580. CheckQNXVideo()
  18581. {
  18582. if test x$enable_video = xyes; then
  18583. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18584. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18585. have_video=yes
  18586. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18587. SUMMARY_video="${SUMMARY_video} qnx"
  18588. fi
  18589. }
  18590. CheckQNXAudio()
  18591. {
  18592. if test x$enable_audio = xyes; then
  18593. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18594. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18595. have_audio=yes
  18596. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18597. SUMMARY_audio="${SUMMARY_audio} qsa"
  18598. fi
  18599. }
  18600. # Check whether --enable-video-opengl was given.
  18601. if test "${enable_video_opengl+set}" = set; then :
  18602. enableval=$enable_video_opengl;
  18603. else
  18604. enable_video_opengl=yes
  18605. fi
  18606. CheckOpenGLX11()
  18607. {
  18608. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18610. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18611. video_opengl=no
  18612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18613. /* end confdefs.h. */
  18614. #include <GL/gl.h>
  18615. #include <GL/glx.h>
  18616. int
  18617. main ()
  18618. {
  18619. ;
  18620. return 0;
  18621. }
  18622. _ACEOF
  18623. if ac_fn_c_try_compile "$LINENO"; then :
  18624. video_opengl=yes
  18625. fi
  18626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18628. $as_echo "$video_opengl" >&6; }
  18629. if test x$video_opengl = xyes; then
  18630. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18631. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18632. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18633. SUMMARY_video="${SUMMARY_video} opengl"
  18634. fi
  18635. fi
  18636. }
  18637. # Check whether --enable-video-opengles was given.
  18638. if test "${enable_video_opengles+set}" = set; then :
  18639. enableval=$enable_video_opengles;
  18640. else
  18641. enable_video_opengles=yes
  18642. fi
  18643. # Check whether --enable-video-opengles1 was given.
  18644. if test "${enable_video_opengles1+set}" = set; then :
  18645. enableval=$enable_video_opengles1;
  18646. else
  18647. enable_video_opengles1=yes
  18648. fi
  18649. # Check whether --enable-video-opengles2 was given.
  18650. if test "${enable_video_opengles2+set}" = set; then :
  18651. enableval=$enable_video_opengles2;
  18652. else
  18653. enable_video_opengles2=yes
  18654. fi
  18655. CheckOpenGLESX11()
  18656. {
  18657. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18659. $as_echo_n "checking for EGL support... " >&6; }
  18660. video_opengl_egl=no
  18661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18662. /* end confdefs.h. */
  18663. #define LINUX
  18664. #define EGL_API_FB
  18665. #include <EGL/egl.h>
  18666. #include <EGL/eglext.h>
  18667. int
  18668. main ()
  18669. {
  18670. ;
  18671. return 0;
  18672. }
  18673. _ACEOF
  18674. if ac_fn_c_try_compile "$LINENO"; then :
  18675. video_opengl_egl=yes
  18676. fi
  18677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18679. $as_echo "$video_opengl_egl" >&6; }
  18680. if test x$video_opengl_egl = xyes; then
  18681. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18682. fi
  18683. if test x$enable_video_opengles1 = xyes; then
  18684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18685. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18686. video_opengles_v1=no
  18687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18688. /* end confdefs.h. */
  18689. #include <GLES/gl.h>
  18690. #include <GLES/glext.h>
  18691. int
  18692. main ()
  18693. {
  18694. ;
  18695. return 0;
  18696. }
  18697. _ACEOF
  18698. if ac_fn_c_try_compile "$LINENO"; then :
  18699. video_opengles_v1=yes
  18700. fi
  18701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18703. $as_echo "$video_opengles_v1" >&6; }
  18704. if test x$video_opengles_v1 = xyes; then
  18705. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18706. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18707. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18708. fi
  18709. fi
  18710. if test x$enable_video_opengles2 = xyes; then
  18711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18712. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18713. video_opengles_v2=no
  18714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18715. /* end confdefs.h. */
  18716. #include <GLES2/gl2.h>
  18717. #include <GLES2/gl2ext.h>
  18718. int
  18719. main ()
  18720. {
  18721. ;
  18722. return 0;
  18723. }
  18724. _ACEOF
  18725. if ac_fn_c_try_compile "$LINENO"; then :
  18726. video_opengles_v2=yes
  18727. fi
  18728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18730. $as_echo "$video_opengles_v2" >&6; }
  18731. if test x$video_opengles_v2 = xyes; then
  18732. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18733. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18734. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18735. fi
  18736. fi
  18737. fi
  18738. }
  18739. CheckWINDOWSGL()
  18740. {
  18741. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18742. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18743. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18744. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18745. SUMMARY_video="${SUMMARY_video} opengl"
  18746. fi
  18747. }
  18748. CheckWINDOWSGLES()
  18749. {
  18750. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18752. $as_echo_n "checking for EGL support... " >&6; }
  18753. video_opengl_egl=no
  18754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18755. /* end confdefs.h. */
  18756. #include <EGL/egl.h>
  18757. int
  18758. main ()
  18759. {
  18760. ;
  18761. return 0;
  18762. }
  18763. _ACEOF
  18764. if ac_fn_c_try_compile "$LINENO"; then :
  18765. video_opengl_egl=yes
  18766. fi
  18767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18769. $as_echo "$video_opengl_egl" >&6; }
  18770. if test x$video_opengl_egl = xyes; then
  18771. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18772. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18773. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18774. fi
  18775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18776. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18777. video_opengles_v2=no
  18778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18779. /* end confdefs.h. */
  18780. #include <GLES2/gl2.h>
  18781. #include <GLES2/gl2ext.h>
  18782. int
  18783. main ()
  18784. {
  18785. ;
  18786. return 0;
  18787. }
  18788. _ACEOF
  18789. if ac_fn_c_try_compile "$LINENO"; then :
  18790. video_opengles_v2=yes
  18791. fi
  18792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18794. $as_echo "$video_opengles_v2" >&6; }
  18795. if test x$video_opengles_v2 = xyes; then
  18796. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18797. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18798. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18799. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18800. fi
  18801. fi
  18802. }
  18803. CheckHaikuGL()
  18804. {
  18805. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18806. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18807. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18808. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18809. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18810. SUMMARY_video="${SUMMARY_video} opengl"
  18811. fi
  18812. }
  18813. CheckMacGL()
  18814. {
  18815. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18816. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18817. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18818. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18819. SUMMARY_video="${SUMMARY_video} opengl"
  18820. fi
  18821. }
  18822. CheckMacGLES()
  18823. {
  18824. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18825. video_opengl_egl=yes
  18826. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18827. video_opengles_v2=yes
  18828. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18829. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18830. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18831. fi
  18832. }
  18833. CheckEmscriptenGLES()
  18834. {
  18835. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18837. $as_echo_n "checking for EGL support... " >&6; }
  18838. video_opengl_egl=no
  18839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18840. /* end confdefs.h. */
  18841. #include <EGL/egl.h>
  18842. int
  18843. main ()
  18844. {
  18845. ;
  18846. return 0;
  18847. }
  18848. _ACEOF
  18849. if ac_fn_c_try_compile "$LINENO"; then :
  18850. video_opengl_egl=yes
  18851. fi
  18852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18854. $as_echo "$video_opengl_egl" >&6; }
  18855. if test x$video_opengl_egl = xyes; then
  18856. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18857. fi
  18858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18859. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18860. video_opengles_v2=no
  18861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18862. /* end confdefs.h. */
  18863. #include <GLES2/gl2.h>
  18864. #include <GLES2/gl2ext.h>
  18865. int
  18866. main ()
  18867. {
  18868. ;
  18869. return 0;
  18870. }
  18871. _ACEOF
  18872. if ac_fn_c_try_compile "$LINENO"; then :
  18873. video_opengles_v2=yes
  18874. fi
  18875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18877. $as_echo "$video_opengles_v2" >&6; }
  18878. if test x$video_opengles_v2 = xyes; then
  18879. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18880. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18881. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18882. fi
  18883. fi
  18884. }
  18885. # Check whether --enable-video-vulkan was given.
  18886. if test "${enable_video_vulkan+set}" = set; then :
  18887. enableval=$enable_video_vulkan;
  18888. else
  18889. enable_video_vulkan=yes
  18890. fi
  18891. CheckVulkan()
  18892. {
  18893. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18894. case "$host" in
  18895. *-*-android*)
  18896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18897. /* end confdefs.h. */
  18898. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18899. #error Vulkan doesn't work on this configuration
  18900. #endif
  18901. int
  18902. main ()
  18903. {
  18904. ;
  18905. return 0;
  18906. }
  18907. _ACEOF
  18908. if ac_fn_c_try_compile "$LINENO"; then :
  18909. else
  18910. enable_video_vulkan=no
  18911. fi
  18912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18913. ;;
  18914. *-*-darwin*)
  18915. save_CFLAGS="$CFLAGS"
  18916. CFLAGS="$CFLAGS -x objective-c"
  18917. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18918. /* end confdefs.h. */
  18919. #include <Cocoa/Cocoa.h>
  18920. #include <Metal/Metal.h>
  18921. #include <QuartzCore/CAMetalLayer.h>
  18922. #if !TARGET_CPU_X86_64
  18923. #error Vulkan doesn't work on this configuration
  18924. #endif
  18925. int
  18926. main ()
  18927. {
  18928. ;
  18929. return 0;
  18930. }
  18931. _ACEOF
  18932. if ac_fn_c_try_compile "$LINENO"; then :
  18933. else
  18934. enable_video_vulkan=no
  18935. fi
  18936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18937. CFLAGS="$save_CFLAGS"
  18938. ;;
  18939. *)
  18940. ;;
  18941. esac
  18942. if test x$enable_video_vulkan = xno; then
  18943. # For reasons I am totally unable to see, I get an undefined macro error if
  18944. # I put this in the AC_TRY_COMPILE.
  18945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18946. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18947. fi
  18948. fi
  18949. if test x$enable_video_vulkan = xyes; then
  18950. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18951. SUMMARY_video="${SUMMARY_video} vulkan"
  18952. fi
  18953. }
  18954. CheckInputEvents()
  18955. {
  18956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18957. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18958. use_input_events=no
  18959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18960. /* end confdefs.h. */
  18961. #include <linux/input.h>
  18962. int
  18963. main ()
  18964. {
  18965. #ifndef EVIOCGNAME
  18966. #error EVIOCGNAME() ioctl not available
  18967. #endif
  18968. ;
  18969. return 0;
  18970. }
  18971. _ACEOF
  18972. if ac_fn_c_try_compile "$LINENO"; then :
  18973. use_input_events=yes
  18974. fi
  18975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18977. $as_echo "$use_input_events" >&6; }
  18978. if test x$use_input_events = xyes; then
  18979. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18980. SUMMARY_input="${SUMMARY_input} linuxev"
  18981. fi
  18982. }
  18983. CheckInputKD()
  18984. {
  18985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18986. $as_echo_n "checking for Linux kd.h... " >&6; }
  18987. use_input_kd=no
  18988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18989. /* end confdefs.h. */
  18990. #include <linux/kd.h>
  18991. #include <linux/keyboard.h>
  18992. int
  18993. main ()
  18994. {
  18995. struct kbentry kbe;
  18996. kbe.kb_table = KG_CTRL;
  18997. ioctl(0, KDGKBENT, &kbe);
  18998. ;
  18999. return 0;
  19000. }
  19001. _ACEOF
  19002. if ac_fn_c_try_compile "$LINENO"; then :
  19003. use_input_kd=yes
  19004. fi
  19005. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19007. $as_echo "$use_input_kd" >&6; }
  19008. if test x$use_input_kd = xyes; then
  19009. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19010. SUMMARY_input="${SUMMARY_input} linuxkd"
  19011. fi
  19012. }
  19013. CheckLibUDev()
  19014. {
  19015. # Check whether --enable-libudev was given.
  19016. if test "${enable_libudev+set}" = set; then :
  19017. enableval=$enable_libudev;
  19018. else
  19019. enable_libudev=yes
  19020. fi
  19021. if test x$enable_libudev = xyes; then
  19022. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19023. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19024. have_libudev_h_hdr=yes
  19025. else
  19026. have_libudev_h_hdr=no
  19027. fi
  19028. if test x$have_libudev_h_hdr = xyes; then
  19029. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19030. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19031. if test x$udev_lib != x; then
  19032. echo "-- dynamic udev -> $udev_lib"
  19033. cat >>confdefs.h <<_ACEOF
  19034. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19035. _ACEOF
  19036. fi
  19037. fi
  19038. fi
  19039. }
  19040. CheckDBus()
  19041. {
  19042. # Check whether --enable-dbus was given.
  19043. if test "${enable_dbus+set}" = set; then :
  19044. enableval=$enable_dbus;
  19045. else
  19046. enable_dbus=yes
  19047. fi
  19048. if test x$enable_dbus = xyes; then
  19049. # Extract the first word of "pkg-config", so it can be a program name with args.
  19050. set dummy pkg-config; ac_word=$2
  19051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19052. $as_echo_n "checking for $ac_word... " >&6; }
  19053. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19054. $as_echo_n "(cached) " >&6
  19055. else
  19056. case $PKG_CONFIG in
  19057. [\\/]* | ?:[\\/]*)
  19058. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19059. ;;
  19060. *)
  19061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19062. for as_dir in $PATH
  19063. do
  19064. IFS=$as_save_IFS
  19065. test -z "$as_dir" && as_dir=.
  19066. for ac_exec_ext in '' $ac_executable_extensions; do
  19067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19068. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19070. break 2
  19071. fi
  19072. done
  19073. done
  19074. IFS=$as_save_IFS
  19075. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19076. ;;
  19077. esac
  19078. fi
  19079. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19080. if test -n "$PKG_CONFIG"; then
  19081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19082. $as_echo "$PKG_CONFIG" >&6; }
  19083. else
  19084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19085. $as_echo "no" >&6; }
  19086. fi
  19087. if test x$PKG_CONFIG != xno; then
  19088. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19089. save_CFLAGS="$CFLAGS"
  19090. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19091. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19092. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19093. have_dbus_dbus_h_hdr=yes
  19094. else
  19095. have_dbus_dbus_h_hdr=no
  19096. fi
  19097. CFLAGS="$save_CFLAGS"
  19098. if test x$have_dbus_dbus_h_hdr = xyes; then
  19099. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19100. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19101. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19102. fi
  19103. fi
  19104. fi
  19105. }
  19106. CheckIME()
  19107. {
  19108. # Check whether --enable-ime was given.
  19109. if test "${enable_ime+set}" = set; then :
  19110. enableval=$enable_ime;
  19111. else
  19112. enable_ime=yes
  19113. fi
  19114. if test x$enable_ime = xyes; then
  19115. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19116. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19117. fi
  19118. }
  19119. CheckIBus()
  19120. {
  19121. # Check whether --enable-ibus was given.
  19122. if test "${enable_ibus+set}" = set; then :
  19123. enableval=$enable_ibus;
  19124. else
  19125. enable_ibus=yes
  19126. fi
  19127. if test x$enable_ibus = xyes; then
  19128. # Extract the first word of "pkg-config", so it can be a program name with args.
  19129. set dummy pkg-config; ac_word=$2
  19130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19131. $as_echo_n "checking for $ac_word... " >&6; }
  19132. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19133. $as_echo_n "(cached) " >&6
  19134. else
  19135. case $PKG_CONFIG in
  19136. [\\/]* | ?:[\\/]*)
  19137. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19138. ;;
  19139. *)
  19140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19141. for as_dir in $PATH
  19142. do
  19143. IFS=$as_save_IFS
  19144. test -z "$as_dir" && as_dir=.
  19145. for ac_exec_ext in '' $ac_executable_extensions; do
  19146. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19147. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19149. break 2
  19150. fi
  19151. done
  19152. done
  19153. IFS=$as_save_IFS
  19154. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19155. ;;
  19156. esac
  19157. fi
  19158. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19159. if test -n "$PKG_CONFIG"; then
  19160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19161. $as_echo "$PKG_CONFIG" >&6; }
  19162. else
  19163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19164. $as_echo "no" >&6; }
  19165. fi
  19166. if test x$PKG_CONFIG != xno; then
  19167. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19168. save_CFLAGS="$CFLAGS"
  19169. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19170. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19171. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19172. have_ibus_ibus_h_hdr=yes
  19173. else
  19174. have_ibus_ibus_h_hdr=no
  19175. fi
  19176. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19177. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19178. have_inotify_inotify_h_hdr=yes
  19179. else
  19180. have_inotify_inotify_h_hdr=no
  19181. fi
  19182. CFLAGS="$save_CFLAGS"
  19183. if test x$have_ibus_ibus_h_hdr = xyes; then
  19184. if test x$enable_ime != xyes; then
  19185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19186. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19187. have_ibus_ibus_h_hdr=no
  19188. elif test x$enable_dbus != xyes; then
  19189. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19190. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19191. have_ibus_ibus_h_hdr=no
  19192. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19194. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19195. have_ibus_ibus_h_hdr=no
  19196. else
  19197. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19198. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19199. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19200. fi
  19201. fi
  19202. fi
  19203. fi
  19204. }
  19205. CheckFcitx()
  19206. {
  19207. # Check whether --enable-fcitx was given.
  19208. if test "${enable_fcitx+set}" = set; then :
  19209. enableval=$enable_fcitx;
  19210. else
  19211. enable_fcitx=yes
  19212. fi
  19213. if test x$enable_fcitx = xyes; then
  19214. # Extract the first word of "pkg-config", so it can be a program name with args.
  19215. set dummy pkg-config; ac_word=$2
  19216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19217. $as_echo_n "checking for $ac_word... " >&6; }
  19218. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19219. $as_echo_n "(cached) " >&6
  19220. else
  19221. case $PKG_CONFIG in
  19222. [\\/]* | ?:[\\/]*)
  19223. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19224. ;;
  19225. *)
  19226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19227. for as_dir in $PATH
  19228. do
  19229. IFS=$as_save_IFS
  19230. test -z "$as_dir" && as_dir=.
  19231. for ac_exec_ext in '' $ac_executable_extensions; do
  19232. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19233. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19235. break 2
  19236. fi
  19237. done
  19238. done
  19239. IFS=$as_save_IFS
  19240. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19241. ;;
  19242. esac
  19243. fi
  19244. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19245. if test -n "$PKG_CONFIG"; then
  19246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19247. $as_echo "$PKG_CONFIG" >&6; }
  19248. else
  19249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19250. $as_echo "no" >&6; }
  19251. fi
  19252. if test x$PKG_CONFIG != xno; then
  19253. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19254. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19255. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19256. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19257. have_fcitx_frontend_h_hdr=yes
  19258. else
  19259. have_fcitx_frontend_h_hdr=no
  19260. fi
  19261. CFLAGS="$save_CFLAGS"
  19262. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19263. if test x$enable_ime != xyes; then
  19264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19265. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19266. have_fcitx_frontend_h_hdr=no
  19267. elif test x$enable_dbus != xyes; then
  19268. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19269. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19270. have_fcitx_frontend_h_hdr=no
  19271. else
  19272. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19273. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19274. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19275. fi
  19276. fi
  19277. fi
  19278. fi
  19279. }
  19280. CheckTslib()
  19281. {
  19282. # Check whether --enable-input-tslib was given.
  19283. if test "${enable_input_tslib+set}" = set; then :
  19284. enableval=$enable_input_tslib;
  19285. else
  19286. enable_input_tslib=yes
  19287. fi
  19288. if test x$enable_input_tslib = xyes; then
  19289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19290. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19291. enable_input_tslib=no
  19292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19293. /* end confdefs.h. */
  19294. #include "tslib.h"
  19295. int
  19296. main ()
  19297. {
  19298. ;
  19299. return 0;
  19300. }
  19301. _ACEOF
  19302. if ac_fn_c_try_compile "$LINENO"; then :
  19303. enable_input_tslib=yes
  19304. fi
  19305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19307. $as_echo "$enable_input_tslib" >&6; }
  19308. if test x$enable_input_tslib = xyes; then
  19309. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19310. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19311. SUMMARY_input="${SUMMARY_input} ts"
  19312. fi
  19313. fi
  19314. }
  19315. CheckPTHREAD()
  19316. {
  19317. # Check whether --enable-pthreads was given.
  19318. if test "${enable_pthreads+set}" = set; then :
  19319. enableval=$enable_pthreads;
  19320. else
  19321. enable_pthreads=yes
  19322. fi
  19323. # Check whether --enable-pthread-sem was given.
  19324. if test "${enable_pthread_sem+set}" = set; then :
  19325. enableval=$enable_pthread_sem;
  19326. else
  19327. enable_pthread_sem=yes
  19328. fi
  19329. case "$host" in
  19330. *-*-android*)
  19331. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19332. pthread_lib=""
  19333. ;;
  19334. *-*-linux*|*-*-uclinux*)
  19335. pthread_cflags="-D_REENTRANT"
  19336. pthread_lib="-lpthread"
  19337. ;;
  19338. *-*-bsdi*)
  19339. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19340. pthread_lib=""
  19341. ;;
  19342. *-*-darwin*)
  19343. pthread_cflags="-D_THREAD_SAFE"
  19344. # causes Carbon.p complaints?
  19345. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19346. ;;
  19347. *-*-freebsd*|*-*-dragonfly*)
  19348. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19349. pthread_lib="-pthread"
  19350. ;;
  19351. *-*-netbsd*)
  19352. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19353. pthread_lib="-lpthread"
  19354. ;;
  19355. *-*-openbsd*)
  19356. pthread_cflags="-D_REENTRANT"
  19357. pthread_lib="-pthread"
  19358. ;;
  19359. *-*-solaris2.9)
  19360. # From Solaris 9+, posix4's preferred name is rt.
  19361. pthread_cflags="-D_REENTRANT"
  19362. pthread_lib="-lpthread -lrt"
  19363. ;;
  19364. *-*-solaris2.10)
  19365. # Solaris 10+ merged pthread into libc.
  19366. pthread_cflags="-D_REENTRANT"
  19367. pthread_lib="-lrt"
  19368. ;;
  19369. *-*-solaris*)
  19370. # Solaris 11+ merged rt into libc.
  19371. pthread_cflags="-D_REENTRANT"
  19372. pthread_lib=""
  19373. ;;
  19374. *-*-sysv5*)
  19375. pthread_cflags="-D_REENTRANT -Kthread"
  19376. pthread_lib=""
  19377. ;;
  19378. *-*-aix*)
  19379. pthread_cflags="-D_REENTRANT -mthreads"
  19380. pthread_lib="-lpthread"
  19381. ;;
  19382. *-*-hpux11*)
  19383. pthread_cflags="-D_REENTRANT"
  19384. pthread_lib="-L/usr/lib -lpthread"
  19385. ;;
  19386. *-*-haiku*)
  19387. pthread_cflags="-D_REENTRANT"
  19388. pthread_lib=""
  19389. ;;
  19390. *-*-nto*)
  19391. pthread_cflags="-D_REENTRANT"
  19392. pthread_lib=""
  19393. ;;
  19394. *)
  19395. pthread_cflags="-D_REENTRANT"
  19396. pthread_lib="-lpthread"
  19397. ;;
  19398. esac
  19399. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19400. # Save the original compiler flags and libraries
  19401. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19402. # Add the pthread compiler flags and libraries
  19403. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19404. # Check to see if we have pthread support on this system
  19405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19406. $as_echo_n "checking for pthreads... " >&6; }
  19407. use_pthreads=no
  19408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19409. /* end confdefs.h. */
  19410. #include <pthread.h>
  19411. int
  19412. main ()
  19413. {
  19414. pthread_attr_t type;
  19415. pthread_attr_init(&type);
  19416. ;
  19417. return 0;
  19418. }
  19419. _ACEOF
  19420. if ac_fn_c_try_link "$LINENO"; then :
  19421. use_pthreads=yes
  19422. fi
  19423. rm -f core conftest.err conftest.$ac_objext \
  19424. conftest$ac_exeext conftest.$ac_ext
  19425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19426. $as_echo "$use_pthreads" >&6; }
  19427. # Restore the compiler flags and libraries
  19428. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19429. # Do futher testing if we have pthread support...
  19430. if test x$use_pthreads = xyes; then
  19431. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19432. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19433. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19434. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19435. # Save the original compiler flags and libraries
  19436. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19437. # Add the pthread compiler flags and libraries
  19438. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19439. # Check to see if recursive mutexes are available
  19440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19441. $as_echo_n "checking for recursive mutexes... " >&6; }
  19442. has_recursive_mutexes=no
  19443. if test x$has_recursive_mutexes = xno; then
  19444. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19445. /* end confdefs.h. */
  19446. #define _GNU_SOURCE 1
  19447. #include <pthread.h>
  19448. int
  19449. main ()
  19450. {
  19451. pthread_mutexattr_t attr;
  19452. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19453. ;
  19454. return 0;
  19455. }
  19456. _ACEOF
  19457. if ac_fn_c_try_link "$LINENO"; then :
  19458. has_recursive_mutexes=yes
  19459. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19460. fi
  19461. rm -f core conftest.err conftest.$ac_objext \
  19462. conftest$ac_exeext conftest.$ac_ext
  19463. fi
  19464. if test x$has_recursive_mutexes = xno; then
  19465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19466. /* end confdefs.h. */
  19467. #define _GNU_SOURCE 1
  19468. #include <pthread.h>
  19469. int
  19470. main ()
  19471. {
  19472. pthread_mutexattr_t attr;
  19473. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19474. ;
  19475. return 0;
  19476. }
  19477. _ACEOF
  19478. if ac_fn_c_try_link "$LINENO"; then :
  19479. has_recursive_mutexes=yes
  19480. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19481. fi
  19482. rm -f core conftest.err conftest.$ac_objext \
  19483. conftest$ac_exeext conftest.$ac_ext
  19484. fi
  19485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19486. $as_echo "$has_recursive_mutexes" >&6; }
  19487. # Check to see if pthread semaphore support is missing
  19488. if test x$enable_pthread_sem = xyes; then
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19490. $as_echo_n "checking for pthread semaphores... " >&6; }
  19491. have_pthread_sem=no
  19492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19493. /* end confdefs.h. */
  19494. #include <pthread.h>
  19495. #include <semaphore.h>
  19496. int
  19497. main ()
  19498. {
  19499. ;
  19500. return 0;
  19501. }
  19502. _ACEOF
  19503. if ac_fn_c_try_compile "$LINENO"; then :
  19504. have_pthread_sem=yes
  19505. fi
  19506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19508. $as_echo "$have_pthread_sem" >&6; }
  19509. fi
  19510. if test x$have_pthread_sem = xyes; then
  19511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19512. $as_echo_n "checking for sem_timedwait... " >&6; }
  19513. have_sem_timedwait=no
  19514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19515. /* end confdefs.h. */
  19516. #include <pthread.h>
  19517. #include <semaphore.h>
  19518. int
  19519. main ()
  19520. {
  19521. sem_timedwait(NULL, NULL);
  19522. ;
  19523. return 0;
  19524. }
  19525. _ACEOF
  19526. if ac_fn_c_try_link "$LINENO"; then :
  19527. have_sem_timedwait=yes
  19528. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19529. fi
  19530. rm -f core conftest.err conftest.$ac_objext \
  19531. conftest$ac_exeext conftest.$ac_ext
  19532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19533. $as_echo "$have_sem_timedwait" >&6; }
  19534. fi
  19535. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19536. "
  19537. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19538. have_pthread_np_h=yes
  19539. else
  19540. have_pthread_np_h=no
  19541. fi
  19542. if test x$have_pthread_np_h = xyes; then
  19543. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19544. fi
  19545. # Check to see if pthread naming is available
  19546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19547. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19549. /* end confdefs.h. */
  19550. /* Override any GCC internal prototype to avoid an error.
  19551. Use char because int might match the return type of a GCC
  19552. builtin and then its argument prototype would still apply. */
  19553. #ifdef __cplusplus
  19554. extern "C"
  19555. #endif
  19556. char pthread_setname_np ();
  19557. int
  19558. main ()
  19559. {
  19560. return pthread_setname_np ();
  19561. ;
  19562. return 0;
  19563. }
  19564. _ACEOF
  19565. if ac_fn_c_try_link "$LINENO"; then :
  19566. has_pthread_setname_np=yes
  19567. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19568. else
  19569. has_pthread_setname_np=no
  19570. fi
  19571. rm -f core conftest.err conftest.$ac_objext \
  19572. conftest$ac_exeext conftest.$ac_ext
  19573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19574. $as_echo "$has_pthread_setname_np" >&6; }
  19575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19576. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19578. /* end confdefs.h. */
  19579. /* Override any GCC internal prototype to avoid an error.
  19580. Use char because int might match the return type of a GCC
  19581. builtin and then its argument prototype would still apply. */
  19582. #ifdef __cplusplus
  19583. extern "C"
  19584. #endif
  19585. char pthread_set_name_np ();
  19586. int
  19587. main ()
  19588. {
  19589. return pthread_set_name_np ();
  19590. ;
  19591. return 0;
  19592. }
  19593. _ACEOF
  19594. if ac_fn_c_try_link "$LINENO"; then :
  19595. has_pthread_set_name_np=yes
  19596. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19597. else
  19598. has_pthread_set_name_np=no
  19599. fi
  19600. rm -f core conftest.err conftest.$ac_objext \
  19601. conftest$ac_exeext conftest.$ac_ext
  19602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19603. $as_echo "$has_pthread_set_name_np" >&6; }
  19604. # Restore the compiler flags and libraries
  19605. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19606. # Basic thread creation functions
  19607. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19608. # Semaphores
  19609. # We can fake these with mutexes and condition variables if necessary
  19610. if test x$have_pthread_sem = xyes; then
  19611. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19612. else
  19613. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19614. fi
  19615. # Mutexes
  19616. # We can fake these with semaphores if necessary
  19617. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19618. # Condition variables
  19619. # We can fake these with semaphores and mutexes if necessary
  19620. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19621. # Thread local storage
  19622. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19623. have_threads=yes
  19624. fi
  19625. fi
  19626. }
  19627. CheckWINDOWS()
  19628. {
  19629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19630. $as_echo_n "checking Windows compiler... " >&6; }
  19631. have_win32_gcc=no
  19632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19633. /* end confdefs.h. */
  19634. #include <windows.h>
  19635. int
  19636. main ()
  19637. {
  19638. ;
  19639. return 0;
  19640. }
  19641. _ACEOF
  19642. if ac_fn_c_try_compile "$LINENO"; then :
  19643. have_win32_gcc=yes
  19644. fi
  19645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19647. $as_echo "$have_win32_gcc" >&6; }
  19648. if test x$have_win32_gcc != xyes; then
  19649. as_fn_error $? "
  19650. *** Your compiler ($CC) does not produce Windows executables!
  19651. " "$LINENO" 5
  19652. fi
  19653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19654. $as_echo_n "checking Windows CE... " >&6; }
  19655. have_wince=no
  19656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19657. /* end confdefs.h. */
  19658. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19659. #error This is not Windows CE
  19660. #endif
  19661. int
  19662. main ()
  19663. {
  19664. ;
  19665. return 0;
  19666. }
  19667. _ACEOF
  19668. if ac_fn_c_try_compile "$LINENO"; then :
  19669. have_wince=yes
  19670. as_fn_error $? "
  19671. *** Sorry, Windows CE is no longer supported.
  19672. " "$LINENO" 5
  19673. fi
  19674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19676. $as_echo "$have_wince" >&6; }
  19677. # This fixes Windows stack alignment with newer GCC
  19678. CheckStackBoundary
  19679. }
  19680. CheckDIRECTX()
  19681. {
  19682. # Check whether --enable-directx was given.
  19683. if test "${enable_directx+set}" = set; then :
  19684. enableval=$enable_directx;
  19685. else
  19686. enable_directx=yes
  19687. fi
  19688. if test x$enable_directx = xyes; then
  19689. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19690. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19691. have_d3d=yes
  19692. fi
  19693. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19694. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19695. have_d3d11=yes
  19696. fi
  19697. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19698. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19699. have_ddraw=yes
  19700. fi
  19701. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19702. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19703. have_dsound=yes
  19704. fi
  19705. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19706. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19707. have_dinput=yes
  19708. fi
  19709. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19710. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19711. have_dxgi=yes
  19712. fi
  19713. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19714. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19715. have_xinput=yes
  19716. fi
  19717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19718. /* end confdefs.h. */
  19719. #include <windows.h>
  19720. #include <xinput.h>
  19721. XINPUT_GAMEPAD_EX x1;
  19722. int
  19723. main ()
  19724. {
  19725. ;
  19726. return 0;
  19727. }
  19728. _ACEOF
  19729. if ac_fn_c_try_compile "$LINENO"; then :
  19730. have_xinput_gamepadex=yes
  19731. fi
  19732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19734. /* end confdefs.h. */
  19735. #include <windows.h>
  19736. #include <xinput.h>
  19737. XINPUT_STATE_EX s1;
  19738. int
  19739. main ()
  19740. {
  19741. ;
  19742. return 0;
  19743. }
  19744. _ACEOF
  19745. if ac_fn_c_try_compile "$LINENO"; then :
  19746. have_xinput_stateex=yes
  19747. fi
  19748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19749. if test x$have_ddraw = xyes; then
  19750. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19751. fi
  19752. if test x$have_dinput = xyes; then
  19753. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19754. fi
  19755. if test x$have_dsound = xyes; then
  19756. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19757. fi
  19758. if test x$have_dxgi = xyes; then
  19759. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19760. fi
  19761. if test x$have_xinput = xyes; then
  19762. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19763. fi
  19764. if test x$have_xinput_gamepadex = xyes; then
  19765. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19766. fi
  19767. if test x$have_xinput_stateex = xyes; then
  19768. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19769. fi
  19770. SUMMARY_video="${SUMMARY_video} directx"
  19771. SUMMARY_audio="${SUMMARY_audio} directx"
  19772. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19773. # FIXME: ...so force it off for now.
  19774. case "$host" in
  19775. *-*-cygwin*)
  19776. have_dinput=false
  19777. ;;
  19778. esac
  19779. fi
  19780. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19781. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19782. have_wasapi=yes
  19783. fi
  19784. if test x$have_wasapi = xyes; then
  19785. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  19786. fi
  19787. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19788. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19789. else
  19790. have_wasapi=no
  19791. fi
  19792. if test x$have_wasapi = xyes; then
  19793. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  19794. fi
  19795. ac_fn_c_check_header_mongrel "$LINENO" "endpointvolume.h" "ac_cv_header_endpointvolume_h" "$ac_includes_default"
  19796. if test "x$ac_cv_header_endpointvolume_h" = xyes; then :
  19797. $as_echo "#define HAVE_ENDPOINTVOLUME_H 1" >>confdefs.h
  19798. fi
  19799. # Check whether --enable-wasapi was given.
  19800. if test "${enable_wasapi+set}" = set; then :
  19801. enableval=$enable_wasapi;
  19802. else
  19803. enable_wasapi=yes
  19804. fi
  19805. }
  19806. CheckDLOPEN()
  19807. {
  19808. # Check whether --enable-sdl-dlopen was given.
  19809. if test "${enable_sdl_dlopen+set}" = set; then :
  19810. enableval=$enable_sdl_dlopen;
  19811. else
  19812. enable_sdl_dlopen=yes
  19813. fi
  19814. if test x$enable_sdl_dlopen = xyes; then
  19815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19816. $as_echo_n "checking for dlopen... " >&6; }
  19817. have_dlopen=no
  19818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19819. /* end confdefs.h. */
  19820. #include <dlfcn.h>
  19821. int
  19822. main ()
  19823. {
  19824. void *handle = dlopen("", RTLD_NOW);
  19825. const char *loaderror = (char *) dlerror();
  19826. ;
  19827. return 0;
  19828. }
  19829. _ACEOF
  19830. if ac_fn_c_try_compile "$LINENO"; then :
  19831. have_dlopen=yes
  19832. fi
  19833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19835. $as_echo "$have_dlopen" >&6; }
  19836. if test x$have_dlopen = xyes; then
  19837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19838. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19839. if ${ac_cv_lib_c_dlopen+:} false; then :
  19840. $as_echo_n "(cached) " >&6
  19841. else
  19842. ac_check_lib_save_LIBS=$LIBS
  19843. LIBS="-lc $LIBS"
  19844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19845. /* end confdefs.h. */
  19846. /* Override any GCC internal prototype to avoid an error.
  19847. Use char because int might match the return type of a GCC
  19848. builtin and then its argument prototype would still apply. */
  19849. #ifdef __cplusplus
  19850. extern "C"
  19851. #endif
  19852. char dlopen ();
  19853. int
  19854. main ()
  19855. {
  19856. return dlopen ();
  19857. ;
  19858. return 0;
  19859. }
  19860. _ACEOF
  19861. if ac_fn_c_try_link "$LINENO"; then :
  19862. ac_cv_lib_c_dlopen=yes
  19863. else
  19864. ac_cv_lib_c_dlopen=no
  19865. fi
  19866. rm -f core conftest.err conftest.$ac_objext \
  19867. conftest$ac_exeext conftest.$ac_ext
  19868. LIBS=$ac_check_lib_save_LIBS
  19869. fi
  19870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19871. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19872. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19874. else
  19875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19876. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19877. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19878. $as_echo_n "(cached) " >&6
  19879. else
  19880. ac_check_lib_save_LIBS=$LIBS
  19881. LIBS="-ldl $LIBS"
  19882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19883. /* end confdefs.h. */
  19884. /* Override any GCC internal prototype to avoid an error.
  19885. Use char because int might match the return type of a GCC
  19886. builtin and then its argument prototype would still apply. */
  19887. #ifdef __cplusplus
  19888. extern "C"
  19889. #endif
  19890. char dlopen ();
  19891. int
  19892. main ()
  19893. {
  19894. return dlopen ();
  19895. ;
  19896. return 0;
  19897. }
  19898. _ACEOF
  19899. if ac_fn_c_try_link "$LINENO"; then :
  19900. ac_cv_lib_dl_dlopen=yes
  19901. else
  19902. ac_cv_lib_dl_dlopen=no
  19903. fi
  19904. rm -f core conftest.err conftest.$ac_objext \
  19905. conftest$ac_exeext conftest.$ac_ext
  19906. LIBS=$ac_check_lib_save_LIBS
  19907. fi
  19908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19909. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19910. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19911. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19912. else
  19913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19914. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19915. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19916. $as_echo_n "(cached) " >&6
  19917. else
  19918. ac_check_lib_save_LIBS=$LIBS
  19919. LIBS="-lltdl $LIBS"
  19920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19921. /* end confdefs.h. */
  19922. /* Override any GCC internal prototype to avoid an error.
  19923. Use char because int might match the return type of a GCC
  19924. builtin and then its argument prototype would still apply. */
  19925. #ifdef __cplusplus
  19926. extern "C"
  19927. #endif
  19928. char dlopen ();
  19929. int
  19930. main ()
  19931. {
  19932. return dlopen ();
  19933. ;
  19934. return 0;
  19935. }
  19936. _ACEOF
  19937. if ac_fn_c_try_link "$LINENO"; then :
  19938. ac_cv_lib_ltdl_dlopen=yes
  19939. else
  19940. ac_cv_lib_ltdl_dlopen=no
  19941. fi
  19942. rm -f core conftest.err conftest.$ac_objext \
  19943. conftest$ac_exeext conftest.$ac_ext
  19944. LIBS=$ac_check_lib_save_LIBS
  19945. fi
  19946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19947. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19948. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19949. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19950. fi
  19951. fi
  19952. fi
  19953. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19954. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19955. have_loadso=yes
  19956. fi
  19957. fi
  19958. }
  19959. CheckUSBHID()
  19960. {
  19961. case "$host" in
  19962. *-*-*bsd*)
  19963. if test x$enable_joystick = xyes; then
  19964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19965. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19966. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19967. $as_echo_n "(cached) " >&6
  19968. else
  19969. ac_check_lib_save_LIBS=$LIBS
  19970. LIBS="-lusbhid $LIBS"
  19971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19972. /* end confdefs.h. */
  19973. /* Override any GCC internal prototype to avoid an error.
  19974. Use char because int might match the return type of a GCC
  19975. builtin and then its argument prototype would still apply. */
  19976. #ifdef __cplusplus
  19977. extern "C"
  19978. #endif
  19979. char hid_init ();
  19980. int
  19981. main ()
  19982. {
  19983. return hid_init ();
  19984. ;
  19985. return 0;
  19986. }
  19987. _ACEOF
  19988. if ac_fn_c_try_link "$LINENO"; then :
  19989. ac_cv_lib_usbhid_hid_init=yes
  19990. else
  19991. ac_cv_lib_usbhid_hid_init=no
  19992. fi
  19993. rm -f core conftest.err conftest.$ac_objext \
  19994. conftest$ac_exeext conftest.$ac_ext
  19995. LIBS=$ac_check_lib_save_LIBS
  19996. fi
  19997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19998. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19999. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20000. have_libusbhid=yes
  20001. fi
  20002. if test x$have_libusbhid = xyes; then
  20003. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20004. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20005. USB_CFLAGS="-DHAVE_USBHID_H"
  20006. fi
  20007. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20008. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20009. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20010. fi
  20011. USB_LIBS="$USB_LIBS -lusbhid"
  20012. else
  20013. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20014. if test "x$ac_cv_header_usb_h" = xyes; then :
  20015. USB_CFLAGS="-DHAVE_USB_H"
  20016. fi
  20017. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20018. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20019. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20020. fi
  20021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20022. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20023. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20024. $as_echo_n "(cached) " >&6
  20025. else
  20026. ac_check_lib_save_LIBS=$LIBS
  20027. LIBS="-lusb $LIBS"
  20028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20029. /* end confdefs.h. */
  20030. /* Override any GCC internal prototype to avoid an error.
  20031. Use char because int might match the return type of a GCC
  20032. builtin and then its argument prototype would still apply. */
  20033. #ifdef __cplusplus
  20034. extern "C"
  20035. #endif
  20036. char hid_init ();
  20037. int
  20038. main ()
  20039. {
  20040. return hid_init ();
  20041. ;
  20042. return 0;
  20043. }
  20044. _ACEOF
  20045. if ac_fn_c_try_link "$LINENO"; then :
  20046. ac_cv_lib_usb_hid_init=yes
  20047. else
  20048. ac_cv_lib_usb_hid_init=no
  20049. fi
  20050. rm -f core conftest.err conftest.$ac_objext \
  20051. conftest$ac_exeext conftest.$ac_ext
  20052. LIBS=$ac_check_lib_save_LIBS
  20053. fi
  20054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20055. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20056. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20057. USB_LIBS="$USB_LIBS -lusb"
  20058. fi
  20059. fi
  20060. save_CFLAGS="$CFLAGS"
  20061. CFLAGS="$CFLAGS $USB_CFLAGS"
  20062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20063. $as_echo_n "checking for usbhid... " >&6; }
  20064. have_usbhid=no
  20065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20066. /* end confdefs.h. */
  20067. #include <sys/types.h>
  20068. #if defined(HAVE_USB_H)
  20069. #include <usb.h>
  20070. #endif
  20071. #ifdef __DragonFly__
  20072. # include <bus/usb/usb.h>
  20073. # include <bus/usb/usbhid.h>
  20074. #else
  20075. # include <dev/usb/usb.h>
  20076. # include <dev/usb/usbhid.h>
  20077. #endif
  20078. #if defined(HAVE_USBHID_H)
  20079. #include <usbhid.h>
  20080. #elif defined(HAVE_LIBUSB_H)
  20081. #include <libusb.h>
  20082. #elif defined(HAVE_LIBUSBHID_H)
  20083. #include <libusbhid.h>
  20084. #endif
  20085. int
  20086. main ()
  20087. {
  20088. struct report_desc *repdesc;
  20089. struct usb_ctl_report *repbuf;
  20090. hid_kind_t hidkind;
  20091. ;
  20092. return 0;
  20093. }
  20094. _ACEOF
  20095. if ac_fn_c_try_compile "$LINENO"; then :
  20096. have_usbhid=yes
  20097. fi
  20098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20100. $as_echo "$have_usbhid" >&6; }
  20101. if test x$have_usbhid = xyes; then
  20102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20103. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20104. have_usbhid_ucr_data=no
  20105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20106. /* end confdefs.h. */
  20107. #include <sys/types.h>
  20108. #if defined(HAVE_USB_H)
  20109. #include <usb.h>
  20110. #endif
  20111. #ifdef __DragonFly__
  20112. # include <bus/usb/usb.h>
  20113. # include <bus/usb/usbhid.h>
  20114. #else
  20115. # include <dev/usb/usb.h>
  20116. # include <dev/usb/usbhid.h>
  20117. #endif
  20118. #if defined(HAVE_USBHID_H)
  20119. #include <usbhid.h>
  20120. #elif defined(HAVE_LIBUSB_H)
  20121. #include <libusb.h>
  20122. #elif defined(HAVE_LIBUSBHID_H)
  20123. #include <libusbhid.h>
  20124. #endif
  20125. int
  20126. main ()
  20127. {
  20128. struct usb_ctl_report buf;
  20129. if (buf.ucr_data) { }
  20130. ;
  20131. return 0;
  20132. }
  20133. _ACEOF
  20134. if ac_fn_c_try_compile "$LINENO"; then :
  20135. have_usbhid_ucr_data=yes
  20136. fi
  20137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20138. if test x$have_usbhid_ucr_data = xyes; then
  20139. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20140. fi
  20141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20142. $as_echo "$have_usbhid_ucr_data" >&6; }
  20143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20144. $as_echo_n "checking for new usbhid API... " >&6; }
  20145. have_usbhid_new=no
  20146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20147. /* end confdefs.h. */
  20148. #include <sys/types.h>
  20149. #if defined(HAVE_USB_H)
  20150. #include <usb.h>
  20151. #endif
  20152. #ifdef __DragonFly__
  20153. #include <bus/usb/usb.h>
  20154. #include <bus/usb/usbhid.h>
  20155. #else
  20156. #include <dev/usb/usb.h>
  20157. #include <dev/usb/usbhid.h>
  20158. #endif
  20159. #if defined(HAVE_USBHID_H)
  20160. #include <usbhid.h>
  20161. #elif defined(HAVE_LIBUSB_H)
  20162. #include <libusb.h>
  20163. #elif defined(HAVE_LIBUSBHID_H)
  20164. #include <libusbhid.h>
  20165. #endif
  20166. int
  20167. main ()
  20168. {
  20169. report_desc_t d;
  20170. hid_start_parse(d, 1, 1);
  20171. ;
  20172. return 0;
  20173. }
  20174. _ACEOF
  20175. if ac_fn_c_try_compile "$LINENO"; then :
  20176. have_usbhid_new=yes
  20177. fi
  20178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20179. if test x$have_usbhid_new = xyes; then
  20180. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20181. fi
  20182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20183. $as_echo "$have_usbhid_new" >&6; }
  20184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20185. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20186. have_machine_joystick=no
  20187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20188. /* end confdefs.h. */
  20189. #include <machine/joystick.h>
  20190. int
  20191. main ()
  20192. {
  20193. struct joystick t;
  20194. ;
  20195. return 0;
  20196. }
  20197. _ACEOF
  20198. if ac_fn_c_try_compile "$LINENO"; then :
  20199. have_machine_joystick=yes
  20200. fi
  20201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20202. if test x$have_machine_joystick = xyes; then
  20203. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20204. fi
  20205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20206. $as_echo "$have_machine_joystick" >&6; }
  20207. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20208. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20209. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20210. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20211. have_joystick=yes
  20212. fi
  20213. CFLAGS="$save_CFLAGS"
  20214. fi
  20215. ;;
  20216. esac
  20217. }
  20218. CheckHIDAPI()
  20219. {
  20220. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20221. # so we'll just use libusb when it's available.
  20222. #
  20223. # Except that libusb requires root permissions to open devices, so that's not generally useful, and we'll disable this by default.
  20224. # Check whether --enable-hidapi was given.
  20225. if test "${enable_hidapi+set}" = set; then :
  20226. enableval=$enable_hidapi;
  20227. else
  20228. enable_hidapi=no
  20229. fi
  20230. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20231. hidapi_support=no
  20232. # Extract the first word of "pkg-config", so it can be a program name with args.
  20233. set dummy pkg-config; ac_word=$2
  20234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20235. $as_echo_n "checking for $ac_word... " >&6; }
  20236. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  20237. $as_echo_n "(cached) " >&6
  20238. else
  20239. case $PKG_CONFIG in
  20240. [\\/]* | ?:[\\/]*)
  20241. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20242. ;;
  20243. *)
  20244. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20245. for as_dir in $PATH
  20246. do
  20247. IFS=$as_save_IFS
  20248. test -z "$as_dir" && as_dir=.
  20249. for ac_exec_ext in '' $ac_executable_extensions; do
  20250. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20251. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20252. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20253. break 2
  20254. fi
  20255. done
  20256. done
  20257. IFS=$as_save_IFS
  20258. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  20259. ;;
  20260. esac
  20261. fi
  20262. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20263. if test -n "$PKG_CONFIG"; then
  20264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20265. $as_echo "$PKG_CONFIG" >&6; }
  20266. else
  20267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20268. $as_echo "no" >&6; }
  20269. fi
  20270. if test x$PKG_CONFIG != xno; then
  20271. LIBUSB_CFLAGS=`$PKG_CONFIG --cflags libusb-1.0`
  20272. LIBUSB_LDFLAGS=`$PKG_CONFIG --libs libusb-1.0`
  20273. save_CFLAGS="$CFLAGS"
  20274. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20275. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20276. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20277. have_libusb_h=yes
  20278. fi
  20279. CFLAGS="$save_CFLAGS"
  20280. fi
  20281. if test x$have_libusb_h = xyes; then
  20282. hidapi_support=yes
  20283. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20284. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20285. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20286. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20287. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20288. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LDFLAGS"
  20289. fi
  20290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20291. $as_echo_n "checking for hidapi support... " >&6; }
  20292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20293. $as_echo "$hidapi_support" >&6; }
  20294. fi
  20295. }
  20296. CheckClockGettime()
  20297. {
  20298. # Check whether --enable-clock_gettime was given.
  20299. if test "${enable_clock_gettime+set}" = set; then :
  20300. enableval=$enable_clock_gettime;
  20301. else
  20302. enable_clock_gettime=yes
  20303. fi
  20304. if test x$enable_clock_gettime = xyes; then
  20305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20306. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20307. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20308. $as_echo_n "(cached) " >&6
  20309. else
  20310. ac_check_lib_save_LIBS=$LIBS
  20311. LIBS="-lrt $LIBS"
  20312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20313. /* end confdefs.h. */
  20314. /* Override any GCC internal prototype to avoid an error.
  20315. Use char because int might match the return type of a GCC
  20316. builtin and then its argument prototype would still apply. */
  20317. #ifdef __cplusplus
  20318. extern "C"
  20319. #endif
  20320. char clock_gettime ();
  20321. int
  20322. main ()
  20323. {
  20324. return clock_gettime ();
  20325. ;
  20326. return 0;
  20327. }
  20328. _ACEOF
  20329. if ac_fn_c_try_link "$LINENO"; then :
  20330. ac_cv_lib_rt_clock_gettime=yes
  20331. else
  20332. ac_cv_lib_rt_clock_gettime=no
  20333. fi
  20334. rm -f core conftest.err conftest.$ac_objext \
  20335. conftest$ac_exeext conftest.$ac_ext
  20336. LIBS=$ac_check_lib_save_LIBS
  20337. fi
  20338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20339. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20340. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20341. have_clock_gettime=yes
  20342. fi
  20343. if test x$have_clock_gettime = xyes; then
  20344. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20345. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20346. else
  20347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20348. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20349. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20350. $as_echo_n "(cached) " >&6
  20351. else
  20352. ac_check_lib_save_LIBS=$LIBS
  20353. LIBS="-lc $LIBS"
  20354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20355. /* end confdefs.h. */
  20356. /* Override any GCC internal prototype to avoid an error.
  20357. Use char because int might match the return type of a GCC
  20358. builtin and then its argument prototype would still apply. */
  20359. #ifdef __cplusplus
  20360. extern "C"
  20361. #endif
  20362. char clock_gettime ();
  20363. int
  20364. main ()
  20365. {
  20366. return clock_gettime ();
  20367. ;
  20368. return 0;
  20369. }
  20370. _ACEOF
  20371. if ac_fn_c_try_link "$LINENO"; then :
  20372. ac_cv_lib_c_clock_gettime=yes
  20373. else
  20374. ac_cv_lib_c_clock_gettime=no
  20375. fi
  20376. rm -f core conftest.err conftest.$ac_objext \
  20377. conftest$ac_exeext conftest.$ac_ext
  20378. LIBS=$ac_check_lib_save_LIBS
  20379. fi
  20380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20381. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20382. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20383. have_clock_gettime=yes
  20384. fi
  20385. if test x$have_clock_gettime = xyes; then
  20386. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20387. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20388. fi
  20389. fi
  20390. fi
  20391. }
  20392. CheckLinuxVersion()
  20393. {
  20394. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20395. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20396. have_linux_version_h=yes
  20397. fi
  20398. if test x$have_linux_version_h = xyes; then
  20399. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20400. fi
  20401. }
  20402. CheckRPATH()
  20403. {
  20404. # Check whether --enable-rpath was given.
  20405. if test "${enable_rpath+set}" = set; then :
  20406. enableval=$enable_rpath;
  20407. else
  20408. enable_rpath=yes
  20409. fi
  20410. }
  20411. CheckWarnAll
  20412. case "$host" in
  20413. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20414. case "$host" in
  20415. *-*-android*)
  20416. # Android
  20417. ARCH=android
  20418. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20419. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20420. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20421. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20422. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20423. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20424. if test x$enable_video = xyes; then
  20425. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20426. # FIXME: confdefs? Not AC_DEFINE?
  20427. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20428. SUMMARY_video="${SUMMARY_video} android"
  20429. fi
  20430. ;;
  20431. *-*-linux*) ARCH=linux ;;
  20432. *-*-uclinux*) ARCH=linux ;;
  20433. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20434. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20435. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20436. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20437. *-*-bsdi*) ARCH=bsdi ;;
  20438. *-*-freebsd*) ARCH=freebsd ;;
  20439. *-*-dragonfly*) ARCH=freebsd ;;
  20440. *-*-netbsd*) ARCH=netbsd ;;
  20441. *-*-openbsd*) ARCH=openbsd ;;
  20442. *-*-sysv5*) ARCH=sysv5 ;;
  20443. *-*-solaris*) ARCH=solaris ;;
  20444. *-*-hpux*) ARCH=hpux ;;
  20445. *-*-aix*) ARCH=aix ;;
  20446. *-*-minix*) ARCH=minix ;;
  20447. *-*-nto*) ARCH=nto
  20448. CheckQNXVideo
  20449. ;;
  20450. esac
  20451. CheckVisibilityHidden
  20452. CheckDeclarationAfterStatement
  20453. CheckDummyVideo
  20454. CheckDiskAudio
  20455. CheckDummyAudio
  20456. CheckDLOPEN
  20457. CheckOSS
  20458. CheckALSA
  20459. CheckPulseAudio
  20460. CheckJACK
  20461. CheckARTSC
  20462. CheckESD
  20463. CheckNAS
  20464. CheckSNDIO
  20465. CheckFusionSound
  20466. CheckLibSampleRate
  20467. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20468. CheckRPI
  20469. CheckX11
  20470. CheckDirectFB
  20471. CheckKMSDRM
  20472. CheckOpenGLX11
  20473. CheckOpenGLESX11
  20474. CheckVulkan
  20475. CheckWayland
  20476. CheckLibUDev
  20477. CheckDBus
  20478. CheckIME
  20479. CheckIBus
  20480. CheckFcitx
  20481. case $ARCH in
  20482. linux)
  20483. CheckInputEvents
  20484. CheckInputKD
  20485. ;;
  20486. esac
  20487. CheckTslib
  20488. CheckUSBHID
  20489. CheckHIDAPI
  20490. CheckPTHREAD
  20491. CheckClockGettime
  20492. CheckLinuxVersion
  20493. CheckRPATH
  20494. CheckVivanteVideo
  20495. # Set up files for the audio library
  20496. if test x$enable_audio = xyes; then
  20497. case $ARCH in
  20498. sysv5|solaris|hpux)
  20499. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20500. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20501. SUMMARY_audio="${SUMMARY_audio} sun"
  20502. have_audio=yes
  20503. ;;
  20504. netbsd) # Don't use this on OpenBSD, it's busted.
  20505. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20506. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20507. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20508. have_audio=yes
  20509. ;;
  20510. aix)
  20511. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20512. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20513. SUMMARY_audio="${SUMMARY_audio} paudio"
  20514. have_audio=yes
  20515. ;;
  20516. android)
  20517. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20518. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20519. SUMMARY_audio="${SUMMARY_audio} android"
  20520. have_audio=yes
  20521. ;;
  20522. nto)
  20523. CheckQNXAudio
  20524. ;;
  20525. esac
  20526. fi
  20527. # Set up files for the joystick library
  20528. if test x$enable_joystick = xyes; then
  20529. case $ARCH in
  20530. linux)
  20531. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20532. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20533. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20534. have_joystick=yes
  20535. ;;
  20536. android)
  20537. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20538. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20539. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20540. have_joystick=yes
  20541. ;;
  20542. esac
  20543. fi
  20544. # Set up files for the haptic library
  20545. if test x$enable_haptic = xyes; then
  20546. case $ARCH in
  20547. linux)
  20548. if test x$use_input_events = xyes; then
  20549. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20550. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20551. have_haptic=yes
  20552. fi
  20553. ;;
  20554. android)
  20555. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20556. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20557. have_haptic=yes
  20558. ;;
  20559. esac
  20560. fi
  20561. # Set up files for the sensor library
  20562. if test x$enable_sensor = xyes; then
  20563. case $ARCH in
  20564. android)
  20565. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  20566. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  20567. have_sensor=yes
  20568. ;;
  20569. esac
  20570. fi
  20571. # Set up files for the power library
  20572. if test x$enable_power = xyes; then
  20573. case $ARCH in
  20574. linux)
  20575. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20576. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20577. have_power=yes
  20578. ;;
  20579. android)
  20580. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20581. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20582. have_power=yes
  20583. ;;
  20584. esac
  20585. fi
  20586. # Set up files for the filesystem library
  20587. if test x$enable_filesystem = xyes; then
  20588. case $ARCH in
  20589. android)
  20590. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20591. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20592. have_filesystem=yes
  20593. ;;
  20594. *)
  20595. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20596. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20597. have_filesystem=yes
  20598. ;;
  20599. esac
  20600. fi
  20601. # Set up files for the timer library
  20602. if test x$enable_timers = xyes; then
  20603. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20604. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20605. have_timers=yes
  20606. fi
  20607. # Set up files for udev hotplugging support
  20608. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20609. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20610. fi
  20611. # Set up files for evdev input
  20612. if test x$use_input_events = xyes; then
  20613. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20614. fi
  20615. # Set up other core UNIX files
  20616. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20617. ;;
  20618. *-*-cygwin* | *-*-mingw32*)
  20619. ARCH=win32
  20620. if test "$build" != "$host"; then # cross-compiling
  20621. # Default cross-compile location
  20622. ac_default_prefix=/usr/local/cross-tools/$host
  20623. else
  20624. # Look for the location of the tools and install there
  20625. if test "$BUILD_PREFIX" != ""; then
  20626. ac_default_prefix=$BUILD_PREFIX
  20627. fi
  20628. fi
  20629. CheckDeclarationAfterStatement
  20630. CheckDummyVideo
  20631. CheckDiskAudio
  20632. CheckDummyAudio
  20633. CheckWINDOWS
  20634. CheckWINDOWSGL
  20635. CheckWINDOWSGLES
  20636. CheckVulkan
  20637. CheckDIRECTX
  20638. # Set up the core platform files
  20639. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20640. # Set up files for the video library
  20641. if test x$enable_video = xyes; then
  20642. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20643. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20644. have_video=yes
  20645. # Check whether --enable-render-d3d was given.
  20646. if test "${enable_render_d3d+set}" = set; then :
  20647. enableval=$enable_render_d3d;
  20648. else
  20649. enable_render_d3d=yes
  20650. fi
  20651. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20652. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20653. fi
  20654. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20655. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20656. fi
  20657. fi
  20658. # Set up files for the audio library
  20659. if test x$enable_audio = xyes; then
  20660. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20661. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20662. if test x$have_dsound = xyes; then
  20663. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20664. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20665. fi
  20666. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  20667. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20668. SUMMARY_audio="${SUMMARY_audio} wasapi"
  20669. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20670. fi
  20671. have_audio=yes
  20672. fi
  20673. # Set up files for the joystick library
  20674. if test x$enable_joystick = xyes; then
  20675. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20676. if test x$have_xinput = xyes; then
  20677. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20678. fi
  20679. if test x$have_dinput = xyes; then
  20680. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20681. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20682. fi
  20683. else
  20684. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20685. fi
  20686. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20687. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20688. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20689. SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
  20690. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20691. have_joystick=yes
  20692. fi
  20693. if test x$enable_haptic = xyes; then
  20694. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20695. if test x$have_xinput = xyes; then
  20696. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20697. fi
  20698. if test x$have_dinput = xyes; then
  20699. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20700. fi
  20701. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20702. have_haptic=yes
  20703. fi
  20704. fi
  20705. if test x$enable_power = xyes; then
  20706. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20707. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20708. have_power=yes
  20709. fi
  20710. if test x$enable_filesystem = xyes; then
  20711. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20712. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20713. have_filesystem=yes
  20714. fi
  20715. # Set up files for the thread library
  20716. if test x$enable_threads = xyes; then
  20717. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20718. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20719. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20720. have_threads=yes
  20721. fi
  20722. # Set up files for the timer library
  20723. if test x$enable_timers = xyes; then
  20724. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20725. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20726. have_timers=yes
  20727. fi
  20728. # Set up files for the shared object loading library
  20729. if test x$enable_loadso = xyes; then
  20730. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20731. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20732. have_loadso=yes
  20733. fi
  20734. # Set up the system libraries we need
  20735. if test -f /lib/w32api/libuuid.a; then
  20736. LIBUUID=/lib/w32api/libuuid.a
  20737. else
  20738. LIBUUID=-luuid
  20739. fi
  20740. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  20741. # The Windows platform requires special setup
  20742. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20743. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20744. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20745. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20746. # Check to see if this is a mingw or cygwin build
  20747. have_mingw32=
  20748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20749. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20750. if ${ac_cv_lib_mingw32_main+:} false; then :
  20751. $as_echo_n "(cached) " >&6
  20752. else
  20753. ac_check_lib_save_LIBS=$LIBS
  20754. LIBS="-lmingw32 $LIBS"
  20755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20756. /* end confdefs.h. */
  20757. int
  20758. main ()
  20759. {
  20760. return main ();
  20761. ;
  20762. return 0;
  20763. }
  20764. _ACEOF
  20765. if ac_fn_c_try_link "$LINENO"; then :
  20766. ac_cv_lib_mingw32_main=yes
  20767. else
  20768. ac_cv_lib_mingw32_main=no
  20769. fi
  20770. rm -f core conftest.err conftest.$ac_objext \
  20771. conftest$ac_exeext conftest.$ac_ext
  20772. LIBS=$ac_check_lib_save_LIBS
  20773. fi
  20774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20775. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20776. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20777. have_mingw32=yes
  20778. fi
  20779. if test x$have_mingw32 = xyes; then
  20780. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20781. else
  20782. SDL_LIBS="-lcygwin $SDL_LIBS"
  20783. fi
  20784. ;;
  20785. *-*-beos*)
  20786. as_fn_error $? "
  20787. *** BeOS support has been removed as of SDL 2.0.2.
  20788. " "$LINENO" 5
  20789. ;;
  20790. *-*-haiku*)
  20791. ARCH=haiku
  20792. ac_default_prefix=/boot/system
  20793. CheckDummyVideo
  20794. CheckDiskAudio
  20795. CheckDummyAudio
  20796. CheckDLOPEN
  20797. CheckHaikuVideo
  20798. CheckHaikuGL
  20799. CheckPTHREAD
  20800. # Set up files for the audio library
  20801. if test x$enable_audio = xyes; then
  20802. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20803. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20804. SUMMARY_audio="${SUMMARY_audio} haiku"
  20805. have_audio=yes
  20806. fi
  20807. # Set up files for the joystick library
  20808. if test x$enable_joystick = xyes; then
  20809. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20810. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20811. have_joystick=yes
  20812. fi
  20813. # Set up files for the timer library
  20814. if test x$enable_timers = xyes; then
  20815. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20816. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20817. have_timers=yes
  20818. fi
  20819. # Set up files for the system power library
  20820. if test x$enable_power = xyes; then
  20821. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20822. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20823. have_power=yes
  20824. fi
  20825. # Set up files for the system filesystem library
  20826. if test x$enable_filesystem = xyes; then
  20827. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20828. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20829. have_filesystem=yes
  20830. fi
  20831. # The Haiku platform requires special setup.
  20832. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20833. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20834. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20835. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20836. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20838. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20839. if eval \${$as_ac_File+:} false; then :
  20840. $as_echo_n "(cached) " >&6
  20841. else
  20842. test "$cross_compiling" = yes &&
  20843. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20844. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20845. eval "$as_ac_File=yes"
  20846. else
  20847. eval "$as_ac_File=no"
  20848. fi
  20849. fi
  20850. eval ac_res=\$$as_ac_File
  20851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20852. $as_echo "$ac_res" >&6; }
  20853. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20854. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20855. else
  20856. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20857. fi
  20858. ;;
  20859. arm*-apple-darwin*|*-ios-*)
  20860. ARCH=ios
  20861. CheckVisibilityHidden
  20862. CheckDeclarationAfterStatement
  20863. CheckDummyVideo
  20864. CheckDiskAudio
  20865. CheckDummyAudio
  20866. CheckDLOPEN
  20867. CheckMETAL
  20868. CheckVulkan
  20869. CheckPTHREAD
  20870. # Set up files for the audio library
  20871. if test x$enable_audio = xyes; then
  20872. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20873. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20874. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20875. have_audio=yes
  20876. fi
  20877. # Set up files for the joystick library
  20878. if test x$enable_joystick = xyes; then
  20879. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20880. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20881. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20882. have_joystick=yes
  20883. fi
  20884. # Set up files for the haptic library
  20885. #if test x$enable_haptic = xyes; then
  20886. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20887. # have_haptic=yes
  20888. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20889. #fi
  20890. # Set up files for the power library
  20891. if test x$enable_power = xyes; then
  20892. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20893. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20894. have_power=yes
  20895. fi
  20896. # Set up files for the filesystem library
  20897. if test x$enable_filesystem = xyes; then
  20898. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20899. have_filesystem=yes
  20900. fi
  20901. # Set up additional files for the file library
  20902. if test x$enable_file = xyes; then
  20903. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20904. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20905. fi
  20906. # Set up files for the timer library
  20907. if test x$enable_timers = xyes; then
  20908. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20909. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20910. have_timers=yes
  20911. fi
  20912. # Set up other core UNIX files
  20913. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20914. # The iOS platform requires special setup.
  20915. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20916. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20917. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20918. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20919. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20920. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20921. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20922. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20923. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20924. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20925. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20926. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20927. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20928. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20930. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20932. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20933. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  20934. fi
  20935. ;;
  20936. *-*-darwin* )
  20937. # This could be either full "Mac OS X", or plain "Darwin" which is
  20938. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20939. # Next line is broken, and a few files below require Mac OS X (full)
  20940. ARCH=macosx
  20941. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20942. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20943. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20944. CheckVisibilityHidden
  20945. CheckDeclarationAfterStatement
  20946. CheckDummyVideo
  20947. CheckDiskAudio
  20948. CheckDummyAudio
  20949. CheckDLOPEN
  20950. CheckCOCOA
  20951. CheckMETAL
  20952. CheckX11
  20953. CheckMacGL
  20954. CheckMacGLES
  20955. CheckOpenGLX11
  20956. CheckVulkan
  20957. CheckPTHREAD
  20958. # Set up files for the audio library
  20959. if test x$enable_audio = xyes; then
  20960. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20961. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20962. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20963. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20964. have_audio=yes
  20965. fi
  20966. # Set up files for the joystick library
  20967. if test x$enable_joystick = xyes; then
  20968. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20969. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20970. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20971. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20972. SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
  20973. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20974. have_joystick=yes
  20975. fi
  20976. # Set up files for the haptic library
  20977. if test x$enable_haptic = xyes; then
  20978. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20979. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20980. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20981. have_haptic=yes
  20982. fi
  20983. # Set up files for the power library
  20984. if test x$enable_power = xyes; then
  20985. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20986. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20987. have_power=yes
  20988. fi
  20989. # Set up files for the filesystem library
  20990. if test x$enable_filesystem = xyes; then
  20991. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20992. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20993. have_filesystem=yes
  20994. fi
  20995. # Set up files for the timer library
  20996. if test x$enable_timers = xyes; then
  20997. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20998. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20999. have_timers=yes
  21000. fi
  21001. # Set up additional files for the file library
  21002. if test x$enable_file = xyes; then
  21003. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21004. fi
  21005. # Set up other core UNIX files
  21006. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21007. # The Mac OS X platform requires special setup.
  21008. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21009. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21010. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21011. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21012. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21013. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21014. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21015. fi
  21016. ;;
  21017. *-nacl|*-pnacl)
  21018. ARCH=nacl
  21019. CheckNativeClient
  21020. CheckDummyAudio
  21021. CheckDummyVideo
  21022. CheckInputEvents
  21023. CheckPTHREAD
  21024. # Set up files for the timer library
  21025. if test x$enable_timers = xyes; then
  21026. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21027. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21028. have_timers=yes
  21029. fi
  21030. if test x$enable_filesystem = xyes; then
  21031. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21032. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21033. have_filesystem=yes
  21034. fi
  21035. ;;
  21036. *-*-emscripten* )
  21037. if test x$enable_video = xyes; then
  21038. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21039. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21040. have_video=yes
  21041. SUMMARY_video="${SUMMARY_video} emscripten"
  21042. fi
  21043. if test x$enable_audio = xyes; then
  21044. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21045. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21046. have_audio=yes
  21047. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21048. fi
  21049. CheckVisibilityHidden
  21050. CheckDeclarationAfterStatement
  21051. CheckDummyVideo
  21052. CheckDiskAudio
  21053. CheckDummyAudio
  21054. CheckDLOPEN
  21055. CheckClockGettime
  21056. CheckEmscriptenGLES
  21057. # Set up files for the power library
  21058. if test x$enable_power = xyes; then
  21059. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21060. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21061. have_power=yes
  21062. fi
  21063. # Set up files for the power library
  21064. if test x$enable_joystick = xyes; then
  21065. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21066. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21067. have_joystick=yes
  21068. fi
  21069. # Set up files for the filesystem library
  21070. if test x$enable_filesystem = xyes; then
  21071. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21072. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21073. have_filesystem=yes
  21074. fi
  21075. # Set up files for the timer library
  21076. if test x$enable_timers = xyes; then
  21077. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21078. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21079. have_timers=yes
  21080. fi
  21081. ;;
  21082. *)
  21083. as_fn_error $? "
  21084. *** Unsupported host: Please add to configure.in
  21085. " "$LINENO" 5
  21086. ;;
  21087. esac
  21088. # Verify that we have all the platform specific files we need
  21089. if test x$have_joystick != xyes; then
  21090. if test x$enable_joystick = xyes; then
  21091. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21092. fi
  21093. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21094. fi
  21095. if test x$have_haptic != xyes; then
  21096. if test x$enable_haptic = xyes; then
  21097. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21098. fi
  21099. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21100. fi
  21101. if test x$have_sensor != xyes; then
  21102. if test x$enable_sensor = xyes; then
  21103. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21104. fi
  21105. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21106. fi
  21107. if test x$have_threads != xyes; then
  21108. if test x$enable_threads = xyes; then
  21109. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21110. fi
  21111. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21112. fi
  21113. if test x$have_timers != xyes; then
  21114. if test x$enable_timers = xyes; then
  21115. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21116. fi
  21117. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21118. fi
  21119. if test x$have_filesystem != xyes; then
  21120. if test x$enable_filesystem = xyes; then
  21121. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21122. fi
  21123. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21124. fi
  21125. if test x$have_loadso != xyes; then
  21126. if test x$enable_loadso = xyes; then
  21127. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21128. fi
  21129. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21130. fi
  21131. if test x$SDLMAIN_SOURCES = x; then
  21132. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21133. fi
  21134. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21135. if test x$video_wayland = xyes; then
  21136. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21137. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21138. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21139. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21140. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21141. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21142. echo ;\
  21143. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21144. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21145. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21146. echo ;\
  21147. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21148. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21149. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21150. echo ;\
  21151. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21152. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21153. done ;\
  21154. echo ;\
  21155. 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`
  21156. fi
  21157. OBJECTS=`echo $SOURCES`
  21158. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21159. for EXT in asm cc m c S; do
  21160. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21161. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21162. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  21163. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21164. done
  21165. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21166. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21167. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21168. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21169. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21170. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21171. \\$(WINDRES) \\$< \\$@,g"`
  21172. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21173. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21174. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21175. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21176. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21177. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21178. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21179. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21180. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21181. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21182. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21183. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21184. # Set runtime shared library paths as needed
  21185. if test "x$enable_rpath" = "xyes"; then
  21186. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21187. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21189. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21190. have_enable_new_dtags=no
  21191. save_LDFLAGS="$LDFLAGS"
  21192. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21194. /* end confdefs.h. */
  21195. int
  21196. main ()
  21197. {
  21198. ;
  21199. return 0;
  21200. }
  21201. _ACEOF
  21202. if ac_fn_c_try_link "$LINENO"; then :
  21203. have_enable_new_dtags=yes
  21204. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21205. fi
  21206. rm -f core conftest.err conftest.$ac_objext \
  21207. conftest$ac_exeext conftest.$ac_ext
  21208. LDFLAGS="$save_LDFLAGS"
  21209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21210. $as_echo "$have_enable_new_dtags" >&6; }
  21211. fi
  21212. if test $ARCH = solaris; then
  21213. SDL_RLD_FLAGS="-R\${libdir}"
  21214. fi
  21215. else
  21216. SDL_RLD_FLAGS=""
  21217. fi
  21218. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21219. if test x$enable_shared = xyes; then
  21220. ENABLE_SHARED_TRUE=
  21221. ENABLE_SHARED_FALSE="#"
  21222. else
  21223. ENABLE_SHARED_TRUE="#"
  21224. ENABLE_SHARED_FALSE=
  21225. fi
  21226. if test x$enable_static = xyes; then
  21227. ENABLE_STATIC_TRUE=
  21228. ENABLE_STATIC_FALSE="#"
  21229. else
  21230. ENABLE_STATIC_TRUE="#"
  21231. ENABLE_STATIC_FALSE=
  21232. fi
  21233. cat >Makefile.rules <<__EOF__
  21234. # Build rules for objects
  21235. -include \$(OBJECTS:.lo=.d)
  21236. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21237. $srcdir/src/SDL.c: update-revision
  21238. $DEPENDS
  21239. $VERSION_DEPENDS
  21240. $SDLMAIN_DEPENDS
  21241. $SDLTEST_DEPENDS
  21242. $WAYLAND_PROTOCOLS_DEPENDS
  21243. __EOF__
  21244. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21245. ac_config_commands="$ac_config_commands sdl2_config"
  21246. SUMMARY="SDL2 Configure Summary:\n"
  21247. if test x$enable_shared = xyes; then
  21248. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21249. fi
  21250. if test x$enable_static = xyes; then
  21251. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21252. fi
  21253. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21254. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21255. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21256. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21257. if test x$have_x = xyes; then
  21258. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21259. fi
  21260. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21261. if test x$have_samplerate_h_hdr = xyes; then
  21262. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21263. else
  21264. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21265. fi
  21266. if test x$have_libudev_h_hdr = xyes; then
  21267. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21268. else
  21269. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21270. fi
  21271. if test x$have_dbus_dbus_h_hdr = xyes; then
  21272. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21273. else
  21274. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21275. fi
  21276. if test x$enable_ime = xyes; then
  21277. SUMMARY="${SUMMARY}Using ime : YES\n"
  21278. else
  21279. SUMMARY="${SUMMARY}Using ime : NO\n"
  21280. fi
  21281. if test x$have_ibus_ibus_h_hdr = xyes; then
  21282. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21283. else
  21284. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21285. fi
  21286. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21287. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21288. else
  21289. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21290. fi
  21291. ac_config_commands="$ac_config_commands summary"
  21292. cat >confcache <<\_ACEOF
  21293. # This file is a shell script that caches the results of configure
  21294. # tests run on this system so they can be shared between configure
  21295. # scripts and configure runs, see configure's option --config-cache.
  21296. # It is not useful on other systems. If it contains results you don't
  21297. # want to keep, you may remove or edit it.
  21298. #
  21299. # config.status only pays attention to the cache file if you give it
  21300. # the --recheck option to rerun configure.
  21301. #
  21302. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21303. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21304. # following values.
  21305. _ACEOF
  21306. # The following way of writing the cache mishandles newlines in values,
  21307. # but we know of no workaround that is simple, portable, and efficient.
  21308. # So, we kill variables containing newlines.
  21309. # Ultrix sh set writes to stderr and can't be redirected directly,
  21310. # and sets the high bit in the cache file unless we assign to the vars.
  21311. (
  21312. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21313. eval ac_val=\$$ac_var
  21314. case $ac_val in #(
  21315. *${as_nl}*)
  21316. case $ac_var in #(
  21317. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21318. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21319. esac
  21320. case $ac_var in #(
  21321. _ | IFS | as_nl) ;; #(
  21322. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21323. *) { eval $ac_var=; unset $ac_var;} ;;
  21324. esac ;;
  21325. esac
  21326. done
  21327. (set) 2>&1 |
  21328. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21329. *${as_nl}ac_space=\ *)
  21330. # `set' does not quote correctly, so add quotes: double-quote
  21331. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21332. sed -n \
  21333. "s/'/'\\\\''/g;
  21334. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21335. ;; #(
  21336. *)
  21337. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21338. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21339. ;;
  21340. esac |
  21341. sort
  21342. ) |
  21343. sed '
  21344. /^ac_cv_env_/b end
  21345. t clear
  21346. :clear
  21347. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21348. t end
  21349. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21350. :end' >>confcache
  21351. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21352. if test -w "$cache_file"; then
  21353. if test "x$cache_file" != "x/dev/null"; then
  21354. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21355. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21356. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21357. cat confcache >"$cache_file"
  21358. else
  21359. case $cache_file in #(
  21360. */* | ?:*)
  21361. mv -f confcache "$cache_file"$$ &&
  21362. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21363. *)
  21364. mv -f confcache "$cache_file" ;;
  21365. esac
  21366. fi
  21367. fi
  21368. else
  21369. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21370. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21371. fi
  21372. fi
  21373. rm -f confcache
  21374. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21375. # Let make expand exec_prefix.
  21376. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21377. DEFS=-DHAVE_CONFIG_H
  21378. ac_libobjs=
  21379. ac_ltlibobjs=
  21380. U=
  21381. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21382. # 1. Remove the extension, and $U if already installed.
  21383. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21384. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21385. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21386. # will be set to the directory where LIBOBJS objects are built.
  21387. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21388. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21389. done
  21390. LIBOBJS=$ac_libobjs
  21391. LTLIBOBJS=$ac_ltlibobjs
  21392. : "${CONFIG_STATUS=./config.status}"
  21393. ac_write_fail=0
  21394. ac_clean_files_save=$ac_clean_files
  21395. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21396. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21397. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21398. as_write_fail=0
  21399. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21400. #! $SHELL
  21401. # Generated by $as_me.
  21402. # Run this file to recreate the current configuration.
  21403. # Compiler output produced by configure, useful for debugging
  21404. # configure, is in config.log if it exists.
  21405. debug=false
  21406. ac_cs_recheck=false
  21407. ac_cs_silent=false
  21408. SHELL=\${CONFIG_SHELL-$SHELL}
  21409. export SHELL
  21410. _ASEOF
  21411. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21412. ## -------------------- ##
  21413. ## M4sh Initialization. ##
  21414. ## -------------------- ##
  21415. # Be more Bourne compatible
  21416. DUALCASE=1; export DUALCASE # for MKS sh
  21417. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21418. emulate sh
  21419. NULLCMD=:
  21420. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21421. # is contrary to our usage. Disable this feature.
  21422. alias -g '${1+"$@"}'='"$@"'
  21423. setopt NO_GLOB_SUBST
  21424. else
  21425. case `(set -o) 2>/dev/null` in #(
  21426. *posix*) :
  21427. set -o posix ;; #(
  21428. *) :
  21429. ;;
  21430. esac
  21431. fi
  21432. as_nl='
  21433. '
  21434. export as_nl
  21435. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21436. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21437. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21438. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21439. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21440. # but without wasting forks for bash or zsh.
  21441. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21442. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21443. as_echo='print -r --'
  21444. as_echo_n='print -rn --'
  21445. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21446. as_echo='printf %s\n'
  21447. as_echo_n='printf %s'
  21448. else
  21449. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21450. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21451. as_echo_n='/usr/ucb/echo -n'
  21452. else
  21453. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21454. as_echo_n_body='eval
  21455. arg=$1;
  21456. case $arg in #(
  21457. *"$as_nl"*)
  21458. expr "X$arg" : "X\\(.*\\)$as_nl";
  21459. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21460. esac;
  21461. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21462. '
  21463. export as_echo_n_body
  21464. as_echo_n='sh -c $as_echo_n_body as_echo'
  21465. fi
  21466. export as_echo_body
  21467. as_echo='sh -c $as_echo_body as_echo'
  21468. fi
  21469. # The user is always right.
  21470. if test "${PATH_SEPARATOR+set}" != set; then
  21471. PATH_SEPARATOR=:
  21472. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21473. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21474. PATH_SEPARATOR=';'
  21475. }
  21476. fi
  21477. # IFS
  21478. # We need space, tab and new line, in precisely that order. Quoting is
  21479. # there to prevent editors from complaining about space-tab.
  21480. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21481. # splitting by setting IFS to empty value.)
  21482. IFS=" "" $as_nl"
  21483. # Find who we are. Look in the path if we contain no directory separator.
  21484. as_myself=
  21485. case $0 in #((
  21486. *[\\/]* ) as_myself=$0 ;;
  21487. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21488. for as_dir in $PATH
  21489. do
  21490. IFS=$as_save_IFS
  21491. test -z "$as_dir" && as_dir=.
  21492. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21493. done
  21494. IFS=$as_save_IFS
  21495. ;;
  21496. esac
  21497. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21498. # in which case we are not to be found in the path.
  21499. if test "x$as_myself" = x; then
  21500. as_myself=$0
  21501. fi
  21502. if test ! -f "$as_myself"; then
  21503. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21504. exit 1
  21505. fi
  21506. # Unset variables that we do not need and which cause bugs (e.g. in
  21507. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21508. # suppresses any "Segmentation fault" message there. '((' could
  21509. # trigger a bug in pdksh 5.2.14.
  21510. for as_var in BASH_ENV ENV MAIL MAILPATH
  21511. do eval test x\${$as_var+set} = xset \
  21512. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21513. done
  21514. PS1='$ '
  21515. PS2='> '
  21516. PS4='+ '
  21517. # NLS nuisances.
  21518. LC_ALL=C
  21519. export LC_ALL
  21520. LANGUAGE=C
  21521. export LANGUAGE
  21522. # CDPATH.
  21523. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21524. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21525. # ----------------------------------------
  21526. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21527. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21528. # script with STATUS, using 1 if that was 0.
  21529. as_fn_error ()
  21530. {
  21531. as_status=$1; test $as_status -eq 0 && as_status=1
  21532. if test "$4"; then
  21533. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21534. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21535. fi
  21536. $as_echo "$as_me: error: $2" >&2
  21537. as_fn_exit $as_status
  21538. } # as_fn_error
  21539. # as_fn_set_status STATUS
  21540. # -----------------------
  21541. # Set $? to STATUS, without forking.
  21542. as_fn_set_status ()
  21543. {
  21544. return $1
  21545. } # as_fn_set_status
  21546. # as_fn_exit STATUS
  21547. # -----------------
  21548. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21549. as_fn_exit ()
  21550. {
  21551. set +e
  21552. as_fn_set_status $1
  21553. exit $1
  21554. } # as_fn_exit
  21555. # as_fn_unset VAR
  21556. # ---------------
  21557. # Portably unset VAR.
  21558. as_fn_unset ()
  21559. {
  21560. { eval $1=; unset $1;}
  21561. }
  21562. as_unset=as_fn_unset
  21563. # as_fn_append VAR VALUE
  21564. # ----------------------
  21565. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21566. # advantage of any shell optimizations that allow amortized linear growth over
  21567. # repeated appends, instead of the typical quadratic growth present in naive
  21568. # implementations.
  21569. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21570. eval 'as_fn_append ()
  21571. {
  21572. eval $1+=\$2
  21573. }'
  21574. else
  21575. as_fn_append ()
  21576. {
  21577. eval $1=\$$1\$2
  21578. }
  21579. fi # as_fn_append
  21580. # as_fn_arith ARG...
  21581. # ------------------
  21582. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21583. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21584. # must be portable across $(()) and expr.
  21585. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21586. eval 'as_fn_arith ()
  21587. {
  21588. as_val=$(( $* ))
  21589. }'
  21590. else
  21591. as_fn_arith ()
  21592. {
  21593. as_val=`expr "$@" || test $? -eq 1`
  21594. }
  21595. fi # as_fn_arith
  21596. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21597. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21598. as_expr=expr
  21599. else
  21600. as_expr=false
  21601. fi
  21602. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21603. as_basename=basename
  21604. else
  21605. as_basename=false
  21606. fi
  21607. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21608. as_dirname=dirname
  21609. else
  21610. as_dirname=false
  21611. fi
  21612. as_me=`$as_basename -- "$0" ||
  21613. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21614. X"$0" : 'X\(//\)$' \| \
  21615. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21616. $as_echo X/"$0" |
  21617. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21618. s//\1/
  21619. q
  21620. }
  21621. /^X\/\(\/\/\)$/{
  21622. s//\1/
  21623. q
  21624. }
  21625. /^X\/\(\/\).*/{
  21626. s//\1/
  21627. q
  21628. }
  21629. s/.*/./; q'`
  21630. # Avoid depending upon Character Ranges.
  21631. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21632. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21633. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21634. as_cr_digits='0123456789'
  21635. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21636. ECHO_C= ECHO_N= ECHO_T=
  21637. case `echo -n x` in #(((((
  21638. -n*)
  21639. case `echo 'xy\c'` in
  21640. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21641. xy) ECHO_C='\c';;
  21642. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21643. ECHO_T=' ';;
  21644. esac;;
  21645. *)
  21646. ECHO_N='-n';;
  21647. esac
  21648. rm -f conf$$ conf$$.exe conf$$.file
  21649. if test -d conf$$.dir; then
  21650. rm -f conf$$.dir/conf$$.file
  21651. else
  21652. rm -f conf$$.dir
  21653. mkdir conf$$.dir 2>/dev/null
  21654. fi
  21655. if (echo >conf$$.file) 2>/dev/null; then
  21656. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21657. as_ln_s='ln -s'
  21658. # ... but there are two gotchas:
  21659. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21660. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21661. # In both cases, we have to default to `cp -pR'.
  21662. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21663. as_ln_s='cp -pR'
  21664. elif ln conf$$.file conf$$ 2>/dev/null; then
  21665. as_ln_s=ln
  21666. else
  21667. as_ln_s='cp -pR'
  21668. fi
  21669. else
  21670. as_ln_s='cp -pR'
  21671. fi
  21672. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21673. rmdir conf$$.dir 2>/dev/null
  21674. # as_fn_mkdir_p
  21675. # -------------
  21676. # Create "$as_dir" as a directory, including parents if necessary.
  21677. as_fn_mkdir_p ()
  21678. {
  21679. case $as_dir in #(
  21680. -*) as_dir=./$as_dir;;
  21681. esac
  21682. test -d "$as_dir" || eval $as_mkdir_p || {
  21683. as_dirs=
  21684. while :; do
  21685. case $as_dir in #(
  21686. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21687. *) as_qdir=$as_dir;;
  21688. esac
  21689. as_dirs="'$as_qdir' $as_dirs"
  21690. as_dir=`$as_dirname -- "$as_dir" ||
  21691. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21692. X"$as_dir" : 'X\(//\)[^/]' \| \
  21693. X"$as_dir" : 'X\(//\)$' \| \
  21694. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21695. $as_echo X"$as_dir" |
  21696. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21697. s//\1/
  21698. q
  21699. }
  21700. /^X\(\/\/\)[^/].*/{
  21701. s//\1/
  21702. q
  21703. }
  21704. /^X\(\/\/\)$/{
  21705. s//\1/
  21706. q
  21707. }
  21708. /^X\(\/\).*/{
  21709. s//\1/
  21710. q
  21711. }
  21712. s/.*/./; q'`
  21713. test -d "$as_dir" && break
  21714. done
  21715. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21716. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21717. } # as_fn_mkdir_p
  21718. if mkdir -p . 2>/dev/null; then
  21719. as_mkdir_p='mkdir -p "$as_dir"'
  21720. else
  21721. test -d ./-p && rmdir ./-p
  21722. as_mkdir_p=false
  21723. fi
  21724. # as_fn_executable_p FILE
  21725. # -----------------------
  21726. # Test if FILE is an executable regular file.
  21727. as_fn_executable_p ()
  21728. {
  21729. test -f "$1" && test -x "$1"
  21730. } # as_fn_executable_p
  21731. as_test_x='test -x'
  21732. as_executable_p=as_fn_executable_p
  21733. # Sed expression to map a string onto a valid CPP name.
  21734. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21735. # Sed expression to map a string onto a valid variable name.
  21736. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21737. exec 6>&1
  21738. ## ----------------------------------- ##
  21739. ## Main body of $CONFIG_STATUS script. ##
  21740. ## ----------------------------------- ##
  21741. _ASEOF
  21742. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21743. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21744. # Save the log message, to keep $0 and so on meaningful, and to
  21745. # report actual input values of CONFIG_FILES etc. instead of their
  21746. # values after options handling.
  21747. ac_log="
  21748. This file was extended by $as_me, which was
  21749. generated by GNU Autoconf 2.69. Invocation command line was
  21750. CONFIG_FILES = $CONFIG_FILES
  21751. CONFIG_HEADERS = $CONFIG_HEADERS
  21752. CONFIG_LINKS = $CONFIG_LINKS
  21753. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21754. $ $0 $@
  21755. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21756. "
  21757. _ACEOF
  21758. case $ac_config_files in *"
  21759. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21760. esac
  21761. case $ac_config_headers in *"
  21762. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21763. esac
  21764. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21765. # Files that config.status was made for.
  21766. config_files="$ac_config_files"
  21767. config_headers="$ac_config_headers"
  21768. config_commands="$ac_config_commands"
  21769. _ACEOF
  21770. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21771. ac_cs_usage="\
  21772. \`$as_me' instantiates files and other configuration actions
  21773. from templates according to the current configuration. Unless the files
  21774. and actions are specified as TAGs, all are instantiated by default.
  21775. Usage: $0 [OPTION]... [TAG]...
  21776. -h, --help print this help, then exit
  21777. -V, --version print version number and configuration settings, then exit
  21778. --config print configuration, then exit
  21779. -q, --quiet, --silent
  21780. do not print progress messages
  21781. -d, --debug don't remove temporary files
  21782. --recheck update $as_me by reconfiguring in the same conditions
  21783. --file=FILE[:TEMPLATE]
  21784. instantiate the configuration file FILE
  21785. --header=FILE[:TEMPLATE]
  21786. instantiate the configuration header FILE
  21787. Configuration files:
  21788. $config_files
  21789. Configuration headers:
  21790. $config_headers
  21791. Configuration commands:
  21792. $config_commands
  21793. Report bugs to the package provider."
  21794. _ACEOF
  21795. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21796. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21797. ac_cs_version="\\
  21798. config.status
  21799. configured by $0, generated by GNU Autoconf 2.69,
  21800. with options \\"\$ac_cs_config\\"
  21801. Copyright (C) 2012 Free Software Foundation, Inc.
  21802. This config.status script is free software; the Free Software Foundation
  21803. gives unlimited permission to copy, distribute and modify it."
  21804. ac_pwd='$ac_pwd'
  21805. srcdir='$srcdir'
  21806. INSTALL='$INSTALL'
  21807. AWK='$AWK'
  21808. test -n "\$AWK" || AWK=awk
  21809. _ACEOF
  21810. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21811. # The default lists apply if the user does not specify any file.
  21812. ac_need_defaults=:
  21813. while test $# != 0
  21814. do
  21815. case $1 in
  21816. --*=?*)
  21817. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21818. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21819. ac_shift=:
  21820. ;;
  21821. --*=)
  21822. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21823. ac_optarg=
  21824. ac_shift=:
  21825. ;;
  21826. *)
  21827. ac_option=$1
  21828. ac_optarg=$2
  21829. ac_shift=shift
  21830. ;;
  21831. esac
  21832. case $ac_option in
  21833. # Handling of the options.
  21834. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21835. ac_cs_recheck=: ;;
  21836. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21837. $as_echo "$ac_cs_version"; exit ;;
  21838. --config | --confi | --conf | --con | --co | --c )
  21839. $as_echo "$ac_cs_config"; exit ;;
  21840. --debug | --debu | --deb | --de | --d | -d )
  21841. debug=: ;;
  21842. --file | --fil | --fi | --f )
  21843. $ac_shift
  21844. case $ac_optarg in
  21845. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21846. '') as_fn_error $? "missing file argument" ;;
  21847. esac
  21848. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21849. ac_need_defaults=false;;
  21850. --header | --heade | --head | --hea )
  21851. $ac_shift
  21852. case $ac_optarg in
  21853. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21854. esac
  21855. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21856. ac_need_defaults=false;;
  21857. --he | --h)
  21858. # Conflict between --help and --header
  21859. as_fn_error $? "ambiguous option: \`$1'
  21860. Try \`$0 --help' for more information.";;
  21861. --help | --hel | -h )
  21862. $as_echo "$ac_cs_usage"; exit ;;
  21863. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21864. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21865. ac_cs_silent=: ;;
  21866. # This is an error.
  21867. -*) as_fn_error $? "unrecognized option: \`$1'
  21868. Try \`$0 --help' for more information." ;;
  21869. *) as_fn_append ac_config_targets " $1"
  21870. ac_need_defaults=false ;;
  21871. esac
  21872. shift
  21873. done
  21874. ac_configure_extra_args=
  21875. if $ac_cs_silent; then
  21876. exec 6>/dev/null
  21877. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21878. fi
  21879. _ACEOF
  21880. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21881. if \$ac_cs_recheck; then
  21882. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21883. shift
  21884. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21885. CONFIG_SHELL='$SHELL'
  21886. export CONFIG_SHELL
  21887. exec "\$@"
  21888. fi
  21889. _ACEOF
  21890. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21891. exec 5>>config.log
  21892. {
  21893. echo
  21894. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21895. ## Running $as_me. ##
  21896. _ASBOX
  21897. $as_echo "$ac_log"
  21898. } >&5
  21899. _ACEOF
  21900. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21901. #
  21902. # INIT-COMMANDS
  21903. #
  21904. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21905. # if CDPATH is set.
  21906. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21907. sed_quote_subst='$sed_quote_subst'
  21908. double_quote_subst='$double_quote_subst'
  21909. delay_variable_subst='$delay_variable_subst'
  21910. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21911. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21912. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21913. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21914. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21915. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21916. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21917. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21918. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21919. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21920. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21921. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21922. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21923. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21924. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21925. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21926. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21927. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21928. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21929. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21930. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21931. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21932. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21933. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21934. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21935. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21936. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21937. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21938. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21939. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21940. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21941. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21942. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21943. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21944. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21945. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21946. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21947. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21948. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21949. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21950. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21951. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21952. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21953. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21954. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21955. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21956. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21957. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21958. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21959. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21960. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21961. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21962. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21963. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21964. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21965. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21966. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21967. 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"`'
  21968. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21969. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21970. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21971. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21972. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21973. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21974. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21975. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21976. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21977. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21978. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21979. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21980. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21981. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21982. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21983. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21984. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21985. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21986. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21987. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21988. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21989. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21990. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21991. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21992. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21993. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21994. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21995. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21996. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21997. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21998. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21999. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22000. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22001. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22002. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22003. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22004. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22005. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22006. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22007. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22008. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22009. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22010. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22011. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22012. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22013. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22014. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22015. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22016. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22017. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22018. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22019. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22020. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22021. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22022. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22023. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22024. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22025. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22026. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22027. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22028. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22029. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22030. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22031. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22032. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22033. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22034. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22035. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22036. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22037. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22038. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22039. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22040. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22041. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22042. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22043. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22044. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22045. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22046. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22047. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22048. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22049. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22050. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22051. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22052. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22053. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22054. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22055. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22056. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22057. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22058. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22059. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22060. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22061. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22062. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22063. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22064. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22065. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22066. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22067. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22068. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22069. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22070. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22071. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22072. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22073. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22074. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22075. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22076. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22077. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22078. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22079. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22080. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22081. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22082. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22083. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22084. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22085. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22086. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22087. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22088. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22089. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22090. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22091. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22092. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22093. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22094. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22095. LTCC='$LTCC'
  22096. LTCFLAGS='$LTCFLAGS'
  22097. compiler='$compiler_DEFAULT'
  22098. # A function that is used when there is no print builtin or printf.
  22099. func_fallback_echo ()
  22100. {
  22101. eval 'cat <<_LTECHO_EOF
  22102. \$1
  22103. _LTECHO_EOF'
  22104. }
  22105. # Quote evaled strings.
  22106. for var in AS \
  22107. DLLTOOL \
  22108. OBJDUMP \
  22109. SHELL \
  22110. ECHO \
  22111. PATH_SEPARATOR \
  22112. SED \
  22113. GREP \
  22114. EGREP \
  22115. FGREP \
  22116. LD \
  22117. NM \
  22118. LN_S \
  22119. lt_SP2NL \
  22120. lt_NL2SP \
  22121. reload_flag \
  22122. deplibs_check_method \
  22123. file_magic_cmd \
  22124. file_magic_glob \
  22125. want_nocaseglob \
  22126. sharedlib_from_linklib_cmd \
  22127. AR \
  22128. AR_FLAGS \
  22129. archiver_list_spec \
  22130. STRIP \
  22131. RANLIB \
  22132. CC \
  22133. CFLAGS \
  22134. compiler \
  22135. lt_cv_sys_global_symbol_pipe \
  22136. lt_cv_sys_global_symbol_to_cdecl \
  22137. lt_cv_sys_global_symbol_to_c_name_address \
  22138. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22139. nm_file_list_spec \
  22140. lt_prog_compiler_no_builtin_flag \
  22141. lt_prog_compiler_pic \
  22142. lt_prog_compiler_wl \
  22143. lt_prog_compiler_static \
  22144. lt_cv_prog_compiler_c_o \
  22145. need_locks \
  22146. MANIFEST_TOOL \
  22147. DSYMUTIL \
  22148. NMEDIT \
  22149. LIPO \
  22150. OTOOL \
  22151. OTOOL64 \
  22152. shrext_cmds \
  22153. export_dynamic_flag_spec \
  22154. whole_archive_flag_spec \
  22155. compiler_needs_object \
  22156. with_gnu_ld \
  22157. allow_undefined_flag \
  22158. no_undefined_flag \
  22159. hardcode_libdir_flag_spec \
  22160. hardcode_libdir_separator \
  22161. exclude_expsyms \
  22162. include_expsyms \
  22163. file_list_spec \
  22164. variables_saved_for_relink \
  22165. libname_spec \
  22166. library_names_spec \
  22167. soname_spec \
  22168. install_override_mode \
  22169. finish_eval \
  22170. old_striplib \
  22171. striplib \
  22172. compiler_lib_search_dirs \
  22173. predep_objects \
  22174. postdep_objects \
  22175. predeps \
  22176. postdeps \
  22177. compiler_lib_search_path \
  22178. LD_CXX \
  22179. reload_flag_CXX \
  22180. compiler_CXX \
  22181. lt_prog_compiler_no_builtin_flag_CXX \
  22182. lt_prog_compiler_pic_CXX \
  22183. lt_prog_compiler_wl_CXX \
  22184. lt_prog_compiler_static_CXX \
  22185. lt_cv_prog_compiler_c_o_CXX \
  22186. export_dynamic_flag_spec_CXX \
  22187. whole_archive_flag_spec_CXX \
  22188. compiler_needs_object_CXX \
  22189. with_gnu_ld_CXX \
  22190. allow_undefined_flag_CXX \
  22191. no_undefined_flag_CXX \
  22192. hardcode_libdir_flag_spec_CXX \
  22193. hardcode_libdir_separator_CXX \
  22194. exclude_expsyms_CXX \
  22195. include_expsyms_CXX \
  22196. file_list_spec_CXX \
  22197. compiler_lib_search_dirs_CXX \
  22198. predep_objects_CXX \
  22199. postdep_objects_CXX \
  22200. predeps_CXX \
  22201. postdeps_CXX \
  22202. compiler_lib_search_path_CXX; do
  22203. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22204. *[\\\\\\\`\\"\\\$]*)
  22205. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22206. ;;
  22207. *)
  22208. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22209. ;;
  22210. esac
  22211. done
  22212. # Double-quote double-evaled strings.
  22213. for var in reload_cmds \
  22214. old_postinstall_cmds \
  22215. old_postuninstall_cmds \
  22216. old_archive_cmds \
  22217. extract_expsyms_cmds \
  22218. old_archive_from_new_cmds \
  22219. old_archive_from_expsyms_cmds \
  22220. archive_cmds \
  22221. archive_expsym_cmds \
  22222. module_cmds \
  22223. module_expsym_cmds \
  22224. export_symbols_cmds \
  22225. prelink_cmds \
  22226. postlink_cmds \
  22227. postinstall_cmds \
  22228. postuninstall_cmds \
  22229. finish_cmds \
  22230. sys_lib_search_path_spec \
  22231. sys_lib_dlsearch_path_spec \
  22232. reload_cmds_CXX \
  22233. old_archive_cmds_CXX \
  22234. old_archive_from_new_cmds_CXX \
  22235. old_archive_from_expsyms_cmds_CXX \
  22236. archive_cmds_CXX \
  22237. archive_expsym_cmds_CXX \
  22238. module_cmds_CXX \
  22239. module_expsym_cmds_CXX \
  22240. export_symbols_cmds_CXX \
  22241. prelink_cmds_CXX \
  22242. postlink_cmds_CXX; do
  22243. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22244. *[\\\\\\\`\\"\\\$]*)
  22245. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22246. ;;
  22247. *)
  22248. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22249. ;;
  22250. esac
  22251. done
  22252. ac_aux_dir='$ac_aux_dir'
  22253. xsi_shell='$xsi_shell'
  22254. lt_shell_append='$lt_shell_append'
  22255. # See if we are running on zsh, and set the options which allow our
  22256. # commands through without removal of \ escapes INIT.
  22257. if test -n "\${ZSH_VERSION+set}" ; then
  22258. setopt NO_GLOB_SUBST
  22259. fi
  22260. PACKAGE='$PACKAGE'
  22261. VERSION='$VERSION'
  22262. TIMESTAMP='$TIMESTAMP'
  22263. RM='$RM'
  22264. ofile='$ofile'
  22265. SUMMARY="$SUMMARY"
  22266. _ACEOF
  22267. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22268. # Handling of arguments.
  22269. for ac_config_target in $ac_config_targets
  22270. do
  22271. case $ac_config_target in
  22272. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22273. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22274. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22275. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22276. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22277. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22278. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22279. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22280. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22281. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22282. esac
  22283. done
  22284. # If the user did not use the arguments to specify the items to instantiate,
  22285. # then the envvar interface is used. Set only those that are not.
  22286. # We use the long form for the default assignment because of an extremely
  22287. # bizarre bug on SunOS 4.1.3.
  22288. if $ac_need_defaults; then
  22289. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22290. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22291. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22292. fi
  22293. # Have a temporary directory for convenience. Make it in the build tree
  22294. # simply because there is no reason against having it here, and in addition,
  22295. # creating and moving files from /tmp can sometimes cause problems.
  22296. # Hook for its removal unless debugging.
  22297. # Note that there is a small window in which the directory will not be cleaned:
  22298. # after its creation but before its name has been assigned to `$tmp'.
  22299. $debug ||
  22300. {
  22301. tmp= ac_tmp=
  22302. trap 'exit_status=$?
  22303. : "${ac_tmp:=$tmp}"
  22304. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22305. ' 0
  22306. trap 'as_fn_exit 1' 1 2 13 15
  22307. }
  22308. # Create a (secure) tmp directory for tmp files.
  22309. {
  22310. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22311. test -d "$tmp"
  22312. } ||
  22313. {
  22314. tmp=./conf$$-$RANDOM
  22315. (umask 077 && mkdir "$tmp")
  22316. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22317. ac_tmp=$tmp
  22318. # Set up the scripts for CONFIG_FILES section.
  22319. # No need to generate them if there are no CONFIG_FILES.
  22320. # This happens for instance with `./config.status config.h'.
  22321. if test -n "$CONFIG_FILES"; then
  22322. ac_cr=`echo X | tr X '\015'`
  22323. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22324. # But we know of no other shell where ac_cr would be empty at this
  22325. # point, so we can use a bashism as a fallback.
  22326. if test "x$ac_cr" = x; then
  22327. eval ac_cr=\$\'\\r\'
  22328. fi
  22329. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22330. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22331. ac_cs_awk_cr='\\r'
  22332. else
  22333. ac_cs_awk_cr=$ac_cr
  22334. fi
  22335. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22336. _ACEOF
  22337. {
  22338. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22339. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22340. echo "_ACEOF"
  22341. } >conf$$subs.sh ||
  22342. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22343. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22344. ac_delim='%!_!# '
  22345. for ac_last_try in false false false false false :; do
  22346. . ./conf$$subs.sh ||
  22347. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22348. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22349. if test $ac_delim_n = $ac_delim_num; then
  22350. break
  22351. elif $ac_last_try; then
  22352. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22353. else
  22354. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22355. fi
  22356. done
  22357. rm -f conf$$subs.sh
  22358. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22359. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22360. _ACEOF
  22361. sed -n '
  22362. h
  22363. s/^/S["/; s/!.*/"]=/
  22364. p
  22365. g
  22366. s/^[^!]*!//
  22367. :repl
  22368. t repl
  22369. s/'"$ac_delim"'$//
  22370. t delim
  22371. :nl
  22372. h
  22373. s/\(.\{148\}\)..*/\1/
  22374. t more1
  22375. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22376. p
  22377. n
  22378. b repl
  22379. :more1
  22380. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22381. p
  22382. g
  22383. s/.\{148\}//
  22384. t nl
  22385. :delim
  22386. h
  22387. s/\(.\{148\}\)..*/\1/
  22388. t more2
  22389. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22390. p
  22391. b
  22392. :more2
  22393. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22394. p
  22395. g
  22396. s/.\{148\}//
  22397. t delim
  22398. ' <conf$$subs.awk | sed '
  22399. /^[^""]/{
  22400. N
  22401. s/\n//
  22402. }
  22403. ' >>$CONFIG_STATUS || ac_write_fail=1
  22404. rm -f conf$$subs.awk
  22405. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22406. _ACAWK
  22407. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22408. for (key in S) S_is_set[key] = 1
  22409. FS = ""
  22410. }
  22411. {
  22412. line = $ 0
  22413. nfields = split(line, field, "@")
  22414. substed = 0
  22415. len = length(field[1])
  22416. for (i = 2; i < nfields; i++) {
  22417. key = field[i]
  22418. keylen = length(key)
  22419. if (S_is_set[key]) {
  22420. value = S[key]
  22421. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22422. len += length(value) + length(field[++i])
  22423. substed = 1
  22424. } else
  22425. len += 1 + keylen
  22426. }
  22427. print line
  22428. }
  22429. _ACAWK
  22430. _ACEOF
  22431. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22432. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22433. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22434. else
  22435. cat
  22436. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22437. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22438. _ACEOF
  22439. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22440. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22441. # trailing colons and then remove the whole line if VPATH becomes empty
  22442. # (actually we leave an empty line to preserve line numbers).
  22443. if test "x$srcdir" = x.; then
  22444. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22445. h
  22446. s///
  22447. s/^/:/
  22448. s/[ ]*$/:/
  22449. s/:\$(srcdir):/:/g
  22450. s/:\${srcdir}:/:/g
  22451. s/:@srcdir@:/:/g
  22452. s/^:*//
  22453. s/:*$//
  22454. x
  22455. s/\(=[ ]*\).*/\1/
  22456. G
  22457. s/\n//
  22458. s/^[^=]*=[ ]*$//
  22459. }'
  22460. fi
  22461. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22462. fi # test -n "$CONFIG_FILES"
  22463. # Set up the scripts for CONFIG_HEADERS section.
  22464. # No need to generate them if there are no CONFIG_HEADERS.
  22465. # This happens for instance with `./config.status Makefile'.
  22466. if test -n "$CONFIG_HEADERS"; then
  22467. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22468. BEGIN {
  22469. _ACEOF
  22470. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22471. # here-document in config.status, that substitutes the proper values into
  22472. # config.h.in to produce config.h.
  22473. # Create a delimiter string that does not exist in confdefs.h, to ease
  22474. # handling of long lines.
  22475. ac_delim='%!_!# '
  22476. for ac_last_try in false false :; do
  22477. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22478. if test -z "$ac_tt"; then
  22479. break
  22480. elif $ac_last_try; then
  22481. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22482. else
  22483. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22484. fi
  22485. done
  22486. # For the awk script, D is an array of macro values keyed by name,
  22487. # likewise P contains macro parameters if any. Preserve backslash
  22488. # newline sequences.
  22489. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22490. sed -n '
  22491. s/.\{148\}/&'"$ac_delim"'/g
  22492. t rset
  22493. :rset
  22494. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22495. t def
  22496. d
  22497. :def
  22498. s/\\$//
  22499. t bsnl
  22500. s/["\\]/\\&/g
  22501. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22502. D["\1"]=" \3"/p
  22503. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22504. d
  22505. :bsnl
  22506. s/["\\]/\\&/g
  22507. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22508. D["\1"]=" \3\\\\\\n"\\/p
  22509. t cont
  22510. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22511. t cont
  22512. d
  22513. :cont
  22514. n
  22515. s/.\{148\}/&'"$ac_delim"'/g
  22516. t clear
  22517. :clear
  22518. s/\\$//
  22519. t bsnlc
  22520. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22521. d
  22522. :bsnlc
  22523. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22524. b cont
  22525. ' <confdefs.h | sed '
  22526. s/'"$ac_delim"'/"\\\
  22527. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22528. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22529. for (key in D) D_is_set[key] = 1
  22530. FS = ""
  22531. }
  22532. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22533. line = \$ 0
  22534. split(line, arg, " ")
  22535. if (arg[1] == "#") {
  22536. defundef = arg[2]
  22537. mac1 = arg[3]
  22538. } else {
  22539. defundef = substr(arg[1], 2)
  22540. mac1 = arg[2]
  22541. }
  22542. split(mac1, mac2, "(") #)
  22543. macro = mac2[1]
  22544. prefix = substr(line, 1, index(line, defundef) - 1)
  22545. if (D_is_set[macro]) {
  22546. # Preserve the white space surrounding the "#".
  22547. print prefix "define", macro P[macro] D[macro]
  22548. next
  22549. } else {
  22550. # Replace #undef with comments. This is necessary, for example,
  22551. # in the case of _POSIX_SOURCE, which is predefined and required
  22552. # on some systems where configure will not decide to define it.
  22553. if (defundef == "undef") {
  22554. print "/*", prefix defundef, macro, "*/"
  22555. next
  22556. }
  22557. }
  22558. }
  22559. { print }
  22560. _ACAWK
  22561. _ACEOF
  22562. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22563. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22564. fi # test -n "$CONFIG_HEADERS"
  22565. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22566. shift
  22567. for ac_tag
  22568. do
  22569. case $ac_tag in
  22570. :[FHLC]) ac_mode=$ac_tag; continue;;
  22571. esac
  22572. case $ac_mode$ac_tag in
  22573. :[FHL]*:*);;
  22574. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22575. :[FH]-) ac_tag=-:-;;
  22576. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22577. esac
  22578. ac_save_IFS=$IFS
  22579. IFS=:
  22580. set x $ac_tag
  22581. IFS=$ac_save_IFS
  22582. shift
  22583. ac_file=$1
  22584. shift
  22585. case $ac_mode in
  22586. :L) ac_source=$1;;
  22587. :[FH])
  22588. ac_file_inputs=
  22589. for ac_f
  22590. do
  22591. case $ac_f in
  22592. -) ac_f="$ac_tmp/stdin";;
  22593. *) # Look for the file first in the build tree, then in the source tree
  22594. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22595. # because $ac_f cannot contain `:'.
  22596. test -f "$ac_f" ||
  22597. case $ac_f in
  22598. [\\/$]*) false;;
  22599. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22600. esac ||
  22601. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22602. esac
  22603. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22604. as_fn_append ac_file_inputs " '$ac_f'"
  22605. done
  22606. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22607. # use $as_me), people would be surprised to read:
  22608. # /* config.h. Generated by config.status. */
  22609. configure_input='Generated from '`
  22610. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22611. `' by configure.'
  22612. if test x"$ac_file" != x-; then
  22613. configure_input="$ac_file. $configure_input"
  22614. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22615. $as_echo "$as_me: creating $ac_file" >&6;}
  22616. fi
  22617. # Neutralize special characters interpreted by sed in replacement strings.
  22618. case $configure_input in #(
  22619. *\&* | *\|* | *\\* )
  22620. ac_sed_conf_input=`$as_echo "$configure_input" |
  22621. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22622. *) ac_sed_conf_input=$configure_input;;
  22623. esac
  22624. case $ac_tag in
  22625. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22626. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22627. esac
  22628. ;;
  22629. esac
  22630. ac_dir=`$as_dirname -- "$ac_file" ||
  22631. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22632. X"$ac_file" : 'X\(//\)[^/]' \| \
  22633. X"$ac_file" : 'X\(//\)$' \| \
  22634. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22635. $as_echo X"$ac_file" |
  22636. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22637. s//\1/
  22638. q
  22639. }
  22640. /^X\(\/\/\)[^/].*/{
  22641. s//\1/
  22642. q
  22643. }
  22644. /^X\(\/\/\)$/{
  22645. s//\1/
  22646. q
  22647. }
  22648. /^X\(\/\).*/{
  22649. s//\1/
  22650. q
  22651. }
  22652. s/.*/./; q'`
  22653. as_dir="$ac_dir"; as_fn_mkdir_p
  22654. ac_builddir=.
  22655. case "$ac_dir" in
  22656. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22657. *)
  22658. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22659. # A ".." for each directory in $ac_dir_suffix.
  22660. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22661. case $ac_top_builddir_sub in
  22662. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22663. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22664. esac ;;
  22665. esac
  22666. ac_abs_top_builddir=$ac_pwd
  22667. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22668. # for backward compatibility:
  22669. ac_top_builddir=$ac_top_build_prefix
  22670. case $srcdir in
  22671. .) # We are building in place.
  22672. ac_srcdir=.
  22673. ac_top_srcdir=$ac_top_builddir_sub
  22674. ac_abs_top_srcdir=$ac_pwd ;;
  22675. [\\/]* | ?:[\\/]* ) # Absolute name.
  22676. ac_srcdir=$srcdir$ac_dir_suffix;
  22677. ac_top_srcdir=$srcdir
  22678. ac_abs_top_srcdir=$srcdir ;;
  22679. *) # Relative name.
  22680. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22681. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22682. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22683. esac
  22684. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22685. case $ac_mode in
  22686. :F)
  22687. #
  22688. # CONFIG_FILE
  22689. #
  22690. case $INSTALL in
  22691. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22692. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22693. esac
  22694. _ACEOF
  22695. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22696. # If the template does not know about datarootdir, expand it.
  22697. # FIXME: This hack should be removed a few years after 2.60.
  22698. ac_datarootdir_hack=; ac_datarootdir_seen=
  22699. ac_sed_dataroot='
  22700. /datarootdir/ {
  22701. p
  22702. q
  22703. }
  22704. /@datadir@/p
  22705. /@docdir@/p
  22706. /@infodir@/p
  22707. /@localedir@/p
  22708. /@mandir@/p'
  22709. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22710. *datarootdir*) ac_datarootdir_seen=yes;;
  22711. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22713. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22714. _ACEOF
  22715. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22716. ac_datarootdir_hack='
  22717. s&@datadir@&$datadir&g
  22718. s&@docdir@&$docdir&g
  22719. s&@infodir@&$infodir&g
  22720. s&@localedir@&$localedir&g
  22721. s&@mandir@&$mandir&g
  22722. s&\\\${datarootdir}&$datarootdir&g' ;;
  22723. esac
  22724. _ACEOF
  22725. # Neutralize VPATH when `$srcdir' = `.'.
  22726. # Shell code in configure.ac might set extrasub.
  22727. # FIXME: do we really want to maintain this feature?
  22728. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22729. ac_sed_extra="$ac_vpsub
  22730. $extrasub
  22731. _ACEOF
  22732. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22733. :t
  22734. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22735. s|@configure_input@|$ac_sed_conf_input|;t t
  22736. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22737. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22738. s&@srcdir@&$ac_srcdir&;t t
  22739. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22740. s&@top_srcdir@&$ac_top_srcdir&;t t
  22741. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22742. s&@builddir@&$ac_builddir&;t t
  22743. s&@abs_builddir@&$ac_abs_builddir&;t t
  22744. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22745. s&@INSTALL@&$ac_INSTALL&;t t
  22746. $ac_datarootdir_hack
  22747. "
  22748. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22749. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22750. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22751. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22752. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22753. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22754. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22755. which seems to be undefined. Please make sure it is defined" >&5
  22756. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22757. which seems to be undefined. Please make sure it is defined" >&2;}
  22758. rm -f "$ac_tmp/stdin"
  22759. case $ac_file in
  22760. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22761. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22762. esac \
  22763. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22764. ;;
  22765. :H)
  22766. #
  22767. # CONFIG_HEADER
  22768. #
  22769. if test x"$ac_file" != x-; then
  22770. {
  22771. $as_echo "/* $configure_input */" \
  22772. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22773. } >"$ac_tmp/config.h" \
  22774. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22775. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22776. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22777. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22778. else
  22779. rm -f "$ac_file"
  22780. mv "$ac_tmp/config.h" "$ac_file" \
  22781. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22782. fi
  22783. else
  22784. $as_echo "/* $configure_input */" \
  22785. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22786. || as_fn_error $? "could not create -" "$LINENO" 5
  22787. fi
  22788. ;;
  22789. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22790. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22791. ;;
  22792. esac
  22793. case $ac_file$ac_mode in
  22794. "libtool":C)
  22795. # See if we are running on zsh, and set the options which allow our
  22796. # commands through without removal of \ escapes.
  22797. if test -n "${ZSH_VERSION+set}" ; then
  22798. setopt NO_GLOB_SUBST
  22799. fi
  22800. cfgfile="${ofile}T"
  22801. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22802. $RM "$cfgfile"
  22803. cat <<_LT_EOF >> "$cfgfile"
  22804. #! $SHELL
  22805. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22806. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22807. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22808. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22809. #
  22810. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22811. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22812. # Foundation, Inc.
  22813. # Written by Gordon Matzigkeit, 1996
  22814. #
  22815. # This file is part of GNU Libtool.
  22816. #
  22817. # GNU Libtool is free software; you can redistribute it and/or
  22818. # modify it under the terms of the GNU General Public License as
  22819. # published by the Free Software Foundation; either version 2 of
  22820. # the License, or (at your option) any later version.
  22821. #
  22822. # As a special exception to the GNU General Public License,
  22823. # if you distribute this file as part of a program or library that
  22824. # is built using GNU Libtool, you may include this file under the
  22825. # same distribution terms that you use for the rest of that program.
  22826. #
  22827. # GNU Libtool is distributed in the hope that it will be useful,
  22828. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22829. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22830. # GNU General Public License for more details.
  22831. #
  22832. # You should have received a copy of the GNU General Public License
  22833. # along with GNU Libtool; see the file COPYING. If not, a copy
  22834. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22835. # obtained by writing to the Free Software Foundation, Inc.,
  22836. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22837. # The names of the tagged configurations supported by this script.
  22838. available_tags="CXX "
  22839. # ### BEGIN LIBTOOL CONFIG
  22840. # Which release of libtool.m4 was used?
  22841. macro_version=$macro_version
  22842. macro_revision=$macro_revision
  22843. # Assembler program.
  22844. AS=$lt_AS
  22845. # DLL creation program.
  22846. DLLTOOL=$lt_DLLTOOL
  22847. # Object dumper program.
  22848. OBJDUMP=$lt_OBJDUMP
  22849. # Whether or not to build shared libraries.
  22850. build_libtool_libs=$enable_shared
  22851. # Whether or not to build static libraries.
  22852. build_old_libs=$enable_static
  22853. # What type of objects to build.
  22854. pic_mode=$pic_mode
  22855. # Whether or not to optimize for fast installation.
  22856. fast_install=$enable_fast_install
  22857. # Shell to use when invoking shell scripts.
  22858. SHELL=$lt_SHELL
  22859. # An echo program that protects backslashes.
  22860. ECHO=$lt_ECHO
  22861. # The PATH separator for the build system.
  22862. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22863. # The host system.
  22864. host_alias=$host_alias
  22865. host=$host
  22866. host_os=$host_os
  22867. # The build system.
  22868. build_alias=$build_alias
  22869. build=$build
  22870. build_os=$build_os
  22871. # A sed program that does not truncate output.
  22872. SED=$lt_SED
  22873. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22874. Xsed="\$SED -e 1s/^X//"
  22875. # A grep program that handles long lines.
  22876. GREP=$lt_GREP
  22877. # An ERE matcher.
  22878. EGREP=$lt_EGREP
  22879. # A literal string matcher.
  22880. FGREP=$lt_FGREP
  22881. # A BSD- or MS-compatible name lister.
  22882. NM=$lt_NM
  22883. # Whether we need soft or hard links.
  22884. LN_S=$lt_LN_S
  22885. # What is the maximum length of a command?
  22886. max_cmd_len=$max_cmd_len
  22887. # Object file suffix (normally "o").
  22888. objext=$ac_objext
  22889. # Executable file suffix (normally "").
  22890. exeext=$exeext
  22891. # whether the shell understands "unset".
  22892. lt_unset=$lt_unset
  22893. # turn spaces into newlines.
  22894. SP2NL=$lt_lt_SP2NL
  22895. # turn newlines into spaces.
  22896. NL2SP=$lt_lt_NL2SP
  22897. # convert \$build file names to \$host format.
  22898. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22899. # convert \$build files to toolchain format.
  22900. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22901. # Method to check whether dependent libraries are shared objects.
  22902. deplibs_check_method=$lt_deplibs_check_method
  22903. # Command to use when deplibs_check_method = "file_magic".
  22904. file_magic_cmd=$lt_file_magic_cmd
  22905. # How to find potential files when deplibs_check_method = "file_magic".
  22906. file_magic_glob=$lt_file_magic_glob
  22907. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22908. want_nocaseglob=$lt_want_nocaseglob
  22909. # Command to associate shared and link libraries.
  22910. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22911. # The archiver.
  22912. AR=$lt_AR
  22913. # Flags to create an archive.
  22914. AR_FLAGS=$lt_AR_FLAGS
  22915. # How to feed a file listing to the archiver.
  22916. archiver_list_spec=$lt_archiver_list_spec
  22917. # A symbol stripping program.
  22918. STRIP=$lt_STRIP
  22919. # Commands used to install an old-style archive.
  22920. RANLIB=$lt_RANLIB
  22921. old_postinstall_cmds=$lt_old_postinstall_cmds
  22922. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22923. # Whether to use a lock for old archive extraction.
  22924. lock_old_archive_extraction=$lock_old_archive_extraction
  22925. # A C compiler.
  22926. LTCC=$lt_CC
  22927. # LTCC compiler flags.
  22928. LTCFLAGS=$lt_CFLAGS
  22929. # Take the output of nm and produce a listing of raw symbols and C names.
  22930. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22931. # Transform the output of nm in a proper C declaration.
  22932. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22933. # Transform the output of nm in a C name address pair.
  22934. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22935. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22936. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22937. # Specify filename containing input files for \$NM.
  22938. nm_file_list_spec=$lt_nm_file_list_spec
  22939. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22940. lt_sysroot=$lt_sysroot
  22941. # The name of the directory that contains temporary libtool files.
  22942. objdir=$objdir
  22943. # Used to examine libraries when file_magic_cmd begins with "file".
  22944. MAGIC_CMD=$MAGIC_CMD
  22945. # Must we lock files when doing compilation?
  22946. need_locks=$lt_need_locks
  22947. # Manifest tool.
  22948. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22949. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22950. DSYMUTIL=$lt_DSYMUTIL
  22951. # Tool to change global to local symbols on Mac OS X.
  22952. NMEDIT=$lt_NMEDIT
  22953. # Tool to manipulate fat objects and archives on Mac OS X.
  22954. LIPO=$lt_LIPO
  22955. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22956. OTOOL=$lt_OTOOL
  22957. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22958. OTOOL64=$lt_OTOOL64
  22959. # Old archive suffix (normally "a").
  22960. libext=$libext
  22961. # Shared library suffix (normally ".so").
  22962. shrext_cmds=$lt_shrext_cmds
  22963. # The commands to extract the exported symbol list from a shared archive.
  22964. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22965. # Variables whose values should be saved in libtool wrapper scripts and
  22966. # restored at link time.
  22967. variables_saved_for_relink=$lt_variables_saved_for_relink
  22968. # Do we need the "lib" prefix for modules?
  22969. need_lib_prefix=$need_lib_prefix
  22970. # Do we need a version for libraries?
  22971. need_version=$need_version
  22972. # Library versioning type.
  22973. version_type=$version_type
  22974. # Shared library runtime path variable.
  22975. runpath_var=$runpath_var
  22976. # Shared library path variable.
  22977. shlibpath_var=$shlibpath_var
  22978. # Is shlibpath searched before the hard-coded library search path?
  22979. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22980. # Format of library name prefix.
  22981. libname_spec=$lt_libname_spec
  22982. # List of archive names. First name is the real one, the rest are links.
  22983. # The last name is the one that the linker finds with -lNAME
  22984. library_names_spec=$lt_library_names_spec
  22985. # The coded name of the library, if different from the real name.
  22986. soname_spec=$lt_soname_spec
  22987. # Permission mode override for installation of shared libraries.
  22988. install_override_mode=$lt_install_override_mode
  22989. # Command to use after installation of a shared archive.
  22990. postinstall_cmds=$lt_postinstall_cmds
  22991. # Command to use after uninstallation of a shared archive.
  22992. postuninstall_cmds=$lt_postuninstall_cmds
  22993. # Commands used to finish a libtool library installation in a directory.
  22994. finish_cmds=$lt_finish_cmds
  22995. # As "finish_cmds", except a single script fragment to be evaled but
  22996. # not shown.
  22997. finish_eval=$lt_finish_eval
  22998. # Whether we should hardcode library paths into libraries.
  22999. hardcode_into_libs=$hardcode_into_libs
  23000. # Compile-time system search path for libraries.
  23001. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23002. # Run-time system search path for libraries.
  23003. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23004. # Whether dlopen is supported.
  23005. dlopen_support=$enable_dlopen
  23006. # Whether dlopen of programs is supported.
  23007. dlopen_self=$enable_dlopen_self
  23008. # Whether dlopen of statically linked programs is supported.
  23009. dlopen_self_static=$enable_dlopen_self_static
  23010. # Commands to strip libraries.
  23011. old_striplib=$lt_old_striplib
  23012. striplib=$lt_striplib
  23013. # The linker used to build libraries.
  23014. LD=$lt_LD
  23015. # How to create reloadable object files.
  23016. reload_flag=$lt_reload_flag
  23017. reload_cmds=$lt_reload_cmds
  23018. # Commands used to build an old-style archive.
  23019. old_archive_cmds=$lt_old_archive_cmds
  23020. # A language specific compiler.
  23021. CC=$lt_compiler
  23022. # Is the compiler the GNU compiler?
  23023. with_gcc=$GCC
  23024. # Compiler flag to turn off builtin functions.
  23025. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23026. # Additional compiler flags for building library objects.
  23027. pic_flag=$lt_lt_prog_compiler_pic
  23028. # How to pass a linker flag through the compiler.
  23029. wl=$lt_lt_prog_compiler_wl
  23030. # Compiler flag to prevent dynamic linking.
  23031. link_static_flag=$lt_lt_prog_compiler_static
  23032. # Does compiler simultaneously support -c and -o options?
  23033. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23034. # Whether or not to add -lc for building shared libraries.
  23035. build_libtool_need_lc=$archive_cmds_need_lc
  23036. # Whether or not to disallow shared libs when runtime libs are static.
  23037. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23038. # Compiler flag to allow reflexive dlopens.
  23039. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23040. # Compiler flag to generate shared objects directly from archives.
  23041. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23042. # Whether the compiler copes with passing no objects directly.
  23043. compiler_needs_object=$lt_compiler_needs_object
  23044. # Create an old-style archive from a shared archive.
  23045. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23046. # Create a temporary old-style archive to link instead of a shared archive.
  23047. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23048. # Commands used to build a shared archive.
  23049. archive_cmds=$lt_archive_cmds
  23050. archive_expsym_cmds=$lt_archive_expsym_cmds
  23051. # Commands used to build a loadable module if different from building
  23052. # a shared archive.
  23053. module_cmds=$lt_module_cmds
  23054. module_expsym_cmds=$lt_module_expsym_cmds
  23055. # Whether we are building with GNU ld or not.
  23056. with_gnu_ld=$lt_with_gnu_ld
  23057. # Flag that allows shared libraries with undefined symbols to be built.
  23058. allow_undefined_flag=$lt_allow_undefined_flag
  23059. # Flag that enforces no undefined symbols.
  23060. no_undefined_flag=$lt_no_undefined_flag
  23061. # Flag to hardcode \$libdir into a binary during linking.
  23062. # This must work even if \$libdir does not exist
  23063. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23064. # Whether we need a single "-rpath" flag with a separated argument.
  23065. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23066. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23067. # DIR into the resulting binary.
  23068. hardcode_direct=$hardcode_direct
  23069. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23070. # DIR into the resulting binary and the resulting library dependency is
  23071. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23072. # library is relocated.
  23073. hardcode_direct_absolute=$hardcode_direct_absolute
  23074. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23075. # into the resulting binary.
  23076. hardcode_minus_L=$hardcode_minus_L
  23077. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23078. # into the resulting binary.
  23079. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23080. # Set to "yes" if building a shared library automatically hardcodes DIR
  23081. # into the library and all subsequent libraries and executables linked
  23082. # against it.
  23083. hardcode_automatic=$hardcode_automatic
  23084. # Set to yes if linker adds runtime paths of dependent libraries
  23085. # to runtime path list.
  23086. inherit_rpath=$inherit_rpath
  23087. # Whether libtool must link a program against all its dependency libraries.
  23088. link_all_deplibs=$link_all_deplibs
  23089. # Set to "yes" if exported symbols are required.
  23090. always_export_symbols=$always_export_symbols
  23091. # The commands to list exported symbols.
  23092. export_symbols_cmds=$lt_export_symbols_cmds
  23093. # Symbols that should not be listed in the preloaded symbols.
  23094. exclude_expsyms=$lt_exclude_expsyms
  23095. # Symbols that must always be exported.
  23096. include_expsyms=$lt_include_expsyms
  23097. # Commands necessary for linking programs (against libraries) with templates.
  23098. prelink_cmds=$lt_prelink_cmds
  23099. # Commands necessary for finishing linking programs.
  23100. postlink_cmds=$lt_postlink_cmds
  23101. # Specify filename containing input files.
  23102. file_list_spec=$lt_file_list_spec
  23103. # How to hardcode a shared library path into an executable.
  23104. hardcode_action=$hardcode_action
  23105. # The directories searched by this compiler when creating a shared library.
  23106. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23107. # Dependencies to place before and after the objects being linked to
  23108. # create a shared library.
  23109. predep_objects=$lt_predep_objects
  23110. postdep_objects=$lt_postdep_objects
  23111. predeps=$lt_predeps
  23112. postdeps=$lt_postdeps
  23113. # The library search path used internally by the compiler when linking
  23114. # a shared library.
  23115. compiler_lib_search_path=$lt_compiler_lib_search_path
  23116. # ### END LIBTOOL CONFIG
  23117. _LT_EOF
  23118. case $host_os in
  23119. aix3*)
  23120. cat <<\_LT_EOF >> "$cfgfile"
  23121. # AIX sometimes has problems with the GCC collect2 program. For some
  23122. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23123. # vanish in a puff of smoke.
  23124. if test "X${COLLECT_NAMES+set}" != Xset; then
  23125. COLLECT_NAMES=
  23126. export COLLECT_NAMES
  23127. fi
  23128. _LT_EOF
  23129. ;;
  23130. esac
  23131. ltmain="$ac_aux_dir/ltmain.sh"
  23132. # We use sed instead of cat because bash on DJGPP gets confused if
  23133. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23134. # text mode, it properly converts lines to CR/LF. This bash problem
  23135. # is reportedly fixed, but why not run on old versions too?
  23136. sed '$q' "$ltmain" >> "$cfgfile" \
  23137. || (rm -f "$cfgfile"; exit 1)
  23138. if test x"$xsi_shell" = xyes; then
  23139. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23140. func_dirname ()\
  23141. {\
  23142. \ case ${1} in\
  23143. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23144. \ * ) func_dirname_result="${3}" ;;\
  23145. \ esac\
  23146. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23147. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23148. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23149. test 0 -eq $? || _lt_function_replace_fail=:
  23150. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23151. func_basename ()\
  23152. {\
  23153. \ func_basename_result="${1##*/}"\
  23154. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23155. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23156. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23157. test 0 -eq $? || _lt_function_replace_fail=:
  23158. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23159. func_dirname_and_basename ()\
  23160. {\
  23161. \ case ${1} in\
  23162. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23163. \ * ) func_dirname_result="${3}" ;;\
  23164. \ esac\
  23165. \ func_basename_result="${1##*/}"\
  23166. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23167. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23168. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23169. test 0 -eq $? || _lt_function_replace_fail=:
  23170. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23171. func_stripname ()\
  23172. {\
  23173. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23174. \ # positional parameters, so assign one to ordinary parameter first.\
  23175. \ func_stripname_result=${3}\
  23176. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23177. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23178. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23179. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23180. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23181. test 0 -eq $? || _lt_function_replace_fail=:
  23182. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23183. func_split_long_opt ()\
  23184. {\
  23185. \ func_split_long_opt_name=${1%%=*}\
  23186. \ func_split_long_opt_arg=${1#*=}\
  23187. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23188. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23189. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23190. test 0 -eq $? || _lt_function_replace_fail=:
  23191. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23192. func_split_short_opt ()\
  23193. {\
  23194. \ func_split_short_opt_arg=${1#??}\
  23195. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23196. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23197. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23198. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23199. test 0 -eq $? || _lt_function_replace_fail=:
  23200. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23201. func_lo2o ()\
  23202. {\
  23203. \ case ${1} in\
  23204. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23205. \ *) func_lo2o_result=${1} ;;\
  23206. \ esac\
  23207. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23208. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23209. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23210. test 0 -eq $? || _lt_function_replace_fail=:
  23211. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23212. func_xform ()\
  23213. {\
  23214. func_xform_result=${1%.*}.lo\
  23215. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23216. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23217. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23218. test 0 -eq $? || _lt_function_replace_fail=:
  23219. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23220. func_arith ()\
  23221. {\
  23222. func_arith_result=$(( $* ))\
  23223. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23224. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23225. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23226. test 0 -eq $? || _lt_function_replace_fail=:
  23227. sed -e '/^func_len ()$/,/^} # func_len /c\
  23228. func_len ()\
  23229. {\
  23230. func_len_result=${#1}\
  23231. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23232. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23233. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23234. test 0 -eq $? || _lt_function_replace_fail=:
  23235. fi
  23236. if test x"$lt_shell_append" = xyes; then
  23237. sed -e '/^func_append ()$/,/^} # func_append /c\
  23238. func_append ()\
  23239. {\
  23240. eval "${1}+=\\${2}"\
  23241. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23242. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23243. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23244. test 0 -eq $? || _lt_function_replace_fail=:
  23245. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23246. func_append_quoted ()\
  23247. {\
  23248. \ func_quote_for_eval "${2}"\
  23249. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23250. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23251. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23252. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23253. test 0 -eq $? || _lt_function_replace_fail=:
  23254. # Save a `func_append' function call where possible by direct use of '+='
  23255. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $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. else
  23260. # Save a `func_append' function call even when '+=' is not available
  23261. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23262. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23263. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23264. test 0 -eq $? || _lt_function_replace_fail=:
  23265. fi
  23266. if test x"$_lt_function_replace_fail" = x":"; then
  23267. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23268. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23269. fi
  23270. mv -f "$cfgfile" "$ofile" ||
  23271. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23272. chmod +x "$ofile"
  23273. cat <<_LT_EOF >> "$ofile"
  23274. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23275. # The linker used to build libraries.
  23276. LD=$lt_LD_CXX
  23277. # How to create reloadable object files.
  23278. reload_flag=$lt_reload_flag_CXX
  23279. reload_cmds=$lt_reload_cmds_CXX
  23280. # Commands used to build an old-style archive.
  23281. old_archive_cmds=$lt_old_archive_cmds_CXX
  23282. # A language specific compiler.
  23283. CC=$lt_compiler_CXX
  23284. # Is the compiler the GNU compiler?
  23285. with_gcc=$GCC_CXX
  23286. # Compiler flag to turn off builtin functions.
  23287. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23288. # Additional compiler flags for building library objects.
  23289. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23290. # How to pass a linker flag through the compiler.
  23291. wl=$lt_lt_prog_compiler_wl_CXX
  23292. # Compiler flag to prevent dynamic linking.
  23293. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23294. # Does compiler simultaneously support -c and -o options?
  23295. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23296. # Whether or not to add -lc for building shared libraries.
  23297. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23298. # Whether or not to disallow shared libs when runtime libs are static.
  23299. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23300. # Compiler flag to allow reflexive dlopens.
  23301. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23302. # Compiler flag to generate shared objects directly from archives.
  23303. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23304. # Whether the compiler copes with passing no objects directly.
  23305. compiler_needs_object=$lt_compiler_needs_object_CXX
  23306. # Create an old-style archive from a shared archive.
  23307. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23308. # Create a temporary old-style archive to link instead of a shared archive.
  23309. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23310. # Commands used to build a shared archive.
  23311. archive_cmds=$lt_archive_cmds_CXX
  23312. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23313. # Commands used to build a loadable module if different from building
  23314. # a shared archive.
  23315. module_cmds=$lt_module_cmds_CXX
  23316. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23317. # Whether we are building with GNU ld or not.
  23318. with_gnu_ld=$lt_with_gnu_ld_CXX
  23319. # Flag that allows shared libraries with undefined symbols to be built.
  23320. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23321. # Flag that enforces no undefined symbols.
  23322. no_undefined_flag=$lt_no_undefined_flag_CXX
  23323. # Flag to hardcode \$libdir into a binary during linking.
  23324. # This must work even if \$libdir does not exist
  23325. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23326. # Whether we need a single "-rpath" flag with a separated argument.
  23327. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23328. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23329. # DIR into the resulting binary.
  23330. hardcode_direct=$hardcode_direct_CXX
  23331. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23332. # DIR into the resulting binary and the resulting library dependency is
  23333. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23334. # library is relocated.
  23335. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23336. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23337. # into the resulting binary.
  23338. hardcode_minus_L=$hardcode_minus_L_CXX
  23339. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23340. # into the resulting binary.
  23341. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23342. # Set to "yes" if building a shared library automatically hardcodes DIR
  23343. # into the library and all subsequent libraries and executables linked
  23344. # against it.
  23345. hardcode_automatic=$hardcode_automatic_CXX
  23346. # Set to yes if linker adds runtime paths of dependent libraries
  23347. # to runtime path list.
  23348. inherit_rpath=$inherit_rpath_CXX
  23349. # Whether libtool must link a program against all its dependency libraries.
  23350. link_all_deplibs=$link_all_deplibs_CXX
  23351. # Set to "yes" if exported symbols are required.
  23352. always_export_symbols=$always_export_symbols_CXX
  23353. # The commands to list exported symbols.
  23354. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23355. # Symbols that should not be listed in the preloaded symbols.
  23356. exclude_expsyms=$lt_exclude_expsyms_CXX
  23357. # Symbols that must always be exported.
  23358. include_expsyms=$lt_include_expsyms_CXX
  23359. # Commands necessary for linking programs (against libraries) with templates.
  23360. prelink_cmds=$lt_prelink_cmds_CXX
  23361. # Commands necessary for finishing linking programs.
  23362. postlink_cmds=$lt_postlink_cmds_CXX
  23363. # Specify filename containing input files.
  23364. file_list_spec=$lt_file_list_spec_CXX
  23365. # How to hardcode a shared library path into an executable.
  23366. hardcode_action=$hardcode_action_CXX
  23367. # The directories searched by this compiler when creating a shared library.
  23368. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23369. # Dependencies to place before and after the objects being linked to
  23370. # create a shared library.
  23371. predep_objects=$lt_predep_objects_CXX
  23372. postdep_objects=$lt_postdep_objects_CXX
  23373. predeps=$lt_predeps_CXX
  23374. postdeps=$lt_postdeps_CXX
  23375. # The library search path used internally by the compiler when linking
  23376. # a shared library.
  23377. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23378. # ### END LIBTOOL TAG CONFIG: CXX
  23379. _LT_EOF
  23380. ;;
  23381. "sdl2_config":C) chmod a+x sdl2-config ;;
  23382. "summary":C) echo -en "$SUMMARY" ;;
  23383. esac
  23384. done # for ac_tag
  23385. as_fn_exit 0
  23386. _ACEOF
  23387. ac_clean_files=$ac_clean_files_save
  23388. test $ac_write_fail = 0 ||
  23389. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23390. # configure is writing to config.log, and then calls config.status.
  23391. # config.status does its own redirection, appending to config.log.
  23392. # Unfortunately, on DOS this fails, as config.log is still kept open
  23393. # by configure, so config.status won't be able to write to it; its
  23394. # output is simply discarded. So we exec the FD to /dev/null,
  23395. # effectively closing config.log, so it can be properly (re)opened and
  23396. # appended to by config.status. When coming back to configure, we
  23397. # need to make the FD available again.
  23398. if test "$no_create" != yes; then
  23399. ac_cs_success=:
  23400. ac_config_status_args=
  23401. test "$silent" = yes &&
  23402. ac_config_status_args="$ac_config_status_args --quiet"
  23403. exec 5>/dev/null
  23404. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23405. exec 5>>config.log
  23406. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23407. # would make configure fail if this is the last instruction.
  23408. $ac_cs_success || as_fn_exit 1
  23409. fi
  23410. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23412. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23413. fi