configure 836 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564
  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. PKG_CONFIG_LIBS_PRIV
  599. SDL_RLD_FLAGS
  600. SDL_STATIC_LIBS
  601. SDL_LIBS
  602. SDL_CFLAGS
  603. INSTALL_SDL2_CONFIG
  604. LIBUSB_LIBS
  605. LIBUSB_CFLAGS
  606. FCITX_LIBS
  607. FCITX_CFLAGS
  608. IBUS_LIBS
  609. IBUS_CFLAGS
  610. DBUS_LIBS
  611. DBUS_CFLAGS
  612. LIBGBM_LIBS
  613. LIBGBM_CFLAGS
  614. LIBDRM_LIBS
  615. LIBDRM_CFLAGS
  616. DIRECTFB_LIBS
  617. DIRECTFB_CFLAGS
  618. X_EXTRA_LIBS
  619. X_LIBS
  620. X_PRE_LIBS
  621. X_CFLAGS
  622. XMKMF
  623. RPI_LIBS
  624. RPI_CFLAGS
  625. FUSIONSOUND_LIBS
  626. FUSIONSOUND_CFLAGS
  627. ARTSCONFIG
  628. PULSEAUDIO_LIBS
  629. PULSEAUDIO_CFLAGS
  630. ESD_LIBS
  631. ESD_CFLAGS
  632. ESD_CONFIG
  633. JACK_LIBS
  634. JACK_CFLAGS
  635. ALSA_LIBS
  636. ALSA_CFLAGS
  637. POW_LIB
  638. LIBOBJS
  639. ALLOCA
  640. PKG_CONFIG_LIBDIR
  641. PKG_CONFIG_PATH
  642. PKG_CONFIG
  643. SET_MAKE
  644. INSTALL_DATA
  645. INSTALL_SCRIPT
  646. INSTALL_PROGRAM
  647. CXXCPP
  648. ac_ct_CXX
  649. CXXFLAGS
  650. CXX
  651. LT_AGE
  652. LT_REVISION
  653. LT_CURRENT
  654. LT_RELEASE
  655. RC
  656. CPP
  657. OTOOL64
  658. OTOOL
  659. LIPO
  660. NMEDIT
  661. DSYMUTIL
  662. MANIFEST_TOOL
  663. AWK
  664. RANLIB
  665. STRIP
  666. ac_ct_AR
  667. AR
  668. LN_S
  669. NM
  670. ac_ct_DUMPBIN
  671. DUMPBIN
  672. LD
  673. FGREP
  674. EGREP
  675. GREP
  676. SED
  677. OBJEXT
  678. EXEEXT
  679. ac_ct_CC
  680. CPPFLAGS
  681. LDFLAGS
  682. CFLAGS
  683. CC
  684. host_os
  685. host_vendor
  686. host_cpu
  687. host
  688. build_os
  689. build_vendor
  690. build_cpu
  691. build
  692. LIBTOOL
  693. OBJDUMP
  694. DLLTOOL
  695. AS
  696. SDL_VERSION
  697. SDL_BINARY_AGE
  698. SDL_INTERFACE_AGE
  699. SDL_MICRO_VERSION
  700. SDL_MINOR_VERSION
  701. SDL_MAJOR_VERSION
  702. target_alias
  703. host_alias
  704. build_alias
  705. LIBS
  706. ECHO_T
  707. ECHO_N
  708. ECHO_C
  709. DEFS
  710. mandir
  711. localedir
  712. libdir
  713. psdir
  714. pdfdir
  715. dvidir
  716. htmldir
  717. infodir
  718. docdir
  719. oldincludedir
  720. includedir
  721. localstatedir
  722. sharedstatedir
  723. sysconfdir
  724. datadir
  725. datarootdir
  726. libexecdir
  727. sbindir
  728. bindir
  729. program_transform_name
  730. prefix
  731. exec_prefix
  732. PACKAGE_URL
  733. PACKAGE_BUGREPORT
  734. PACKAGE_STRING
  735. PACKAGE_VERSION
  736. PACKAGE_TARNAME
  737. PACKAGE_NAME
  738. PATH_SEPARATOR
  739. SHELL'
  740. ac_subst_files=''
  741. ac_user_opts='
  742. enable_option_checking
  743. enable_shared
  744. enable_static
  745. with_pic
  746. enable_fast_install
  747. with_gnu_ld
  748. with_sysroot
  749. enable_libtool_lock
  750. enable_assertions
  751. enable_dependency_tracking
  752. enable_libc
  753. enable_gcc_atomics
  754. enable_atomic
  755. enable_audio
  756. enable_video
  757. enable_render
  758. enable_events
  759. enable_joystick
  760. enable_haptic
  761. enable_sensor
  762. enable_power
  763. enable_filesystem
  764. enable_threads
  765. enable_timers
  766. enable_file
  767. enable_loadso
  768. enable_cpuinfo
  769. enable_assembly
  770. enable_ssemath
  771. enable_mmx
  772. enable_3dnow
  773. enable_sse
  774. enable_sse2
  775. enable_sse3
  776. enable_altivec
  777. enable_oss
  778. enable_alsa
  779. with_alsa_prefix
  780. with_alsa_inc_prefix
  781. enable_alsatest
  782. enable_alsa_shared
  783. enable_jack
  784. enable_jack_shared
  785. enable_esd
  786. with_esd_prefix
  787. with_esd_exec_prefix
  788. enable_esdtest
  789. enable_esd_shared
  790. enable_pulseaudio
  791. enable_pulseaudio_shared
  792. enable_arts
  793. enable_arts_shared
  794. enable_nas
  795. enable_nas_shared
  796. enable_sndio
  797. enable_sndio_shared
  798. enable_fusionsound
  799. enable_fusionsound_shared
  800. enable_diskaudio
  801. enable_dummyaudio
  802. enable_libsamplerate
  803. enable_libsamplerate_shared
  804. enable_arm_simd
  805. enable_arm_neon
  806. enable_video_wayland
  807. enable_video_wayland_qt_touch
  808. enable_wayland_shared
  809. enable_video_rpi
  810. enable_video_x11
  811. with_x
  812. enable_x11_shared
  813. enable_video_x11_xcursor
  814. enable_video_x11_xdbe
  815. enable_video_x11_xinerama
  816. enable_video_x11_xinput
  817. enable_video_x11_xrandr
  818. enable_video_x11_scrnsaver
  819. enable_video_x11_xshape
  820. enable_video_x11_vm
  821. enable_video_vivante
  822. enable_video_cocoa
  823. enable_video_metal
  824. enable_render_metal
  825. enable_video_directfb
  826. enable_directfb_shared
  827. enable_video_kmsdrm
  828. enable_kmsdrm_shared
  829. enable_video_dummy
  830. enable_video_opengl
  831. enable_video_opengles
  832. enable_video_opengles1
  833. enable_video_opengles2
  834. enable_video_vulkan
  835. enable_libudev
  836. enable_dbus
  837. enable_ime
  838. enable_ibus
  839. enable_fcitx
  840. enable_input_tslib
  841. enable_pthreads
  842. enable_pthread_sem
  843. enable_directx
  844. enable_wasapi
  845. enable_sdl_dlopen
  846. enable_hidapi
  847. enable_clock_gettime
  848. enable_rpath
  849. enable_backgrounding_signal
  850. enable_foregrounding_signal
  851. enable_joystick_virtual
  852. enable_render_d3d
  853. enable_sdl2_config
  854. '
  855. ac_precious_vars='build_alias
  856. host_alias
  857. target_alias
  858. CC
  859. CFLAGS
  860. LDFLAGS
  861. LIBS
  862. CPPFLAGS
  863. CPP
  864. CXX
  865. CXXFLAGS
  866. CCC
  867. CXXCPP
  868. PKG_CONFIG
  869. PKG_CONFIG_PATH
  870. PKG_CONFIG_LIBDIR
  871. JACK_CFLAGS
  872. JACK_LIBS
  873. PULSEAUDIO_CFLAGS
  874. PULSEAUDIO_LIBS
  875. FUSIONSOUND_CFLAGS
  876. FUSIONSOUND_LIBS
  877. RPI_CFLAGS
  878. RPI_LIBS
  879. XMKMF
  880. DIRECTFB_CFLAGS
  881. DIRECTFB_LIBS
  882. LIBDRM_CFLAGS
  883. LIBDRM_LIBS
  884. LIBGBM_CFLAGS
  885. LIBGBM_LIBS
  886. DBUS_CFLAGS
  887. DBUS_LIBS
  888. IBUS_CFLAGS
  889. IBUS_LIBS
  890. FCITX_CFLAGS
  891. FCITX_LIBS
  892. LIBUSB_CFLAGS
  893. LIBUSB_LIBS'
  894. # Initialize some variables set by options.
  895. ac_init_help=
  896. ac_init_version=false
  897. ac_unrecognized_opts=
  898. ac_unrecognized_sep=
  899. # The variables have the same names as the options, with
  900. # dashes changed to underlines.
  901. cache_file=/dev/null
  902. exec_prefix=NONE
  903. no_create=
  904. no_recursion=
  905. prefix=NONE
  906. program_prefix=NONE
  907. program_suffix=NONE
  908. program_transform_name=s,x,x,
  909. silent=
  910. site=
  911. srcdir=
  912. verbose=
  913. x_includes=NONE
  914. x_libraries=NONE
  915. # Installation directory options.
  916. # These are left unexpanded so users can "make install exec_prefix=/foo"
  917. # and all the variables that are supposed to be based on exec_prefix
  918. # by default will actually change.
  919. # Use braces instead of parens because sh, perl, etc. also accept them.
  920. # (The list follows the same order as the GNU Coding Standards.)
  921. bindir='${exec_prefix}/bin'
  922. sbindir='${exec_prefix}/sbin'
  923. libexecdir='${exec_prefix}/libexec'
  924. datarootdir='${prefix}/share'
  925. datadir='${datarootdir}'
  926. sysconfdir='${prefix}/etc'
  927. sharedstatedir='${prefix}/com'
  928. localstatedir='${prefix}/var'
  929. includedir='${prefix}/include'
  930. oldincludedir='/usr/include'
  931. docdir='${datarootdir}/doc/${PACKAGE}'
  932. infodir='${datarootdir}/info'
  933. htmldir='${docdir}'
  934. dvidir='${docdir}'
  935. pdfdir='${docdir}'
  936. psdir='${docdir}'
  937. libdir='${exec_prefix}/lib'
  938. localedir='${datarootdir}/locale'
  939. mandir='${datarootdir}/man'
  940. ac_prev=
  941. ac_dashdash=
  942. for ac_option
  943. do
  944. # If the previous option needs an argument, assign it.
  945. if test -n "$ac_prev"; then
  946. eval $ac_prev=\$ac_option
  947. ac_prev=
  948. continue
  949. fi
  950. case $ac_option in
  951. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  952. *=) ac_optarg= ;;
  953. *) ac_optarg=yes ;;
  954. esac
  955. # Accept the important Cygnus configure options, so we can diagnose typos.
  956. case $ac_dashdash$ac_option in
  957. --)
  958. ac_dashdash=yes ;;
  959. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  960. ac_prev=bindir ;;
  961. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  962. bindir=$ac_optarg ;;
  963. -build | --build | --buil | --bui | --bu)
  964. ac_prev=build_alias ;;
  965. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  966. build_alias=$ac_optarg ;;
  967. -cache-file | --cache-file | --cache-fil | --cache-fi \
  968. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  969. ac_prev=cache_file ;;
  970. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  971. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  972. cache_file=$ac_optarg ;;
  973. --config-cache | -C)
  974. cache_file=config.cache ;;
  975. -datadir | --datadir | --datadi | --datad)
  976. ac_prev=datadir ;;
  977. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  978. datadir=$ac_optarg ;;
  979. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  980. | --dataroo | --dataro | --datar)
  981. ac_prev=datarootdir ;;
  982. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  983. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  984. datarootdir=$ac_optarg ;;
  985. -disable-* | --disable-*)
  986. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  987. # Reject names that are not valid shell variable names.
  988. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  989. as_fn_error $? "invalid feature name: $ac_useropt"
  990. ac_useropt_orig=$ac_useropt
  991. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  992. case $ac_user_opts in
  993. *"
  994. "enable_$ac_useropt"
  995. "*) ;;
  996. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  997. ac_unrecognized_sep=', ';;
  998. esac
  999. eval enable_$ac_useropt=no ;;
  1000. -docdir | --docdir | --docdi | --doc | --do)
  1001. ac_prev=docdir ;;
  1002. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1003. docdir=$ac_optarg ;;
  1004. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1005. ac_prev=dvidir ;;
  1006. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1007. dvidir=$ac_optarg ;;
  1008. -enable-* | --enable-*)
  1009. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1010. # Reject names that are not valid shell variable names.
  1011. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1012. as_fn_error $? "invalid feature name: $ac_useropt"
  1013. ac_useropt_orig=$ac_useropt
  1014. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1015. case $ac_user_opts in
  1016. *"
  1017. "enable_$ac_useropt"
  1018. "*) ;;
  1019. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1020. ac_unrecognized_sep=', ';;
  1021. esac
  1022. eval enable_$ac_useropt=\$ac_optarg ;;
  1023. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1024. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1025. | --exec | --exe | --ex)
  1026. ac_prev=exec_prefix ;;
  1027. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1028. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1029. | --exec=* | --exe=* | --ex=*)
  1030. exec_prefix=$ac_optarg ;;
  1031. -gas | --gas | --ga | --g)
  1032. # Obsolete; use --with-gas.
  1033. with_gas=yes ;;
  1034. -help | --help | --hel | --he | -h)
  1035. ac_init_help=long ;;
  1036. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1037. ac_init_help=recursive ;;
  1038. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1039. ac_init_help=short ;;
  1040. -host | --host | --hos | --ho)
  1041. ac_prev=host_alias ;;
  1042. -host=* | --host=* | --hos=* | --ho=*)
  1043. host_alias=$ac_optarg ;;
  1044. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1045. ac_prev=htmldir ;;
  1046. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1047. | --ht=*)
  1048. htmldir=$ac_optarg ;;
  1049. -includedir | --includedir | --includedi | --included | --include \
  1050. | --includ | --inclu | --incl | --inc)
  1051. ac_prev=includedir ;;
  1052. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1053. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1054. includedir=$ac_optarg ;;
  1055. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1056. ac_prev=infodir ;;
  1057. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1058. infodir=$ac_optarg ;;
  1059. -libdir | --libdir | --libdi | --libd)
  1060. ac_prev=libdir ;;
  1061. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1062. libdir=$ac_optarg ;;
  1063. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1064. | --libexe | --libex | --libe)
  1065. ac_prev=libexecdir ;;
  1066. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1067. | --libexe=* | --libex=* | --libe=*)
  1068. libexecdir=$ac_optarg ;;
  1069. -localedir | --localedir | --localedi | --localed | --locale)
  1070. ac_prev=localedir ;;
  1071. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1072. localedir=$ac_optarg ;;
  1073. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1074. | --localstate | --localstat | --localsta | --localst | --locals)
  1075. ac_prev=localstatedir ;;
  1076. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1077. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1078. localstatedir=$ac_optarg ;;
  1079. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1080. ac_prev=mandir ;;
  1081. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1082. mandir=$ac_optarg ;;
  1083. -nfp | --nfp | --nf)
  1084. # Obsolete; use --without-fp.
  1085. with_fp=no ;;
  1086. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1087. | --no-cr | --no-c | -n)
  1088. no_create=yes ;;
  1089. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1090. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1091. no_recursion=yes ;;
  1092. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1093. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1094. | --oldin | --oldi | --old | --ol | --o)
  1095. ac_prev=oldincludedir ;;
  1096. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1097. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1098. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1099. oldincludedir=$ac_optarg ;;
  1100. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1101. ac_prev=prefix ;;
  1102. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1103. prefix=$ac_optarg ;;
  1104. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1105. | --program-pre | --program-pr | --program-p)
  1106. ac_prev=program_prefix ;;
  1107. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1108. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1109. program_prefix=$ac_optarg ;;
  1110. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1111. | --program-suf | --program-su | --program-s)
  1112. ac_prev=program_suffix ;;
  1113. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1114. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1115. program_suffix=$ac_optarg ;;
  1116. -program-transform-name | --program-transform-name \
  1117. | --program-transform-nam | --program-transform-na \
  1118. | --program-transform-n | --program-transform- \
  1119. | --program-transform | --program-transfor \
  1120. | --program-transfo | --program-transf \
  1121. | --program-trans | --program-tran \
  1122. | --progr-tra | --program-tr | --program-t)
  1123. ac_prev=program_transform_name ;;
  1124. -program-transform-name=* | --program-transform-name=* \
  1125. | --program-transform-nam=* | --program-transform-na=* \
  1126. | --program-transform-n=* | --program-transform-=* \
  1127. | --program-transform=* | --program-transfor=* \
  1128. | --program-transfo=* | --program-transf=* \
  1129. | --program-trans=* | --program-tran=* \
  1130. | --progr-tra=* | --program-tr=* | --program-t=*)
  1131. program_transform_name=$ac_optarg ;;
  1132. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1133. ac_prev=pdfdir ;;
  1134. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1135. pdfdir=$ac_optarg ;;
  1136. -psdir | --psdir | --psdi | --psd | --ps)
  1137. ac_prev=psdir ;;
  1138. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1139. psdir=$ac_optarg ;;
  1140. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1141. | -silent | --silent | --silen | --sile | --sil)
  1142. silent=yes ;;
  1143. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1144. ac_prev=sbindir ;;
  1145. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1146. | --sbi=* | --sb=*)
  1147. sbindir=$ac_optarg ;;
  1148. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1149. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1150. | --sharedst | --shareds | --shared | --share | --shar \
  1151. | --sha | --sh)
  1152. ac_prev=sharedstatedir ;;
  1153. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1154. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1155. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1156. | --sha=* | --sh=*)
  1157. sharedstatedir=$ac_optarg ;;
  1158. -site | --site | --sit)
  1159. ac_prev=site ;;
  1160. -site=* | --site=* | --sit=*)
  1161. site=$ac_optarg ;;
  1162. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1163. ac_prev=srcdir ;;
  1164. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1165. srcdir=$ac_optarg ;;
  1166. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1167. | --syscon | --sysco | --sysc | --sys | --sy)
  1168. ac_prev=sysconfdir ;;
  1169. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1170. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1171. sysconfdir=$ac_optarg ;;
  1172. -target | --target | --targe | --targ | --tar | --ta | --t)
  1173. ac_prev=target_alias ;;
  1174. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1175. target_alias=$ac_optarg ;;
  1176. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1177. verbose=yes ;;
  1178. -version | --version | --versio | --versi | --vers | -V)
  1179. ac_init_version=: ;;
  1180. -with-* | --with-*)
  1181. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1182. # Reject names that are not valid shell variable names.
  1183. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1184. as_fn_error $? "invalid package name: $ac_useropt"
  1185. ac_useropt_orig=$ac_useropt
  1186. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1187. case $ac_user_opts in
  1188. *"
  1189. "with_$ac_useropt"
  1190. "*) ;;
  1191. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1192. ac_unrecognized_sep=', ';;
  1193. esac
  1194. eval with_$ac_useropt=\$ac_optarg ;;
  1195. -without-* | --without-*)
  1196. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1197. # Reject names that are not valid shell variable names.
  1198. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1199. as_fn_error $? "invalid package name: $ac_useropt"
  1200. ac_useropt_orig=$ac_useropt
  1201. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1202. case $ac_user_opts in
  1203. *"
  1204. "with_$ac_useropt"
  1205. "*) ;;
  1206. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1207. ac_unrecognized_sep=', ';;
  1208. esac
  1209. eval with_$ac_useropt=no ;;
  1210. --x)
  1211. # Obsolete; use --with-x.
  1212. with_x=yes ;;
  1213. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1214. | --x-incl | --x-inc | --x-in | --x-i)
  1215. ac_prev=x_includes ;;
  1216. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1217. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1218. x_includes=$ac_optarg ;;
  1219. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1220. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1221. ac_prev=x_libraries ;;
  1222. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1223. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1224. x_libraries=$ac_optarg ;;
  1225. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1226. Try \`$0 --help' for more information"
  1227. ;;
  1228. *=*)
  1229. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1230. # Reject names that are not valid shell variable names.
  1231. case $ac_envvar in #(
  1232. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1233. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1234. esac
  1235. eval $ac_envvar=\$ac_optarg
  1236. export $ac_envvar ;;
  1237. *)
  1238. # FIXME: should be removed in autoconf 3.0.
  1239. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1240. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1241. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1242. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1243. ;;
  1244. esac
  1245. done
  1246. if test -n "$ac_prev"; then
  1247. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1248. as_fn_error $? "missing argument to $ac_option"
  1249. fi
  1250. if test -n "$ac_unrecognized_opts"; then
  1251. case $enable_option_checking in
  1252. no) ;;
  1253. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1254. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1255. esac
  1256. fi
  1257. # Check all directory arguments for consistency.
  1258. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1259. datadir sysconfdir sharedstatedir localstatedir includedir \
  1260. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1261. libdir localedir mandir
  1262. do
  1263. eval ac_val=\$$ac_var
  1264. # Remove trailing slashes.
  1265. case $ac_val in
  1266. */ )
  1267. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1268. eval $ac_var=\$ac_val;;
  1269. esac
  1270. # Be sure to have absolute directory names.
  1271. case $ac_val in
  1272. [\\/$]* | ?:[\\/]* ) continue;;
  1273. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1274. esac
  1275. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1276. done
  1277. # There might be people who depend on the old broken behavior: `$host'
  1278. # used to hold the argument of --host etc.
  1279. # FIXME: To remove some day.
  1280. build=$build_alias
  1281. host=$host_alias
  1282. target=$target_alias
  1283. # FIXME: To remove some day.
  1284. if test "x$host_alias" != x; then
  1285. if test "x$build_alias" = x; then
  1286. cross_compiling=maybe
  1287. elif test "x$build_alias" != "x$host_alias"; then
  1288. cross_compiling=yes
  1289. fi
  1290. fi
  1291. ac_tool_prefix=
  1292. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1293. test "$silent" = yes && exec 6>/dev/null
  1294. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1295. ac_ls_di=`ls -di .` &&
  1296. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1297. as_fn_error $? "working directory cannot be determined"
  1298. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1299. as_fn_error $? "pwd does not report name of working directory"
  1300. # Find the source files, if location was not specified.
  1301. if test -z "$srcdir"; then
  1302. ac_srcdir_defaulted=yes
  1303. # Try the directory containing this script, then the parent directory.
  1304. ac_confdir=`$as_dirname -- "$as_myself" ||
  1305. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1306. X"$as_myself" : 'X\(//\)[^/]' \| \
  1307. X"$as_myself" : 'X\(//\)$' \| \
  1308. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1309. $as_echo X"$as_myself" |
  1310. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1311. s//\1/
  1312. q
  1313. }
  1314. /^X\(\/\/\)[^/].*/{
  1315. s//\1/
  1316. q
  1317. }
  1318. /^X\(\/\/\)$/{
  1319. s//\1/
  1320. q
  1321. }
  1322. /^X\(\/\).*/{
  1323. s//\1/
  1324. q
  1325. }
  1326. s/.*/./; q'`
  1327. srcdir=$ac_confdir
  1328. if test ! -r "$srcdir/$ac_unique_file"; then
  1329. srcdir=..
  1330. fi
  1331. else
  1332. ac_srcdir_defaulted=no
  1333. fi
  1334. if test ! -r "$srcdir/$ac_unique_file"; then
  1335. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1336. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1337. fi
  1338. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1339. ac_abs_confdir=`(
  1340. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1341. pwd)`
  1342. # When building in place, set srcdir=.
  1343. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1344. srcdir=.
  1345. fi
  1346. # Remove unnecessary trailing slashes from srcdir.
  1347. # Double slashes in file names in object file debugging info
  1348. # mess up M-x gdb in Emacs.
  1349. case $srcdir in
  1350. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1351. esac
  1352. for ac_var in $ac_precious_vars; do
  1353. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1354. eval ac_env_${ac_var}_value=\$${ac_var}
  1355. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1356. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1357. done
  1358. #
  1359. # Report the --help message.
  1360. #
  1361. if test "$ac_init_help" = "long"; then
  1362. # Omit some internal or obsolete options to make the list less imposing.
  1363. # This message is too long to be a string in the A/UX 3.1 sh.
  1364. cat <<_ACEOF
  1365. \`configure' configures this package to adapt to many kinds of systems.
  1366. Usage: $0 [OPTION]... [VAR=VALUE]...
  1367. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1368. VAR=VALUE. See below for descriptions of some of the useful variables.
  1369. Defaults for the options are specified in brackets.
  1370. Configuration:
  1371. -h, --help display this help and exit
  1372. --help=short display options specific to this package
  1373. --help=recursive display the short help of all the included packages
  1374. -V, --version display version information and exit
  1375. -q, --quiet, --silent do not print \`checking ...' messages
  1376. --cache-file=FILE cache test results in FILE [disabled]
  1377. -C, --config-cache alias for \`--cache-file=config.cache'
  1378. -n, --no-create do not create output files
  1379. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1380. Installation directories:
  1381. --prefix=PREFIX install architecture-independent files in PREFIX
  1382. [$ac_default_prefix]
  1383. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1384. [PREFIX]
  1385. By default, \`make install' will install all the files in
  1386. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1387. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1388. for instance \`--prefix=\$HOME'.
  1389. For better control, use the options below.
  1390. Fine tuning of the installation directories:
  1391. --bindir=DIR user executables [EPREFIX/bin]
  1392. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1393. --libexecdir=DIR program executables [EPREFIX/libexec]
  1394. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1395. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1396. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1397. --libdir=DIR object code libraries [EPREFIX/lib]
  1398. --includedir=DIR C header files [PREFIX/include]
  1399. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1400. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1401. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1402. --infodir=DIR info documentation [DATAROOTDIR/info]
  1403. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1404. --mandir=DIR man documentation [DATAROOTDIR/man]
  1405. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1406. --htmldir=DIR html documentation [DOCDIR]
  1407. --dvidir=DIR dvi documentation [DOCDIR]
  1408. --pdfdir=DIR pdf documentation [DOCDIR]
  1409. --psdir=DIR ps documentation [DOCDIR]
  1410. _ACEOF
  1411. cat <<\_ACEOF
  1412. X features:
  1413. --x-includes=DIR X include files are in DIR
  1414. --x-libraries=DIR X library files are in DIR
  1415. System types:
  1416. --build=BUILD configure for building on BUILD [guessed]
  1417. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1418. _ACEOF
  1419. fi
  1420. if test -n "$ac_init_help"; then
  1421. cat <<\_ACEOF
  1422. Optional Features:
  1423. --disable-option-checking ignore unrecognized --enable/--with options
  1424. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1425. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1426. --enable-shared[=PKGS] build shared libraries [default=yes]
  1427. --enable-static[=PKGS] build static libraries [default=yes]
  1428. --enable-fast-install[=PKGS]
  1429. optimize for fast installation [default=yes]
  1430. --disable-libtool-lock avoid locking (might break parallel builds)
  1431. --enable-assertions Enable internal sanity checks
  1432. (auto/disabled/release/enabled/paranoid)
  1433. [[default=auto]]
  1434. --enable-dependency-tracking
  1435. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1436. --enable-libc Use the system C library [[default=yes]]
  1437. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1438. --enable-atomic Enable the atomic operations subsystem
  1439. [[default=yes]]
  1440. --enable-audio Enable the audio subsystem [[default=yes]]
  1441. --enable-video Enable the video subsystem [[default=yes]]
  1442. --enable-render Enable the render subsystem [[default=yes]]
  1443. --enable-events Enable the events subsystem [[default=yes]]
  1444. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1445. --enable-haptic Enable the haptic (force feedback) subsystem
  1446. [[default=yes]]
  1447. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1448. --enable-power Enable the power subsystem [[default=yes]]
  1449. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1450. --enable-threads Enable the threading subsystem [[default=yes]]
  1451. --enable-timers Enable the timer subsystem [[default=yes]]
  1452. --enable-file Enable the file subsystem [[default=yes]]
  1453. --enable-loadso Enable the shared object loading subsystem
  1454. [[default=yes]]
  1455. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1456. --enable-assembly Enable assembly routines [[default=yes]]
  1457. --enable-ssemath Allow GCC to use SSE floating point math
  1458. [[default=maybe]]
  1459. --enable-mmx use MMX assembly routines [[default=yes]]
  1460. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1461. --enable-sse use SSE assembly routines [[default=yes]]
  1462. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1463. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1464. --enable-altivec use Altivec assembly routines [[default=yes]]
  1465. --enable-oss support the OSS audio API [[default=maybe]]
  1466. --enable-alsa support the ALSA audio API [[default=yes]]
  1467. --disable-alsatest Do not try to compile and run a test Alsa program
  1468. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1469. --enable-jack use JACK audio [[default=yes]]
  1470. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1471. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1472. --disable-esdtest Do not try to compile and run a test ESD program
  1473. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1474. --enable-pulseaudio use PulseAudio [[default=yes]]
  1475. --enable-pulseaudio-shared
  1476. dynamically load PulseAudio support [[default=yes]]
  1477. --enable-arts support the Analog Real Time Synthesizer
  1478. [[default=yes]]
  1479. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1480. --enable-nas support the NAS audio API [[default=yes]]
  1481. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1482. --enable-sndio support the sndio audio API [[default=yes]]
  1483. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1484. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1485. --enable-fusionsound-shared
  1486. dynamically load fusionsound audio support
  1487. [[default=yes]]
  1488. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1489. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1490. --enable-libsamplerate use libsamplerate for audio rate conversion
  1491. [[default=yes]]
  1492. --enable-libsamplerate-shared
  1493. dynamically load libsamplerate [[default=yes]]
  1494. --enable-arm-simd use SIMD assembly blitters on ARM [[default=yes]]
  1495. --enable-arm-neon use NEON assembly blitters on ARM [[default=no]]
  1496. --enable-video-wayland use Wayland video driver [[default=yes]]
  1497. --enable-video-wayland-qt-touch
  1498. QtWayland server support for Wayland video driver
  1499. [[default=yes]]
  1500. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1501. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1502. --enable-video-x11 use X11 video driver [[default=yes]]
  1503. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1504. --enable-video-x11-xcursor
  1505. enable X11 Xcursor support [[default=yes]]
  1506. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1507. --enable-video-x11-xinerama
  1508. enable X11 Xinerama support [[default=yes]]
  1509. --enable-video-x11-xinput
  1510. enable X11 XInput extension for manymouse, tablets,
  1511. etc [[default=yes]]
  1512. --enable-video-x11-xrandr
  1513. enable X11 Xrandr extension for fullscreen
  1514. [[default=yes]]
  1515. --enable-video-x11-scrnsaver
  1516. enable X11 screensaver extension [[default=yes]]
  1517. --enable-video-x11-xshape
  1518. enable X11 XShape support [[default=yes]]
  1519. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1520. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1521. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1522. --enable-video-metal include Metal support [[default=yes]]
  1523. --enable-render-metal enable the Metal render driver [[default=yes]]
  1524. --enable-video-directfb use DirectFB video driver [[default=no]]
  1525. --enable-directfb-shared
  1526. dynamically load directfb support [[default=yes]]
  1527. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1528. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1529. --enable-video-dummy use dummy video driver [[default=yes]]
  1530. --enable-video-opengl include OpenGL support [[default=yes]]
  1531. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1532. --enable-video-opengles1
  1533. include OpenGL ES 1.1 support [[default=yes]]
  1534. --enable-video-opengles2
  1535. include OpenGL ES 2.0 support [[default=yes]]
  1536. --enable-video-vulkan include Vulkan support [[default=yes]]
  1537. --enable-libudev enable libudev support [[default=yes]]
  1538. --enable-dbus enable D-Bus support [[default=yes]]
  1539. --enable-ime enable IME support [[default=yes]]
  1540. --enable-ibus enable IBus support [[default=yes]]
  1541. --enable-fcitx enable fcitx support [[default=yes]]
  1542. --enable-input-tslib use the Touchscreen library for input
  1543. [[default=yes]]
  1544. --enable-pthreads use POSIX threads for multi-threading
  1545. [[default=yes]]
  1546. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1547. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1548. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1549. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1550. --enable-hidapi use HIDAPI for low level joystick drivers
  1551. [[default=no]]
  1552. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1553. UNIX [[default=yes]]
  1554. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1555. --enable-backgrounding-signal
  1556. number to use for magic backgrounding signal or 'no'
  1557. [[default=no]]
  1558. --enable-foregrounding-signal
  1559. number to use for magic foregrounding signal or 'no'
  1560. [[default=no]]
  1561. --enable-joystick-virtual
  1562. enable virtual joystick APIs [[default=yes]]
  1563. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1564. --enable-sdl2-config Install sdl2-config [default=yes]
  1565. Optional Packages:
  1566. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1567. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1568. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1569. both]
  1570. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1571. --with-sysroot=DIR Search for dependent libraries within DIR
  1572. (or the compiler's sysroot if not specified).
  1573. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1574. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1575. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1576. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1577. --with-x use the X Window System
  1578. Some influential environment variables:
  1579. CC C compiler command
  1580. CFLAGS C compiler flags
  1581. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1582. nonstandard directory <lib dir>
  1583. LIBS libraries to pass to the linker, e.g. -l<library>
  1584. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1585. you have headers in a nonstandard directory <include dir>
  1586. CPP C preprocessor
  1587. CXX C++ compiler command
  1588. CXXFLAGS C++ compiler flags
  1589. CXXCPP C++ preprocessor
  1590. PKG_CONFIG path to pkg-config utility
  1591. PKG_CONFIG_PATH
  1592. directories to add to pkg-config's search path
  1593. PKG_CONFIG_LIBDIR
  1594. path overriding pkg-config's built-in search path
  1595. JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
  1596. JACK_LIBS linker flags for JACK, overriding pkg-config
  1597. PULSEAUDIO_CFLAGS
  1598. C compiler flags for PULSEAUDIO, overriding pkg-config
  1599. PULSEAUDIO_LIBS
  1600. linker flags for PULSEAUDIO, overriding pkg-config
  1601. FUSIONSOUND_CFLAGS
  1602. C compiler flags for FUSIONSOUND, overriding pkg-config
  1603. FUSIONSOUND_LIBS
  1604. linker flags for FUSIONSOUND, overriding pkg-config
  1605. RPI_CFLAGS C compiler flags for RPI, overriding pkg-config
  1606. RPI_LIBS linker flags for RPI, overriding pkg-config
  1607. XMKMF Path to xmkmf, Makefile generator for X Window System
  1608. DIRECTFB_CFLAGS
  1609. C compiler flags for DIRECTFB, overriding pkg-config
  1610. DIRECTFB_LIBS
  1611. linker flags for DIRECTFB, overriding pkg-config
  1612. LIBDRM_CFLAGS
  1613. C compiler flags for LIBDRM, overriding pkg-config
  1614. LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
  1615. LIBGBM_CFLAGS
  1616. C compiler flags for LIBGBM, overriding pkg-config
  1617. LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
  1618. DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
  1619. DBUS_LIBS linker flags for DBUS, overriding pkg-config
  1620. IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
  1621. IBUS_LIBS linker flags for IBUS, overriding pkg-config
  1622. FCITX_CFLAGS
  1623. C compiler flags for FCITX, overriding pkg-config
  1624. FCITX_LIBS linker flags for FCITX, overriding pkg-config
  1625. LIBUSB_CFLAGS
  1626. C compiler flags for LIBUSB, overriding pkg-config
  1627. LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1628. Use these variables to override the choices made by `configure' or to help
  1629. it to find libraries and programs with nonstandard names/locations.
  1630. Report bugs to the package provider.
  1631. _ACEOF
  1632. ac_status=$?
  1633. fi
  1634. if test "$ac_init_help" = "recursive"; then
  1635. # If there are subdirs, report their specific --help.
  1636. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1637. test -d "$ac_dir" ||
  1638. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1639. continue
  1640. ac_builddir=.
  1641. case "$ac_dir" in
  1642. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1643. *)
  1644. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1645. # A ".." for each directory in $ac_dir_suffix.
  1646. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1647. case $ac_top_builddir_sub in
  1648. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1649. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1650. esac ;;
  1651. esac
  1652. ac_abs_top_builddir=$ac_pwd
  1653. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1654. # for backward compatibility:
  1655. ac_top_builddir=$ac_top_build_prefix
  1656. case $srcdir in
  1657. .) # We are building in place.
  1658. ac_srcdir=.
  1659. ac_top_srcdir=$ac_top_builddir_sub
  1660. ac_abs_top_srcdir=$ac_pwd ;;
  1661. [\\/]* | ?:[\\/]* ) # Absolute name.
  1662. ac_srcdir=$srcdir$ac_dir_suffix;
  1663. ac_top_srcdir=$srcdir
  1664. ac_abs_top_srcdir=$srcdir ;;
  1665. *) # Relative name.
  1666. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1667. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1668. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1669. esac
  1670. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1671. cd "$ac_dir" || { ac_status=$?; continue; }
  1672. # Check for guested configure.
  1673. if test -f "$ac_srcdir/configure.gnu"; then
  1674. echo &&
  1675. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1676. elif test -f "$ac_srcdir/configure"; then
  1677. echo &&
  1678. $SHELL "$ac_srcdir/configure" --help=recursive
  1679. else
  1680. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1681. fi || ac_status=$?
  1682. cd "$ac_pwd" || { ac_status=$?; break; }
  1683. done
  1684. fi
  1685. test -n "$ac_init_help" && exit $ac_status
  1686. if $ac_init_version; then
  1687. cat <<\_ACEOF
  1688. configure
  1689. generated by GNU Autoconf 2.69
  1690. Copyright (C) 2012 Free Software Foundation, Inc.
  1691. This configure script is free software; the Free Software Foundation
  1692. gives unlimited permission to copy, distribute and modify it.
  1693. _ACEOF
  1694. exit
  1695. fi
  1696. ## ------------------------ ##
  1697. ## Autoconf initialization. ##
  1698. ## ------------------------ ##
  1699. # ac_fn_c_try_compile LINENO
  1700. # --------------------------
  1701. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1702. ac_fn_c_try_compile ()
  1703. {
  1704. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1705. rm -f conftest.$ac_objext
  1706. if { { ac_try="$ac_compile"
  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_compile") 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; } && {
  1722. test -z "$ac_c_werror_flag" ||
  1723. test ! -s conftest.err
  1724. } && test -s conftest.$ac_objext; 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_compile
  1734. # ac_fn_c_try_link LINENO
  1735. # -----------------------
  1736. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1737. ac_fn_c_try_link ()
  1738. {
  1739. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1740. rm -f conftest.$ac_objext conftest$ac_exeext
  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>conftest.err
  1749. ac_status=$?
  1750. if test -s conftest.err; then
  1751. grep -v '^ *+' conftest.err >conftest.er1
  1752. cat conftest.er1 >&5
  1753. mv -f conftest.er1 conftest.err
  1754. fi
  1755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1756. test $ac_status = 0; } && {
  1757. test -z "$ac_c_werror_flag" ||
  1758. test ! -s conftest.err
  1759. } && test -s conftest$ac_exeext && {
  1760. test "$cross_compiling" = yes ||
  1761. test -x conftest$ac_exeext
  1762. }; then :
  1763. ac_retval=0
  1764. else
  1765. $as_echo "$as_me: failed program was:" >&5
  1766. sed 's/^/| /' conftest.$ac_ext >&5
  1767. ac_retval=1
  1768. fi
  1769. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1770. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1771. # interfere with the next link command; also delete a directory that is
  1772. # left behind by Apple's compiler. We do this before executing the actions.
  1773. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1774. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1775. as_fn_set_status $ac_retval
  1776. } # ac_fn_c_try_link
  1777. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1778. # -------------------------------------------------------
  1779. # Tests whether HEADER exists and can be compiled using the include files in
  1780. # INCLUDES, setting the cache variable VAR accordingly.
  1781. ac_fn_c_check_header_compile ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1785. $as_echo_n "checking for $2... " >&6; }
  1786. if eval \${$3+:} false; then :
  1787. $as_echo_n "(cached) " >&6
  1788. else
  1789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1790. /* end confdefs.h. */
  1791. $4
  1792. #include <$2>
  1793. _ACEOF
  1794. if ac_fn_c_try_compile "$LINENO"; then :
  1795. eval "$3=yes"
  1796. else
  1797. eval "$3=no"
  1798. fi
  1799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1800. fi
  1801. eval ac_res=\$$3
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1803. $as_echo "$ac_res" >&6; }
  1804. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1805. } # ac_fn_c_check_header_compile
  1806. # ac_fn_c_try_cpp LINENO
  1807. # ----------------------
  1808. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1809. ac_fn_c_try_cpp ()
  1810. {
  1811. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1812. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1813. case "(($ac_try" in
  1814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1815. *) ac_try_echo=$ac_try;;
  1816. esac
  1817. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1818. $as_echo "$ac_try_echo"; } >&5
  1819. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1820. ac_status=$?
  1821. if test -s conftest.err; then
  1822. grep -v '^ *+' conftest.err >conftest.er1
  1823. cat conftest.er1 >&5
  1824. mv -f conftest.er1 conftest.err
  1825. fi
  1826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1827. test $ac_status = 0; } > conftest.i && {
  1828. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1829. test ! -s conftest.err
  1830. }; then :
  1831. ac_retval=0
  1832. else
  1833. $as_echo "$as_me: failed program was:" >&5
  1834. sed 's/^/| /' conftest.$ac_ext >&5
  1835. ac_retval=1
  1836. fi
  1837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1838. as_fn_set_status $ac_retval
  1839. } # ac_fn_c_try_cpp
  1840. # ac_fn_c_try_run LINENO
  1841. # ----------------------
  1842. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1843. # that executables *can* be run.
  1844. ac_fn_c_try_run ()
  1845. {
  1846. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1847. if { { ac_try="$ac_link"
  1848. case "(($ac_try" in
  1849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1850. *) ac_try_echo=$ac_try;;
  1851. esac
  1852. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1853. $as_echo "$ac_try_echo"; } >&5
  1854. (eval "$ac_link") 2>&5
  1855. ac_status=$?
  1856. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1857. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1858. { { case "(($ac_try" in
  1859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1860. *) ac_try_echo=$ac_try;;
  1861. esac
  1862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1863. $as_echo "$ac_try_echo"; } >&5
  1864. (eval "$ac_try") 2>&5
  1865. ac_status=$?
  1866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1867. test $ac_status = 0; }; }; then :
  1868. ac_retval=0
  1869. else
  1870. $as_echo "$as_me: program exited with status $ac_status" >&5
  1871. $as_echo "$as_me: failed program was:" >&5
  1872. sed 's/^/| /' conftest.$ac_ext >&5
  1873. ac_retval=$ac_status
  1874. fi
  1875. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1876. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1877. as_fn_set_status $ac_retval
  1878. } # ac_fn_c_try_run
  1879. # ac_fn_c_check_func LINENO FUNC VAR
  1880. # ----------------------------------
  1881. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1882. ac_fn_c_check_func ()
  1883. {
  1884. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1886. $as_echo_n "checking for $2... " >&6; }
  1887. if eval \${$3+:} false; then :
  1888. $as_echo_n "(cached) " >&6
  1889. else
  1890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1891. /* end confdefs.h. */
  1892. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1893. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1894. #define $2 innocuous_$2
  1895. /* System header to define __stub macros and hopefully few prototypes,
  1896. which can conflict with char $2 (); below.
  1897. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1898. <limits.h> exists even on freestanding compilers. */
  1899. #ifdef __STDC__
  1900. # include <limits.h>
  1901. #else
  1902. # include <assert.h>
  1903. #endif
  1904. #undef $2
  1905. /* Override any GCC internal prototype to avoid an error.
  1906. Use char because int might match the return type of a GCC
  1907. builtin and then its argument prototype would still apply. */
  1908. #ifdef __cplusplus
  1909. extern "C"
  1910. #endif
  1911. char $2 ();
  1912. /* The GNU C library defines this for functions which it implements
  1913. to always fail with ENOSYS. Some functions are actually named
  1914. something starting with __ and the normal name is an alias. */
  1915. #if defined __stub_$2 || defined __stub___$2
  1916. choke me
  1917. #endif
  1918. int
  1919. main ()
  1920. {
  1921. return $2 ();
  1922. ;
  1923. return 0;
  1924. }
  1925. _ACEOF
  1926. if ac_fn_c_try_link "$LINENO"; then :
  1927. eval "$3=yes"
  1928. else
  1929. eval "$3=no"
  1930. fi
  1931. rm -f core conftest.err conftest.$ac_objext \
  1932. conftest$ac_exeext conftest.$ac_ext
  1933. fi
  1934. eval ac_res=\$$3
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1936. $as_echo "$ac_res" >&6; }
  1937. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1938. } # ac_fn_c_check_func
  1939. # ac_fn_cxx_try_compile LINENO
  1940. # ----------------------------
  1941. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1942. ac_fn_cxx_try_compile ()
  1943. {
  1944. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1945. rm -f conftest.$ac_objext
  1946. if { { ac_try="$ac_compile"
  1947. case "(($ac_try" in
  1948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1949. *) ac_try_echo=$ac_try;;
  1950. esac
  1951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1952. $as_echo "$ac_try_echo"; } >&5
  1953. (eval "$ac_compile") 2>conftest.err
  1954. ac_status=$?
  1955. if test -s conftest.err; then
  1956. grep -v '^ *+' conftest.err >conftest.er1
  1957. cat conftest.er1 >&5
  1958. mv -f conftest.er1 conftest.err
  1959. fi
  1960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1961. test $ac_status = 0; } && {
  1962. test -z "$ac_cxx_werror_flag" ||
  1963. test ! -s conftest.err
  1964. } && test -s conftest.$ac_objext; then :
  1965. ac_retval=0
  1966. else
  1967. $as_echo "$as_me: failed program was:" >&5
  1968. sed 's/^/| /' conftest.$ac_ext >&5
  1969. ac_retval=1
  1970. fi
  1971. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1972. as_fn_set_status $ac_retval
  1973. } # ac_fn_cxx_try_compile
  1974. # ac_fn_cxx_try_cpp LINENO
  1975. # ------------------------
  1976. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1977. ac_fn_cxx_try_cpp ()
  1978. {
  1979. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1980. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1981. case "(($ac_try" in
  1982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1983. *) ac_try_echo=$ac_try;;
  1984. esac
  1985. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1986. $as_echo "$ac_try_echo"; } >&5
  1987. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1988. ac_status=$?
  1989. if test -s conftest.err; then
  1990. grep -v '^ *+' conftest.err >conftest.er1
  1991. cat conftest.er1 >&5
  1992. mv -f conftest.er1 conftest.err
  1993. fi
  1994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1995. test $ac_status = 0; } > conftest.i && {
  1996. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1997. test ! -s conftest.err
  1998. }; then :
  1999. ac_retval=0
  2000. else
  2001. $as_echo "$as_me: failed program was:" >&5
  2002. sed 's/^/| /' conftest.$ac_ext >&5
  2003. ac_retval=1
  2004. fi
  2005. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2006. as_fn_set_status $ac_retval
  2007. } # ac_fn_cxx_try_cpp
  2008. # ac_fn_cxx_try_link LINENO
  2009. # -------------------------
  2010. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2011. ac_fn_cxx_try_link ()
  2012. {
  2013. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2014. rm -f conftest.$ac_objext conftest$ac_exeext
  2015. if { { ac_try="$ac_link"
  2016. case "(($ac_try" in
  2017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2018. *) ac_try_echo=$ac_try;;
  2019. esac
  2020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2021. $as_echo "$ac_try_echo"; } >&5
  2022. (eval "$ac_link") 2>conftest.err
  2023. ac_status=$?
  2024. if test -s conftest.err; then
  2025. grep -v '^ *+' conftest.err >conftest.er1
  2026. cat conftest.er1 >&5
  2027. mv -f conftest.er1 conftest.err
  2028. fi
  2029. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2030. test $ac_status = 0; } && {
  2031. test -z "$ac_cxx_werror_flag" ||
  2032. test ! -s conftest.err
  2033. } && test -s conftest$ac_exeext && {
  2034. test "$cross_compiling" = yes ||
  2035. test -x conftest$ac_exeext
  2036. }; then :
  2037. ac_retval=0
  2038. else
  2039. $as_echo "$as_me: failed program was:" >&5
  2040. sed 's/^/| /' conftest.$ac_ext >&5
  2041. ac_retval=1
  2042. fi
  2043. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2044. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2045. # interfere with the next link command; also delete a directory that is
  2046. # left behind by Apple's compiler. We do this before executing the actions.
  2047. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2048. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2049. as_fn_set_status $ac_retval
  2050. } # ac_fn_cxx_try_link
  2051. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2052. # -------------------------------------------------------
  2053. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2054. # the include files in INCLUDES and setting the cache variable VAR
  2055. # accordingly.
  2056. ac_fn_c_check_header_mongrel ()
  2057. {
  2058. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2059. if eval \${$3+:} false; then :
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2061. $as_echo_n "checking for $2... " >&6; }
  2062. if eval \${$3+:} false; then :
  2063. $as_echo_n "(cached) " >&6
  2064. fi
  2065. eval ac_res=\$$3
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2067. $as_echo "$ac_res" >&6; }
  2068. else
  2069. # Is the header compilable?
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2071. $as_echo_n "checking $2 usability... " >&6; }
  2072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2073. /* end confdefs.h. */
  2074. $4
  2075. #include <$2>
  2076. _ACEOF
  2077. if ac_fn_c_try_compile "$LINENO"; then :
  2078. ac_header_compiler=yes
  2079. else
  2080. ac_header_compiler=no
  2081. fi
  2082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2084. $as_echo "$ac_header_compiler" >&6; }
  2085. # Is the header present?
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2087. $as_echo_n "checking $2 presence... " >&6; }
  2088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2089. /* end confdefs.h. */
  2090. #include <$2>
  2091. _ACEOF
  2092. if ac_fn_c_try_cpp "$LINENO"; then :
  2093. ac_header_preproc=yes
  2094. else
  2095. ac_header_preproc=no
  2096. fi
  2097. rm -f conftest.err conftest.i conftest.$ac_ext
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2099. $as_echo "$ac_header_preproc" >&6; }
  2100. # So? What about this header?
  2101. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2102. yes:no: )
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2104. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2106. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2107. ;;
  2108. no:yes:* )
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2110. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2112. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2114. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2116. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2117. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2118. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2119. ;;
  2120. esac
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2122. $as_echo_n "checking for $2... " >&6; }
  2123. if eval \${$3+:} false; then :
  2124. $as_echo_n "(cached) " >&6
  2125. else
  2126. eval "$3=\$ac_header_compiler"
  2127. fi
  2128. eval ac_res=\$$3
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2130. $as_echo "$ac_res" >&6; }
  2131. fi
  2132. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2133. } # ac_fn_c_check_header_mongrel
  2134. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2135. # -------------------------------------------
  2136. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2137. # variable VAR accordingly.
  2138. ac_fn_c_check_type ()
  2139. {
  2140. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2142. $as_echo_n "checking for $2... " >&6; }
  2143. if eval \${$3+:} false; then :
  2144. $as_echo_n "(cached) " >&6
  2145. else
  2146. eval "$3=no"
  2147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2148. /* end confdefs.h. */
  2149. $4
  2150. int
  2151. main ()
  2152. {
  2153. if (sizeof ($2))
  2154. return 0;
  2155. ;
  2156. return 0;
  2157. }
  2158. _ACEOF
  2159. if ac_fn_c_try_compile "$LINENO"; then :
  2160. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2161. /* end confdefs.h. */
  2162. $4
  2163. int
  2164. main ()
  2165. {
  2166. if (sizeof (($2)))
  2167. return 0;
  2168. ;
  2169. return 0;
  2170. }
  2171. _ACEOF
  2172. if ac_fn_c_try_compile "$LINENO"; then :
  2173. else
  2174. eval "$3=yes"
  2175. fi
  2176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2177. fi
  2178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2179. fi
  2180. eval ac_res=\$$3
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2182. $as_echo "$ac_res" >&6; }
  2183. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2184. } # ac_fn_c_check_type
  2185. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2186. # ----------------------------------------------------
  2187. # Tries to find if the field MEMBER exists in type AGGR, after including
  2188. # INCLUDES, setting cache variable VAR accordingly.
  2189. ac_fn_c_check_member ()
  2190. {
  2191. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2193. $as_echo_n "checking for $2.$3... " >&6; }
  2194. if eval \${$4+:} false; then :
  2195. $as_echo_n "(cached) " >&6
  2196. else
  2197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2198. /* end confdefs.h. */
  2199. $5
  2200. int
  2201. main ()
  2202. {
  2203. static $2 ac_aggr;
  2204. if (ac_aggr.$3)
  2205. return 0;
  2206. ;
  2207. return 0;
  2208. }
  2209. _ACEOF
  2210. if ac_fn_c_try_compile "$LINENO"; then :
  2211. eval "$4=yes"
  2212. else
  2213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2214. /* end confdefs.h. */
  2215. $5
  2216. int
  2217. main ()
  2218. {
  2219. static $2 ac_aggr;
  2220. if (sizeof ac_aggr.$3)
  2221. return 0;
  2222. ;
  2223. return 0;
  2224. }
  2225. _ACEOF
  2226. if ac_fn_c_try_compile "$LINENO"; then :
  2227. eval "$4=yes"
  2228. else
  2229. eval "$4=no"
  2230. fi
  2231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2232. fi
  2233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2234. fi
  2235. eval ac_res=\$$4
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2237. $as_echo "$ac_res" >&6; }
  2238. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2239. } # ac_fn_c_check_member
  2240. cat >config.log <<_ACEOF
  2241. This file contains any messages produced by compilers while
  2242. running configure, to aid debugging if configure makes a mistake.
  2243. It was created by $as_me, which was
  2244. generated by GNU Autoconf 2.69. Invocation command line was
  2245. $ $0 $@
  2246. _ACEOF
  2247. exec 5>>config.log
  2248. {
  2249. cat <<_ASUNAME
  2250. ## --------- ##
  2251. ## Platform. ##
  2252. ## --------- ##
  2253. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2254. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2255. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2256. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2257. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2258. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2259. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2260. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2261. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2262. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2263. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2264. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2265. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2266. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2267. _ASUNAME
  2268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2269. for as_dir in $PATH
  2270. do
  2271. IFS=$as_save_IFS
  2272. test -z "$as_dir" && as_dir=.
  2273. $as_echo "PATH: $as_dir"
  2274. done
  2275. IFS=$as_save_IFS
  2276. } >&5
  2277. cat >&5 <<_ACEOF
  2278. ## ----------- ##
  2279. ## Core tests. ##
  2280. ## ----------- ##
  2281. _ACEOF
  2282. # Keep a trace of the command line.
  2283. # Strip out --no-create and --no-recursion so they do not pile up.
  2284. # Strip out --silent because we don't want to record it for future runs.
  2285. # Also quote any args containing shell meta-characters.
  2286. # Make two passes to allow for proper duplicate-argument suppression.
  2287. ac_configure_args=
  2288. ac_configure_args0=
  2289. ac_configure_args1=
  2290. ac_must_keep_next=false
  2291. for ac_pass in 1 2
  2292. do
  2293. for ac_arg
  2294. do
  2295. case $ac_arg in
  2296. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2297. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2298. | -silent | --silent | --silen | --sile | --sil)
  2299. continue ;;
  2300. *\'*)
  2301. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2302. esac
  2303. case $ac_pass in
  2304. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2305. 2)
  2306. as_fn_append ac_configure_args1 " '$ac_arg'"
  2307. if test $ac_must_keep_next = true; then
  2308. ac_must_keep_next=false # Got value, back to normal.
  2309. else
  2310. case $ac_arg in
  2311. *=* | --config-cache | -C | -disable-* | --disable-* \
  2312. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2313. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2314. | -with-* | --with-* | -without-* | --without-* | --x)
  2315. case "$ac_configure_args0 " in
  2316. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2317. esac
  2318. ;;
  2319. -* ) ac_must_keep_next=true ;;
  2320. esac
  2321. fi
  2322. as_fn_append ac_configure_args " '$ac_arg'"
  2323. ;;
  2324. esac
  2325. done
  2326. done
  2327. { ac_configure_args0=; unset ac_configure_args0;}
  2328. { ac_configure_args1=; unset ac_configure_args1;}
  2329. # When interrupted or exit'd, cleanup temporary files, and complete
  2330. # config.log. We remove comments because anyway the quotes in there
  2331. # would cause problems or look ugly.
  2332. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2333. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2334. trap 'exit_status=$?
  2335. # Save into config.log some information that might help in debugging.
  2336. {
  2337. echo
  2338. $as_echo "## ---------------- ##
  2339. ## Cache variables. ##
  2340. ## ---------------- ##"
  2341. echo
  2342. # The following way of writing the cache mishandles newlines in values,
  2343. (
  2344. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2345. eval ac_val=\$$ac_var
  2346. case $ac_val in #(
  2347. *${as_nl}*)
  2348. case $ac_var in #(
  2349. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2350. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2351. esac
  2352. case $ac_var in #(
  2353. _ | IFS | as_nl) ;; #(
  2354. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2355. *) { eval $ac_var=; unset $ac_var;} ;;
  2356. esac ;;
  2357. esac
  2358. done
  2359. (set) 2>&1 |
  2360. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2361. *${as_nl}ac_space=\ *)
  2362. sed -n \
  2363. "s/'\''/'\''\\\\'\'''\''/g;
  2364. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2365. ;; #(
  2366. *)
  2367. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2368. ;;
  2369. esac |
  2370. sort
  2371. )
  2372. echo
  2373. $as_echo "## ----------------- ##
  2374. ## Output variables. ##
  2375. ## ----------------- ##"
  2376. echo
  2377. for ac_var in $ac_subst_vars
  2378. do
  2379. eval ac_val=\$$ac_var
  2380. case $ac_val in
  2381. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2382. esac
  2383. $as_echo "$ac_var='\''$ac_val'\''"
  2384. done | sort
  2385. echo
  2386. if test -n "$ac_subst_files"; then
  2387. $as_echo "## ------------------- ##
  2388. ## File substitutions. ##
  2389. ## ------------------- ##"
  2390. echo
  2391. for ac_var in $ac_subst_files
  2392. do
  2393. eval ac_val=\$$ac_var
  2394. case $ac_val in
  2395. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2396. esac
  2397. $as_echo "$ac_var='\''$ac_val'\''"
  2398. done | sort
  2399. echo
  2400. fi
  2401. if test -s confdefs.h; then
  2402. $as_echo "## ----------- ##
  2403. ## confdefs.h. ##
  2404. ## ----------- ##"
  2405. echo
  2406. cat confdefs.h
  2407. echo
  2408. fi
  2409. test "$ac_signal" != 0 &&
  2410. $as_echo "$as_me: caught signal $ac_signal"
  2411. $as_echo "$as_me: exit $exit_status"
  2412. } >&5
  2413. rm -f core *.core core.conftest.* &&
  2414. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2415. exit $exit_status
  2416. ' 0
  2417. for ac_signal in 1 2 13 15; do
  2418. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2419. done
  2420. ac_signal=0
  2421. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2422. rm -f -r conftest* confdefs.h
  2423. $as_echo "/* confdefs.h */" > confdefs.h
  2424. # Predefined preprocessor variables.
  2425. cat >>confdefs.h <<_ACEOF
  2426. #define PACKAGE_NAME "$PACKAGE_NAME"
  2427. _ACEOF
  2428. cat >>confdefs.h <<_ACEOF
  2429. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2430. _ACEOF
  2431. cat >>confdefs.h <<_ACEOF
  2432. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2433. _ACEOF
  2434. cat >>confdefs.h <<_ACEOF
  2435. #define PACKAGE_STRING "$PACKAGE_STRING"
  2436. _ACEOF
  2437. cat >>confdefs.h <<_ACEOF
  2438. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2439. _ACEOF
  2440. cat >>confdefs.h <<_ACEOF
  2441. #define PACKAGE_URL "$PACKAGE_URL"
  2442. _ACEOF
  2443. # Let the site file select an alternate cache file if it wants to.
  2444. # Prefer an explicitly selected file to automatically selected ones.
  2445. ac_site_file1=NONE
  2446. ac_site_file2=NONE
  2447. if test -n "$CONFIG_SITE"; then
  2448. # We do not want a PATH search for config.site.
  2449. case $CONFIG_SITE in #((
  2450. -*) ac_site_file1=./$CONFIG_SITE;;
  2451. */*) ac_site_file1=$CONFIG_SITE;;
  2452. *) ac_site_file1=./$CONFIG_SITE;;
  2453. esac
  2454. elif test "x$prefix" != xNONE; then
  2455. ac_site_file1=$prefix/share/config.site
  2456. ac_site_file2=$prefix/etc/config.site
  2457. else
  2458. ac_site_file1=$ac_default_prefix/share/config.site
  2459. ac_site_file2=$ac_default_prefix/etc/config.site
  2460. fi
  2461. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2462. do
  2463. test "x$ac_site_file" = xNONE && continue
  2464. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2466. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2467. sed 's/^/| /' "$ac_site_file" >&5
  2468. . "$ac_site_file" \
  2469. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2470. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2471. as_fn_error $? "failed to load site script $ac_site_file
  2472. See \`config.log' for more details" "$LINENO" 5; }
  2473. fi
  2474. done
  2475. if test -r "$cache_file"; then
  2476. # Some versions of bash will fail to source /dev/null (special files
  2477. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2478. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2480. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2481. case $cache_file in
  2482. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2483. *) . "./$cache_file";;
  2484. esac
  2485. fi
  2486. else
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2488. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2489. >$cache_file
  2490. fi
  2491. # Check that the precious variables saved in the cache have kept the same
  2492. # value.
  2493. ac_cache_corrupted=false
  2494. for ac_var in $ac_precious_vars; do
  2495. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2496. eval ac_new_set=\$ac_env_${ac_var}_set
  2497. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2498. eval ac_new_val=\$ac_env_${ac_var}_value
  2499. case $ac_old_set,$ac_new_set in
  2500. set,)
  2501. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2502. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2503. ac_cache_corrupted=: ;;
  2504. ,set)
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2506. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2507. ac_cache_corrupted=: ;;
  2508. ,);;
  2509. *)
  2510. if test "x$ac_old_val" != "x$ac_new_val"; then
  2511. # differences in whitespace do not lead to failure.
  2512. ac_old_val_w=`echo x $ac_old_val`
  2513. ac_new_val_w=`echo x $ac_new_val`
  2514. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2516. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2517. ac_cache_corrupted=:
  2518. else
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2520. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2521. eval $ac_var=\$ac_old_val
  2522. fi
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2524. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2526. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2527. fi;;
  2528. esac
  2529. # Pass precious variables to config.status.
  2530. if test "$ac_new_set" = set; then
  2531. case $ac_new_val in
  2532. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2533. *) ac_arg=$ac_var=$ac_new_val ;;
  2534. esac
  2535. case " $ac_configure_args " in
  2536. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2537. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2538. esac
  2539. fi
  2540. done
  2541. if $ac_cache_corrupted; then
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2543. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2545. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2546. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2547. fi
  2548. ## -------------------- ##
  2549. ## Main body of script. ##
  2550. ## -------------------- ##
  2551. ac_ext=c
  2552. ac_cpp='$CPP $CPPFLAGS'
  2553. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2554. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2555. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2556. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2557. ac_aux_dir=
  2558. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2559. if test -f "$ac_dir/install-sh"; then
  2560. ac_aux_dir=$ac_dir
  2561. ac_install_sh="$ac_aux_dir/install-sh -c"
  2562. break
  2563. elif test -f "$ac_dir/install.sh"; then
  2564. ac_aux_dir=$ac_dir
  2565. ac_install_sh="$ac_aux_dir/install.sh -c"
  2566. break
  2567. elif test -f "$ac_dir/shtool"; then
  2568. ac_aux_dir=$ac_dir
  2569. ac_install_sh="$ac_aux_dir/shtool install -c"
  2570. break
  2571. fi
  2572. done
  2573. if test -z "$ac_aux_dir"; then
  2574. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2575. fi
  2576. # These three variables are undocumented and unsupported,
  2577. # and are intended to be withdrawn in a future Autoconf release.
  2578. # They can cause serious problems if a builder's source tree is in a directory
  2579. # whose full name contains unusual characters.
  2580. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2581. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2582. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2583. orig_CFLAGS="$CFLAGS"
  2584. #
  2585. # Making releases:
  2586. # Edit include/SDL_version.h and change the version, then:
  2587. # SDL_MICRO_VERSION += 1;
  2588. # SDL_INTERFACE_AGE += 1;
  2589. # SDL_BINARY_AGE += 1;
  2590. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2591. # if backwards compatibility has been broken,
  2592. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2593. #
  2594. SDL_MAJOR_VERSION=2
  2595. SDL_MINOR_VERSION=0
  2596. SDL_MICRO_VERSION=13
  2597. SDL_INTERFACE_AGE=1
  2598. SDL_BINARY_AGE=13
  2599. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2600. # libtool versioning
  2601. case `pwd` in
  2602. *\ * | *\ *)
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2604. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2605. esac
  2606. macro_version='2.4.2'
  2607. macro_revision='1.3337'
  2608. ltmain="$ac_aux_dir/ltmain.sh"
  2609. # Make sure we can run config.sub.
  2610. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2611. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2613. $as_echo_n "checking build system type... " >&6; }
  2614. if ${ac_cv_build+:} false; then :
  2615. $as_echo_n "(cached) " >&6
  2616. else
  2617. ac_build_alias=$build_alias
  2618. test "x$ac_build_alias" = x &&
  2619. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2620. test "x$ac_build_alias" = x &&
  2621. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2622. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2623. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2624. fi
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2626. $as_echo "$ac_cv_build" >&6; }
  2627. case $ac_cv_build in
  2628. *-*-*) ;;
  2629. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2630. esac
  2631. build=$ac_cv_build
  2632. ac_save_IFS=$IFS; IFS='-'
  2633. set x $ac_cv_build
  2634. shift
  2635. build_cpu=$1
  2636. build_vendor=$2
  2637. shift; shift
  2638. # Remember, the first character of IFS is used to create $*,
  2639. # except with old shells:
  2640. build_os=$*
  2641. IFS=$ac_save_IFS
  2642. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2644. $as_echo_n "checking host system type... " >&6; }
  2645. if ${ac_cv_host+:} false; then :
  2646. $as_echo_n "(cached) " >&6
  2647. else
  2648. if test "x$host_alias" = x; then
  2649. ac_cv_host=$ac_cv_build
  2650. else
  2651. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2652. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2653. fi
  2654. fi
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2656. $as_echo "$ac_cv_host" >&6; }
  2657. case $ac_cv_host in
  2658. *-*-*) ;;
  2659. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2660. esac
  2661. host=$ac_cv_host
  2662. ac_save_IFS=$IFS; IFS='-'
  2663. set x $ac_cv_host
  2664. shift
  2665. host_cpu=$1
  2666. host_vendor=$2
  2667. shift; shift
  2668. # Remember, the first character of IFS is used to create $*,
  2669. # except with old shells:
  2670. host_os=$*
  2671. IFS=$ac_save_IFS
  2672. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2673. # Backslashify metacharacters that are still active within
  2674. # double-quoted strings.
  2675. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2676. # Same as above, but do not quote variable references.
  2677. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2678. # Sed substitution to delay expansion of an escaped shell variable in a
  2679. # double_quote_subst'ed string.
  2680. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2681. # Sed substitution to delay expansion of an escaped single quote.
  2682. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2683. # Sed substitution to avoid accidental globbing in evaled expressions
  2684. no_glob_subst='s/\*/\\\*/g'
  2685. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2686. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2687. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2689. $as_echo_n "checking how to print strings... " >&6; }
  2690. # Test print first, because it will be a builtin if present.
  2691. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2692. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2693. ECHO='print -r --'
  2694. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2695. ECHO='printf %s\n'
  2696. else
  2697. # Use this function as a fallback that always works.
  2698. func_fallback_echo ()
  2699. {
  2700. eval 'cat <<_LTECHO_EOF
  2701. $1
  2702. _LTECHO_EOF'
  2703. }
  2704. ECHO='func_fallback_echo'
  2705. fi
  2706. # func_echo_all arg...
  2707. # Invoke $ECHO with all args, space-separated.
  2708. func_echo_all ()
  2709. {
  2710. $ECHO ""
  2711. }
  2712. case "$ECHO" in
  2713. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2714. $as_echo "printf" >&6; } ;;
  2715. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2716. $as_echo "print -r" >&6; } ;;
  2717. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2718. $as_echo "cat" >&6; } ;;
  2719. esac
  2720. ac_ext=c
  2721. ac_cpp='$CPP $CPPFLAGS'
  2722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2725. if test -n "$ac_tool_prefix"; then
  2726. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2727. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2729. $as_echo_n "checking for $ac_word... " >&6; }
  2730. if ${ac_cv_prog_CC+:} false; then :
  2731. $as_echo_n "(cached) " >&6
  2732. else
  2733. if test -n "$CC"; then
  2734. ac_cv_prog_CC="$CC" # Let the user override the test.
  2735. else
  2736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2737. for as_dir in $PATH
  2738. do
  2739. IFS=$as_save_IFS
  2740. test -z "$as_dir" && as_dir=.
  2741. for ac_exec_ext in '' $ac_executable_extensions; do
  2742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2743. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2745. break 2
  2746. fi
  2747. done
  2748. done
  2749. IFS=$as_save_IFS
  2750. fi
  2751. fi
  2752. CC=$ac_cv_prog_CC
  2753. if test -n "$CC"; then
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2755. $as_echo "$CC" >&6; }
  2756. else
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2758. $as_echo "no" >&6; }
  2759. fi
  2760. fi
  2761. if test -z "$ac_cv_prog_CC"; then
  2762. ac_ct_CC=$CC
  2763. # Extract the first word of "gcc", so it can be a program name with args.
  2764. set dummy gcc; ac_word=$2
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2766. $as_echo_n "checking for $ac_word... " >&6; }
  2767. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2768. $as_echo_n "(cached) " >&6
  2769. else
  2770. if test -n "$ac_ct_CC"; then
  2771. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2772. else
  2773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2774. for as_dir in $PATH
  2775. do
  2776. IFS=$as_save_IFS
  2777. test -z "$as_dir" && as_dir=.
  2778. for ac_exec_ext in '' $ac_executable_extensions; do
  2779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2780. ac_cv_prog_ac_ct_CC="gcc"
  2781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2782. break 2
  2783. fi
  2784. done
  2785. done
  2786. IFS=$as_save_IFS
  2787. fi
  2788. fi
  2789. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2790. if test -n "$ac_ct_CC"; then
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2792. $as_echo "$ac_ct_CC" >&6; }
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. if test "x$ac_ct_CC" = x; then
  2798. CC=""
  2799. else
  2800. case $cross_compiling:$ac_tool_warned in
  2801. yes:)
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2803. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2804. ac_tool_warned=yes ;;
  2805. esac
  2806. CC=$ac_ct_CC
  2807. fi
  2808. else
  2809. CC="$ac_cv_prog_CC"
  2810. fi
  2811. if test -z "$CC"; then
  2812. if test -n "$ac_tool_prefix"; then
  2813. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2814. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2816. $as_echo_n "checking for $ac_word... " >&6; }
  2817. if ${ac_cv_prog_CC+:} false; then :
  2818. $as_echo_n "(cached) " >&6
  2819. else
  2820. if test -n "$CC"; then
  2821. ac_cv_prog_CC="$CC" # Let the user override the test.
  2822. else
  2823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2824. for as_dir in $PATH
  2825. do
  2826. IFS=$as_save_IFS
  2827. test -z "$as_dir" && as_dir=.
  2828. for ac_exec_ext in '' $ac_executable_extensions; do
  2829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2830. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2832. break 2
  2833. fi
  2834. done
  2835. done
  2836. IFS=$as_save_IFS
  2837. fi
  2838. fi
  2839. CC=$ac_cv_prog_CC
  2840. if test -n "$CC"; then
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2842. $as_echo "$CC" >&6; }
  2843. else
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2845. $as_echo "no" >&6; }
  2846. fi
  2847. fi
  2848. fi
  2849. if test -z "$CC"; then
  2850. # Extract the first word of "cc", so it can be a program name with args.
  2851. set dummy cc; ac_word=$2
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2853. $as_echo_n "checking for $ac_word... " >&6; }
  2854. if ${ac_cv_prog_CC+:} false; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. if test -n "$CC"; then
  2858. ac_cv_prog_CC="$CC" # Let the user override the test.
  2859. else
  2860. ac_prog_rejected=no
  2861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2862. for as_dir in $PATH
  2863. do
  2864. IFS=$as_save_IFS
  2865. test -z "$as_dir" && as_dir=.
  2866. for ac_exec_ext in '' $ac_executable_extensions; do
  2867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2868. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2869. ac_prog_rejected=yes
  2870. continue
  2871. fi
  2872. ac_cv_prog_CC="cc"
  2873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2874. break 2
  2875. fi
  2876. done
  2877. done
  2878. IFS=$as_save_IFS
  2879. if test $ac_prog_rejected = yes; then
  2880. # We found a bogon in the path, so make sure we never use it.
  2881. set dummy $ac_cv_prog_CC
  2882. shift
  2883. if test $# != 0; then
  2884. # We chose a different compiler from the bogus one.
  2885. # However, it has the same basename, so the bogon will be chosen
  2886. # first if we set CC to just the basename; use the full file name.
  2887. shift
  2888. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2889. fi
  2890. fi
  2891. fi
  2892. fi
  2893. CC=$ac_cv_prog_CC
  2894. if test -n "$CC"; then
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2896. $as_echo "$CC" >&6; }
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. fi
  2901. fi
  2902. if test -z "$CC"; then
  2903. if test -n "$ac_tool_prefix"; then
  2904. for ac_prog in cl.exe
  2905. do
  2906. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2907. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2909. $as_echo_n "checking for $ac_word... " >&6; }
  2910. if ${ac_cv_prog_CC+:} false; then :
  2911. $as_echo_n "(cached) " >&6
  2912. else
  2913. if test -n "$CC"; then
  2914. ac_cv_prog_CC="$CC" # Let the user override the test.
  2915. else
  2916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2917. for as_dir in $PATH
  2918. do
  2919. IFS=$as_save_IFS
  2920. test -z "$as_dir" && as_dir=.
  2921. for ac_exec_ext in '' $ac_executable_extensions; do
  2922. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2923. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2925. break 2
  2926. fi
  2927. done
  2928. done
  2929. IFS=$as_save_IFS
  2930. fi
  2931. fi
  2932. CC=$ac_cv_prog_CC
  2933. if test -n "$CC"; then
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2935. $as_echo "$CC" >&6; }
  2936. else
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2938. $as_echo "no" >&6; }
  2939. fi
  2940. test -n "$CC" && break
  2941. done
  2942. fi
  2943. if test -z "$CC"; then
  2944. ac_ct_CC=$CC
  2945. for ac_prog in cl.exe
  2946. do
  2947. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2948. set dummy $ac_prog; ac_word=$2
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2950. $as_echo_n "checking for $ac_word... " >&6; }
  2951. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2952. $as_echo_n "(cached) " >&6
  2953. else
  2954. if test -n "$ac_ct_CC"; then
  2955. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2956. else
  2957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2958. for as_dir in $PATH
  2959. do
  2960. IFS=$as_save_IFS
  2961. test -z "$as_dir" && as_dir=.
  2962. for ac_exec_ext in '' $ac_executable_extensions; do
  2963. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2964. ac_cv_prog_ac_ct_CC="$ac_prog"
  2965. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2966. break 2
  2967. fi
  2968. done
  2969. done
  2970. IFS=$as_save_IFS
  2971. fi
  2972. fi
  2973. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2974. if test -n "$ac_ct_CC"; then
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2976. $as_echo "$ac_ct_CC" >&6; }
  2977. else
  2978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2979. $as_echo "no" >&6; }
  2980. fi
  2981. test -n "$ac_ct_CC" && break
  2982. done
  2983. if test "x$ac_ct_CC" = x; then
  2984. CC=""
  2985. else
  2986. case $cross_compiling:$ac_tool_warned in
  2987. yes:)
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2989. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2990. ac_tool_warned=yes ;;
  2991. esac
  2992. CC=$ac_ct_CC
  2993. fi
  2994. fi
  2995. fi
  2996. test -z "$CC" && { { $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 $? "no acceptable C compiler found in \$PATH
  2999. See \`config.log' for more details" "$LINENO" 5; }
  3000. # Provide some information about the compiler.
  3001. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3002. set X $ac_compile
  3003. ac_compiler=$2
  3004. for ac_option in --version -v -V -qversion; do
  3005. { { ac_try="$ac_compiler $ac_option >&5"
  3006. case "(($ac_try" in
  3007. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3008. *) ac_try_echo=$ac_try;;
  3009. esac
  3010. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3011. $as_echo "$ac_try_echo"; } >&5
  3012. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3013. ac_status=$?
  3014. if test -s conftest.err; then
  3015. sed '10a\
  3016. ... rest of stderr output deleted ...
  3017. 10q' conftest.err >conftest.er1
  3018. cat conftest.er1 >&5
  3019. fi
  3020. rm -f conftest.er1 conftest.err
  3021. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3022. test $ac_status = 0; }
  3023. done
  3024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3025. /* end confdefs.h. */
  3026. int
  3027. main ()
  3028. {
  3029. ;
  3030. return 0;
  3031. }
  3032. _ACEOF
  3033. ac_clean_files_save=$ac_clean_files
  3034. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3035. # Try to create an executable without -o first, disregard a.out.
  3036. # It will help us diagnose broken compilers, and finding out an intuition
  3037. # of exeext.
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3039. $as_echo_n "checking whether the C compiler works... " >&6; }
  3040. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3041. # The possible output files:
  3042. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3043. ac_rmfiles=
  3044. for ac_file in $ac_files
  3045. do
  3046. case $ac_file in
  3047. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3048. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3049. esac
  3050. done
  3051. rm -f $ac_rmfiles
  3052. if { { ac_try="$ac_link_default"
  3053. case "(($ac_try" in
  3054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3055. *) ac_try_echo=$ac_try;;
  3056. esac
  3057. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3058. $as_echo "$ac_try_echo"; } >&5
  3059. (eval "$ac_link_default") 2>&5
  3060. ac_status=$?
  3061. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3062. test $ac_status = 0; }; then :
  3063. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3064. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3065. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3066. # so that the user can short-circuit this test for compilers unknown to
  3067. # Autoconf.
  3068. for ac_file in $ac_files ''
  3069. do
  3070. test -f "$ac_file" || continue
  3071. case $ac_file in
  3072. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3073. ;;
  3074. [ab].out )
  3075. # We found the default executable, but exeext='' is most
  3076. # certainly right.
  3077. break;;
  3078. *.* )
  3079. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3080. then :; else
  3081. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3082. fi
  3083. # We set ac_cv_exeext here because the later test for it is not
  3084. # safe: cross compilers may not add the suffix if given an `-o'
  3085. # argument, so we may need to know it at that point already.
  3086. # Even if this section looks crufty: it has the advantage of
  3087. # actually working.
  3088. break;;
  3089. * )
  3090. break;;
  3091. esac
  3092. done
  3093. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3094. else
  3095. ac_file=''
  3096. fi
  3097. if test -z "$ac_file"; then :
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3099. $as_echo "no" >&6; }
  3100. $as_echo "$as_me: failed program was:" >&5
  3101. sed 's/^/| /' conftest.$ac_ext >&5
  3102. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3103. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3104. as_fn_error 77 "C compiler cannot create executables
  3105. See \`config.log' for more details" "$LINENO" 5; }
  3106. else
  3107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3108. $as_echo "yes" >&6; }
  3109. fi
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3111. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3113. $as_echo "$ac_file" >&6; }
  3114. ac_exeext=$ac_cv_exeext
  3115. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3116. ac_clean_files=$ac_clean_files_save
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3118. $as_echo_n "checking for suffix of executables... " >&6; }
  3119. if { { ac_try="$ac_link"
  3120. case "(($ac_try" in
  3121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3122. *) ac_try_echo=$ac_try;;
  3123. esac
  3124. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3125. $as_echo "$ac_try_echo"; } >&5
  3126. (eval "$ac_link") 2>&5
  3127. ac_status=$?
  3128. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3129. test $ac_status = 0; }; then :
  3130. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3131. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3132. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3133. # `rm'.
  3134. for ac_file in conftest.exe conftest conftest.*; do
  3135. test -f "$ac_file" || continue
  3136. case $ac_file in
  3137. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3138. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3139. break;;
  3140. * ) break;;
  3141. esac
  3142. done
  3143. else
  3144. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3145. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3146. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3147. See \`config.log' for more details" "$LINENO" 5; }
  3148. fi
  3149. rm -f conftest conftest$ac_cv_exeext
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3151. $as_echo "$ac_cv_exeext" >&6; }
  3152. rm -f conftest.$ac_ext
  3153. EXEEXT=$ac_cv_exeext
  3154. ac_exeext=$EXEEXT
  3155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3156. /* end confdefs.h. */
  3157. #include <stdio.h>
  3158. int
  3159. main ()
  3160. {
  3161. FILE *f = fopen ("conftest.out", "w");
  3162. return ferror (f) || fclose (f) != 0;
  3163. ;
  3164. return 0;
  3165. }
  3166. _ACEOF
  3167. ac_clean_files="$ac_clean_files conftest.out"
  3168. # Check that the compiler produces executables we can run. If not, either
  3169. # the compiler is broken, or we cross compile.
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3171. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3172. if test "$cross_compiling" != yes; then
  3173. { { ac_try="$ac_link"
  3174. case "(($ac_try" in
  3175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3176. *) ac_try_echo=$ac_try;;
  3177. esac
  3178. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3179. $as_echo "$ac_try_echo"; } >&5
  3180. (eval "$ac_link") 2>&5
  3181. ac_status=$?
  3182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3183. test $ac_status = 0; }
  3184. if { ac_try='./conftest$ac_cv_exeext'
  3185. { { case "(($ac_try" in
  3186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3187. *) ac_try_echo=$ac_try;;
  3188. esac
  3189. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3190. $as_echo "$ac_try_echo"; } >&5
  3191. (eval "$ac_try") 2>&5
  3192. ac_status=$?
  3193. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3194. test $ac_status = 0; }; }; then
  3195. cross_compiling=no
  3196. else
  3197. if test "$cross_compiling" = maybe; then
  3198. cross_compiling=yes
  3199. else
  3200. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3201. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3202. as_fn_error $? "cannot run C compiled programs.
  3203. If you meant to cross compile, use \`--host'.
  3204. See \`config.log' for more details" "$LINENO" 5; }
  3205. fi
  3206. fi
  3207. fi
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3209. $as_echo "$cross_compiling" >&6; }
  3210. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3211. ac_clean_files=$ac_clean_files_save
  3212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3213. $as_echo_n "checking for suffix of object files... " >&6; }
  3214. if ${ac_cv_objext+:} false; then :
  3215. $as_echo_n "(cached) " >&6
  3216. else
  3217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3218. /* end confdefs.h. */
  3219. int
  3220. main ()
  3221. {
  3222. ;
  3223. return 0;
  3224. }
  3225. _ACEOF
  3226. rm -f conftest.o conftest.obj
  3227. if { { ac_try="$ac_compile"
  3228. case "(($ac_try" in
  3229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3230. *) ac_try_echo=$ac_try;;
  3231. esac
  3232. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3233. $as_echo "$ac_try_echo"; } >&5
  3234. (eval "$ac_compile") 2>&5
  3235. ac_status=$?
  3236. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3237. test $ac_status = 0; }; then :
  3238. for ac_file in conftest.o conftest.obj conftest.*; do
  3239. test -f "$ac_file" || continue;
  3240. case $ac_file in
  3241. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3242. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3243. break;;
  3244. esac
  3245. done
  3246. else
  3247. $as_echo "$as_me: failed program was:" >&5
  3248. sed 's/^/| /' conftest.$ac_ext >&5
  3249. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3250. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3251. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3252. See \`config.log' for more details" "$LINENO" 5; }
  3253. fi
  3254. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3255. fi
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3257. $as_echo "$ac_cv_objext" >&6; }
  3258. OBJEXT=$ac_cv_objext
  3259. ac_objext=$OBJEXT
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3261. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3262. if ${ac_cv_c_compiler_gnu+:} false; then :
  3263. $as_echo_n "(cached) " >&6
  3264. else
  3265. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3266. /* end confdefs.h. */
  3267. int
  3268. main ()
  3269. {
  3270. #ifndef __GNUC__
  3271. choke me
  3272. #endif
  3273. ;
  3274. return 0;
  3275. }
  3276. _ACEOF
  3277. if ac_fn_c_try_compile "$LINENO"; then :
  3278. ac_compiler_gnu=yes
  3279. else
  3280. ac_compiler_gnu=no
  3281. fi
  3282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3283. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3284. fi
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3286. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3287. if test $ac_compiler_gnu = yes; then
  3288. GCC=yes
  3289. else
  3290. GCC=
  3291. fi
  3292. ac_test_CFLAGS=${CFLAGS+set}
  3293. ac_save_CFLAGS=$CFLAGS
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3295. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3296. if ${ac_cv_prog_cc_g+:} false; then :
  3297. $as_echo_n "(cached) " >&6
  3298. else
  3299. ac_save_c_werror_flag=$ac_c_werror_flag
  3300. ac_c_werror_flag=yes
  3301. ac_cv_prog_cc_g=no
  3302. CFLAGS="-g"
  3303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3304. /* end confdefs.h. */
  3305. int
  3306. main ()
  3307. {
  3308. ;
  3309. return 0;
  3310. }
  3311. _ACEOF
  3312. if ac_fn_c_try_compile "$LINENO"; then :
  3313. ac_cv_prog_cc_g=yes
  3314. else
  3315. CFLAGS=""
  3316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3317. /* end confdefs.h. */
  3318. int
  3319. main ()
  3320. {
  3321. ;
  3322. return 0;
  3323. }
  3324. _ACEOF
  3325. if ac_fn_c_try_compile "$LINENO"; then :
  3326. else
  3327. ac_c_werror_flag=$ac_save_c_werror_flag
  3328. CFLAGS="-g"
  3329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3330. /* end confdefs.h. */
  3331. int
  3332. main ()
  3333. {
  3334. ;
  3335. return 0;
  3336. }
  3337. _ACEOF
  3338. if ac_fn_c_try_compile "$LINENO"; then :
  3339. ac_cv_prog_cc_g=yes
  3340. fi
  3341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3342. fi
  3343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3344. fi
  3345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3346. ac_c_werror_flag=$ac_save_c_werror_flag
  3347. fi
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3349. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3350. if test "$ac_test_CFLAGS" = set; then
  3351. CFLAGS=$ac_save_CFLAGS
  3352. elif test $ac_cv_prog_cc_g = yes; then
  3353. if test "$GCC" = yes; then
  3354. CFLAGS="-g -O2"
  3355. else
  3356. CFLAGS="-g"
  3357. fi
  3358. else
  3359. if test "$GCC" = yes; then
  3360. CFLAGS="-O2"
  3361. else
  3362. CFLAGS=
  3363. fi
  3364. fi
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3366. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3367. if ${ac_cv_prog_cc_c89+:} false; then :
  3368. $as_echo_n "(cached) " >&6
  3369. else
  3370. ac_cv_prog_cc_c89=no
  3371. ac_save_CC=$CC
  3372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3373. /* end confdefs.h. */
  3374. #include <stdarg.h>
  3375. #include <stdio.h>
  3376. struct stat;
  3377. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3378. struct buf { int x; };
  3379. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3380. static char *e (p, i)
  3381. char **p;
  3382. int i;
  3383. {
  3384. return p[i];
  3385. }
  3386. static char *f (char * (*g) (char **, int), char **p, ...)
  3387. {
  3388. char *s;
  3389. va_list v;
  3390. va_start (v,p);
  3391. s = g (p, va_arg (v,int));
  3392. va_end (v);
  3393. return s;
  3394. }
  3395. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3396. function prototypes and stuff, but not '\xHH' hex character constants.
  3397. These don't provoke an error unfortunately, instead are silently treated
  3398. as 'x'. The following induces an error, until -std is added to get
  3399. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3400. array size at least. It's necessary to write '\x00'==0 to get something
  3401. that's true only with -std. */
  3402. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3403. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3404. inside strings and character constants. */
  3405. #define FOO(x) 'x'
  3406. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3407. int test (int i, double x);
  3408. struct s1 {int (*f) (int a);};
  3409. struct s2 {int (*f) (double a);};
  3410. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3411. int argc;
  3412. char **argv;
  3413. int
  3414. main ()
  3415. {
  3416. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3417. ;
  3418. return 0;
  3419. }
  3420. _ACEOF
  3421. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3422. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3423. do
  3424. CC="$ac_save_CC $ac_arg"
  3425. if ac_fn_c_try_compile "$LINENO"; then :
  3426. ac_cv_prog_cc_c89=$ac_arg
  3427. fi
  3428. rm -f core conftest.err conftest.$ac_objext
  3429. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3430. done
  3431. rm -f conftest.$ac_ext
  3432. CC=$ac_save_CC
  3433. fi
  3434. # AC_CACHE_VAL
  3435. case "x$ac_cv_prog_cc_c89" in
  3436. x)
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3438. $as_echo "none needed" >&6; } ;;
  3439. xno)
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3441. $as_echo "unsupported" >&6; } ;;
  3442. *)
  3443. CC="$CC $ac_cv_prog_cc_c89"
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3445. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3446. esac
  3447. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3448. fi
  3449. ac_ext=c
  3450. ac_cpp='$CPP $CPPFLAGS'
  3451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3455. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3456. if ${ac_cv_path_SED+:} false; then :
  3457. $as_echo_n "(cached) " >&6
  3458. else
  3459. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3460. for ac_i in 1 2 3 4 5 6 7; do
  3461. ac_script="$ac_script$as_nl$ac_script"
  3462. done
  3463. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3464. { ac_script=; unset ac_script;}
  3465. if test -z "$SED"; then
  3466. ac_path_SED_found=false
  3467. # Loop through the user's path and test for each of PROGNAME-LIST
  3468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3469. for as_dir in $PATH
  3470. do
  3471. IFS=$as_save_IFS
  3472. test -z "$as_dir" && as_dir=.
  3473. for ac_prog in sed gsed; do
  3474. for ac_exec_ext in '' $ac_executable_extensions; do
  3475. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3476. as_fn_executable_p "$ac_path_SED" || continue
  3477. # Check for GNU ac_path_SED and select it if it is found.
  3478. # Check for GNU $ac_path_SED
  3479. case `"$ac_path_SED" --version 2>&1` in
  3480. *GNU*)
  3481. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3482. *)
  3483. ac_count=0
  3484. $as_echo_n 0123456789 >"conftest.in"
  3485. while :
  3486. do
  3487. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3488. mv "conftest.tmp" "conftest.in"
  3489. cp "conftest.in" "conftest.nl"
  3490. $as_echo '' >> "conftest.nl"
  3491. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3492. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3493. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3494. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3495. # Best one so far, save it but keep looking for a better one
  3496. ac_cv_path_SED="$ac_path_SED"
  3497. ac_path_SED_max=$ac_count
  3498. fi
  3499. # 10*(2^10) chars as input seems more than enough
  3500. test $ac_count -gt 10 && break
  3501. done
  3502. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3503. esac
  3504. $ac_path_SED_found && break 3
  3505. done
  3506. done
  3507. done
  3508. IFS=$as_save_IFS
  3509. if test -z "$ac_cv_path_SED"; then
  3510. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3511. fi
  3512. else
  3513. ac_cv_path_SED=$SED
  3514. fi
  3515. fi
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3517. $as_echo "$ac_cv_path_SED" >&6; }
  3518. SED="$ac_cv_path_SED"
  3519. rm -f conftest.sed
  3520. test -z "$SED" && SED=sed
  3521. Xsed="$SED -e 1s/^X//"
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3523. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3524. if ${ac_cv_path_GREP+:} false; then :
  3525. $as_echo_n "(cached) " >&6
  3526. else
  3527. if test -z "$GREP"; then
  3528. ac_path_GREP_found=false
  3529. # Loop through the user's path and test for each of PROGNAME-LIST
  3530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3531. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3532. do
  3533. IFS=$as_save_IFS
  3534. test -z "$as_dir" && as_dir=.
  3535. for ac_prog in grep ggrep; do
  3536. for ac_exec_ext in '' $ac_executable_extensions; do
  3537. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3538. as_fn_executable_p "$ac_path_GREP" || continue
  3539. # Check for GNU ac_path_GREP and select it if it is found.
  3540. # Check for GNU $ac_path_GREP
  3541. case `"$ac_path_GREP" --version 2>&1` in
  3542. *GNU*)
  3543. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3544. *)
  3545. ac_count=0
  3546. $as_echo_n 0123456789 >"conftest.in"
  3547. while :
  3548. do
  3549. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3550. mv "conftest.tmp" "conftest.in"
  3551. cp "conftest.in" "conftest.nl"
  3552. $as_echo 'GREP' >> "conftest.nl"
  3553. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3554. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3555. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3556. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3557. # Best one so far, save it but keep looking for a better one
  3558. ac_cv_path_GREP="$ac_path_GREP"
  3559. ac_path_GREP_max=$ac_count
  3560. fi
  3561. # 10*(2^10) chars as input seems more than enough
  3562. test $ac_count -gt 10 && break
  3563. done
  3564. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3565. esac
  3566. $ac_path_GREP_found && break 3
  3567. done
  3568. done
  3569. done
  3570. IFS=$as_save_IFS
  3571. if test -z "$ac_cv_path_GREP"; then
  3572. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3573. fi
  3574. else
  3575. ac_cv_path_GREP=$GREP
  3576. fi
  3577. fi
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3579. $as_echo "$ac_cv_path_GREP" >&6; }
  3580. GREP="$ac_cv_path_GREP"
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3582. $as_echo_n "checking for egrep... " >&6; }
  3583. if ${ac_cv_path_EGREP+:} false; then :
  3584. $as_echo_n "(cached) " >&6
  3585. else
  3586. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3587. then ac_cv_path_EGREP="$GREP -E"
  3588. else
  3589. if test -z "$EGREP"; then
  3590. ac_path_EGREP_found=false
  3591. # Loop through the user's path and test for each of PROGNAME-LIST
  3592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3593. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3594. do
  3595. IFS=$as_save_IFS
  3596. test -z "$as_dir" && as_dir=.
  3597. for ac_prog in egrep; do
  3598. for ac_exec_ext in '' $ac_executable_extensions; do
  3599. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3600. as_fn_executable_p "$ac_path_EGREP" || continue
  3601. # Check for GNU ac_path_EGREP and select it if it is found.
  3602. # Check for GNU $ac_path_EGREP
  3603. case `"$ac_path_EGREP" --version 2>&1` in
  3604. *GNU*)
  3605. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3606. *)
  3607. ac_count=0
  3608. $as_echo_n 0123456789 >"conftest.in"
  3609. while :
  3610. do
  3611. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3612. mv "conftest.tmp" "conftest.in"
  3613. cp "conftest.in" "conftest.nl"
  3614. $as_echo 'EGREP' >> "conftest.nl"
  3615. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3616. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3617. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3618. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3619. # Best one so far, save it but keep looking for a better one
  3620. ac_cv_path_EGREP="$ac_path_EGREP"
  3621. ac_path_EGREP_max=$ac_count
  3622. fi
  3623. # 10*(2^10) chars as input seems more than enough
  3624. test $ac_count -gt 10 && break
  3625. done
  3626. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3627. esac
  3628. $ac_path_EGREP_found && break 3
  3629. done
  3630. done
  3631. done
  3632. IFS=$as_save_IFS
  3633. if test -z "$ac_cv_path_EGREP"; then
  3634. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3635. fi
  3636. else
  3637. ac_cv_path_EGREP=$EGREP
  3638. fi
  3639. fi
  3640. fi
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3642. $as_echo "$ac_cv_path_EGREP" >&6; }
  3643. EGREP="$ac_cv_path_EGREP"
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3645. $as_echo_n "checking for fgrep... " >&6; }
  3646. if ${ac_cv_path_FGREP+:} false; then :
  3647. $as_echo_n "(cached) " >&6
  3648. else
  3649. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3650. then ac_cv_path_FGREP="$GREP -F"
  3651. else
  3652. if test -z "$FGREP"; then
  3653. ac_path_FGREP_found=false
  3654. # Loop through the user's path and test for each of PROGNAME-LIST
  3655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3656. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3657. do
  3658. IFS=$as_save_IFS
  3659. test -z "$as_dir" && as_dir=.
  3660. for ac_prog in fgrep; do
  3661. for ac_exec_ext in '' $ac_executable_extensions; do
  3662. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3663. as_fn_executable_p "$ac_path_FGREP" || continue
  3664. # Check for GNU ac_path_FGREP and select it if it is found.
  3665. # Check for GNU $ac_path_FGREP
  3666. case `"$ac_path_FGREP" --version 2>&1` in
  3667. *GNU*)
  3668. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3669. *)
  3670. ac_count=0
  3671. $as_echo_n 0123456789 >"conftest.in"
  3672. while :
  3673. do
  3674. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3675. mv "conftest.tmp" "conftest.in"
  3676. cp "conftest.in" "conftest.nl"
  3677. $as_echo 'FGREP' >> "conftest.nl"
  3678. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3679. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3680. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3681. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3682. # Best one so far, save it but keep looking for a better one
  3683. ac_cv_path_FGREP="$ac_path_FGREP"
  3684. ac_path_FGREP_max=$ac_count
  3685. fi
  3686. # 10*(2^10) chars as input seems more than enough
  3687. test $ac_count -gt 10 && break
  3688. done
  3689. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3690. esac
  3691. $ac_path_FGREP_found && break 3
  3692. done
  3693. done
  3694. done
  3695. IFS=$as_save_IFS
  3696. if test -z "$ac_cv_path_FGREP"; then
  3697. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3698. fi
  3699. else
  3700. ac_cv_path_FGREP=$FGREP
  3701. fi
  3702. fi
  3703. fi
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3705. $as_echo "$ac_cv_path_FGREP" >&6; }
  3706. FGREP="$ac_cv_path_FGREP"
  3707. test -z "$GREP" && GREP=grep
  3708. # Check whether --with-gnu-ld was given.
  3709. if test "${with_gnu_ld+set}" = set; then :
  3710. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3711. else
  3712. with_gnu_ld=no
  3713. fi
  3714. ac_prog=ld
  3715. if test "$GCC" = yes; then
  3716. # Check if gcc -print-prog-name=ld gives a path.
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3718. $as_echo_n "checking for ld used by $CC... " >&6; }
  3719. case $host in
  3720. *-*-mingw*)
  3721. # gcc leaves a trailing carriage return which upsets mingw
  3722. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3723. *)
  3724. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3725. esac
  3726. case $ac_prog in
  3727. # Accept absolute paths.
  3728. [\\/]* | ?:[\\/]*)
  3729. re_direlt='/[^/][^/]*/\.\./'
  3730. # Canonicalize the pathname of ld
  3731. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3732. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3733. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3734. done
  3735. test -z "$LD" && LD="$ac_prog"
  3736. ;;
  3737. "")
  3738. # If it fails, then pretend we aren't using GCC.
  3739. ac_prog=ld
  3740. ;;
  3741. *)
  3742. # If it is relative, then search for the first ld in PATH.
  3743. with_gnu_ld=unknown
  3744. ;;
  3745. esac
  3746. elif test "$with_gnu_ld" = yes; then
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3748. $as_echo_n "checking for GNU ld... " >&6; }
  3749. else
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3751. $as_echo_n "checking for non-GNU ld... " >&6; }
  3752. fi
  3753. if ${lt_cv_path_LD+:} false; then :
  3754. $as_echo_n "(cached) " >&6
  3755. else
  3756. if test -z "$LD"; then
  3757. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3758. for ac_dir in $PATH; do
  3759. IFS="$lt_save_ifs"
  3760. test -z "$ac_dir" && ac_dir=.
  3761. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3762. lt_cv_path_LD="$ac_dir/$ac_prog"
  3763. # Check to see if the program is GNU ld. I'd rather use --version,
  3764. # but apparently some variants of GNU ld only accept -v.
  3765. # Break only if it was the GNU/non-GNU ld that we prefer.
  3766. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3767. *GNU* | *'with BFD'*)
  3768. test "$with_gnu_ld" != no && break
  3769. ;;
  3770. *)
  3771. test "$with_gnu_ld" != yes && break
  3772. ;;
  3773. esac
  3774. fi
  3775. done
  3776. IFS="$lt_save_ifs"
  3777. else
  3778. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3779. fi
  3780. fi
  3781. LD="$lt_cv_path_LD"
  3782. if test -n "$LD"; then
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3784. $as_echo "$LD" >&6; }
  3785. else
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3787. $as_echo "no" >&6; }
  3788. fi
  3789. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3791. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3792. if ${lt_cv_prog_gnu_ld+:} false; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3796. case `$LD -v 2>&1 </dev/null` in
  3797. *GNU* | *'with BFD'*)
  3798. lt_cv_prog_gnu_ld=yes
  3799. ;;
  3800. *)
  3801. lt_cv_prog_gnu_ld=no
  3802. ;;
  3803. esac
  3804. fi
  3805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3806. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3807. with_gnu_ld=$lt_cv_prog_gnu_ld
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3809. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3810. if ${lt_cv_path_NM+:} false; then :
  3811. $as_echo_n "(cached) " >&6
  3812. else
  3813. if test -n "$NM"; then
  3814. # Let the user override the test.
  3815. lt_cv_path_NM="$NM"
  3816. else
  3817. lt_nm_to_check="${ac_tool_prefix}nm"
  3818. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3819. lt_nm_to_check="$lt_nm_to_check nm"
  3820. fi
  3821. for lt_tmp_nm in $lt_nm_to_check; do
  3822. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3823. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3824. IFS="$lt_save_ifs"
  3825. test -z "$ac_dir" && ac_dir=.
  3826. tmp_nm="$ac_dir/$lt_tmp_nm"
  3827. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3828. # Check to see if the nm accepts a BSD-compat flag.
  3829. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3830. # nm: unknown option "B" ignored
  3831. # Tru64's nm complains that /dev/null is an invalid object file
  3832. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3833. */dev/null* | *'Invalid file or object type'*)
  3834. lt_cv_path_NM="$tmp_nm -B"
  3835. break
  3836. ;;
  3837. *)
  3838. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3839. */dev/null*)
  3840. lt_cv_path_NM="$tmp_nm -p"
  3841. break
  3842. ;;
  3843. *)
  3844. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3845. continue # so that we can try to find one that supports BSD flags
  3846. ;;
  3847. esac
  3848. ;;
  3849. esac
  3850. fi
  3851. done
  3852. IFS="$lt_save_ifs"
  3853. done
  3854. : ${lt_cv_path_NM=no}
  3855. fi
  3856. fi
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3858. $as_echo "$lt_cv_path_NM" >&6; }
  3859. if test "$lt_cv_path_NM" != "no"; then
  3860. NM="$lt_cv_path_NM"
  3861. else
  3862. # Didn't find any BSD compatible name lister, look for dumpbin.
  3863. if test -n "$DUMPBIN"; then :
  3864. # Let the user override the test.
  3865. else
  3866. if test -n "$ac_tool_prefix"; then
  3867. for ac_prog in dumpbin "link -dump"
  3868. do
  3869. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3870. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3872. $as_echo_n "checking for $ac_word... " >&6; }
  3873. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3874. $as_echo_n "(cached) " >&6
  3875. else
  3876. if test -n "$DUMPBIN"; then
  3877. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3878. else
  3879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3880. for as_dir in $PATH
  3881. do
  3882. IFS=$as_save_IFS
  3883. test -z "$as_dir" && as_dir=.
  3884. for ac_exec_ext in '' $ac_executable_extensions; do
  3885. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3886. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3888. break 2
  3889. fi
  3890. done
  3891. done
  3892. IFS=$as_save_IFS
  3893. fi
  3894. fi
  3895. DUMPBIN=$ac_cv_prog_DUMPBIN
  3896. if test -n "$DUMPBIN"; then
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3898. $as_echo "$DUMPBIN" >&6; }
  3899. else
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3901. $as_echo "no" >&6; }
  3902. fi
  3903. test -n "$DUMPBIN" && break
  3904. done
  3905. fi
  3906. if test -z "$DUMPBIN"; then
  3907. ac_ct_DUMPBIN=$DUMPBIN
  3908. for ac_prog in dumpbin "link -dump"
  3909. do
  3910. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3911. set dummy $ac_prog; ac_word=$2
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3913. $as_echo_n "checking for $ac_word... " >&6; }
  3914. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3915. $as_echo_n "(cached) " >&6
  3916. else
  3917. if test -n "$ac_ct_DUMPBIN"; then
  3918. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3919. else
  3920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3921. for as_dir in $PATH
  3922. do
  3923. IFS=$as_save_IFS
  3924. test -z "$as_dir" && as_dir=.
  3925. for ac_exec_ext in '' $ac_executable_extensions; do
  3926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3927. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3929. break 2
  3930. fi
  3931. done
  3932. done
  3933. IFS=$as_save_IFS
  3934. fi
  3935. fi
  3936. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3937. if test -n "$ac_ct_DUMPBIN"; then
  3938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3939. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3940. else
  3941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3942. $as_echo "no" >&6; }
  3943. fi
  3944. test -n "$ac_ct_DUMPBIN" && break
  3945. done
  3946. if test "x$ac_ct_DUMPBIN" = x; then
  3947. DUMPBIN=":"
  3948. else
  3949. case $cross_compiling:$ac_tool_warned in
  3950. yes:)
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3953. ac_tool_warned=yes ;;
  3954. esac
  3955. DUMPBIN=$ac_ct_DUMPBIN
  3956. fi
  3957. fi
  3958. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3959. *COFF*)
  3960. DUMPBIN="$DUMPBIN -symbols"
  3961. ;;
  3962. *)
  3963. DUMPBIN=:
  3964. ;;
  3965. esac
  3966. fi
  3967. if test "$DUMPBIN" != ":"; then
  3968. NM="$DUMPBIN"
  3969. fi
  3970. fi
  3971. test -z "$NM" && NM=nm
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3973. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3974. if ${lt_cv_nm_interface+:} false; then :
  3975. $as_echo_n "(cached) " >&6
  3976. else
  3977. lt_cv_nm_interface="BSD nm"
  3978. echo "int some_variable = 0;" > conftest.$ac_ext
  3979. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3980. (eval "$ac_compile" 2>conftest.err)
  3981. cat conftest.err >&5
  3982. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3983. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3984. cat conftest.err >&5
  3985. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3986. cat conftest.out >&5
  3987. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3988. lt_cv_nm_interface="MS dumpbin"
  3989. fi
  3990. rm -f conftest*
  3991. fi
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3993. $as_echo "$lt_cv_nm_interface" >&6; }
  3994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3995. $as_echo_n "checking whether ln -s works... " >&6; }
  3996. LN_S=$as_ln_s
  3997. if test "$LN_S" = "ln -s"; then
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3999. $as_echo "yes" >&6; }
  4000. else
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4002. $as_echo "no, using $LN_S" >&6; }
  4003. fi
  4004. # find the maximum length of command line arguments
  4005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4006. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4007. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4008. $as_echo_n "(cached) " >&6
  4009. else
  4010. i=0
  4011. teststring="ABCD"
  4012. case $build_os in
  4013. msdosdjgpp*)
  4014. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4015. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4016. # during glob expansion). Even if it were fixed, the result of this
  4017. # check would be larger than it should be.
  4018. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4019. ;;
  4020. gnu*)
  4021. # Under GNU Hurd, this test is not required because there is
  4022. # no limit to the length of command line arguments.
  4023. # Libtool will interpret -1 as no limit whatsoever
  4024. lt_cv_sys_max_cmd_len=-1;
  4025. ;;
  4026. cygwin* | mingw* | cegcc*)
  4027. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4028. # about 5 minutes as the teststring grows exponentially.
  4029. # Worse, since 9x/ME are not pre-emptively multitasking,
  4030. # you end up with a "frozen" computer, even though with patience
  4031. # the test eventually succeeds (with a max line length of 256k).
  4032. # Instead, let's just punt: use the minimum linelength reported by
  4033. # all of the supported platforms: 8192 (on NT/2K/XP).
  4034. lt_cv_sys_max_cmd_len=8192;
  4035. ;;
  4036. mint*)
  4037. # On MiNT this can take a long time and run out of memory.
  4038. lt_cv_sys_max_cmd_len=8192;
  4039. ;;
  4040. amigaos*)
  4041. # On AmigaOS with pdksh, this test takes hours, literally.
  4042. # So we just punt and use a minimum line length of 8192.
  4043. lt_cv_sys_max_cmd_len=8192;
  4044. ;;
  4045. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4046. # This has been around since 386BSD, at least. Likely further.
  4047. if test -x /sbin/sysctl; then
  4048. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4049. elif test -x /usr/sbin/sysctl; then
  4050. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4051. else
  4052. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4053. fi
  4054. # And add a safety zone
  4055. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4056. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4057. ;;
  4058. interix*)
  4059. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4060. lt_cv_sys_max_cmd_len=196608
  4061. ;;
  4062. os2*)
  4063. # The test takes a long time on OS/2.
  4064. lt_cv_sys_max_cmd_len=8192
  4065. ;;
  4066. osf*)
  4067. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4068. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4069. # nice to cause kernel panics so lets avoid the loop below.
  4070. # First set a reasonable default.
  4071. lt_cv_sys_max_cmd_len=16384
  4072. #
  4073. if test -x /sbin/sysconfig; then
  4074. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4075. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4076. esac
  4077. fi
  4078. ;;
  4079. sco3.2v5*)
  4080. lt_cv_sys_max_cmd_len=102400
  4081. ;;
  4082. sysv5* | sco5v6* | sysv4.2uw2*)
  4083. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4084. if test -n "$kargmax"; then
  4085. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4086. else
  4087. lt_cv_sys_max_cmd_len=32768
  4088. fi
  4089. ;;
  4090. *)
  4091. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4092. if test -n "$lt_cv_sys_max_cmd_len"; then
  4093. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4094. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4095. else
  4096. # Make teststring a little bigger before we do anything with it.
  4097. # a 1K string should be a reasonable start.
  4098. for i in 1 2 3 4 5 6 7 8 ; do
  4099. teststring=$teststring$teststring
  4100. done
  4101. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4102. # If test is not a shell built-in, we'll probably end up computing a
  4103. # maximum length that is only half of the actual maximum length, but
  4104. # we can't tell.
  4105. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4106. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4107. test $i != 17 # 1/2 MB should be enough
  4108. do
  4109. i=`expr $i + 1`
  4110. teststring=$teststring$teststring
  4111. done
  4112. # Only check the string length outside the loop.
  4113. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4114. teststring=
  4115. # Add a significant safety factor because C++ compilers can tack on
  4116. # massive amounts of additional arguments before passing them to the
  4117. # linker. It appears as though 1/2 is a usable value.
  4118. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4119. fi
  4120. ;;
  4121. esac
  4122. fi
  4123. if test -n $lt_cv_sys_max_cmd_len ; then
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4125. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4126. else
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4128. $as_echo "none" >&6; }
  4129. fi
  4130. max_cmd_len=$lt_cv_sys_max_cmd_len
  4131. : ${CP="cp -f"}
  4132. : ${MV="mv -f"}
  4133. : ${RM="rm -f"}
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4135. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4136. # Try some XSI features
  4137. xsi_shell=no
  4138. ( _lt_dummy="a/b/c"
  4139. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4140. = c,a/b,b/c, \
  4141. && eval 'test $(( 1 + 1 )) -eq 2 \
  4142. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4143. && xsi_shell=yes
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4145. $as_echo "$xsi_shell" >&6; }
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4147. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4148. lt_shell_append=no
  4149. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4150. >/dev/null 2>&1 \
  4151. && lt_shell_append=yes
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4153. $as_echo "$lt_shell_append" >&6; }
  4154. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4155. lt_unset=unset
  4156. else
  4157. lt_unset=false
  4158. fi
  4159. # test EBCDIC or ASCII
  4160. case `echo X|tr X '\101'` in
  4161. A) # ASCII based system
  4162. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4163. lt_SP2NL='tr \040 \012'
  4164. lt_NL2SP='tr \015\012 \040\040'
  4165. ;;
  4166. *) # EBCDIC based system
  4167. lt_SP2NL='tr \100 \n'
  4168. lt_NL2SP='tr \r\n \100\100'
  4169. ;;
  4170. esac
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4172. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4173. if ${lt_cv_to_host_file_cmd+:} false; then :
  4174. $as_echo_n "(cached) " >&6
  4175. else
  4176. case $host in
  4177. *-*-mingw* )
  4178. case $build in
  4179. *-*-mingw* ) # actually msys
  4180. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4181. ;;
  4182. *-*-cygwin* )
  4183. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4184. ;;
  4185. * ) # otherwise, assume *nix
  4186. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4187. ;;
  4188. esac
  4189. ;;
  4190. *-*-cygwin* )
  4191. case $build in
  4192. *-*-mingw* ) # actually msys
  4193. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4194. ;;
  4195. *-*-cygwin* )
  4196. lt_cv_to_host_file_cmd=func_convert_file_noop
  4197. ;;
  4198. * ) # otherwise, assume *nix
  4199. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4200. ;;
  4201. esac
  4202. ;;
  4203. * ) # unhandled hosts (and "normal" native builds)
  4204. lt_cv_to_host_file_cmd=func_convert_file_noop
  4205. ;;
  4206. esac
  4207. fi
  4208. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4210. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4212. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4213. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4214. $as_echo_n "(cached) " >&6
  4215. else
  4216. #assume ordinary cross tools, or native build.
  4217. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4218. case $host in
  4219. *-*-mingw* )
  4220. case $build in
  4221. *-*-mingw* ) # actually msys
  4222. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4223. ;;
  4224. esac
  4225. ;;
  4226. esac
  4227. fi
  4228. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4230. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4232. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4233. if ${lt_cv_ld_reload_flag+:} false; then :
  4234. $as_echo_n "(cached) " >&6
  4235. else
  4236. lt_cv_ld_reload_flag='-r'
  4237. fi
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4239. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4240. reload_flag=$lt_cv_ld_reload_flag
  4241. case $reload_flag in
  4242. "" | " "*) ;;
  4243. *) reload_flag=" $reload_flag" ;;
  4244. esac
  4245. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4246. case $host_os in
  4247. cygwin* | mingw* | pw32* | cegcc*)
  4248. if test "$GCC" != yes; then
  4249. reload_cmds=false
  4250. fi
  4251. ;;
  4252. darwin*)
  4253. if test "$GCC" = yes; then
  4254. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4255. else
  4256. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4257. fi
  4258. ;;
  4259. esac
  4260. if test -n "$ac_tool_prefix"; then
  4261. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4262. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4264. $as_echo_n "checking for $ac_word... " >&6; }
  4265. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4266. $as_echo_n "(cached) " >&6
  4267. else
  4268. if test -n "$OBJDUMP"; then
  4269. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4270. else
  4271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4272. for as_dir in $PATH
  4273. do
  4274. IFS=$as_save_IFS
  4275. test -z "$as_dir" && as_dir=.
  4276. for ac_exec_ext in '' $ac_executable_extensions; do
  4277. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4278. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4280. break 2
  4281. fi
  4282. done
  4283. done
  4284. IFS=$as_save_IFS
  4285. fi
  4286. fi
  4287. OBJDUMP=$ac_cv_prog_OBJDUMP
  4288. if test -n "$OBJDUMP"; then
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4290. $as_echo "$OBJDUMP" >&6; }
  4291. else
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4293. $as_echo "no" >&6; }
  4294. fi
  4295. fi
  4296. if test -z "$ac_cv_prog_OBJDUMP"; then
  4297. ac_ct_OBJDUMP=$OBJDUMP
  4298. # Extract the first word of "objdump", so it can be a program name with args.
  4299. set dummy objdump; ac_word=$2
  4300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4301. $as_echo_n "checking for $ac_word... " >&6; }
  4302. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4303. $as_echo_n "(cached) " >&6
  4304. else
  4305. if test -n "$ac_ct_OBJDUMP"; then
  4306. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4307. else
  4308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4309. for as_dir in $PATH
  4310. do
  4311. IFS=$as_save_IFS
  4312. test -z "$as_dir" && as_dir=.
  4313. for ac_exec_ext in '' $ac_executable_extensions; do
  4314. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4315. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4316. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4317. break 2
  4318. fi
  4319. done
  4320. done
  4321. IFS=$as_save_IFS
  4322. fi
  4323. fi
  4324. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4325. if test -n "$ac_ct_OBJDUMP"; then
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4327. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4328. else
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4330. $as_echo "no" >&6; }
  4331. fi
  4332. if test "x$ac_ct_OBJDUMP" = x; then
  4333. OBJDUMP="false"
  4334. else
  4335. case $cross_compiling:$ac_tool_warned in
  4336. yes:)
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4338. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4339. ac_tool_warned=yes ;;
  4340. esac
  4341. OBJDUMP=$ac_ct_OBJDUMP
  4342. fi
  4343. else
  4344. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4345. fi
  4346. test -z "$OBJDUMP" && OBJDUMP=objdump
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4348. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4349. if ${lt_cv_deplibs_check_method+:} false; then :
  4350. $as_echo_n "(cached) " >&6
  4351. else
  4352. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4353. lt_cv_file_magic_test_file=
  4354. lt_cv_deplibs_check_method='unknown'
  4355. # Need to set the preceding variable on all platforms that support
  4356. # interlibrary dependencies.
  4357. # 'none' -- dependencies not supported.
  4358. # `unknown' -- same as none, but documents that we really don't know.
  4359. # 'pass_all' -- all dependencies passed with no checks.
  4360. # 'test_compile' -- check by making test program.
  4361. # 'file_magic [[regex]]' -- check by looking for files in library path
  4362. # which responds to the $file_magic_cmd with a given extended regex.
  4363. # If you have `file' or equivalent on your system and you're not sure
  4364. # whether `pass_all' will *always* work, you probably want this one.
  4365. case $host_os in
  4366. aix[4-9]*)
  4367. lt_cv_deplibs_check_method=pass_all
  4368. ;;
  4369. beos*)
  4370. lt_cv_deplibs_check_method=pass_all
  4371. ;;
  4372. bsdi[45]*)
  4373. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4374. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4375. lt_cv_file_magic_test_file=/shlib/libc.so
  4376. ;;
  4377. cygwin*)
  4378. # func_win32_libid is a shell function defined in ltmain.sh
  4379. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4380. lt_cv_file_magic_cmd='func_win32_libid'
  4381. lt_cv_deplibs_check_method=pass_all
  4382. ;;
  4383. mingw* | pw32*)
  4384. # Base MSYS/MinGW do not provide the 'file' command needed by
  4385. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4386. # unless we find 'file', for example because we are cross-compiling.
  4387. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4388. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4389. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4390. lt_cv_file_magic_cmd='func_win32_libid'
  4391. else
  4392. # Keep this pattern in sync with the one in func_win32_libid.
  4393. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4394. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4395. fi
  4396. lt_cv_deplibs_check_method=pass_all
  4397. ;;
  4398. cegcc*)
  4399. # use the weaker test based on 'objdump'. See mingw*.
  4400. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4401. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4402. ;;
  4403. darwin* | rhapsody*)
  4404. lt_cv_deplibs_check_method=pass_all
  4405. ;;
  4406. freebsd* | dragonfly*)
  4407. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4408. case $host_cpu in
  4409. i*86 )
  4410. # Not sure whether the presence of OpenBSD here was a mistake.
  4411. # Let's accept both of them until this is cleared up.
  4412. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4413. lt_cv_file_magic_cmd=/usr/bin/file
  4414. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4415. ;;
  4416. esac
  4417. else
  4418. lt_cv_deplibs_check_method=pass_all
  4419. fi
  4420. ;;
  4421. gnu*)
  4422. lt_cv_deplibs_check_method=pass_all
  4423. ;;
  4424. haiku*)
  4425. lt_cv_deplibs_check_method=pass_all
  4426. ;;
  4427. hpux10.20* | hpux11*)
  4428. lt_cv_file_magic_cmd=/usr/bin/file
  4429. case $host_cpu in
  4430. ia64*)
  4431. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4432. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4433. ;;
  4434. hppa*64*)
  4435. 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]'
  4436. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4437. ;;
  4438. *)
  4439. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4440. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4441. ;;
  4442. esac
  4443. ;;
  4444. interix[3-9]*)
  4445. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4446. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4447. ;;
  4448. irix5* | irix6* | nonstopux*)
  4449. case $LD in
  4450. *-32|*"-32 ") libmagic=32-bit;;
  4451. *-n32|*"-n32 ") libmagic=N32;;
  4452. *-64|*"-64 ") libmagic=64-bit;;
  4453. *) libmagic=never-match;;
  4454. esac
  4455. lt_cv_deplibs_check_method=pass_all
  4456. ;;
  4457. # This must be glibc/ELF.
  4458. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4459. lt_cv_deplibs_check_method=pass_all
  4460. ;;
  4461. netbsd*)
  4462. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4463. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4464. else
  4465. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4466. fi
  4467. ;;
  4468. newos6*)
  4469. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4470. lt_cv_file_magic_cmd=/usr/bin/file
  4471. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4472. ;;
  4473. *nto* | *qnx*)
  4474. lt_cv_deplibs_check_method=pass_all
  4475. ;;
  4476. openbsd*)
  4477. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4478. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4479. else
  4480. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4481. fi
  4482. ;;
  4483. osf3* | osf4* | osf5*)
  4484. lt_cv_deplibs_check_method=pass_all
  4485. ;;
  4486. rdos*)
  4487. lt_cv_deplibs_check_method=pass_all
  4488. ;;
  4489. solaris*)
  4490. lt_cv_deplibs_check_method=pass_all
  4491. ;;
  4492. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4493. lt_cv_deplibs_check_method=pass_all
  4494. ;;
  4495. sysv4 | sysv4.3*)
  4496. case $host_vendor in
  4497. motorola)
  4498. 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]'
  4499. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4500. ;;
  4501. ncr)
  4502. lt_cv_deplibs_check_method=pass_all
  4503. ;;
  4504. sequent)
  4505. lt_cv_file_magic_cmd='/bin/file'
  4506. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4507. ;;
  4508. sni)
  4509. lt_cv_file_magic_cmd='/bin/file'
  4510. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4511. lt_cv_file_magic_test_file=/lib/libc.so
  4512. ;;
  4513. siemens)
  4514. lt_cv_deplibs_check_method=pass_all
  4515. ;;
  4516. pc)
  4517. lt_cv_deplibs_check_method=pass_all
  4518. ;;
  4519. esac
  4520. ;;
  4521. tpf*)
  4522. lt_cv_deplibs_check_method=pass_all
  4523. ;;
  4524. esac
  4525. fi
  4526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4527. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4528. file_magic_glob=
  4529. want_nocaseglob=no
  4530. if test "$build" = "$host"; then
  4531. case $host_os in
  4532. mingw* | pw32*)
  4533. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4534. want_nocaseglob=yes
  4535. else
  4536. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4537. fi
  4538. ;;
  4539. esac
  4540. fi
  4541. file_magic_cmd=$lt_cv_file_magic_cmd
  4542. deplibs_check_method=$lt_cv_deplibs_check_method
  4543. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4544. if test -n "$ac_tool_prefix"; then
  4545. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4546. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4548. $as_echo_n "checking for $ac_word... " >&6; }
  4549. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4550. $as_echo_n "(cached) " >&6
  4551. else
  4552. if test -n "$DLLTOOL"; then
  4553. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4554. else
  4555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4556. for as_dir in $PATH
  4557. do
  4558. IFS=$as_save_IFS
  4559. test -z "$as_dir" && as_dir=.
  4560. for ac_exec_ext in '' $ac_executable_extensions; do
  4561. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4562. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4564. break 2
  4565. fi
  4566. done
  4567. done
  4568. IFS=$as_save_IFS
  4569. fi
  4570. fi
  4571. DLLTOOL=$ac_cv_prog_DLLTOOL
  4572. if test -n "$DLLTOOL"; then
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4574. $as_echo "$DLLTOOL" >&6; }
  4575. else
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4577. $as_echo "no" >&6; }
  4578. fi
  4579. fi
  4580. if test -z "$ac_cv_prog_DLLTOOL"; then
  4581. ac_ct_DLLTOOL=$DLLTOOL
  4582. # Extract the first word of "dlltool", so it can be a program name with args.
  4583. set dummy dlltool; ac_word=$2
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4585. $as_echo_n "checking for $ac_word... " >&6; }
  4586. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4587. $as_echo_n "(cached) " >&6
  4588. else
  4589. if test -n "$ac_ct_DLLTOOL"; then
  4590. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4591. else
  4592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4593. for as_dir in $PATH
  4594. do
  4595. IFS=$as_save_IFS
  4596. test -z "$as_dir" && as_dir=.
  4597. for ac_exec_ext in '' $ac_executable_extensions; do
  4598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4599. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4601. break 2
  4602. fi
  4603. done
  4604. done
  4605. IFS=$as_save_IFS
  4606. fi
  4607. fi
  4608. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4609. if test -n "$ac_ct_DLLTOOL"; then
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4611. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4612. else
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4614. $as_echo "no" >&6; }
  4615. fi
  4616. if test "x$ac_ct_DLLTOOL" = x; then
  4617. DLLTOOL="false"
  4618. else
  4619. case $cross_compiling:$ac_tool_warned in
  4620. yes:)
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4622. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4623. ac_tool_warned=yes ;;
  4624. esac
  4625. DLLTOOL=$ac_ct_DLLTOOL
  4626. fi
  4627. else
  4628. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4629. fi
  4630. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4632. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4633. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4637. case $host_os in
  4638. cygwin* | mingw* | pw32* | cegcc*)
  4639. # two different shell functions defined in ltmain.sh
  4640. # decide which to use based on capabilities of $DLLTOOL
  4641. case `$DLLTOOL --help 2>&1` in
  4642. *--identify-strict*)
  4643. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4644. ;;
  4645. *)
  4646. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4647. ;;
  4648. esac
  4649. ;;
  4650. *)
  4651. # fallback: assume linklib IS sharedlib
  4652. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4653. ;;
  4654. esac
  4655. fi
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4657. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4658. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4659. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4660. if test -n "$ac_tool_prefix"; then
  4661. for ac_prog in ar
  4662. do
  4663. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4664. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4666. $as_echo_n "checking for $ac_word... " >&6; }
  4667. if ${ac_cv_prog_AR+:} false; then :
  4668. $as_echo_n "(cached) " >&6
  4669. else
  4670. if test -n "$AR"; then
  4671. ac_cv_prog_AR="$AR" # Let the user override the test.
  4672. else
  4673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4674. for as_dir in $PATH
  4675. do
  4676. IFS=$as_save_IFS
  4677. test -z "$as_dir" && as_dir=.
  4678. for ac_exec_ext in '' $ac_executable_extensions; do
  4679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4680. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4682. break 2
  4683. fi
  4684. done
  4685. done
  4686. IFS=$as_save_IFS
  4687. fi
  4688. fi
  4689. AR=$ac_cv_prog_AR
  4690. if test -n "$AR"; then
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4692. $as_echo "$AR" >&6; }
  4693. else
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4695. $as_echo "no" >&6; }
  4696. fi
  4697. test -n "$AR" && break
  4698. done
  4699. fi
  4700. if test -z "$AR"; then
  4701. ac_ct_AR=$AR
  4702. for ac_prog in ar
  4703. do
  4704. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4705. set dummy $ac_prog; ac_word=$2
  4706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4707. $as_echo_n "checking for $ac_word... " >&6; }
  4708. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4709. $as_echo_n "(cached) " >&6
  4710. else
  4711. if test -n "$ac_ct_AR"; then
  4712. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4713. else
  4714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4715. for as_dir in $PATH
  4716. do
  4717. IFS=$as_save_IFS
  4718. test -z "$as_dir" && as_dir=.
  4719. for ac_exec_ext in '' $ac_executable_extensions; do
  4720. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4721. ac_cv_prog_ac_ct_AR="$ac_prog"
  4722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4723. break 2
  4724. fi
  4725. done
  4726. done
  4727. IFS=$as_save_IFS
  4728. fi
  4729. fi
  4730. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4731. if test -n "$ac_ct_AR"; then
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4733. $as_echo "$ac_ct_AR" >&6; }
  4734. else
  4735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4736. $as_echo "no" >&6; }
  4737. fi
  4738. test -n "$ac_ct_AR" && break
  4739. done
  4740. if test "x$ac_ct_AR" = x; then
  4741. AR="false"
  4742. else
  4743. case $cross_compiling:$ac_tool_warned in
  4744. yes:)
  4745. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4746. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4747. ac_tool_warned=yes ;;
  4748. esac
  4749. AR=$ac_ct_AR
  4750. fi
  4751. fi
  4752. : ${AR=ar}
  4753. : ${AR_FLAGS=cru}
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4755. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4756. if ${lt_cv_ar_at_file+:} false; then :
  4757. $as_echo_n "(cached) " >&6
  4758. else
  4759. lt_cv_ar_at_file=no
  4760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4761. /* end confdefs.h. */
  4762. int
  4763. main ()
  4764. {
  4765. ;
  4766. return 0;
  4767. }
  4768. _ACEOF
  4769. if ac_fn_c_try_compile "$LINENO"; then :
  4770. echo conftest.$ac_objext > conftest.lst
  4771. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4772. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4773. (eval $lt_ar_try) 2>&5
  4774. ac_status=$?
  4775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4776. test $ac_status = 0; }
  4777. if test "$ac_status" -eq 0; then
  4778. # Ensure the archiver fails upon bogus file names.
  4779. rm -f conftest.$ac_objext libconftest.a
  4780. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4781. (eval $lt_ar_try) 2>&5
  4782. ac_status=$?
  4783. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4784. test $ac_status = 0; }
  4785. if test "$ac_status" -ne 0; then
  4786. lt_cv_ar_at_file=@
  4787. fi
  4788. fi
  4789. rm -f conftest.* libconftest.a
  4790. fi
  4791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4792. fi
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4794. $as_echo "$lt_cv_ar_at_file" >&6; }
  4795. if test "x$lt_cv_ar_at_file" = xno; then
  4796. archiver_list_spec=
  4797. else
  4798. archiver_list_spec=$lt_cv_ar_at_file
  4799. fi
  4800. if test -n "$ac_tool_prefix"; then
  4801. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4802. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4804. $as_echo_n "checking for $ac_word... " >&6; }
  4805. if ${ac_cv_prog_STRIP+:} false; then :
  4806. $as_echo_n "(cached) " >&6
  4807. else
  4808. if test -n "$STRIP"; then
  4809. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4810. else
  4811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4812. for as_dir in $PATH
  4813. do
  4814. IFS=$as_save_IFS
  4815. test -z "$as_dir" && as_dir=.
  4816. for ac_exec_ext in '' $ac_executable_extensions; do
  4817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4818. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4820. break 2
  4821. fi
  4822. done
  4823. done
  4824. IFS=$as_save_IFS
  4825. fi
  4826. fi
  4827. STRIP=$ac_cv_prog_STRIP
  4828. if test -n "$STRIP"; then
  4829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4830. $as_echo "$STRIP" >&6; }
  4831. else
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4833. $as_echo "no" >&6; }
  4834. fi
  4835. fi
  4836. if test -z "$ac_cv_prog_STRIP"; then
  4837. ac_ct_STRIP=$STRIP
  4838. # Extract the first word of "strip", so it can be a program name with args.
  4839. set dummy strip; ac_word=$2
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4841. $as_echo_n "checking for $ac_word... " >&6; }
  4842. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4843. $as_echo_n "(cached) " >&6
  4844. else
  4845. if test -n "$ac_ct_STRIP"; then
  4846. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4847. else
  4848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4849. for as_dir in $PATH
  4850. do
  4851. IFS=$as_save_IFS
  4852. test -z "$as_dir" && as_dir=.
  4853. for ac_exec_ext in '' $ac_executable_extensions; do
  4854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4855. ac_cv_prog_ac_ct_STRIP="strip"
  4856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4857. break 2
  4858. fi
  4859. done
  4860. done
  4861. IFS=$as_save_IFS
  4862. fi
  4863. fi
  4864. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4865. if test -n "$ac_ct_STRIP"; then
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4867. $as_echo "$ac_ct_STRIP" >&6; }
  4868. else
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4870. $as_echo "no" >&6; }
  4871. fi
  4872. if test "x$ac_ct_STRIP" = x; then
  4873. STRIP=":"
  4874. else
  4875. case $cross_compiling:$ac_tool_warned in
  4876. yes:)
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4878. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4879. ac_tool_warned=yes ;;
  4880. esac
  4881. STRIP=$ac_ct_STRIP
  4882. fi
  4883. else
  4884. STRIP="$ac_cv_prog_STRIP"
  4885. fi
  4886. test -z "$STRIP" && STRIP=:
  4887. if test -n "$ac_tool_prefix"; then
  4888. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4889. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4891. $as_echo_n "checking for $ac_word... " >&6; }
  4892. if ${ac_cv_prog_RANLIB+:} false; then :
  4893. $as_echo_n "(cached) " >&6
  4894. else
  4895. if test -n "$RANLIB"; then
  4896. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4897. else
  4898. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4899. for as_dir in $PATH
  4900. do
  4901. IFS=$as_save_IFS
  4902. test -z "$as_dir" && as_dir=.
  4903. for ac_exec_ext in '' $ac_executable_extensions; do
  4904. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4905. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4906. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4907. break 2
  4908. fi
  4909. done
  4910. done
  4911. IFS=$as_save_IFS
  4912. fi
  4913. fi
  4914. RANLIB=$ac_cv_prog_RANLIB
  4915. if test -n "$RANLIB"; then
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4917. $as_echo "$RANLIB" >&6; }
  4918. else
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4920. $as_echo "no" >&6; }
  4921. fi
  4922. fi
  4923. if test -z "$ac_cv_prog_RANLIB"; then
  4924. ac_ct_RANLIB=$RANLIB
  4925. # Extract the first word of "ranlib", so it can be a program name with args.
  4926. set dummy ranlib; ac_word=$2
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4928. $as_echo_n "checking for $ac_word... " >&6; }
  4929. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4930. $as_echo_n "(cached) " >&6
  4931. else
  4932. if test -n "$ac_ct_RANLIB"; then
  4933. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4934. else
  4935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4936. for as_dir in $PATH
  4937. do
  4938. IFS=$as_save_IFS
  4939. test -z "$as_dir" && as_dir=.
  4940. for ac_exec_ext in '' $ac_executable_extensions; do
  4941. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4942. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4944. break 2
  4945. fi
  4946. done
  4947. done
  4948. IFS=$as_save_IFS
  4949. fi
  4950. fi
  4951. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4952. if test -n "$ac_ct_RANLIB"; then
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4954. $as_echo "$ac_ct_RANLIB" >&6; }
  4955. else
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4957. $as_echo "no" >&6; }
  4958. fi
  4959. if test "x$ac_ct_RANLIB" = x; then
  4960. RANLIB=":"
  4961. else
  4962. case $cross_compiling:$ac_tool_warned in
  4963. yes:)
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4965. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4966. ac_tool_warned=yes ;;
  4967. esac
  4968. RANLIB=$ac_ct_RANLIB
  4969. fi
  4970. else
  4971. RANLIB="$ac_cv_prog_RANLIB"
  4972. fi
  4973. test -z "$RANLIB" && RANLIB=:
  4974. # Determine commands to create old-style static archives.
  4975. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4976. old_postinstall_cmds='chmod 644 $oldlib'
  4977. old_postuninstall_cmds=
  4978. if test -n "$RANLIB"; then
  4979. case $host_os in
  4980. openbsd*)
  4981. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4982. ;;
  4983. *)
  4984. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4985. ;;
  4986. esac
  4987. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4988. fi
  4989. case $host_os in
  4990. darwin*)
  4991. lock_old_archive_extraction=yes ;;
  4992. *)
  4993. lock_old_archive_extraction=no ;;
  4994. esac
  4995. for ac_prog in gawk mawk nawk awk
  4996. do
  4997. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4998. set dummy $ac_prog; ac_word=$2
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5000. $as_echo_n "checking for $ac_word... " >&6; }
  5001. if ${ac_cv_prog_AWK+:} false; then :
  5002. $as_echo_n "(cached) " >&6
  5003. else
  5004. if test -n "$AWK"; then
  5005. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5006. else
  5007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5008. for as_dir in $PATH
  5009. do
  5010. IFS=$as_save_IFS
  5011. test -z "$as_dir" && as_dir=.
  5012. for ac_exec_ext in '' $ac_executable_extensions; do
  5013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5014. ac_cv_prog_AWK="$ac_prog"
  5015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5016. break 2
  5017. fi
  5018. done
  5019. done
  5020. IFS=$as_save_IFS
  5021. fi
  5022. fi
  5023. AWK=$ac_cv_prog_AWK
  5024. if test -n "$AWK"; then
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5026. $as_echo "$AWK" >&6; }
  5027. else
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5029. $as_echo "no" >&6; }
  5030. fi
  5031. test -n "$AWK" && break
  5032. done
  5033. # If no C compiler was specified, use CC.
  5034. LTCC=${LTCC-"$CC"}
  5035. # If no C compiler flags were specified, use CFLAGS.
  5036. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5037. # Allow CC to be a program name with arguments.
  5038. compiler=$CC
  5039. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5041. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5042. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5043. $as_echo_n "(cached) " >&6
  5044. else
  5045. # These are sane defaults that work on at least a few old systems.
  5046. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5047. # Character class describing NM global symbol codes.
  5048. symcode='[BCDEGRST]'
  5049. # Regexp to match symbols that can be accessed directly from C.
  5050. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5051. # Define system-specific variables.
  5052. case $host_os in
  5053. aix*)
  5054. symcode='[BCDT]'
  5055. ;;
  5056. cygwin* | mingw* | pw32* | cegcc*)
  5057. symcode='[ABCDGISTW]'
  5058. ;;
  5059. hpux*)
  5060. if test "$host_cpu" = ia64; then
  5061. symcode='[ABCDEGRST]'
  5062. fi
  5063. ;;
  5064. irix* | nonstopux*)
  5065. symcode='[BCDEGRST]'
  5066. ;;
  5067. osf*)
  5068. symcode='[BCDEGQRST]'
  5069. ;;
  5070. solaris*)
  5071. symcode='[BDRT]'
  5072. ;;
  5073. sco3.2v5*)
  5074. symcode='[DT]'
  5075. ;;
  5076. sysv4.2uw2*)
  5077. symcode='[DT]'
  5078. ;;
  5079. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5080. symcode='[ABDT]'
  5081. ;;
  5082. sysv4)
  5083. symcode='[DFNSTU]'
  5084. ;;
  5085. esac
  5086. # If we're using GNU nm, then use its standard symbol codes.
  5087. case `$NM -V 2>&1` in
  5088. *GNU* | *'with BFD'*)
  5089. symcode='[ABCDGIRSTW]' ;;
  5090. esac
  5091. # Transform an extracted symbol line into a proper C declaration.
  5092. # Some systems (esp. on ia64) link data and code symbols differently,
  5093. # so use this general approach.
  5094. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5095. # Transform an extracted symbol line into symbol name and symbol address
  5096. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5097. 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'"
  5098. # Handle CRLF in mingw tool chain
  5099. opt_cr=
  5100. case $build_os in
  5101. mingw*)
  5102. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5103. ;;
  5104. esac
  5105. # Try without a prefix underscore, then with it.
  5106. for ac_symprfx in "" "_"; do
  5107. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5108. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5109. # Write the raw and C identifiers.
  5110. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5111. # Fake it for dumpbin and say T for any non-static function
  5112. # and D for any global variable.
  5113. # Also find C++ and __fastcall symbols from MSVC++,
  5114. # which start with @ or ?.
  5115. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5116. " {last_section=section; section=\$ 3};"\
  5117. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5118. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5119. " \$ 0!~/External *\|/{next};"\
  5120. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5121. " {if(hide[section]) next};"\
  5122. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5123. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5124. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5125. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5126. " ' prfx=^$ac_symprfx"
  5127. else
  5128. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5129. fi
  5130. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5131. # Check to see that the pipe works correctly.
  5132. pipe_works=no
  5133. rm -f conftest*
  5134. cat > conftest.$ac_ext <<_LT_EOF
  5135. #ifdef __cplusplus
  5136. extern "C" {
  5137. #endif
  5138. char nm_test_var;
  5139. void nm_test_func(void);
  5140. void nm_test_func(void){}
  5141. #ifdef __cplusplus
  5142. }
  5143. #endif
  5144. int main(){nm_test_var='a';nm_test_func();return(0);}
  5145. _LT_EOF
  5146. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5147. (eval $ac_compile) 2>&5
  5148. ac_status=$?
  5149. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5150. test $ac_status = 0; }; then
  5151. # Now try to grab the symbols.
  5152. nlist=conftest.nm
  5153. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5154. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5155. ac_status=$?
  5156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5157. test $ac_status = 0; } && test -s "$nlist"; then
  5158. # Try sorting and uniquifying the output.
  5159. if sort "$nlist" | uniq > "$nlist"T; then
  5160. mv -f "$nlist"T "$nlist"
  5161. else
  5162. rm -f "$nlist"T
  5163. fi
  5164. # Make sure that we snagged all the symbols we need.
  5165. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5166. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5167. cat <<_LT_EOF > conftest.$ac_ext
  5168. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5169. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5170. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5171. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5172. # define LT_DLSYM_CONST
  5173. #elif defined(__osf__)
  5174. /* This system does not cope well with relocations in const data. */
  5175. # define LT_DLSYM_CONST
  5176. #else
  5177. # define LT_DLSYM_CONST const
  5178. #endif
  5179. #ifdef __cplusplus
  5180. extern "C" {
  5181. #endif
  5182. _LT_EOF
  5183. # Now generate the symbol file.
  5184. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5185. cat <<_LT_EOF >> conftest.$ac_ext
  5186. /* The mapping between symbol names and symbols. */
  5187. LT_DLSYM_CONST struct {
  5188. const char *name;
  5189. void *address;
  5190. }
  5191. lt__PROGRAM__LTX_preloaded_symbols[] =
  5192. {
  5193. { "@PROGRAM@", (void *) 0 },
  5194. _LT_EOF
  5195. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5196. cat <<\_LT_EOF >> conftest.$ac_ext
  5197. {0, (void *) 0}
  5198. };
  5199. /* This works around a problem in FreeBSD linker */
  5200. #ifdef FREEBSD_WORKAROUND
  5201. static const void *lt_preloaded_setup() {
  5202. return lt__PROGRAM__LTX_preloaded_symbols;
  5203. }
  5204. #endif
  5205. #ifdef __cplusplus
  5206. }
  5207. #endif
  5208. _LT_EOF
  5209. # Now try linking the two files.
  5210. mv conftest.$ac_objext conftstm.$ac_objext
  5211. lt_globsym_save_LIBS=$LIBS
  5212. lt_globsym_save_CFLAGS=$CFLAGS
  5213. LIBS="conftstm.$ac_objext"
  5214. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5215. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5216. (eval $ac_link) 2>&5
  5217. ac_status=$?
  5218. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5219. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5220. pipe_works=yes
  5221. fi
  5222. LIBS=$lt_globsym_save_LIBS
  5223. CFLAGS=$lt_globsym_save_CFLAGS
  5224. else
  5225. echo "cannot find nm_test_func in $nlist" >&5
  5226. fi
  5227. else
  5228. echo "cannot find nm_test_var in $nlist" >&5
  5229. fi
  5230. else
  5231. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5232. fi
  5233. else
  5234. echo "$progname: failed program was:" >&5
  5235. cat conftest.$ac_ext >&5
  5236. fi
  5237. rm -rf conftest* conftst*
  5238. # Do not use the global_symbol_pipe unless it works.
  5239. if test "$pipe_works" = yes; then
  5240. break
  5241. else
  5242. lt_cv_sys_global_symbol_pipe=
  5243. fi
  5244. done
  5245. fi
  5246. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5247. lt_cv_sys_global_symbol_to_cdecl=
  5248. fi
  5249. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5251. $as_echo "failed" >&6; }
  5252. else
  5253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5254. $as_echo "ok" >&6; }
  5255. fi
  5256. # Response file support.
  5257. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5258. nm_file_list_spec='@'
  5259. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5260. nm_file_list_spec='@'
  5261. fi
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5263. $as_echo_n "checking for sysroot... " >&6; }
  5264. # Check whether --with-sysroot was given.
  5265. if test "${with_sysroot+set}" = set; then :
  5266. withval=$with_sysroot;
  5267. else
  5268. with_sysroot=no
  5269. fi
  5270. lt_sysroot=
  5271. case ${with_sysroot} in #(
  5272. yes)
  5273. if test "$GCC" = yes; then
  5274. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5275. fi
  5276. ;; #(
  5277. /*)
  5278. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5279. ;; #(
  5280. no|'')
  5281. ;; #(
  5282. *)
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5284. $as_echo "${with_sysroot}" >&6; }
  5285. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5286. ;;
  5287. esac
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5289. $as_echo "${lt_sysroot:-no}" >&6; }
  5290. # Check whether --enable-libtool-lock was given.
  5291. if test "${enable_libtool_lock+set}" = set; then :
  5292. enableval=$enable_libtool_lock;
  5293. fi
  5294. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5295. # Some flags need to be propagated to the compiler or linker for good
  5296. # libtool support.
  5297. case $host in
  5298. ia64-*-hpux*)
  5299. # Find out which ABI we are using.
  5300. echo 'int i;' > conftest.$ac_ext
  5301. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5302. (eval $ac_compile) 2>&5
  5303. ac_status=$?
  5304. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5305. test $ac_status = 0; }; then
  5306. case `/usr/bin/file conftest.$ac_objext` in
  5307. *ELF-32*)
  5308. HPUX_IA64_MODE="32"
  5309. ;;
  5310. *ELF-64*)
  5311. HPUX_IA64_MODE="64"
  5312. ;;
  5313. esac
  5314. fi
  5315. rm -rf conftest*
  5316. ;;
  5317. *-*-irix6*)
  5318. # Find out which ABI we are using.
  5319. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5320. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5321. (eval $ac_compile) 2>&5
  5322. ac_status=$?
  5323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5324. test $ac_status = 0; }; then
  5325. if test "$lt_cv_prog_gnu_ld" = yes; then
  5326. case `/usr/bin/file conftest.$ac_objext` in
  5327. *32-bit*)
  5328. LD="${LD-ld} -melf32bsmip"
  5329. ;;
  5330. *N32*)
  5331. LD="${LD-ld} -melf32bmipn32"
  5332. ;;
  5333. *64-bit*)
  5334. LD="${LD-ld} -melf64bmip"
  5335. ;;
  5336. esac
  5337. else
  5338. case `/usr/bin/file conftest.$ac_objext` in
  5339. *32-bit*)
  5340. LD="${LD-ld} -32"
  5341. ;;
  5342. *N32*)
  5343. LD="${LD-ld} -n32"
  5344. ;;
  5345. *64-bit*)
  5346. LD="${LD-ld} -64"
  5347. ;;
  5348. esac
  5349. fi
  5350. fi
  5351. rm -rf conftest*
  5352. ;;
  5353. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5354. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5355. # Find out which ABI we are using.
  5356. echo 'int i;' > conftest.$ac_ext
  5357. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5358. (eval $ac_compile) 2>&5
  5359. ac_status=$?
  5360. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5361. test $ac_status = 0; }; then
  5362. case `/usr/bin/file conftest.o` in
  5363. *32-bit*)
  5364. case $host in
  5365. x86_64-*kfreebsd*-gnu)
  5366. LD="${LD-ld} -m elf_i386_fbsd"
  5367. ;;
  5368. x86_64-*linux*)
  5369. LD="${LD-ld} -m elf_i386"
  5370. ;;
  5371. ppc64-*linux*|powerpc64-*linux*)
  5372. LD="${LD-ld} -m elf32ppclinux"
  5373. ;;
  5374. s390x-*linux*)
  5375. LD="${LD-ld} -m elf_s390"
  5376. ;;
  5377. sparc64-*linux*)
  5378. LD="${LD-ld} -m elf32_sparc"
  5379. ;;
  5380. esac
  5381. ;;
  5382. *64-bit*)
  5383. case $host in
  5384. x86_64-*kfreebsd*-gnu)
  5385. LD="${LD-ld} -m elf_x86_64_fbsd"
  5386. ;;
  5387. x86_64-*linux*)
  5388. LD="${LD-ld} -m elf_x86_64"
  5389. ;;
  5390. powerpc64le-*linux*)
  5391. LD="${LD-ld} -m elf64lppc"
  5392. ;;
  5393. powerpc64-*linux*)
  5394. LD="${LD-ld} -m elf64ppc"
  5395. ;;
  5396. s390*-*linux*|s390*-*tpf*)
  5397. LD="${LD-ld} -m elf64_s390"
  5398. ;;
  5399. sparc*-*linux*)
  5400. LD="${LD-ld} -m elf64_sparc"
  5401. ;;
  5402. esac
  5403. ;;
  5404. esac
  5405. fi
  5406. rm -rf conftest*
  5407. ;;
  5408. *-*-sco3.2v5*)
  5409. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5410. SAVE_CFLAGS="$CFLAGS"
  5411. CFLAGS="$CFLAGS -belf"
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5413. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5414. if ${lt_cv_cc_needs_belf+:} false; then :
  5415. $as_echo_n "(cached) " >&6
  5416. else
  5417. ac_ext=c
  5418. ac_cpp='$CPP $CPPFLAGS'
  5419. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5420. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5421. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5423. /* end confdefs.h. */
  5424. int
  5425. main ()
  5426. {
  5427. ;
  5428. return 0;
  5429. }
  5430. _ACEOF
  5431. if ac_fn_c_try_link "$LINENO"; then :
  5432. lt_cv_cc_needs_belf=yes
  5433. else
  5434. lt_cv_cc_needs_belf=no
  5435. fi
  5436. rm -f core conftest.err conftest.$ac_objext \
  5437. conftest$ac_exeext conftest.$ac_ext
  5438. ac_ext=c
  5439. ac_cpp='$CPP $CPPFLAGS'
  5440. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5441. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5442. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5443. fi
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5445. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5446. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5447. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5448. CFLAGS="$SAVE_CFLAGS"
  5449. fi
  5450. ;;
  5451. *-*solaris*)
  5452. # Find out which ABI we are using.
  5453. echo 'int i;' > conftest.$ac_ext
  5454. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5455. (eval $ac_compile) 2>&5
  5456. ac_status=$?
  5457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5458. test $ac_status = 0; }; then
  5459. case `/usr/bin/file conftest.o` in
  5460. *64-bit*)
  5461. case $lt_cv_prog_gnu_ld in
  5462. yes*)
  5463. case $host in
  5464. i?86-*-solaris*)
  5465. LD="${LD-ld} -m elf_x86_64"
  5466. ;;
  5467. sparc*-*-solaris*)
  5468. LD="${LD-ld} -m elf64_sparc"
  5469. ;;
  5470. esac
  5471. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5472. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5473. LD="${LD-ld}_sol2"
  5474. fi
  5475. ;;
  5476. *)
  5477. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5478. LD="${LD-ld} -64"
  5479. fi
  5480. ;;
  5481. esac
  5482. ;;
  5483. esac
  5484. fi
  5485. rm -rf conftest*
  5486. ;;
  5487. esac
  5488. need_locks="$enable_libtool_lock"
  5489. if test -n "$ac_tool_prefix"; then
  5490. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5491. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5493. $as_echo_n "checking for $ac_word... " >&6; }
  5494. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5495. $as_echo_n "(cached) " >&6
  5496. else
  5497. if test -n "$MANIFEST_TOOL"; then
  5498. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5499. else
  5500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5501. for as_dir in $PATH
  5502. do
  5503. IFS=$as_save_IFS
  5504. test -z "$as_dir" && as_dir=.
  5505. for ac_exec_ext in '' $ac_executable_extensions; do
  5506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5507. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5509. break 2
  5510. fi
  5511. done
  5512. done
  5513. IFS=$as_save_IFS
  5514. fi
  5515. fi
  5516. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5517. if test -n "$MANIFEST_TOOL"; then
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5519. $as_echo "$MANIFEST_TOOL" >&6; }
  5520. else
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5522. $as_echo "no" >&6; }
  5523. fi
  5524. fi
  5525. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5526. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5527. # Extract the first word of "mt", so it can be a program name with args.
  5528. set dummy mt; ac_word=$2
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5530. $as_echo_n "checking for $ac_word... " >&6; }
  5531. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5532. $as_echo_n "(cached) " >&6
  5533. else
  5534. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5535. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5536. else
  5537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5538. for as_dir in $PATH
  5539. do
  5540. IFS=$as_save_IFS
  5541. test -z "$as_dir" && as_dir=.
  5542. for ac_exec_ext in '' $ac_executable_extensions; do
  5543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5544. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5546. break 2
  5547. fi
  5548. done
  5549. done
  5550. IFS=$as_save_IFS
  5551. fi
  5552. fi
  5553. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5554. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5556. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5557. else
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5559. $as_echo "no" >&6; }
  5560. fi
  5561. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5562. MANIFEST_TOOL=":"
  5563. else
  5564. case $cross_compiling:$ac_tool_warned in
  5565. yes:)
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5567. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5568. ac_tool_warned=yes ;;
  5569. esac
  5570. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5571. fi
  5572. else
  5573. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5574. fi
  5575. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5577. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5578. if ${lt_cv_path_mainfest_tool+:} false; then :
  5579. $as_echo_n "(cached) " >&6
  5580. else
  5581. lt_cv_path_mainfest_tool=no
  5582. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5583. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5584. cat conftest.err >&5
  5585. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5586. lt_cv_path_mainfest_tool=yes
  5587. fi
  5588. rm -f conftest*
  5589. fi
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5591. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5592. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5593. MANIFEST_TOOL=:
  5594. fi
  5595. case $host_os in
  5596. rhapsody* | darwin*)
  5597. if test -n "$ac_tool_prefix"; then
  5598. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5599. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5601. $as_echo_n "checking for $ac_word... " >&6; }
  5602. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. if test -n "$DSYMUTIL"; then
  5606. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5607. else
  5608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5609. for as_dir in $PATH
  5610. do
  5611. IFS=$as_save_IFS
  5612. test -z "$as_dir" && as_dir=.
  5613. for ac_exec_ext in '' $ac_executable_extensions; do
  5614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5615. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5617. break 2
  5618. fi
  5619. done
  5620. done
  5621. IFS=$as_save_IFS
  5622. fi
  5623. fi
  5624. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5625. if test -n "$DSYMUTIL"; then
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5627. $as_echo "$DSYMUTIL" >&6; }
  5628. else
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5630. $as_echo "no" >&6; }
  5631. fi
  5632. fi
  5633. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5634. ac_ct_DSYMUTIL=$DSYMUTIL
  5635. # Extract the first word of "dsymutil", so it can be a program name with args.
  5636. set dummy dsymutil; ac_word=$2
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5638. $as_echo_n "checking for $ac_word... " >&6; }
  5639. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5640. $as_echo_n "(cached) " >&6
  5641. else
  5642. if test -n "$ac_ct_DSYMUTIL"; then
  5643. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5644. else
  5645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5646. for as_dir in $PATH
  5647. do
  5648. IFS=$as_save_IFS
  5649. test -z "$as_dir" && as_dir=.
  5650. for ac_exec_ext in '' $ac_executable_extensions; do
  5651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5652. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5654. break 2
  5655. fi
  5656. done
  5657. done
  5658. IFS=$as_save_IFS
  5659. fi
  5660. fi
  5661. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5662. if test -n "$ac_ct_DSYMUTIL"; then
  5663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5664. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5665. else
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5667. $as_echo "no" >&6; }
  5668. fi
  5669. if test "x$ac_ct_DSYMUTIL" = x; then
  5670. DSYMUTIL=":"
  5671. else
  5672. case $cross_compiling:$ac_tool_warned in
  5673. yes:)
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5675. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5676. ac_tool_warned=yes ;;
  5677. esac
  5678. DSYMUTIL=$ac_ct_DSYMUTIL
  5679. fi
  5680. else
  5681. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5682. fi
  5683. if test -n "$ac_tool_prefix"; then
  5684. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5685. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5687. $as_echo_n "checking for $ac_word... " >&6; }
  5688. if ${ac_cv_prog_NMEDIT+:} false; then :
  5689. $as_echo_n "(cached) " >&6
  5690. else
  5691. if test -n "$NMEDIT"; then
  5692. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5693. else
  5694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5695. for as_dir in $PATH
  5696. do
  5697. IFS=$as_save_IFS
  5698. test -z "$as_dir" && as_dir=.
  5699. for ac_exec_ext in '' $ac_executable_extensions; do
  5700. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5701. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5703. break 2
  5704. fi
  5705. done
  5706. done
  5707. IFS=$as_save_IFS
  5708. fi
  5709. fi
  5710. NMEDIT=$ac_cv_prog_NMEDIT
  5711. if test -n "$NMEDIT"; then
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5713. $as_echo "$NMEDIT" >&6; }
  5714. else
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5716. $as_echo "no" >&6; }
  5717. fi
  5718. fi
  5719. if test -z "$ac_cv_prog_NMEDIT"; then
  5720. ac_ct_NMEDIT=$NMEDIT
  5721. # Extract the first word of "nmedit", so it can be a program name with args.
  5722. set dummy nmedit; ac_word=$2
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5724. $as_echo_n "checking for $ac_word... " >&6; }
  5725. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5726. $as_echo_n "(cached) " >&6
  5727. else
  5728. if test -n "$ac_ct_NMEDIT"; then
  5729. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5730. else
  5731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5732. for as_dir in $PATH
  5733. do
  5734. IFS=$as_save_IFS
  5735. test -z "$as_dir" && as_dir=.
  5736. for ac_exec_ext in '' $ac_executable_extensions; do
  5737. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5738. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5740. break 2
  5741. fi
  5742. done
  5743. done
  5744. IFS=$as_save_IFS
  5745. fi
  5746. fi
  5747. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5748. if test -n "$ac_ct_NMEDIT"; then
  5749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5750. $as_echo "$ac_ct_NMEDIT" >&6; }
  5751. else
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5753. $as_echo "no" >&6; }
  5754. fi
  5755. if test "x$ac_ct_NMEDIT" = x; then
  5756. NMEDIT=":"
  5757. else
  5758. case $cross_compiling:$ac_tool_warned in
  5759. yes:)
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5761. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5762. ac_tool_warned=yes ;;
  5763. esac
  5764. NMEDIT=$ac_ct_NMEDIT
  5765. fi
  5766. else
  5767. NMEDIT="$ac_cv_prog_NMEDIT"
  5768. fi
  5769. if test -n "$ac_tool_prefix"; then
  5770. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5771. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5773. $as_echo_n "checking for $ac_word... " >&6; }
  5774. if ${ac_cv_prog_LIPO+:} false; then :
  5775. $as_echo_n "(cached) " >&6
  5776. else
  5777. if test -n "$LIPO"; then
  5778. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5779. else
  5780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5781. for as_dir in $PATH
  5782. do
  5783. IFS=$as_save_IFS
  5784. test -z "$as_dir" && as_dir=.
  5785. for ac_exec_ext in '' $ac_executable_extensions; do
  5786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5787. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5789. break 2
  5790. fi
  5791. done
  5792. done
  5793. IFS=$as_save_IFS
  5794. fi
  5795. fi
  5796. LIPO=$ac_cv_prog_LIPO
  5797. if test -n "$LIPO"; then
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5799. $as_echo "$LIPO" >&6; }
  5800. else
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5802. $as_echo "no" >&6; }
  5803. fi
  5804. fi
  5805. if test -z "$ac_cv_prog_LIPO"; then
  5806. ac_ct_LIPO=$LIPO
  5807. # Extract the first word of "lipo", so it can be a program name with args.
  5808. set dummy lipo; ac_word=$2
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5810. $as_echo_n "checking for $ac_word... " >&6; }
  5811. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5812. $as_echo_n "(cached) " >&6
  5813. else
  5814. if test -n "$ac_ct_LIPO"; then
  5815. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5816. else
  5817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5818. for as_dir in $PATH
  5819. do
  5820. IFS=$as_save_IFS
  5821. test -z "$as_dir" && as_dir=.
  5822. for ac_exec_ext in '' $ac_executable_extensions; do
  5823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5824. ac_cv_prog_ac_ct_LIPO="lipo"
  5825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5826. break 2
  5827. fi
  5828. done
  5829. done
  5830. IFS=$as_save_IFS
  5831. fi
  5832. fi
  5833. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5834. if test -n "$ac_ct_LIPO"; then
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5836. $as_echo "$ac_ct_LIPO" >&6; }
  5837. else
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5839. $as_echo "no" >&6; }
  5840. fi
  5841. if test "x$ac_ct_LIPO" = x; then
  5842. LIPO=":"
  5843. else
  5844. case $cross_compiling:$ac_tool_warned in
  5845. yes:)
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5847. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5848. ac_tool_warned=yes ;;
  5849. esac
  5850. LIPO=$ac_ct_LIPO
  5851. fi
  5852. else
  5853. LIPO="$ac_cv_prog_LIPO"
  5854. fi
  5855. if test -n "$ac_tool_prefix"; then
  5856. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5857. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5859. $as_echo_n "checking for $ac_word... " >&6; }
  5860. if ${ac_cv_prog_OTOOL+:} false; then :
  5861. $as_echo_n "(cached) " >&6
  5862. else
  5863. if test -n "$OTOOL"; then
  5864. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5865. else
  5866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5867. for as_dir in $PATH
  5868. do
  5869. IFS=$as_save_IFS
  5870. test -z "$as_dir" && as_dir=.
  5871. for ac_exec_ext in '' $ac_executable_extensions; do
  5872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5873. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5875. break 2
  5876. fi
  5877. done
  5878. done
  5879. IFS=$as_save_IFS
  5880. fi
  5881. fi
  5882. OTOOL=$ac_cv_prog_OTOOL
  5883. if test -n "$OTOOL"; then
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5885. $as_echo "$OTOOL" >&6; }
  5886. else
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5888. $as_echo "no" >&6; }
  5889. fi
  5890. fi
  5891. if test -z "$ac_cv_prog_OTOOL"; then
  5892. ac_ct_OTOOL=$OTOOL
  5893. # Extract the first word of "otool", so it can be a program name with args.
  5894. set dummy otool; ac_word=$2
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5896. $as_echo_n "checking for $ac_word... " >&6; }
  5897. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. if test -n "$ac_ct_OTOOL"; then
  5901. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5902. else
  5903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5904. for as_dir in $PATH
  5905. do
  5906. IFS=$as_save_IFS
  5907. test -z "$as_dir" && as_dir=.
  5908. for ac_exec_ext in '' $ac_executable_extensions; do
  5909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5910. ac_cv_prog_ac_ct_OTOOL="otool"
  5911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5912. break 2
  5913. fi
  5914. done
  5915. done
  5916. IFS=$as_save_IFS
  5917. fi
  5918. fi
  5919. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5920. if test -n "$ac_ct_OTOOL"; then
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5922. $as_echo "$ac_ct_OTOOL" >&6; }
  5923. else
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5925. $as_echo "no" >&6; }
  5926. fi
  5927. if test "x$ac_ct_OTOOL" = x; then
  5928. OTOOL=":"
  5929. else
  5930. case $cross_compiling:$ac_tool_warned in
  5931. yes:)
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5933. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5934. ac_tool_warned=yes ;;
  5935. esac
  5936. OTOOL=$ac_ct_OTOOL
  5937. fi
  5938. else
  5939. OTOOL="$ac_cv_prog_OTOOL"
  5940. fi
  5941. if test -n "$ac_tool_prefix"; then
  5942. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5943. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5945. $as_echo_n "checking for $ac_word... " >&6; }
  5946. if ${ac_cv_prog_OTOOL64+:} false; then :
  5947. $as_echo_n "(cached) " >&6
  5948. else
  5949. if test -n "$OTOOL64"; then
  5950. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5951. else
  5952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5953. for as_dir in $PATH
  5954. do
  5955. IFS=$as_save_IFS
  5956. test -z "$as_dir" && as_dir=.
  5957. for ac_exec_ext in '' $ac_executable_extensions; do
  5958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5959. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5961. break 2
  5962. fi
  5963. done
  5964. done
  5965. IFS=$as_save_IFS
  5966. fi
  5967. fi
  5968. OTOOL64=$ac_cv_prog_OTOOL64
  5969. if test -n "$OTOOL64"; then
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5971. $as_echo "$OTOOL64" >&6; }
  5972. else
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5974. $as_echo "no" >&6; }
  5975. fi
  5976. fi
  5977. if test -z "$ac_cv_prog_OTOOL64"; then
  5978. ac_ct_OTOOL64=$OTOOL64
  5979. # Extract the first word of "otool64", so it can be a program name with args.
  5980. set dummy otool64; ac_word=$2
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5982. $as_echo_n "checking for $ac_word... " >&6; }
  5983. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5984. $as_echo_n "(cached) " >&6
  5985. else
  5986. if test -n "$ac_ct_OTOOL64"; then
  5987. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5988. else
  5989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5990. for as_dir in $PATH
  5991. do
  5992. IFS=$as_save_IFS
  5993. test -z "$as_dir" && as_dir=.
  5994. for ac_exec_ext in '' $ac_executable_extensions; do
  5995. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5996. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5998. break 2
  5999. fi
  6000. done
  6001. done
  6002. IFS=$as_save_IFS
  6003. fi
  6004. fi
  6005. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6006. if test -n "$ac_ct_OTOOL64"; then
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6008. $as_echo "$ac_ct_OTOOL64" >&6; }
  6009. else
  6010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6011. $as_echo "no" >&6; }
  6012. fi
  6013. if test "x$ac_ct_OTOOL64" = x; then
  6014. OTOOL64=":"
  6015. else
  6016. case $cross_compiling:$ac_tool_warned in
  6017. yes:)
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6019. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6020. ac_tool_warned=yes ;;
  6021. esac
  6022. OTOOL64=$ac_ct_OTOOL64
  6023. fi
  6024. else
  6025. OTOOL64="$ac_cv_prog_OTOOL64"
  6026. fi
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6028. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6029. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6030. $as_echo_n "(cached) " >&6
  6031. else
  6032. lt_cv_apple_cc_single_mod=no
  6033. if test -z "${LT_MULTI_MODULE}"; then
  6034. # By default we will add the -single_module flag. You can override
  6035. # by either setting the environment variable LT_MULTI_MODULE
  6036. # non-empty at configure time, or by adding -multi_module to the
  6037. # link flags.
  6038. rm -rf libconftest.dylib*
  6039. echo "int foo(void){return 1;}" > conftest.c
  6040. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6041. -dynamiclib -Wl,-single_module conftest.c" >&5
  6042. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6043. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6044. _lt_result=$?
  6045. # If there is a non-empty error log, and "single_module"
  6046. # appears in it, assume the flag caused a linker warning
  6047. if test -s conftest.err && $GREP single_module conftest.err; then
  6048. cat conftest.err >&5
  6049. # Otherwise, if the output was created with a 0 exit code from
  6050. # the compiler, it worked.
  6051. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6052. lt_cv_apple_cc_single_mod=yes
  6053. else
  6054. cat conftest.err >&5
  6055. fi
  6056. rm -rf libconftest.dylib*
  6057. rm -f conftest.*
  6058. fi
  6059. fi
  6060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6061. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6063. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6064. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6065. $as_echo_n "(cached) " >&6
  6066. else
  6067. lt_cv_ld_exported_symbols_list=no
  6068. save_LDFLAGS=$LDFLAGS
  6069. echo "_main" > conftest.sym
  6070. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6072. /* end confdefs.h. */
  6073. int
  6074. main ()
  6075. {
  6076. ;
  6077. return 0;
  6078. }
  6079. _ACEOF
  6080. if ac_fn_c_try_link "$LINENO"; then :
  6081. lt_cv_ld_exported_symbols_list=yes
  6082. else
  6083. lt_cv_ld_exported_symbols_list=no
  6084. fi
  6085. rm -f core conftest.err conftest.$ac_objext \
  6086. conftest$ac_exeext conftest.$ac_ext
  6087. LDFLAGS="$save_LDFLAGS"
  6088. fi
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6090. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6092. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6093. if ${lt_cv_ld_force_load+:} false; then :
  6094. $as_echo_n "(cached) " >&6
  6095. else
  6096. lt_cv_ld_force_load=no
  6097. cat > conftest.c << _LT_EOF
  6098. int forced_loaded() { return 2;}
  6099. _LT_EOF
  6100. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6101. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6102. echo "$AR cru libconftest.a conftest.o" >&5
  6103. $AR cru libconftest.a conftest.o 2>&5
  6104. echo "$RANLIB libconftest.a" >&5
  6105. $RANLIB libconftest.a 2>&5
  6106. cat > conftest.c << _LT_EOF
  6107. int main() { return 0;}
  6108. _LT_EOF
  6109. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6110. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6111. _lt_result=$?
  6112. if test -s conftest.err && $GREP force_load conftest.err; then
  6113. cat conftest.err >&5
  6114. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6115. lt_cv_ld_force_load=yes
  6116. else
  6117. cat conftest.err >&5
  6118. fi
  6119. rm -f conftest.err libconftest.a conftest conftest.c
  6120. rm -rf conftest.dSYM
  6121. fi
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6123. $as_echo "$lt_cv_ld_force_load" >&6; }
  6124. case $host_os in
  6125. rhapsody* | darwin1.[012])
  6126. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6127. darwin1.*)
  6128. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6129. darwin*) # darwin 5.x on
  6130. # if running on 10.5 or later, the deployment target defaults
  6131. # to the OS version, if on x86, and 10.4, the deployment
  6132. # target defaults to 10.4. Don't you love it?
  6133. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6134. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6135. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6136. 10.[012]*)
  6137. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6138. 10.*)
  6139. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6140. esac
  6141. ;;
  6142. esac
  6143. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6144. _lt_dar_single_mod='$single_module'
  6145. fi
  6146. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6147. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6148. else
  6149. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6150. fi
  6151. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6152. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6153. else
  6154. _lt_dsymutil=
  6155. fi
  6156. ;;
  6157. esac
  6158. ac_ext=c
  6159. ac_cpp='$CPP $CPPFLAGS'
  6160. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6161. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6162. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6164. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6165. # On Suns, sometimes $CPP names a directory.
  6166. if test -n "$CPP" && test -d "$CPP"; then
  6167. CPP=
  6168. fi
  6169. if test -z "$CPP"; then
  6170. if ${ac_cv_prog_CPP+:} false; then :
  6171. $as_echo_n "(cached) " >&6
  6172. else
  6173. # Double quotes because CPP needs to be expanded
  6174. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6175. do
  6176. ac_preproc_ok=false
  6177. for ac_c_preproc_warn_flag in '' yes
  6178. do
  6179. # Use a header file that comes with gcc, so configuring glibc
  6180. # with a fresh cross-compiler works.
  6181. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6182. # <limits.h> exists even on freestanding compilers.
  6183. # On the NeXT, cc -E runs the code through the compiler's parser,
  6184. # not just through cpp. "Syntax error" is here to catch this case.
  6185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6186. /* end confdefs.h. */
  6187. #ifdef __STDC__
  6188. # include <limits.h>
  6189. #else
  6190. # include <assert.h>
  6191. #endif
  6192. Syntax error
  6193. _ACEOF
  6194. if ac_fn_c_try_cpp "$LINENO"; then :
  6195. else
  6196. # Broken: fails on valid input.
  6197. continue
  6198. fi
  6199. rm -f conftest.err conftest.i conftest.$ac_ext
  6200. # OK, works on sane cases. Now check whether nonexistent headers
  6201. # can be detected and how.
  6202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6203. /* end confdefs.h. */
  6204. #include <ac_nonexistent.h>
  6205. _ACEOF
  6206. if ac_fn_c_try_cpp "$LINENO"; then :
  6207. # Broken: success on invalid input.
  6208. continue
  6209. else
  6210. # Passes both tests.
  6211. ac_preproc_ok=:
  6212. break
  6213. fi
  6214. rm -f conftest.err conftest.i conftest.$ac_ext
  6215. done
  6216. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6217. rm -f conftest.i conftest.err conftest.$ac_ext
  6218. if $ac_preproc_ok; then :
  6219. break
  6220. fi
  6221. done
  6222. ac_cv_prog_CPP=$CPP
  6223. fi
  6224. CPP=$ac_cv_prog_CPP
  6225. else
  6226. ac_cv_prog_CPP=$CPP
  6227. fi
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6229. $as_echo "$CPP" >&6; }
  6230. ac_preproc_ok=false
  6231. for ac_c_preproc_warn_flag in '' yes
  6232. do
  6233. # Use a header file that comes with gcc, so configuring glibc
  6234. # with a fresh cross-compiler works.
  6235. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6236. # <limits.h> exists even on freestanding compilers.
  6237. # On the NeXT, cc -E runs the code through the compiler's parser,
  6238. # not just through cpp. "Syntax error" is here to catch this case.
  6239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6240. /* end confdefs.h. */
  6241. #ifdef __STDC__
  6242. # include <limits.h>
  6243. #else
  6244. # include <assert.h>
  6245. #endif
  6246. Syntax error
  6247. _ACEOF
  6248. if ac_fn_c_try_cpp "$LINENO"; then :
  6249. else
  6250. # Broken: fails on valid input.
  6251. continue
  6252. fi
  6253. rm -f conftest.err conftest.i conftest.$ac_ext
  6254. # OK, works on sane cases. Now check whether nonexistent headers
  6255. # can be detected and how.
  6256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6257. /* end confdefs.h. */
  6258. #include <ac_nonexistent.h>
  6259. _ACEOF
  6260. if ac_fn_c_try_cpp "$LINENO"; then :
  6261. # Broken: success on invalid input.
  6262. continue
  6263. else
  6264. # Passes both tests.
  6265. ac_preproc_ok=:
  6266. break
  6267. fi
  6268. rm -f conftest.err conftest.i conftest.$ac_ext
  6269. done
  6270. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6271. rm -f conftest.i conftest.err conftest.$ac_ext
  6272. if $ac_preproc_ok; then :
  6273. else
  6274. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6275. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6276. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6277. See \`config.log' for more details" "$LINENO" 5; }
  6278. fi
  6279. ac_ext=c
  6280. ac_cpp='$CPP $CPPFLAGS'
  6281. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6282. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6283. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6285. $as_echo_n "checking for ANSI C header files... " >&6; }
  6286. if ${ac_cv_header_stdc+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6290. /* end confdefs.h. */
  6291. #include <stdlib.h>
  6292. #include <stdarg.h>
  6293. #include <string.h>
  6294. #include <float.h>
  6295. int
  6296. main ()
  6297. {
  6298. ;
  6299. return 0;
  6300. }
  6301. _ACEOF
  6302. if ac_fn_c_try_compile "$LINENO"; then :
  6303. ac_cv_header_stdc=yes
  6304. else
  6305. ac_cv_header_stdc=no
  6306. fi
  6307. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6308. if test $ac_cv_header_stdc = yes; then
  6309. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6311. /* end confdefs.h. */
  6312. #include <string.h>
  6313. _ACEOF
  6314. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6315. $EGREP "memchr" >/dev/null 2>&1; then :
  6316. else
  6317. ac_cv_header_stdc=no
  6318. fi
  6319. rm -f conftest*
  6320. fi
  6321. if test $ac_cv_header_stdc = yes; then
  6322. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6324. /* end confdefs.h. */
  6325. #include <stdlib.h>
  6326. _ACEOF
  6327. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6328. $EGREP "free" >/dev/null 2>&1; then :
  6329. else
  6330. ac_cv_header_stdc=no
  6331. fi
  6332. rm -f conftest*
  6333. fi
  6334. if test $ac_cv_header_stdc = yes; then
  6335. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6336. if test "$cross_compiling" = yes; then :
  6337. :
  6338. else
  6339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6340. /* end confdefs.h. */
  6341. #include <ctype.h>
  6342. #include <stdlib.h>
  6343. #if ((' ' & 0x0FF) == 0x020)
  6344. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6345. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6346. #else
  6347. # define ISLOWER(c) \
  6348. (('a' <= (c) && (c) <= 'i') \
  6349. || ('j' <= (c) && (c) <= 'r') \
  6350. || ('s' <= (c) && (c) <= 'z'))
  6351. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6352. #endif
  6353. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6354. int
  6355. main ()
  6356. {
  6357. int i;
  6358. for (i = 0; i < 256; i++)
  6359. if (XOR (islower (i), ISLOWER (i))
  6360. || toupper (i) != TOUPPER (i))
  6361. return 2;
  6362. return 0;
  6363. }
  6364. _ACEOF
  6365. if ac_fn_c_try_run "$LINENO"; then :
  6366. else
  6367. ac_cv_header_stdc=no
  6368. fi
  6369. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6370. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6371. fi
  6372. fi
  6373. fi
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6375. $as_echo "$ac_cv_header_stdc" >&6; }
  6376. if test $ac_cv_header_stdc = yes; then
  6377. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6378. fi
  6379. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6380. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6381. inttypes.h stdint.h unistd.h
  6382. do :
  6383. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6384. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6385. "
  6386. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6387. cat >>confdefs.h <<_ACEOF
  6388. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6389. _ACEOF
  6390. fi
  6391. done
  6392. for ac_header in dlfcn.h
  6393. do :
  6394. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6395. "
  6396. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6397. cat >>confdefs.h <<_ACEOF
  6398. #define HAVE_DLFCN_H 1
  6399. _ACEOF
  6400. fi
  6401. done
  6402. # Set options
  6403. enable_win32_dll=yes
  6404. case $host in
  6405. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6406. if test -n "$ac_tool_prefix"; then
  6407. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6408. set dummy ${ac_tool_prefix}as; ac_word=$2
  6409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6410. $as_echo_n "checking for $ac_word... " >&6; }
  6411. if ${ac_cv_prog_AS+:} false; then :
  6412. $as_echo_n "(cached) " >&6
  6413. else
  6414. if test -n "$AS"; then
  6415. ac_cv_prog_AS="$AS" # Let the user override the test.
  6416. else
  6417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6418. for as_dir in $PATH
  6419. do
  6420. IFS=$as_save_IFS
  6421. test -z "$as_dir" && as_dir=.
  6422. for ac_exec_ext in '' $ac_executable_extensions; do
  6423. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6424. ac_cv_prog_AS="${ac_tool_prefix}as"
  6425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6426. break 2
  6427. fi
  6428. done
  6429. done
  6430. IFS=$as_save_IFS
  6431. fi
  6432. fi
  6433. AS=$ac_cv_prog_AS
  6434. if test -n "$AS"; then
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6436. $as_echo "$AS" >&6; }
  6437. else
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6439. $as_echo "no" >&6; }
  6440. fi
  6441. fi
  6442. if test -z "$ac_cv_prog_AS"; then
  6443. ac_ct_AS=$AS
  6444. # Extract the first word of "as", so it can be a program name with args.
  6445. set dummy as; ac_word=$2
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6447. $as_echo_n "checking for $ac_word... " >&6; }
  6448. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6449. $as_echo_n "(cached) " >&6
  6450. else
  6451. if test -n "$ac_ct_AS"; then
  6452. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6453. else
  6454. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6455. for as_dir in $PATH
  6456. do
  6457. IFS=$as_save_IFS
  6458. test -z "$as_dir" && as_dir=.
  6459. for ac_exec_ext in '' $ac_executable_extensions; do
  6460. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6461. ac_cv_prog_ac_ct_AS="as"
  6462. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6463. break 2
  6464. fi
  6465. done
  6466. done
  6467. IFS=$as_save_IFS
  6468. fi
  6469. fi
  6470. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6471. if test -n "$ac_ct_AS"; then
  6472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6473. $as_echo "$ac_ct_AS" >&6; }
  6474. else
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6476. $as_echo "no" >&6; }
  6477. fi
  6478. if test "x$ac_ct_AS" = x; then
  6479. AS="false"
  6480. else
  6481. case $cross_compiling:$ac_tool_warned in
  6482. yes:)
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6484. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6485. ac_tool_warned=yes ;;
  6486. esac
  6487. AS=$ac_ct_AS
  6488. fi
  6489. else
  6490. AS="$ac_cv_prog_AS"
  6491. fi
  6492. if test -n "$ac_tool_prefix"; then
  6493. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6494. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6496. $as_echo_n "checking for $ac_word... " >&6; }
  6497. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6498. $as_echo_n "(cached) " >&6
  6499. else
  6500. if test -n "$DLLTOOL"; then
  6501. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6502. else
  6503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6504. for as_dir in $PATH
  6505. do
  6506. IFS=$as_save_IFS
  6507. test -z "$as_dir" && as_dir=.
  6508. for ac_exec_ext in '' $ac_executable_extensions; do
  6509. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6510. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6511. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6512. break 2
  6513. fi
  6514. done
  6515. done
  6516. IFS=$as_save_IFS
  6517. fi
  6518. fi
  6519. DLLTOOL=$ac_cv_prog_DLLTOOL
  6520. if test -n "$DLLTOOL"; then
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6522. $as_echo "$DLLTOOL" >&6; }
  6523. else
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6525. $as_echo "no" >&6; }
  6526. fi
  6527. fi
  6528. if test -z "$ac_cv_prog_DLLTOOL"; then
  6529. ac_ct_DLLTOOL=$DLLTOOL
  6530. # Extract the first word of "dlltool", so it can be a program name with args.
  6531. set dummy dlltool; ac_word=$2
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6533. $as_echo_n "checking for $ac_word... " >&6; }
  6534. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6535. $as_echo_n "(cached) " >&6
  6536. else
  6537. if test -n "$ac_ct_DLLTOOL"; then
  6538. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6539. else
  6540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6541. for as_dir in $PATH
  6542. do
  6543. IFS=$as_save_IFS
  6544. test -z "$as_dir" && as_dir=.
  6545. for ac_exec_ext in '' $ac_executable_extensions; do
  6546. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6547. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6549. break 2
  6550. fi
  6551. done
  6552. done
  6553. IFS=$as_save_IFS
  6554. fi
  6555. fi
  6556. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6557. if test -n "$ac_ct_DLLTOOL"; then
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6559. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6560. else
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6562. $as_echo "no" >&6; }
  6563. fi
  6564. if test "x$ac_ct_DLLTOOL" = x; then
  6565. DLLTOOL="false"
  6566. else
  6567. case $cross_compiling:$ac_tool_warned in
  6568. yes:)
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6570. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6571. ac_tool_warned=yes ;;
  6572. esac
  6573. DLLTOOL=$ac_ct_DLLTOOL
  6574. fi
  6575. else
  6576. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6577. fi
  6578. if test -n "$ac_tool_prefix"; then
  6579. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6580. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6582. $as_echo_n "checking for $ac_word... " >&6; }
  6583. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. if test -n "$OBJDUMP"; then
  6587. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6588. else
  6589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6590. for as_dir in $PATH
  6591. do
  6592. IFS=$as_save_IFS
  6593. test -z "$as_dir" && as_dir=.
  6594. for ac_exec_ext in '' $ac_executable_extensions; do
  6595. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6596. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6598. break 2
  6599. fi
  6600. done
  6601. done
  6602. IFS=$as_save_IFS
  6603. fi
  6604. fi
  6605. OBJDUMP=$ac_cv_prog_OBJDUMP
  6606. if test -n "$OBJDUMP"; then
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6608. $as_echo "$OBJDUMP" >&6; }
  6609. else
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6611. $as_echo "no" >&6; }
  6612. fi
  6613. fi
  6614. if test -z "$ac_cv_prog_OBJDUMP"; then
  6615. ac_ct_OBJDUMP=$OBJDUMP
  6616. # Extract the first word of "objdump", so it can be a program name with args.
  6617. set dummy objdump; ac_word=$2
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6619. $as_echo_n "checking for $ac_word... " >&6; }
  6620. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6621. $as_echo_n "(cached) " >&6
  6622. else
  6623. if test -n "$ac_ct_OBJDUMP"; then
  6624. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6625. else
  6626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6627. for as_dir in $PATH
  6628. do
  6629. IFS=$as_save_IFS
  6630. test -z "$as_dir" && as_dir=.
  6631. for ac_exec_ext in '' $ac_executable_extensions; do
  6632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6633. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6635. break 2
  6636. fi
  6637. done
  6638. done
  6639. IFS=$as_save_IFS
  6640. fi
  6641. fi
  6642. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6643. if test -n "$ac_ct_OBJDUMP"; then
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6645. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6646. else
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6648. $as_echo "no" >&6; }
  6649. fi
  6650. if test "x$ac_ct_OBJDUMP" = x; then
  6651. OBJDUMP="false"
  6652. else
  6653. case $cross_compiling:$ac_tool_warned in
  6654. yes:)
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6656. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6657. ac_tool_warned=yes ;;
  6658. esac
  6659. OBJDUMP=$ac_ct_OBJDUMP
  6660. fi
  6661. else
  6662. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6663. fi
  6664. ;;
  6665. esac
  6666. test -z "$AS" && AS=as
  6667. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6668. test -z "$OBJDUMP" && OBJDUMP=objdump
  6669. enable_dlopen=no
  6670. # Check whether --enable-shared was given.
  6671. if test "${enable_shared+set}" = set; then :
  6672. enableval=$enable_shared; p=${PACKAGE-default}
  6673. case $enableval in
  6674. yes) enable_shared=yes ;;
  6675. no) enable_shared=no ;;
  6676. *)
  6677. enable_shared=no
  6678. # Look at the argument we got. We use all the common list separators.
  6679. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6680. for pkg in $enableval; do
  6681. IFS="$lt_save_ifs"
  6682. if test "X$pkg" = "X$p"; then
  6683. enable_shared=yes
  6684. fi
  6685. done
  6686. IFS="$lt_save_ifs"
  6687. ;;
  6688. esac
  6689. else
  6690. enable_shared=yes
  6691. fi
  6692. # Check whether --enable-static was given.
  6693. if test "${enable_static+set}" = set; then :
  6694. enableval=$enable_static; p=${PACKAGE-default}
  6695. case $enableval in
  6696. yes) enable_static=yes ;;
  6697. no) enable_static=no ;;
  6698. *)
  6699. enable_static=no
  6700. # Look at the argument we got. We use all the common list separators.
  6701. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6702. for pkg in $enableval; do
  6703. IFS="$lt_save_ifs"
  6704. if test "X$pkg" = "X$p"; then
  6705. enable_static=yes
  6706. fi
  6707. done
  6708. IFS="$lt_save_ifs"
  6709. ;;
  6710. esac
  6711. else
  6712. enable_static=yes
  6713. fi
  6714. # Check whether --with-pic was given.
  6715. if test "${with_pic+set}" = set; then :
  6716. withval=$with_pic; lt_p=${PACKAGE-default}
  6717. case $withval in
  6718. yes|no) pic_mode=$withval ;;
  6719. *)
  6720. pic_mode=default
  6721. # Look at the argument we got. We use all the common list separators.
  6722. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6723. for lt_pkg in $withval; do
  6724. IFS="$lt_save_ifs"
  6725. if test "X$lt_pkg" = "X$lt_p"; then
  6726. pic_mode=yes
  6727. fi
  6728. done
  6729. IFS="$lt_save_ifs"
  6730. ;;
  6731. esac
  6732. else
  6733. pic_mode=default
  6734. fi
  6735. test -z "$pic_mode" && pic_mode=default
  6736. # Check whether --enable-fast-install was given.
  6737. if test "${enable_fast_install+set}" = set; then :
  6738. enableval=$enable_fast_install; p=${PACKAGE-default}
  6739. case $enableval in
  6740. yes) enable_fast_install=yes ;;
  6741. no) enable_fast_install=no ;;
  6742. *)
  6743. enable_fast_install=no
  6744. # Look at the argument we got. We use all the common list separators.
  6745. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6746. for pkg in $enableval; do
  6747. IFS="$lt_save_ifs"
  6748. if test "X$pkg" = "X$p"; then
  6749. enable_fast_install=yes
  6750. fi
  6751. done
  6752. IFS="$lt_save_ifs"
  6753. ;;
  6754. esac
  6755. else
  6756. enable_fast_install=yes
  6757. fi
  6758. # This can be used to rebuild libtool when needed
  6759. LIBTOOL_DEPS="$ltmain"
  6760. # Always use our own libtool.
  6761. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6762. test -z "$LN_S" && LN_S="ln -s"
  6763. if test -n "${ZSH_VERSION+set}" ; then
  6764. setopt NO_GLOB_SUBST
  6765. fi
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6767. $as_echo_n "checking for objdir... " >&6; }
  6768. if ${lt_cv_objdir+:} false; then :
  6769. $as_echo_n "(cached) " >&6
  6770. else
  6771. rm -f .libs 2>/dev/null
  6772. mkdir .libs 2>/dev/null
  6773. if test -d .libs; then
  6774. lt_cv_objdir=.libs
  6775. else
  6776. # MS-DOS does not allow filenames that begin with a dot.
  6777. lt_cv_objdir=_libs
  6778. fi
  6779. rmdir .libs 2>/dev/null
  6780. fi
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6782. $as_echo "$lt_cv_objdir" >&6; }
  6783. objdir=$lt_cv_objdir
  6784. cat >>confdefs.h <<_ACEOF
  6785. #define LT_OBJDIR "$lt_cv_objdir/"
  6786. _ACEOF
  6787. case $host_os in
  6788. aix3*)
  6789. # AIX sometimes has problems with the GCC collect2 program. For some
  6790. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6791. # vanish in a puff of smoke.
  6792. if test "X${COLLECT_NAMES+set}" != Xset; then
  6793. COLLECT_NAMES=
  6794. export COLLECT_NAMES
  6795. fi
  6796. ;;
  6797. esac
  6798. # Global variables:
  6799. ofile=libtool
  6800. can_build_shared=yes
  6801. # All known linkers require a `.a' archive for static linking (except MSVC,
  6802. # which needs '.lib').
  6803. libext=a
  6804. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6805. old_CC="$CC"
  6806. old_CFLAGS="$CFLAGS"
  6807. # Set sane defaults for various variables
  6808. test -z "$CC" && CC=cc
  6809. test -z "$LTCC" && LTCC=$CC
  6810. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6811. test -z "$LD" && LD=ld
  6812. test -z "$ac_objext" && ac_objext=o
  6813. for cc_temp in $compiler""; do
  6814. case $cc_temp in
  6815. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6816. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6817. \-*) ;;
  6818. *) break;;
  6819. esac
  6820. done
  6821. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6822. # Only perform the check for file, if the check method requires it
  6823. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6824. case $deplibs_check_method in
  6825. file_magic*)
  6826. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6828. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6829. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6830. $as_echo_n "(cached) " >&6
  6831. else
  6832. case $MAGIC_CMD in
  6833. [\\/*] | ?:[\\/]*)
  6834. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6835. ;;
  6836. *)
  6837. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6838. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6839. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6840. for ac_dir in $ac_dummy; do
  6841. IFS="$lt_save_ifs"
  6842. test -z "$ac_dir" && ac_dir=.
  6843. if test -f $ac_dir/${ac_tool_prefix}file; then
  6844. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6845. if test -n "$file_magic_test_file"; then
  6846. case $deplibs_check_method in
  6847. "file_magic "*)
  6848. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6849. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6850. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6851. $EGREP "$file_magic_regex" > /dev/null; then
  6852. :
  6853. else
  6854. cat <<_LT_EOF 1>&2
  6855. *** Warning: the command libtool uses to detect shared libraries,
  6856. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6857. *** The result is that libtool may fail to recognize shared libraries
  6858. *** as such. This will affect the creation of libtool libraries that
  6859. *** depend on shared libraries, but programs linked with such libtool
  6860. *** libraries will work regardless of this problem. Nevertheless, you
  6861. *** may want to report the problem to your system manager and/or to
  6862. *** bug-libtool@gnu.org
  6863. _LT_EOF
  6864. fi ;;
  6865. esac
  6866. fi
  6867. break
  6868. fi
  6869. done
  6870. IFS="$lt_save_ifs"
  6871. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6872. ;;
  6873. esac
  6874. fi
  6875. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6876. if test -n "$MAGIC_CMD"; then
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6878. $as_echo "$MAGIC_CMD" >&6; }
  6879. else
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6881. $as_echo "no" >&6; }
  6882. fi
  6883. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6884. if test -n "$ac_tool_prefix"; then
  6885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6886. $as_echo_n "checking for file... " >&6; }
  6887. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6888. $as_echo_n "(cached) " >&6
  6889. else
  6890. case $MAGIC_CMD in
  6891. [\\/*] | ?:[\\/]*)
  6892. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6893. ;;
  6894. *)
  6895. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6896. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6897. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6898. for ac_dir in $ac_dummy; do
  6899. IFS="$lt_save_ifs"
  6900. test -z "$ac_dir" && ac_dir=.
  6901. if test -f $ac_dir/file; then
  6902. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6903. if test -n "$file_magic_test_file"; then
  6904. case $deplibs_check_method in
  6905. "file_magic "*)
  6906. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6907. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6908. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6909. $EGREP "$file_magic_regex" > /dev/null; then
  6910. :
  6911. else
  6912. cat <<_LT_EOF 1>&2
  6913. *** Warning: the command libtool uses to detect shared libraries,
  6914. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6915. *** The result is that libtool may fail to recognize shared libraries
  6916. *** as such. This will affect the creation of libtool libraries that
  6917. *** depend on shared libraries, but programs linked with such libtool
  6918. *** libraries will work regardless of this problem. Nevertheless, you
  6919. *** may want to report the problem to your system manager and/or to
  6920. *** bug-libtool@gnu.org
  6921. _LT_EOF
  6922. fi ;;
  6923. esac
  6924. fi
  6925. break
  6926. fi
  6927. done
  6928. IFS="$lt_save_ifs"
  6929. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6930. ;;
  6931. esac
  6932. fi
  6933. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6934. if test -n "$MAGIC_CMD"; then
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6936. $as_echo "$MAGIC_CMD" >&6; }
  6937. else
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6939. $as_echo "no" >&6; }
  6940. fi
  6941. else
  6942. MAGIC_CMD=:
  6943. fi
  6944. fi
  6945. fi
  6946. ;;
  6947. esac
  6948. # Use C for the default configuration in the libtool script
  6949. lt_save_CC="$CC"
  6950. ac_ext=c
  6951. ac_cpp='$CPP $CPPFLAGS'
  6952. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6953. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6954. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6955. # Source file extension for C test sources.
  6956. ac_ext=c
  6957. # Object file extension for compiled C test sources.
  6958. objext=o
  6959. objext=$objext
  6960. # Code to be used in simple compile tests
  6961. lt_simple_compile_test_code="int some_variable = 0;"
  6962. # Code to be used in simple link tests
  6963. lt_simple_link_test_code='int main(){return(0);}'
  6964. # If no C compiler was specified, use CC.
  6965. LTCC=${LTCC-"$CC"}
  6966. # If no C compiler flags were specified, use CFLAGS.
  6967. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6968. # Allow CC to be a program name with arguments.
  6969. compiler=$CC
  6970. # Save the default compiler, since it gets overwritten when the other
  6971. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6972. compiler_DEFAULT=$CC
  6973. # save warnings/boilerplate of simple test code
  6974. ac_outfile=conftest.$ac_objext
  6975. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6976. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6977. _lt_compiler_boilerplate=`cat conftest.err`
  6978. $RM conftest*
  6979. ac_outfile=conftest.$ac_objext
  6980. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6981. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6982. _lt_linker_boilerplate=`cat conftest.err`
  6983. $RM -r conftest*
  6984. ## CAVEAT EMPTOR:
  6985. ## There is no encapsulation within the following macros, do not change
  6986. ## the running order or otherwise move them around unless you know exactly
  6987. ## what you are doing...
  6988. if test -n "$compiler"; then
  6989. lt_prog_compiler_no_builtin_flag=
  6990. if test "$GCC" = yes; then
  6991. case $cc_basename in
  6992. nvcc*)
  6993. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6994. *)
  6995. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6996. esac
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6998. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6999. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7000. $as_echo_n "(cached) " >&6
  7001. else
  7002. lt_cv_prog_compiler_rtti_exceptions=no
  7003. ac_outfile=conftest.$ac_objext
  7004. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7005. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7006. # Insert the option either (1) after the last *FLAGS variable, or
  7007. # (2) before a word containing "conftest.", or (3) at the end.
  7008. # Note that $ac_compile itself does not contain backslashes and begins
  7009. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7010. # The option is referenced via a variable to avoid confusing sed.
  7011. lt_compile=`echo "$ac_compile" | $SED \
  7012. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7013. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7014. -e 's:$: $lt_compiler_flag:'`
  7015. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7016. (eval "$lt_compile" 2>conftest.err)
  7017. ac_status=$?
  7018. cat conftest.err >&5
  7019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7020. if (exit $ac_status) && test -s "$ac_outfile"; then
  7021. # The compiler can only warn and ignore the option if not recognized
  7022. # So say no if there are warnings other than the usual output.
  7023. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7024. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7025. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7026. lt_cv_prog_compiler_rtti_exceptions=yes
  7027. fi
  7028. fi
  7029. $RM conftest*
  7030. fi
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7032. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7033. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7034. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7035. else
  7036. :
  7037. fi
  7038. fi
  7039. lt_prog_compiler_wl=
  7040. lt_prog_compiler_pic=
  7041. lt_prog_compiler_static=
  7042. if test "$GCC" = yes; then
  7043. lt_prog_compiler_wl='-Wl,'
  7044. lt_prog_compiler_static='-static'
  7045. case $host_os in
  7046. aix*)
  7047. # All AIX code is PIC.
  7048. if test "$host_cpu" = ia64; then
  7049. # AIX 5 now supports IA64 processor
  7050. lt_prog_compiler_static='-Bstatic'
  7051. fi
  7052. ;;
  7053. amigaos*)
  7054. case $host_cpu in
  7055. powerpc)
  7056. # see comment about AmigaOS4 .so support
  7057. lt_prog_compiler_pic='-fPIC'
  7058. ;;
  7059. m68k)
  7060. # FIXME: we need at least 68020 code to build shared libraries, but
  7061. # adding the `-m68020' flag to GCC prevents building anything better,
  7062. # like `-m68040'.
  7063. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7064. ;;
  7065. esac
  7066. ;;
  7067. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7068. # PIC is the default for these OSes.
  7069. ;;
  7070. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7071. # This hack is so that the source file can tell whether it is being
  7072. # built for inclusion in a dll (and should export symbols for example).
  7073. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7074. # (--disable-auto-import) libraries
  7075. lt_prog_compiler_pic='-DDLL_EXPORT'
  7076. ;;
  7077. darwin* | rhapsody*)
  7078. # PIC is the default on this platform
  7079. # Common symbols not allowed in MH_DYLIB files
  7080. lt_prog_compiler_pic='-fno-common'
  7081. ;;
  7082. haiku*)
  7083. # PIC is the default for Haiku.
  7084. # The "-static" flag exists, but is broken.
  7085. lt_prog_compiler_static=
  7086. ;;
  7087. hpux*)
  7088. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7089. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7090. # sets the default TLS model and affects inlining.
  7091. case $host_cpu in
  7092. hppa*64*)
  7093. # +Z the default
  7094. ;;
  7095. *)
  7096. lt_prog_compiler_pic='-fPIC'
  7097. ;;
  7098. esac
  7099. ;;
  7100. interix[3-9]*)
  7101. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7102. # Instead, we relocate shared libraries at runtime.
  7103. ;;
  7104. msdosdjgpp*)
  7105. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7106. # on systems that don't support them.
  7107. lt_prog_compiler_can_build_shared=no
  7108. enable_shared=no
  7109. ;;
  7110. *nto* | *qnx*)
  7111. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7112. # it will coredump.
  7113. lt_prog_compiler_pic='-fPIC -shared'
  7114. ;;
  7115. sysv4*MP*)
  7116. if test -d /usr/nec; then
  7117. lt_prog_compiler_pic=-Kconform_pic
  7118. fi
  7119. ;;
  7120. *)
  7121. lt_prog_compiler_pic='-fPIC'
  7122. ;;
  7123. esac
  7124. case $cc_basename in
  7125. nvcc*) # Cuda Compiler Driver 2.2
  7126. lt_prog_compiler_wl='-Xlinker '
  7127. if test -n "$lt_prog_compiler_pic"; then
  7128. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7129. fi
  7130. ;;
  7131. esac
  7132. else
  7133. # PORTME Check for flag to pass linker flags through the system compiler.
  7134. case $host_os in
  7135. aix*)
  7136. lt_prog_compiler_wl='-Wl,'
  7137. if test "$host_cpu" = ia64; then
  7138. # AIX 5 now supports IA64 processor
  7139. lt_prog_compiler_static='-Bstatic'
  7140. else
  7141. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7142. fi
  7143. ;;
  7144. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7145. # This hack is so that the source file can tell whether it is being
  7146. # built for inclusion in a dll (and should export symbols for example).
  7147. lt_prog_compiler_pic='-DDLL_EXPORT'
  7148. ;;
  7149. hpux9* | hpux10* | hpux11*)
  7150. lt_prog_compiler_wl='-Wl,'
  7151. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7152. # not for PA HP-UX.
  7153. case $host_cpu in
  7154. hppa*64*|ia64*)
  7155. # +Z the default
  7156. ;;
  7157. *)
  7158. lt_prog_compiler_pic='+Z'
  7159. ;;
  7160. esac
  7161. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7162. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7163. ;;
  7164. irix5* | irix6* | nonstopux*)
  7165. lt_prog_compiler_wl='-Wl,'
  7166. # PIC (with -KPIC) is the default.
  7167. lt_prog_compiler_static='-non_shared'
  7168. ;;
  7169. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7170. case $cc_basename in
  7171. # old Intel for x86_64 which still supported -KPIC.
  7172. ecc*)
  7173. lt_prog_compiler_wl='-Wl,'
  7174. lt_prog_compiler_pic='-KPIC'
  7175. lt_prog_compiler_static='-static'
  7176. ;;
  7177. # icc used to be incompatible with GCC.
  7178. # ICC 10 doesn't accept -KPIC any more.
  7179. icc* | ifort*)
  7180. lt_prog_compiler_wl='-Wl,'
  7181. lt_prog_compiler_pic='-fPIC'
  7182. lt_prog_compiler_static='-static'
  7183. ;;
  7184. # Lahey Fortran 8.1.
  7185. lf95*)
  7186. lt_prog_compiler_wl='-Wl,'
  7187. lt_prog_compiler_pic='--shared'
  7188. lt_prog_compiler_static='--static'
  7189. ;;
  7190. nagfor*)
  7191. # NAG Fortran compiler
  7192. lt_prog_compiler_wl='-Wl,-Wl,,'
  7193. lt_prog_compiler_pic='-PIC'
  7194. lt_prog_compiler_static='-Bstatic'
  7195. ;;
  7196. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7197. # Portland Group compilers (*not* the Pentium gcc compiler,
  7198. # which looks to be a dead project)
  7199. lt_prog_compiler_wl='-Wl,'
  7200. lt_prog_compiler_pic='-fpic'
  7201. lt_prog_compiler_static='-Bstatic'
  7202. ;;
  7203. ccc*)
  7204. lt_prog_compiler_wl='-Wl,'
  7205. # All Alpha code is PIC.
  7206. lt_prog_compiler_static='-non_shared'
  7207. ;;
  7208. xl* | bgxl* | bgf* | mpixl*)
  7209. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7210. lt_prog_compiler_wl='-Wl,'
  7211. lt_prog_compiler_pic='-qpic'
  7212. lt_prog_compiler_static='-qstaticlink'
  7213. ;;
  7214. *)
  7215. case `$CC -V 2>&1 | sed 5q` in
  7216. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7217. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7218. lt_prog_compiler_pic='-KPIC'
  7219. lt_prog_compiler_static='-Bstatic'
  7220. lt_prog_compiler_wl=''
  7221. ;;
  7222. *Sun\ F* | *Sun*Fortran*)
  7223. lt_prog_compiler_pic='-KPIC'
  7224. lt_prog_compiler_static='-Bstatic'
  7225. lt_prog_compiler_wl='-Qoption ld '
  7226. ;;
  7227. *Sun\ C*)
  7228. # Sun C 5.9
  7229. lt_prog_compiler_pic='-KPIC'
  7230. lt_prog_compiler_static='-Bstatic'
  7231. lt_prog_compiler_wl='-Wl,'
  7232. ;;
  7233. *Intel*\ [CF]*Compiler*)
  7234. lt_prog_compiler_wl='-Wl,'
  7235. lt_prog_compiler_pic='-fPIC'
  7236. lt_prog_compiler_static='-static'
  7237. ;;
  7238. *Portland\ Group*)
  7239. lt_prog_compiler_wl='-Wl,'
  7240. lt_prog_compiler_pic='-fpic'
  7241. lt_prog_compiler_static='-Bstatic'
  7242. ;;
  7243. esac
  7244. ;;
  7245. esac
  7246. ;;
  7247. newsos6)
  7248. lt_prog_compiler_pic='-KPIC'
  7249. lt_prog_compiler_static='-Bstatic'
  7250. ;;
  7251. *nto* | *qnx*)
  7252. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7253. # it will coredump.
  7254. lt_prog_compiler_pic='-fPIC -shared'
  7255. ;;
  7256. osf3* | osf4* | osf5*)
  7257. lt_prog_compiler_wl='-Wl,'
  7258. # All OSF/1 code is PIC.
  7259. lt_prog_compiler_static='-non_shared'
  7260. ;;
  7261. rdos*)
  7262. lt_prog_compiler_static='-non_shared'
  7263. ;;
  7264. solaris*)
  7265. lt_prog_compiler_pic='-KPIC'
  7266. lt_prog_compiler_static='-Bstatic'
  7267. case $cc_basename in
  7268. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7269. lt_prog_compiler_wl='-Qoption ld ';;
  7270. *)
  7271. lt_prog_compiler_wl='-Wl,';;
  7272. esac
  7273. ;;
  7274. sunos4*)
  7275. lt_prog_compiler_wl='-Qoption ld '
  7276. lt_prog_compiler_pic='-PIC'
  7277. lt_prog_compiler_static='-Bstatic'
  7278. ;;
  7279. sysv4 | sysv4.2uw2* | sysv4.3*)
  7280. lt_prog_compiler_wl='-Wl,'
  7281. lt_prog_compiler_pic='-KPIC'
  7282. lt_prog_compiler_static='-Bstatic'
  7283. ;;
  7284. sysv4*MP*)
  7285. if test -d /usr/nec ;then
  7286. lt_prog_compiler_pic='-Kconform_pic'
  7287. lt_prog_compiler_static='-Bstatic'
  7288. fi
  7289. ;;
  7290. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7291. lt_prog_compiler_wl='-Wl,'
  7292. lt_prog_compiler_pic='-KPIC'
  7293. lt_prog_compiler_static='-Bstatic'
  7294. ;;
  7295. unicos*)
  7296. lt_prog_compiler_wl='-Wl,'
  7297. lt_prog_compiler_can_build_shared=no
  7298. ;;
  7299. uts4*)
  7300. lt_prog_compiler_pic='-pic'
  7301. lt_prog_compiler_static='-Bstatic'
  7302. ;;
  7303. *)
  7304. lt_prog_compiler_can_build_shared=no
  7305. ;;
  7306. esac
  7307. fi
  7308. case $host_os in
  7309. # For platforms which do not support PIC, -DPIC is meaningless:
  7310. *djgpp*)
  7311. lt_prog_compiler_pic=
  7312. ;;
  7313. *)
  7314. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7315. ;;
  7316. esac
  7317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7318. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7319. if ${lt_cv_prog_compiler_pic+:} false; then :
  7320. $as_echo_n "(cached) " >&6
  7321. else
  7322. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7323. fi
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7325. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7326. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7327. #
  7328. # Check to make sure the PIC flag actually works.
  7329. #
  7330. if test -n "$lt_prog_compiler_pic"; then
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7332. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7333. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7334. $as_echo_n "(cached) " >&6
  7335. else
  7336. lt_cv_prog_compiler_pic_works=no
  7337. ac_outfile=conftest.$ac_objext
  7338. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7339. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7340. # Insert the option either (1) after the last *FLAGS variable, or
  7341. # (2) before a word containing "conftest.", or (3) at the end.
  7342. # Note that $ac_compile itself does not contain backslashes and begins
  7343. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7344. # The option is referenced via a variable to avoid confusing sed.
  7345. lt_compile=`echo "$ac_compile" | $SED \
  7346. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7347. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7348. -e 's:$: $lt_compiler_flag:'`
  7349. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7350. (eval "$lt_compile" 2>conftest.err)
  7351. ac_status=$?
  7352. cat conftest.err >&5
  7353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7354. if (exit $ac_status) && test -s "$ac_outfile"; then
  7355. # The compiler can only warn and ignore the option if not recognized
  7356. # So say no if there are warnings other than the usual output.
  7357. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7358. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7359. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7360. lt_cv_prog_compiler_pic_works=yes
  7361. fi
  7362. fi
  7363. $RM conftest*
  7364. fi
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7366. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7367. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7368. case $lt_prog_compiler_pic in
  7369. "" | " "*) ;;
  7370. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7371. esac
  7372. else
  7373. lt_prog_compiler_pic=
  7374. lt_prog_compiler_can_build_shared=no
  7375. fi
  7376. fi
  7377. #
  7378. # Check to make sure the static flag actually works.
  7379. #
  7380. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7382. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7383. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7384. $as_echo_n "(cached) " >&6
  7385. else
  7386. lt_cv_prog_compiler_static_works=no
  7387. save_LDFLAGS="$LDFLAGS"
  7388. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7389. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7390. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7391. # The linker can only warn and ignore the option if not recognized
  7392. # So say no if there are warnings
  7393. if test -s conftest.err; then
  7394. # Append any errors to the config.log.
  7395. cat conftest.err 1>&5
  7396. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7397. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7398. if diff conftest.exp conftest.er2 >/dev/null; then
  7399. lt_cv_prog_compiler_static_works=yes
  7400. fi
  7401. else
  7402. lt_cv_prog_compiler_static_works=yes
  7403. fi
  7404. fi
  7405. $RM -r conftest*
  7406. LDFLAGS="$save_LDFLAGS"
  7407. fi
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7409. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7410. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7411. :
  7412. else
  7413. lt_prog_compiler_static=
  7414. fi
  7415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7416. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7417. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7418. $as_echo_n "(cached) " >&6
  7419. else
  7420. lt_cv_prog_compiler_c_o=no
  7421. $RM -r conftest 2>/dev/null
  7422. mkdir conftest
  7423. cd conftest
  7424. mkdir out
  7425. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7426. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7427. # Insert the option either (1) after the last *FLAGS variable, or
  7428. # (2) before a word containing "conftest.", or (3) at the end.
  7429. # Note that $ac_compile itself does not contain backslashes and begins
  7430. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7431. lt_compile=`echo "$ac_compile" | $SED \
  7432. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7433. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7434. -e 's:$: $lt_compiler_flag:'`
  7435. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7436. (eval "$lt_compile" 2>out/conftest.err)
  7437. ac_status=$?
  7438. cat out/conftest.err >&5
  7439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7440. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7441. then
  7442. # The compiler can only warn and ignore the option if not recognized
  7443. # So say no if there are warnings
  7444. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7445. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7446. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7447. lt_cv_prog_compiler_c_o=yes
  7448. fi
  7449. fi
  7450. chmod u+w . 2>&5
  7451. $RM conftest*
  7452. # SGI C++ compiler will create directory out/ii_files/ for
  7453. # template instantiation
  7454. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7455. $RM out/* && rmdir out
  7456. cd ..
  7457. $RM -r conftest
  7458. $RM conftest*
  7459. fi
  7460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7461. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7463. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7464. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7465. $as_echo_n "(cached) " >&6
  7466. else
  7467. lt_cv_prog_compiler_c_o=no
  7468. $RM -r conftest 2>/dev/null
  7469. mkdir conftest
  7470. cd conftest
  7471. mkdir out
  7472. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7473. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7474. # Insert the option either (1) after the last *FLAGS variable, or
  7475. # (2) before a word containing "conftest.", or (3) at the end.
  7476. # Note that $ac_compile itself does not contain backslashes and begins
  7477. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7478. lt_compile=`echo "$ac_compile" | $SED \
  7479. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7480. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7481. -e 's:$: $lt_compiler_flag:'`
  7482. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7483. (eval "$lt_compile" 2>out/conftest.err)
  7484. ac_status=$?
  7485. cat out/conftest.err >&5
  7486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7487. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7488. then
  7489. # The compiler can only warn and ignore the option if not recognized
  7490. # So say no if there are warnings
  7491. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7492. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7493. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7494. lt_cv_prog_compiler_c_o=yes
  7495. fi
  7496. fi
  7497. chmod u+w . 2>&5
  7498. $RM conftest*
  7499. # SGI C++ compiler will create directory out/ii_files/ for
  7500. # template instantiation
  7501. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7502. $RM out/* && rmdir out
  7503. cd ..
  7504. $RM -r conftest
  7505. $RM conftest*
  7506. fi
  7507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7508. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7509. hard_links="nottested"
  7510. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7511. # do not overwrite the value of need_locks provided by the user
  7512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7513. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7514. hard_links=yes
  7515. $RM conftest*
  7516. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7517. touch conftest.a
  7518. ln conftest.a conftest.b 2>&5 || hard_links=no
  7519. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7521. $as_echo "$hard_links" >&6; }
  7522. if test "$hard_links" = no; then
  7523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7524. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7525. need_locks=warn
  7526. fi
  7527. else
  7528. need_locks=no
  7529. fi
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7531. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7532. runpath_var=
  7533. allow_undefined_flag=
  7534. always_export_symbols=no
  7535. archive_cmds=
  7536. archive_expsym_cmds=
  7537. compiler_needs_object=no
  7538. enable_shared_with_static_runtimes=no
  7539. export_dynamic_flag_spec=
  7540. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7541. hardcode_automatic=no
  7542. hardcode_direct=no
  7543. hardcode_direct_absolute=no
  7544. hardcode_libdir_flag_spec=
  7545. hardcode_libdir_separator=
  7546. hardcode_minus_L=no
  7547. hardcode_shlibpath_var=unsupported
  7548. inherit_rpath=no
  7549. link_all_deplibs=unknown
  7550. module_cmds=
  7551. module_expsym_cmds=
  7552. old_archive_from_new_cmds=
  7553. old_archive_from_expsyms_cmds=
  7554. thread_safe_flag_spec=
  7555. whole_archive_flag_spec=
  7556. # include_expsyms should be a list of space-separated symbols to be *always*
  7557. # included in the symbol list
  7558. include_expsyms=
  7559. # exclude_expsyms can be an extended regexp of symbols to exclude
  7560. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7561. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7562. # as well as any symbol that contains `d'.
  7563. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7564. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7565. # platforms (ab)use it in PIC code, but their linkers get confused if
  7566. # the symbol is explicitly referenced. Since portable code cannot
  7567. # rely on this symbol name, it's probably fine to never include it in
  7568. # preloaded symbol tables.
  7569. # Exclude shared library initialization/finalization symbols.
  7570. extract_expsyms_cmds=
  7571. case $host_os in
  7572. cygwin* | mingw* | pw32* | cegcc*)
  7573. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7574. # When not using gcc, we currently assume that we are using
  7575. # Microsoft Visual C++.
  7576. if test "$GCC" != yes; then
  7577. with_gnu_ld=no
  7578. fi
  7579. ;;
  7580. interix*)
  7581. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7582. with_gnu_ld=yes
  7583. ;;
  7584. openbsd*)
  7585. with_gnu_ld=no
  7586. ;;
  7587. esac
  7588. ld_shlibs=yes
  7589. # On some targets, GNU ld is compatible enough with the native linker
  7590. # that we're better off using the native interface for both.
  7591. lt_use_gnu_ld_interface=no
  7592. if test "$with_gnu_ld" = yes; then
  7593. case $host_os in
  7594. aix*)
  7595. # The AIX port of GNU ld has always aspired to compatibility
  7596. # with the native linker. However, as the warning in the GNU ld
  7597. # block says, versions before 2.19.5* couldn't really create working
  7598. # shared libraries, regardless of the interface used.
  7599. case `$LD -v 2>&1` in
  7600. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7601. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7602. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7603. *)
  7604. lt_use_gnu_ld_interface=yes
  7605. ;;
  7606. esac
  7607. ;;
  7608. *)
  7609. lt_use_gnu_ld_interface=yes
  7610. ;;
  7611. esac
  7612. fi
  7613. if test "$lt_use_gnu_ld_interface" = yes; then
  7614. # If archive_cmds runs LD, not CC, wlarc should be empty
  7615. wlarc='${wl}'
  7616. # Set some defaults for GNU ld with shared library support. These
  7617. # are reset later if shared libraries are not supported. Putting them
  7618. # here allows them to be overridden if necessary.
  7619. runpath_var=LD_RUN_PATH
  7620. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7621. export_dynamic_flag_spec='${wl}--export-dynamic'
  7622. # ancient GNU ld didn't support --whole-archive et. al.
  7623. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7624. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7625. else
  7626. whole_archive_flag_spec=
  7627. fi
  7628. supports_anon_versioning=no
  7629. case `$LD -v 2>&1` in
  7630. *GNU\ gold*) supports_anon_versioning=yes ;;
  7631. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7632. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7633. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7634. *\ 2.11.*) ;; # other 2.11 versions
  7635. *) supports_anon_versioning=yes ;;
  7636. esac
  7637. # See if GNU ld supports shared libraries.
  7638. case $host_os in
  7639. aix[3-9]*)
  7640. # On AIX/PPC, the GNU linker is very broken
  7641. if test "$host_cpu" != ia64; then
  7642. ld_shlibs=no
  7643. cat <<_LT_EOF 1>&2
  7644. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7645. *** to be unable to reliably create shared libraries on AIX.
  7646. *** Therefore, libtool is disabling shared libraries support. If you
  7647. *** really care for shared libraries, you may want to install binutils
  7648. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7649. *** You will then need to restart the configuration process.
  7650. _LT_EOF
  7651. fi
  7652. ;;
  7653. amigaos*)
  7654. case $host_cpu in
  7655. powerpc)
  7656. # see comment about AmigaOS4 .so support
  7657. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7658. archive_expsym_cmds=''
  7659. ;;
  7660. m68k)
  7661. 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)'
  7662. hardcode_libdir_flag_spec='-L$libdir'
  7663. hardcode_minus_L=yes
  7664. ;;
  7665. esac
  7666. ;;
  7667. beos*)
  7668. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7669. allow_undefined_flag=unsupported
  7670. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7671. # support --undefined. This deserves some investigation. FIXME
  7672. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7673. else
  7674. ld_shlibs=no
  7675. fi
  7676. ;;
  7677. cygwin* | mingw* | pw32* | cegcc*)
  7678. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7679. # as there is no search path for DLLs.
  7680. hardcode_libdir_flag_spec='-L$libdir'
  7681. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7682. allow_undefined_flag=unsupported
  7683. always_export_symbols=no
  7684. enable_shared_with_static_runtimes=yes
  7685. 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'
  7686. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7687. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7688. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7689. # If the export-symbols file already is a .def file (1st line
  7690. # is EXPORTS), use it as is; otherwise, prepend...
  7691. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7692. cp $export_symbols $output_objdir/$soname.def;
  7693. else
  7694. echo EXPORTS > $output_objdir/$soname.def;
  7695. cat $export_symbols >> $output_objdir/$soname.def;
  7696. fi~
  7697. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7698. else
  7699. ld_shlibs=no
  7700. fi
  7701. ;;
  7702. haiku*)
  7703. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7704. link_all_deplibs=yes
  7705. ;;
  7706. interix[3-9]*)
  7707. hardcode_direct=no
  7708. hardcode_shlibpath_var=no
  7709. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7710. export_dynamic_flag_spec='${wl}-E'
  7711. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7712. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7713. # default) and relocated if they conflict, which is a slow very memory
  7714. # consuming and fragmenting process. To avoid this, we pick a random,
  7715. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7716. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7717. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7718. 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'
  7719. ;;
  7720. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7721. tmp_diet=no
  7722. if test "$host_os" = linux-dietlibc; then
  7723. case $cc_basename in
  7724. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7725. esac
  7726. fi
  7727. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7728. && test "$tmp_diet" = no
  7729. then
  7730. tmp_addflag=' $pic_flag'
  7731. tmp_sharedflag='-shared'
  7732. case $cc_basename,$host_cpu in
  7733. pgcc*) # Portland Group C compiler
  7734. 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'
  7735. tmp_addflag=' $pic_flag'
  7736. ;;
  7737. pgf77* | pgf90* | pgf95* | pgfortran*)
  7738. # Portland Group f77 and f90 compilers
  7739. 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'
  7740. tmp_addflag=' $pic_flag -Mnomain' ;;
  7741. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7742. tmp_addflag=' -i_dynamic' ;;
  7743. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7744. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7745. ifc* | ifort*) # Intel Fortran compiler
  7746. tmp_addflag=' -nofor_main' ;;
  7747. lf95*) # Lahey Fortran 8.1
  7748. whole_archive_flag_spec=
  7749. tmp_sharedflag='--shared' ;;
  7750. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7751. tmp_sharedflag='-qmkshrobj'
  7752. tmp_addflag= ;;
  7753. nvcc*) # Cuda Compiler Driver 2.2
  7754. 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'
  7755. compiler_needs_object=yes
  7756. ;;
  7757. esac
  7758. case `$CC -V 2>&1 | sed 5q` in
  7759. *Sun\ C*) # Sun C 5.9
  7760. 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'
  7761. compiler_needs_object=yes
  7762. tmp_sharedflag='-G' ;;
  7763. *Sun\ F*) # Sun Fortran 8.3
  7764. tmp_sharedflag='-G' ;;
  7765. esac
  7766. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7767. if test "x$supports_anon_versioning" = xyes; then
  7768. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7769. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7770. echo "local: *; };" >> $output_objdir/$libname.ver~
  7771. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7772. fi
  7773. case $cc_basename in
  7774. xlf* | bgf* | bgxlf* | mpixlf*)
  7775. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7776. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7777. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7778. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7779. if test "x$supports_anon_versioning" = xyes; then
  7780. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7781. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7782. echo "local: *; };" >> $output_objdir/$libname.ver~
  7783. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7784. fi
  7785. ;;
  7786. esac
  7787. else
  7788. ld_shlibs=no
  7789. fi
  7790. ;;
  7791. netbsd*)
  7792. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7793. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7794. wlarc=
  7795. else
  7796. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7797. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7798. fi
  7799. ;;
  7800. solaris*)
  7801. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7802. ld_shlibs=no
  7803. cat <<_LT_EOF 1>&2
  7804. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7805. *** create shared libraries on Solaris systems. Therefore, libtool
  7806. *** is disabling shared libraries support. We urge you to upgrade GNU
  7807. *** binutils to release 2.9.1 or newer. Another option is to modify
  7808. *** your PATH or compiler configuration so that the native linker is
  7809. *** used, and then restart.
  7810. _LT_EOF
  7811. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7812. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7813. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7814. else
  7815. ld_shlibs=no
  7816. fi
  7817. ;;
  7818. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7819. case `$LD -v 2>&1` in
  7820. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7821. ld_shlibs=no
  7822. cat <<_LT_EOF 1>&2
  7823. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7824. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7825. *** is disabling shared libraries support. We urge you to upgrade GNU
  7826. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7827. *** your PATH or compiler configuration so that the native linker is
  7828. *** used, and then restart.
  7829. _LT_EOF
  7830. ;;
  7831. *)
  7832. # For security reasons, it is highly recommended that you always
  7833. # use absolute paths for naming shared libraries, and exclude the
  7834. # DT_RUNPATH tag from executables and libraries. But doing so
  7835. # requires that you compile everything twice, which is a pain.
  7836. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7837. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7838. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7839. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7840. else
  7841. ld_shlibs=no
  7842. fi
  7843. ;;
  7844. esac
  7845. ;;
  7846. sunos4*)
  7847. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7848. wlarc=
  7849. hardcode_direct=yes
  7850. hardcode_shlibpath_var=no
  7851. ;;
  7852. *)
  7853. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7854. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7855. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7856. else
  7857. ld_shlibs=no
  7858. fi
  7859. ;;
  7860. esac
  7861. if test "$ld_shlibs" = no; then
  7862. runpath_var=
  7863. hardcode_libdir_flag_spec=
  7864. export_dynamic_flag_spec=
  7865. whole_archive_flag_spec=
  7866. fi
  7867. else
  7868. # PORTME fill in a description of your system's linker (not GNU ld)
  7869. case $host_os in
  7870. aix3*)
  7871. allow_undefined_flag=unsupported
  7872. always_export_symbols=yes
  7873. 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'
  7874. # Note: this linker hardcodes the directories in LIBPATH if there
  7875. # are no directories specified by -L.
  7876. hardcode_minus_L=yes
  7877. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7878. # Neither direct hardcoding nor static linking is supported with a
  7879. # broken collect2.
  7880. hardcode_direct=unsupported
  7881. fi
  7882. ;;
  7883. aix[4-9]*)
  7884. if test "$host_cpu" = ia64; then
  7885. # On IA64, the linker does run time linking by default, so we don't
  7886. # have to do anything special.
  7887. aix_use_runtimelinking=no
  7888. exp_sym_flag='-Bexport'
  7889. no_entry_flag=""
  7890. else
  7891. # If we're using GNU nm, then we don't want the "-C" option.
  7892. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7893. # Also, AIX nm treats weak defined symbols like other global
  7894. # defined symbols, whereas GNU nm marks them as "W".
  7895. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7896. 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'
  7897. else
  7898. 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'
  7899. fi
  7900. aix_use_runtimelinking=no
  7901. # Test if we are trying to use run time linking or normal
  7902. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7903. # need to do runtime linking.
  7904. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7905. for ld_flag in $LDFLAGS; do
  7906. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7907. aix_use_runtimelinking=yes
  7908. break
  7909. fi
  7910. done
  7911. ;;
  7912. esac
  7913. exp_sym_flag='-bexport'
  7914. no_entry_flag='-bnoentry'
  7915. fi
  7916. # When large executables or shared objects are built, AIX ld can
  7917. # have problems creating the table of contents. If linking a library
  7918. # or program results in "error TOC overflow" add -mminimal-toc to
  7919. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7920. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7921. archive_cmds=''
  7922. hardcode_direct=yes
  7923. hardcode_direct_absolute=yes
  7924. hardcode_libdir_separator=':'
  7925. link_all_deplibs=yes
  7926. file_list_spec='${wl}-f,'
  7927. if test "$GCC" = yes; then
  7928. case $host_os in aix4.[012]|aix4.[012].*)
  7929. # We only want to do this on AIX 4.2 and lower, the check
  7930. # below for broken collect2 doesn't work under 4.3+
  7931. collect2name=`${CC} -print-prog-name=collect2`
  7932. if test -f "$collect2name" &&
  7933. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7934. then
  7935. # We have reworked collect2
  7936. :
  7937. else
  7938. # We have old collect2
  7939. hardcode_direct=unsupported
  7940. # It fails to find uninstalled libraries when the uninstalled
  7941. # path is not listed in the libpath. Setting hardcode_minus_L
  7942. # to unsupported forces relinking
  7943. hardcode_minus_L=yes
  7944. hardcode_libdir_flag_spec='-L$libdir'
  7945. hardcode_libdir_separator=
  7946. fi
  7947. ;;
  7948. esac
  7949. shared_flag='-shared'
  7950. if test "$aix_use_runtimelinking" = yes; then
  7951. shared_flag="$shared_flag "'${wl}-G'
  7952. fi
  7953. else
  7954. # not using gcc
  7955. if test "$host_cpu" = ia64; then
  7956. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7957. # chokes on -Wl,-G. The following line is correct:
  7958. shared_flag='-G'
  7959. else
  7960. if test "$aix_use_runtimelinking" = yes; then
  7961. shared_flag='${wl}-G'
  7962. else
  7963. shared_flag='${wl}-bM:SRE'
  7964. fi
  7965. fi
  7966. fi
  7967. export_dynamic_flag_spec='${wl}-bexpall'
  7968. # It seems that -bexpall does not export symbols beginning with
  7969. # underscore (_), so it is better to generate a list of symbols to export.
  7970. always_export_symbols=yes
  7971. if test "$aix_use_runtimelinking" = yes; then
  7972. # Warning - without using the other runtime loading flags (-brtl),
  7973. # -berok will link without error, but may produce a broken library.
  7974. allow_undefined_flag='-berok'
  7975. # Determine the default libpath from the value encoded in an
  7976. # empty executable.
  7977. if test "${lt_cv_aix_libpath+set}" = set; then
  7978. aix_libpath=$lt_cv_aix_libpath
  7979. else
  7980. if ${lt_cv_aix_libpath_+:} false; then :
  7981. $as_echo_n "(cached) " >&6
  7982. else
  7983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7984. /* end confdefs.h. */
  7985. int
  7986. main ()
  7987. {
  7988. ;
  7989. return 0;
  7990. }
  7991. _ACEOF
  7992. if ac_fn_c_try_link "$LINENO"; then :
  7993. lt_aix_libpath_sed='
  7994. /Import File Strings/,/^$/ {
  7995. /^0/ {
  7996. s/^0 *\([^ ]*\) *$/\1/
  7997. p
  7998. }
  7999. }'
  8000. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8001. # Check for a 64-bit object if we didn't find anything.
  8002. if test -z "$lt_cv_aix_libpath_"; then
  8003. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8004. fi
  8005. fi
  8006. rm -f core conftest.err conftest.$ac_objext \
  8007. conftest$ac_exeext conftest.$ac_ext
  8008. if test -z "$lt_cv_aix_libpath_"; then
  8009. lt_cv_aix_libpath_="/usr/lib:/lib"
  8010. fi
  8011. fi
  8012. aix_libpath=$lt_cv_aix_libpath_
  8013. fi
  8014. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8015. 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"
  8016. else
  8017. if test "$host_cpu" = ia64; then
  8018. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8019. allow_undefined_flag="-z nodefs"
  8020. 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"
  8021. else
  8022. # Determine the default libpath from the value encoded in an
  8023. # empty executable.
  8024. if test "${lt_cv_aix_libpath+set}" = set; then
  8025. aix_libpath=$lt_cv_aix_libpath
  8026. else
  8027. if ${lt_cv_aix_libpath_+:} false; then :
  8028. $as_echo_n "(cached) " >&6
  8029. else
  8030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8031. /* end confdefs.h. */
  8032. int
  8033. main ()
  8034. {
  8035. ;
  8036. return 0;
  8037. }
  8038. _ACEOF
  8039. if ac_fn_c_try_link "$LINENO"; then :
  8040. lt_aix_libpath_sed='
  8041. /Import File Strings/,/^$/ {
  8042. /^0/ {
  8043. s/^0 *\([^ ]*\) *$/\1/
  8044. p
  8045. }
  8046. }'
  8047. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8048. # Check for a 64-bit object if we didn't find anything.
  8049. if test -z "$lt_cv_aix_libpath_"; then
  8050. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8051. fi
  8052. fi
  8053. rm -f core conftest.err conftest.$ac_objext \
  8054. conftest$ac_exeext conftest.$ac_ext
  8055. if test -z "$lt_cv_aix_libpath_"; then
  8056. lt_cv_aix_libpath_="/usr/lib:/lib"
  8057. fi
  8058. fi
  8059. aix_libpath=$lt_cv_aix_libpath_
  8060. fi
  8061. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8062. # Warning - without using the other run time loading flags,
  8063. # -berok will link without error, but may produce a broken library.
  8064. no_undefined_flag=' ${wl}-bernotok'
  8065. allow_undefined_flag=' ${wl}-berok'
  8066. if test "$with_gnu_ld" = yes; then
  8067. # We only use this code for GNU lds that support --whole-archive.
  8068. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8069. else
  8070. # Exported symbols can be pulled into shared objects from archives
  8071. whole_archive_flag_spec='$convenience'
  8072. fi
  8073. archive_cmds_need_lc=yes
  8074. # This is similar to how AIX traditionally builds its shared libraries.
  8075. 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'
  8076. fi
  8077. fi
  8078. ;;
  8079. amigaos*)
  8080. case $host_cpu in
  8081. powerpc)
  8082. # see comment about AmigaOS4 .so support
  8083. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8084. archive_expsym_cmds=''
  8085. ;;
  8086. m68k)
  8087. 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)'
  8088. hardcode_libdir_flag_spec='-L$libdir'
  8089. hardcode_minus_L=yes
  8090. ;;
  8091. esac
  8092. ;;
  8093. bsdi[45]*)
  8094. export_dynamic_flag_spec=-rdynamic
  8095. ;;
  8096. cygwin* | mingw* | pw32* | cegcc*)
  8097. # When not using gcc, we currently assume that we are using
  8098. # Microsoft Visual C++.
  8099. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8100. # no search path for DLLs.
  8101. case $cc_basename in
  8102. cl*)
  8103. # Native MSVC
  8104. hardcode_libdir_flag_spec=' '
  8105. allow_undefined_flag=unsupported
  8106. always_export_symbols=yes
  8107. file_list_spec='@'
  8108. # Tell ltmain to make .lib files, not .a files.
  8109. libext=lib
  8110. # Tell ltmain to make .dll files, not .so files.
  8111. shrext_cmds=".dll"
  8112. # FIXME: Setting linknames here is a bad hack.
  8113. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8114. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8115. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8116. else
  8117. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8118. fi~
  8119. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8120. linknames='
  8121. # The linker will not automatically build a static lib if we build a DLL.
  8122. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8123. enable_shared_with_static_runtimes=yes
  8124. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8125. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8126. # Don't use ranlib
  8127. old_postinstall_cmds='chmod 644 $oldlib'
  8128. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8129. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8130. case $lt_outputfile in
  8131. *.exe|*.EXE) ;;
  8132. *)
  8133. lt_outputfile="$lt_outputfile.exe"
  8134. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8135. ;;
  8136. esac~
  8137. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8138. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8139. $RM "$lt_outputfile.manifest";
  8140. fi'
  8141. ;;
  8142. *)
  8143. # Assume MSVC wrapper
  8144. hardcode_libdir_flag_spec=' '
  8145. allow_undefined_flag=unsupported
  8146. # Tell ltmain to make .lib files, not .a files.
  8147. libext=lib
  8148. # Tell ltmain to make .dll files, not .so files.
  8149. shrext_cmds=".dll"
  8150. # FIXME: Setting linknames here is a bad hack.
  8151. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8152. # The linker will automatically build a .lib file if we build a DLL.
  8153. old_archive_from_new_cmds='true'
  8154. # FIXME: Should let the user specify the lib program.
  8155. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8156. enable_shared_with_static_runtimes=yes
  8157. ;;
  8158. esac
  8159. ;;
  8160. darwin* | rhapsody*)
  8161. archive_cmds_need_lc=no
  8162. hardcode_direct=no
  8163. hardcode_automatic=yes
  8164. hardcode_shlibpath_var=unsupported
  8165. if test "$lt_cv_ld_force_load" = "yes"; then
  8166. 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\"`'
  8167. else
  8168. whole_archive_flag_spec=''
  8169. fi
  8170. link_all_deplibs=yes
  8171. allow_undefined_flag="$_lt_dar_allow_undefined"
  8172. case $cc_basename in
  8173. ifort*) _lt_dar_can_shared=yes ;;
  8174. *) _lt_dar_can_shared=$GCC ;;
  8175. esac
  8176. if test "$_lt_dar_can_shared" = "yes"; then
  8177. output_verbose_link_cmd=func_echo_all
  8178. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8179. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8180. 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}"
  8181. 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}"
  8182. else
  8183. ld_shlibs=no
  8184. fi
  8185. ;;
  8186. dgux*)
  8187. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8188. hardcode_libdir_flag_spec='-L$libdir'
  8189. hardcode_shlibpath_var=no
  8190. ;;
  8191. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8192. # support. Future versions do this automatically, but an explicit c++rt0.o
  8193. # does not break anything, and helps significantly (at the cost of a little
  8194. # extra space).
  8195. freebsd2.2*)
  8196. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8197. hardcode_libdir_flag_spec='-R$libdir'
  8198. hardcode_direct=yes
  8199. hardcode_shlibpath_var=no
  8200. ;;
  8201. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8202. freebsd2.*)
  8203. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8204. hardcode_direct=yes
  8205. hardcode_minus_L=yes
  8206. hardcode_shlibpath_var=no
  8207. ;;
  8208. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8209. freebsd* | dragonfly*)
  8210. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8211. hardcode_libdir_flag_spec='-R$libdir'
  8212. hardcode_direct=yes
  8213. hardcode_shlibpath_var=no
  8214. ;;
  8215. hpux9*)
  8216. if test "$GCC" = yes; then
  8217. 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'
  8218. else
  8219. 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'
  8220. fi
  8221. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8222. hardcode_libdir_separator=:
  8223. hardcode_direct=yes
  8224. # hardcode_minus_L: Not really in the search PATH,
  8225. # but as the default location of the library.
  8226. hardcode_minus_L=yes
  8227. export_dynamic_flag_spec='${wl}-E'
  8228. ;;
  8229. hpux10*)
  8230. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8231. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8232. else
  8233. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8234. fi
  8235. if test "$with_gnu_ld" = no; then
  8236. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8237. hardcode_libdir_separator=:
  8238. hardcode_direct=yes
  8239. hardcode_direct_absolute=yes
  8240. export_dynamic_flag_spec='${wl}-E'
  8241. # hardcode_minus_L: Not really in the search PATH,
  8242. # but as the default location of the library.
  8243. hardcode_minus_L=yes
  8244. fi
  8245. ;;
  8246. hpux11*)
  8247. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8248. case $host_cpu in
  8249. hppa*64*)
  8250. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8251. ;;
  8252. ia64*)
  8253. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8254. ;;
  8255. *)
  8256. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8257. ;;
  8258. esac
  8259. else
  8260. case $host_cpu in
  8261. hppa*64*)
  8262. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8263. ;;
  8264. ia64*)
  8265. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8266. ;;
  8267. *)
  8268. # Older versions of the 11.00 compiler do not understand -b yet
  8269. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8271. $as_echo_n "checking if $CC understands -b... " >&6; }
  8272. if ${lt_cv_prog_compiler__b+:} false; then :
  8273. $as_echo_n "(cached) " >&6
  8274. else
  8275. lt_cv_prog_compiler__b=no
  8276. save_LDFLAGS="$LDFLAGS"
  8277. LDFLAGS="$LDFLAGS -b"
  8278. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8279. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8280. # The linker can only warn and ignore the option if not recognized
  8281. # So say no if there are warnings
  8282. if test -s conftest.err; then
  8283. # Append any errors to the config.log.
  8284. cat conftest.err 1>&5
  8285. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8286. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8287. if diff conftest.exp conftest.er2 >/dev/null; then
  8288. lt_cv_prog_compiler__b=yes
  8289. fi
  8290. else
  8291. lt_cv_prog_compiler__b=yes
  8292. fi
  8293. fi
  8294. $RM -r conftest*
  8295. LDFLAGS="$save_LDFLAGS"
  8296. fi
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8298. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8299. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8300. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8301. else
  8302. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8303. fi
  8304. ;;
  8305. esac
  8306. fi
  8307. if test "$with_gnu_ld" = no; then
  8308. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8309. hardcode_libdir_separator=:
  8310. case $host_cpu in
  8311. hppa*64*|ia64*)
  8312. hardcode_direct=no
  8313. hardcode_shlibpath_var=no
  8314. ;;
  8315. *)
  8316. hardcode_direct=yes
  8317. hardcode_direct_absolute=yes
  8318. export_dynamic_flag_spec='${wl}-E'
  8319. # hardcode_minus_L: Not really in the search PATH,
  8320. # but as the default location of the library.
  8321. hardcode_minus_L=yes
  8322. ;;
  8323. esac
  8324. fi
  8325. ;;
  8326. irix5* | irix6* | nonstopux*)
  8327. if test "$GCC" = yes; then
  8328. 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'
  8329. # Try to use the -exported_symbol ld option, if it does not
  8330. # work, assume that -exports_file does not work either and
  8331. # implicitly export all symbols.
  8332. # This should be the same for all languages, so no per-tag cache variable.
  8333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8334. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8335. if ${lt_cv_irix_exported_symbol+:} false; then :
  8336. $as_echo_n "(cached) " >&6
  8337. else
  8338. save_LDFLAGS="$LDFLAGS"
  8339. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8341. /* end confdefs.h. */
  8342. int foo (void) { return 0; }
  8343. _ACEOF
  8344. if ac_fn_c_try_link "$LINENO"; then :
  8345. lt_cv_irix_exported_symbol=yes
  8346. else
  8347. lt_cv_irix_exported_symbol=no
  8348. fi
  8349. rm -f core conftest.err conftest.$ac_objext \
  8350. conftest$ac_exeext conftest.$ac_ext
  8351. LDFLAGS="$save_LDFLAGS"
  8352. fi
  8353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8354. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8355. if test "$lt_cv_irix_exported_symbol" = yes; then
  8356. 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'
  8357. fi
  8358. else
  8359. 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'
  8360. 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'
  8361. fi
  8362. archive_cmds_need_lc='no'
  8363. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8364. hardcode_libdir_separator=:
  8365. inherit_rpath=yes
  8366. link_all_deplibs=yes
  8367. ;;
  8368. netbsd*)
  8369. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8370. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8371. else
  8372. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8373. fi
  8374. hardcode_libdir_flag_spec='-R$libdir'
  8375. hardcode_direct=yes
  8376. hardcode_shlibpath_var=no
  8377. ;;
  8378. newsos6)
  8379. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8380. hardcode_direct=yes
  8381. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8382. hardcode_libdir_separator=:
  8383. hardcode_shlibpath_var=no
  8384. ;;
  8385. *nto* | *qnx*)
  8386. ;;
  8387. openbsd*)
  8388. if test -f /usr/libexec/ld.so; then
  8389. hardcode_direct=yes
  8390. hardcode_shlibpath_var=no
  8391. hardcode_direct_absolute=yes
  8392. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8393. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8394. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8395. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8396. export_dynamic_flag_spec='${wl}-E'
  8397. else
  8398. case $host_os in
  8399. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8400. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8401. hardcode_libdir_flag_spec='-R$libdir'
  8402. ;;
  8403. *)
  8404. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8405. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8406. ;;
  8407. esac
  8408. fi
  8409. else
  8410. ld_shlibs=no
  8411. fi
  8412. ;;
  8413. os2*)
  8414. hardcode_libdir_flag_spec='-L$libdir'
  8415. hardcode_minus_L=yes
  8416. allow_undefined_flag=unsupported
  8417. 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'
  8418. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8419. ;;
  8420. osf3*)
  8421. if test "$GCC" = yes; then
  8422. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8423. 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'
  8424. else
  8425. allow_undefined_flag=' -expect_unresolved \*'
  8426. 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'
  8427. fi
  8428. archive_cmds_need_lc='no'
  8429. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8430. hardcode_libdir_separator=:
  8431. ;;
  8432. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8433. if test "$GCC" = yes; then
  8434. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8435. 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'
  8436. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8437. else
  8438. allow_undefined_flag=' -expect_unresolved \*'
  8439. 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'
  8440. 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~
  8441. $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'
  8442. # Both c and cxx compiler support -rpath directly
  8443. hardcode_libdir_flag_spec='-rpath $libdir'
  8444. fi
  8445. archive_cmds_need_lc='no'
  8446. hardcode_libdir_separator=:
  8447. ;;
  8448. solaris*)
  8449. no_undefined_flag=' -z defs'
  8450. if test "$GCC" = yes; then
  8451. wlarc='${wl}'
  8452. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8453. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8454. $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'
  8455. else
  8456. case `$CC -V 2>&1` in
  8457. *"Compilers 5.0"*)
  8458. wlarc=''
  8459. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8460. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8461. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8462. ;;
  8463. *)
  8464. wlarc='${wl}'
  8465. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8466. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8467. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8468. ;;
  8469. esac
  8470. fi
  8471. hardcode_libdir_flag_spec='-R$libdir'
  8472. hardcode_shlibpath_var=no
  8473. case $host_os in
  8474. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8475. *)
  8476. # The compiler driver will combine and reorder linker options,
  8477. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8478. # but is careful enough not to reorder.
  8479. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8480. if test "$GCC" = yes; then
  8481. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8482. else
  8483. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8484. fi
  8485. ;;
  8486. esac
  8487. link_all_deplibs=yes
  8488. ;;
  8489. sunos4*)
  8490. if test "x$host_vendor" = xsequent; then
  8491. # Use $CC to link under sequent, because it throws in some extra .o
  8492. # files that make .init and .fini sections work.
  8493. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8494. else
  8495. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8496. fi
  8497. hardcode_libdir_flag_spec='-L$libdir'
  8498. hardcode_direct=yes
  8499. hardcode_minus_L=yes
  8500. hardcode_shlibpath_var=no
  8501. ;;
  8502. sysv4)
  8503. case $host_vendor in
  8504. sni)
  8505. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8506. hardcode_direct=yes # is this really true???
  8507. ;;
  8508. siemens)
  8509. ## LD is ld it makes a PLAMLIB
  8510. ## CC just makes a GrossModule.
  8511. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8512. reload_cmds='$CC -r -o $output$reload_objs'
  8513. hardcode_direct=no
  8514. ;;
  8515. motorola)
  8516. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8517. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8518. ;;
  8519. esac
  8520. runpath_var='LD_RUN_PATH'
  8521. hardcode_shlibpath_var=no
  8522. ;;
  8523. sysv4.3*)
  8524. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8525. hardcode_shlibpath_var=no
  8526. export_dynamic_flag_spec='-Bexport'
  8527. ;;
  8528. sysv4*MP*)
  8529. if test -d /usr/nec; then
  8530. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8531. hardcode_shlibpath_var=no
  8532. runpath_var=LD_RUN_PATH
  8533. hardcode_runpath_var=yes
  8534. ld_shlibs=yes
  8535. fi
  8536. ;;
  8537. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8538. no_undefined_flag='${wl}-z,text'
  8539. archive_cmds_need_lc=no
  8540. hardcode_shlibpath_var=no
  8541. runpath_var='LD_RUN_PATH'
  8542. if test "$GCC" = yes; then
  8543. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8544. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8545. else
  8546. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8547. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8548. fi
  8549. ;;
  8550. sysv5* | sco3.2v5* | sco5v6*)
  8551. # Note: We can NOT use -z defs as we might desire, because we do not
  8552. # link with -lc, and that would cause any symbols used from libc to
  8553. # always be unresolved, which means just about no library would
  8554. # ever link correctly. If we're not using GNU ld we use -z text
  8555. # though, which does catch some bad symbols but isn't as heavy-handed
  8556. # as -z defs.
  8557. no_undefined_flag='${wl}-z,text'
  8558. allow_undefined_flag='${wl}-z,nodefs'
  8559. archive_cmds_need_lc=no
  8560. hardcode_shlibpath_var=no
  8561. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8562. hardcode_libdir_separator=':'
  8563. link_all_deplibs=yes
  8564. export_dynamic_flag_spec='${wl}-Bexport'
  8565. runpath_var='LD_RUN_PATH'
  8566. if test "$GCC" = yes; then
  8567. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8568. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8569. else
  8570. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8571. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8572. fi
  8573. ;;
  8574. uts4*)
  8575. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8576. hardcode_libdir_flag_spec='-L$libdir'
  8577. hardcode_shlibpath_var=no
  8578. ;;
  8579. *)
  8580. ld_shlibs=no
  8581. ;;
  8582. esac
  8583. if test x$host_vendor = xsni; then
  8584. case $host in
  8585. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8586. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8587. ;;
  8588. esac
  8589. fi
  8590. fi
  8591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8592. $as_echo "$ld_shlibs" >&6; }
  8593. test "$ld_shlibs" = no && can_build_shared=no
  8594. with_gnu_ld=$with_gnu_ld
  8595. #
  8596. # Do we need to explicitly link libc?
  8597. #
  8598. case "x$archive_cmds_need_lc" in
  8599. x|xyes)
  8600. # Assume -lc should be added
  8601. archive_cmds_need_lc=yes
  8602. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8603. case $archive_cmds in
  8604. *'~'*)
  8605. # FIXME: we may have to deal with multi-command sequences.
  8606. ;;
  8607. '$CC '*)
  8608. # Test whether the compiler implicitly links with -lc since on some
  8609. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8610. # to ld, don't add -lc before -lgcc.
  8611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8612. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8613. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8614. $as_echo_n "(cached) " >&6
  8615. else
  8616. $RM conftest*
  8617. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8618. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8619. (eval $ac_compile) 2>&5
  8620. ac_status=$?
  8621. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8622. test $ac_status = 0; } 2>conftest.err; then
  8623. soname=conftest
  8624. lib=conftest
  8625. libobjs=conftest.$ac_objext
  8626. deplibs=
  8627. wl=$lt_prog_compiler_wl
  8628. pic_flag=$lt_prog_compiler_pic
  8629. compiler_flags=-v
  8630. linker_flags=-v
  8631. verstring=
  8632. output_objdir=.
  8633. libname=conftest
  8634. lt_save_allow_undefined_flag=$allow_undefined_flag
  8635. allow_undefined_flag=
  8636. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8637. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8638. ac_status=$?
  8639. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8640. test $ac_status = 0; }
  8641. then
  8642. lt_cv_archive_cmds_need_lc=no
  8643. else
  8644. lt_cv_archive_cmds_need_lc=yes
  8645. fi
  8646. allow_undefined_flag=$lt_save_allow_undefined_flag
  8647. else
  8648. cat conftest.err 1>&5
  8649. fi
  8650. $RM conftest*
  8651. fi
  8652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8653. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8654. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8655. ;;
  8656. esac
  8657. fi
  8658. ;;
  8659. esac
  8660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8661. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8662. if test "$GCC" = yes; then
  8663. case $host_os in
  8664. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8665. *) lt_awk_arg="/^libraries:/" ;;
  8666. esac
  8667. case $host_os in
  8668. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8669. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8670. esac
  8671. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8672. case $lt_search_path_spec in
  8673. *\;*)
  8674. # if the path contains ";" then we assume it to be the separator
  8675. # otherwise default to the standard path separator (i.e. ":") - it is
  8676. # assumed that no part of a normal pathname contains ";" but that should
  8677. # okay in the real world where ";" in dirpaths is itself problematic.
  8678. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8679. ;;
  8680. *)
  8681. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8682. ;;
  8683. esac
  8684. # Ok, now we have the path, separated by spaces, we can step through it
  8685. # and add multilib dir if necessary...
  8686. lt_tmp_lt_search_path_spec=
  8687. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8688. # ...but if some path already ends with the multilib dir we assume
  8689. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8690. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8691. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8692. lt_multi_os_dir=
  8693. ;;
  8694. esac
  8695. for lt_sys_path in $lt_search_path_spec; do
  8696. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8697. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8698. elif test -n "$lt_multi_os_dir"; then
  8699. test -d "$lt_sys_path" && \
  8700. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8701. fi
  8702. done
  8703. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8704. BEGIN {RS=" "; FS="/|\n";} {
  8705. lt_foo="";
  8706. lt_count=0;
  8707. for (lt_i = NF; lt_i > 0; lt_i--) {
  8708. if ($lt_i != "" && $lt_i != ".") {
  8709. if ($lt_i == "..") {
  8710. lt_count++;
  8711. } else {
  8712. if (lt_count == 0) {
  8713. lt_foo="/" $lt_i lt_foo;
  8714. } else {
  8715. lt_count--;
  8716. }
  8717. }
  8718. }
  8719. }
  8720. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8721. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8722. }'`
  8723. # AWK program above erroneously prepends '/' to C:/dos/paths
  8724. # for these hosts.
  8725. case $host_os in
  8726. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8727. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8728. esac
  8729. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8730. else
  8731. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8732. fi
  8733. library_names_spec=
  8734. libname_spec='lib$name'
  8735. soname_spec=
  8736. shrext_cmds=".so"
  8737. postinstall_cmds=
  8738. postuninstall_cmds=
  8739. finish_cmds=
  8740. finish_eval=
  8741. shlibpath_var=
  8742. shlibpath_overrides_runpath=unknown
  8743. version_type=none
  8744. dynamic_linker="$host_os ld.so"
  8745. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8746. need_lib_prefix=unknown
  8747. hardcode_into_libs=no
  8748. # when you set need_version to no, make sure it does not cause -set_version
  8749. # flags to be left without arguments
  8750. need_version=unknown
  8751. case $host_os in
  8752. aix3*)
  8753. version_type=linux # correct to gnu/linux during the next big refactor
  8754. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8755. shlibpath_var=LIBPATH
  8756. # AIX 3 has no versioning support, so we append a major version to the name.
  8757. soname_spec='${libname}${release}${shared_ext}$major'
  8758. ;;
  8759. aix[4-9]*)
  8760. version_type=linux # correct to gnu/linux during the next big refactor
  8761. need_lib_prefix=no
  8762. need_version=no
  8763. hardcode_into_libs=yes
  8764. if test "$host_cpu" = ia64; then
  8765. # AIX 5 supports IA64
  8766. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8767. shlibpath_var=LD_LIBRARY_PATH
  8768. else
  8769. # With GCC up to 2.95.x, collect2 would create an import file
  8770. # for dependence libraries. The import file would start with
  8771. # the line `#! .'. This would cause the generated library to
  8772. # depend on `.', always an invalid library. This was fixed in
  8773. # development snapshots of GCC prior to 3.0.
  8774. case $host_os in
  8775. aix4 | aix4.[01] | aix4.[01].*)
  8776. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8777. echo ' yes '
  8778. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8779. :
  8780. else
  8781. can_build_shared=no
  8782. fi
  8783. ;;
  8784. esac
  8785. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8786. # soname into executable. Probably we can add versioning support to
  8787. # collect2, so additional links can be useful in future.
  8788. if test "$aix_use_runtimelinking" = yes; then
  8789. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8790. # instead of lib<name>.a to let people know that these are not
  8791. # typical AIX shared libraries.
  8792. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8793. else
  8794. # We preserve .a as extension for shared libraries through AIX4.2
  8795. # and later when we are not doing run time linking.
  8796. library_names_spec='${libname}${release}.a $libname.a'
  8797. soname_spec='${libname}${release}${shared_ext}$major'
  8798. fi
  8799. shlibpath_var=LIBPATH
  8800. fi
  8801. ;;
  8802. amigaos*)
  8803. case $host_cpu in
  8804. powerpc)
  8805. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8806. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8808. ;;
  8809. m68k)
  8810. library_names_spec='$libname.ixlibrary $libname.a'
  8811. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8812. 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'
  8813. ;;
  8814. esac
  8815. ;;
  8816. beos*)
  8817. library_names_spec='${libname}${shared_ext}'
  8818. dynamic_linker="$host_os ld.so"
  8819. shlibpath_var=LIBRARY_PATH
  8820. ;;
  8821. bsdi[45]*)
  8822. version_type=linux # correct to gnu/linux during the next big refactor
  8823. need_version=no
  8824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8825. soname_spec='${libname}${release}${shared_ext}$major'
  8826. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8827. shlibpath_var=LD_LIBRARY_PATH
  8828. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8829. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8830. # the default ld.so.conf also contains /usr/contrib/lib and
  8831. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8832. # libtool to hard-code these into programs
  8833. ;;
  8834. cygwin* | mingw* | pw32* | cegcc*)
  8835. version_type=windows
  8836. shrext_cmds=".dll"
  8837. need_version=no
  8838. need_lib_prefix=no
  8839. case $GCC,$cc_basename in
  8840. yes,*)
  8841. # gcc
  8842. library_names_spec='$libname.dll.a'
  8843. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8844. postinstall_cmds='base_file=`basename \${file}`~
  8845. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8846. dldir=$destdir/`dirname \$dlpath`~
  8847. test -d \$dldir || mkdir -p \$dldir~
  8848. $install_prog $dir/$dlname \$dldir/$dlname~
  8849. chmod a+x \$dldir/$dlname~
  8850. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8851. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8852. fi'
  8853. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8854. dlpath=$dir/\$dldll~
  8855. $RM \$dlpath'
  8856. shlibpath_overrides_runpath=yes
  8857. case $host_os in
  8858. cygwin*)
  8859. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8860. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8861. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8862. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8863. ;;
  8864. mingw* | cegcc*)
  8865. # MinGW DLLs use traditional 'lib' prefix
  8866. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8867. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8868. ;;
  8869. pw32*)
  8870. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8871. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8872. ;;
  8873. esac
  8874. dynamic_linker='Win32 ld.exe'
  8875. ;;
  8876. *,cl*)
  8877. # Native MSVC
  8878. libname_spec='$name'
  8879. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8880. library_names_spec='${libname}.dll.lib'
  8881. case $build_os in
  8882. mingw*)
  8883. sys_lib_search_path_spec=
  8884. lt_save_ifs=$IFS
  8885. IFS=';'
  8886. for lt_path in $LIB
  8887. do
  8888. IFS=$lt_save_ifs
  8889. # Let DOS variable expansion print the short 8.3 style file name.
  8890. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8891. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8892. done
  8893. IFS=$lt_save_ifs
  8894. # Convert to MSYS style.
  8895. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8896. ;;
  8897. cygwin*)
  8898. # Convert to unix form, then to dos form, then back to unix form
  8899. # but this time dos style (no spaces!) so that the unix form looks
  8900. # like /cygdrive/c/PROGRA~1:/cygdr...
  8901. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8902. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8903. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8904. ;;
  8905. *)
  8906. sys_lib_search_path_spec="$LIB"
  8907. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8908. # It is most probably a Windows format PATH.
  8909. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8910. else
  8911. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8912. fi
  8913. # FIXME: find the short name or the path components, as spaces are
  8914. # common. (e.g. "Program Files" -> "PROGRA~1")
  8915. ;;
  8916. esac
  8917. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8918. postinstall_cmds='base_file=`basename \${file}`~
  8919. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8920. dldir=$destdir/`dirname \$dlpath`~
  8921. test -d \$dldir || mkdir -p \$dldir~
  8922. $install_prog $dir/$dlname \$dldir/$dlname'
  8923. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8924. dlpath=$dir/\$dldll~
  8925. $RM \$dlpath'
  8926. shlibpath_overrides_runpath=yes
  8927. dynamic_linker='Win32 link.exe'
  8928. ;;
  8929. *)
  8930. # Assume MSVC wrapper
  8931. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8932. dynamic_linker='Win32 ld.exe'
  8933. ;;
  8934. esac
  8935. # FIXME: first we should search . and the directory the executable is in
  8936. shlibpath_var=PATH
  8937. ;;
  8938. darwin* | rhapsody*)
  8939. dynamic_linker="$host_os dyld"
  8940. version_type=darwin
  8941. need_lib_prefix=no
  8942. need_version=no
  8943. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8944. soname_spec='${libname}${release}${major}$shared_ext'
  8945. shlibpath_overrides_runpath=yes
  8946. shlibpath_var=DYLD_LIBRARY_PATH
  8947. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8948. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8949. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8950. ;;
  8951. dgux*)
  8952. version_type=linux # correct to gnu/linux during the next big refactor
  8953. need_lib_prefix=no
  8954. need_version=no
  8955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8956. soname_spec='${libname}${release}${shared_ext}$major'
  8957. shlibpath_var=LD_LIBRARY_PATH
  8958. ;;
  8959. freebsd* | dragonfly*)
  8960. # DragonFly does not have aout. When/if they implement a new
  8961. # versioning mechanism, adjust this.
  8962. if test -x /usr/bin/objformat; then
  8963. objformat=`/usr/bin/objformat`
  8964. else
  8965. case $host_os in
  8966. freebsd[23].*) objformat=aout ;;
  8967. *) objformat=elf ;;
  8968. esac
  8969. fi
  8970. version_type=freebsd-$objformat
  8971. case $version_type in
  8972. freebsd-elf*)
  8973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8974. need_version=no
  8975. need_lib_prefix=no
  8976. ;;
  8977. freebsd-*)
  8978. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8979. need_version=yes
  8980. ;;
  8981. esac
  8982. shlibpath_var=LD_LIBRARY_PATH
  8983. case $host_os in
  8984. freebsd2.*)
  8985. shlibpath_overrides_runpath=yes
  8986. ;;
  8987. freebsd3.[01]* | freebsdelf3.[01]*)
  8988. shlibpath_overrides_runpath=yes
  8989. hardcode_into_libs=yes
  8990. ;;
  8991. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8992. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8993. shlibpath_overrides_runpath=no
  8994. hardcode_into_libs=yes
  8995. ;;
  8996. *) # from 4.6 on, and DragonFly
  8997. shlibpath_overrides_runpath=yes
  8998. hardcode_into_libs=yes
  8999. ;;
  9000. esac
  9001. ;;
  9002. gnu*)
  9003. version_type=linux # correct to gnu/linux during the next big refactor
  9004. need_lib_prefix=no
  9005. need_version=no
  9006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9007. soname_spec='${libname}${release}${shared_ext}$major'
  9008. shlibpath_var=LD_LIBRARY_PATH
  9009. shlibpath_overrides_runpath=no
  9010. hardcode_into_libs=yes
  9011. ;;
  9012. haiku*)
  9013. version_type=linux # correct to gnu/linux during the next big refactor
  9014. need_lib_prefix=no
  9015. need_version=no
  9016. dynamic_linker="$host_os runtime_loader"
  9017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9018. soname_spec='${libname}${release}${shared_ext}$major'
  9019. shlibpath_var=LIBRARY_PATH
  9020. shlibpath_overrides_runpath=yes
  9021. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9022. hardcode_into_libs=yes
  9023. ;;
  9024. hpux9* | hpux10* | hpux11*)
  9025. # Give a soname corresponding to the major version so that dld.sl refuses to
  9026. # link against other versions.
  9027. version_type=sunos
  9028. need_lib_prefix=no
  9029. need_version=no
  9030. case $host_cpu in
  9031. ia64*)
  9032. shrext_cmds='.so'
  9033. hardcode_into_libs=yes
  9034. dynamic_linker="$host_os dld.so"
  9035. shlibpath_var=LD_LIBRARY_PATH
  9036. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9038. soname_spec='${libname}${release}${shared_ext}$major'
  9039. if test "X$HPUX_IA64_MODE" = X32; then
  9040. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9041. else
  9042. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9043. fi
  9044. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9045. ;;
  9046. hppa*64*)
  9047. shrext_cmds='.sl'
  9048. hardcode_into_libs=yes
  9049. dynamic_linker="$host_os dld.sl"
  9050. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9051. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9053. soname_spec='${libname}${release}${shared_ext}$major'
  9054. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9055. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9056. ;;
  9057. *)
  9058. shrext_cmds='.sl'
  9059. dynamic_linker="$host_os dld.sl"
  9060. shlibpath_var=SHLIB_PATH
  9061. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9063. soname_spec='${libname}${release}${shared_ext}$major'
  9064. ;;
  9065. esac
  9066. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9067. postinstall_cmds='chmod 555 $lib'
  9068. # or fails outright, so override atomically:
  9069. install_override_mode=555
  9070. ;;
  9071. interix[3-9]*)
  9072. version_type=linux # correct to gnu/linux during the next big refactor
  9073. need_lib_prefix=no
  9074. need_version=no
  9075. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9076. soname_spec='${libname}${release}${shared_ext}$major'
  9077. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9078. shlibpath_var=LD_LIBRARY_PATH
  9079. shlibpath_overrides_runpath=no
  9080. hardcode_into_libs=yes
  9081. ;;
  9082. irix5* | irix6* | nonstopux*)
  9083. case $host_os in
  9084. nonstopux*) version_type=nonstopux ;;
  9085. *)
  9086. if test "$lt_cv_prog_gnu_ld" = yes; then
  9087. version_type=linux # correct to gnu/linux during the next big refactor
  9088. else
  9089. version_type=irix
  9090. fi ;;
  9091. esac
  9092. need_lib_prefix=no
  9093. need_version=no
  9094. soname_spec='${libname}${release}${shared_ext}$major'
  9095. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9096. case $host_os in
  9097. irix5* | nonstopux*)
  9098. libsuff= shlibsuff=
  9099. ;;
  9100. *)
  9101. case $LD in # libtool.m4 will add one of these switches to LD
  9102. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9103. libsuff= shlibsuff= libmagic=32-bit;;
  9104. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9105. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9106. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9107. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9108. *) libsuff= shlibsuff= libmagic=never-match;;
  9109. esac
  9110. ;;
  9111. esac
  9112. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9113. shlibpath_overrides_runpath=no
  9114. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9115. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9116. hardcode_into_libs=yes
  9117. ;;
  9118. # No shared lib support for Linux oldld, aout, or coff.
  9119. linux*oldld* | linux*aout* | linux*coff*)
  9120. dynamic_linker=no
  9121. ;;
  9122. # This must be glibc/ELF.
  9123. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9124. version_type=linux # correct to gnu/linux during the next big refactor
  9125. need_lib_prefix=no
  9126. need_version=no
  9127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9128. soname_spec='${libname}${release}${shared_ext}$major'
  9129. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9130. shlibpath_var=LD_LIBRARY_PATH
  9131. shlibpath_overrides_runpath=no
  9132. # Some binutils ld are patched to set DT_RUNPATH
  9133. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9134. $as_echo_n "(cached) " >&6
  9135. else
  9136. lt_cv_shlibpath_overrides_runpath=no
  9137. save_LDFLAGS=$LDFLAGS
  9138. save_libdir=$libdir
  9139. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9140. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9142. /* end confdefs.h. */
  9143. int
  9144. main ()
  9145. {
  9146. ;
  9147. return 0;
  9148. }
  9149. _ACEOF
  9150. if ac_fn_c_try_link "$LINENO"; then :
  9151. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9152. lt_cv_shlibpath_overrides_runpath=yes
  9153. fi
  9154. fi
  9155. rm -f core conftest.err conftest.$ac_objext \
  9156. conftest$ac_exeext conftest.$ac_ext
  9157. LDFLAGS=$save_LDFLAGS
  9158. libdir=$save_libdir
  9159. fi
  9160. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9161. # This implies no fast_install, which is unacceptable.
  9162. # Some rework will be needed to allow for fast_install
  9163. # before this can be enabled.
  9164. hardcode_into_libs=yes
  9165. # Append ld.so.conf contents to the search path
  9166. if test -f /etc/ld.so.conf; then
  9167. 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' ' '`
  9168. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9169. fi
  9170. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9171. # powerpc, because MkLinux only supported shared libraries with the
  9172. # GNU dynamic linker. Since this was broken with cross compilers,
  9173. # most powerpc-linux boxes support dynamic linking these days and
  9174. # people can always --disable-shared, the test was removed, and we
  9175. # assume the GNU/Linux dynamic linker is in use.
  9176. dynamic_linker='GNU/Linux ld.so'
  9177. ;;
  9178. netbsd*)
  9179. version_type=sunos
  9180. need_lib_prefix=no
  9181. need_version=no
  9182. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9184. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9185. dynamic_linker='NetBSD (a.out) ld.so'
  9186. else
  9187. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9188. soname_spec='${libname}${release}${shared_ext}$major'
  9189. dynamic_linker='NetBSD ld.elf_so'
  9190. fi
  9191. shlibpath_var=LD_LIBRARY_PATH
  9192. shlibpath_overrides_runpath=yes
  9193. hardcode_into_libs=yes
  9194. ;;
  9195. newsos6)
  9196. version_type=linux # correct to gnu/linux during the next big refactor
  9197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9198. shlibpath_var=LD_LIBRARY_PATH
  9199. shlibpath_overrides_runpath=yes
  9200. ;;
  9201. *nto* | *qnx*)
  9202. version_type=qnx
  9203. need_lib_prefix=no
  9204. need_version=no
  9205. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9206. soname_spec='${libname}${release}${shared_ext}$major'
  9207. shlibpath_var=LD_LIBRARY_PATH
  9208. shlibpath_overrides_runpath=no
  9209. hardcode_into_libs=yes
  9210. dynamic_linker='ldqnx.so'
  9211. ;;
  9212. openbsd*)
  9213. version_type=sunos
  9214. sys_lib_dlsearch_path_spec="/usr/lib"
  9215. need_lib_prefix=no
  9216. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9217. case $host_os in
  9218. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9219. *) need_version=no ;;
  9220. esac
  9221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9222. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9223. shlibpath_var=LD_LIBRARY_PATH
  9224. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9225. case $host_os in
  9226. openbsd2.[89] | openbsd2.[89].*)
  9227. shlibpath_overrides_runpath=no
  9228. ;;
  9229. *)
  9230. shlibpath_overrides_runpath=yes
  9231. ;;
  9232. esac
  9233. else
  9234. shlibpath_overrides_runpath=yes
  9235. fi
  9236. ;;
  9237. os2*)
  9238. libname_spec='$name'
  9239. shrext_cmds=".dll"
  9240. need_lib_prefix=no
  9241. library_names_spec='$libname${shared_ext} $libname.a'
  9242. dynamic_linker='OS/2 ld.exe'
  9243. shlibpath_var=LIBPATH
  9244. ;;
  9245. osf3* | osf4* | osf5*)
  9246. version_type=osf
  9247. need_lib_prefix=no
  9248. need_version=no
  9249. soname_spec='${libname}${release}${shared_ext}$major'
  9250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9251. shlibpath_var=LD_LIBRARY_PATH
  9252. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9253. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9254. ;;
  9255. rdos*)
  9256. dynamic_linker=no
  9257. ;;
  9258. solaris*)
  9259. version_type=linux # correct to gnu/linux during the next big refactor
  9260. need_lib_prefix=no
  9261. need_version=no
  9262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9263. soname_spec='${libname}${release}${shared_ext}$major'
  9264. shlibpath_var=LD_LIBRARY_PATH
  9265. shlibpath_overrides_runpath=yes
  9266. hardcode_into_libs=yes
  9267. # ldd complains unless libraries are executable
  9268. postinstall_cmds='chmod +x $lib'
  9269. ;;
  9270. sunos4*)
  9271. version_type=sunos
  9272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9273. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9274. shlibpath_var=LD_LIBRARY_PATH
  9275. shlibpath_overrides_runpath=yes
  9276. if test "$with_gnu_ld" = yes; then
  9277. need_lib_prefix=no
  9278. fi
  9279. need_version=yes
  9280. ;;
  9281. sysv4 | sysv4.3*)
  9282. version_type=linux # correct to gnu/linux during the next big refactor
  9283. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9284. soname_spec='${libname}${release}${shared_ext}$major'
  9285. shlibpath_var=LD_LIBRARY_PATH
  9286. case $host_vendor in
  9287. sni)
  9288. shlibpath_overrides_runpath=no
  9289. need_lib_prefix=no
  9290. runpath_var=LD_RUN_PATH
  9291. ;;
  9292. siemens)
  9293. need_lib_prefix=no
  9294. ;;
  9295. motorola)
  9296. need_lib_prefix=no
  9297. need_version=no
  9298. shlibpath_overrides_runpath=no
  9299. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9300. ;;
  9301. esac
  9302. ;;
  9303. sysv4*MP*)
  9304. if test -d /usr/nec ;then
  9305. version_type=linux # correct to gnu/linux during the next big refactor
  9306. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9307. soname_spec='$libname${shared_ext}.$major'
  9308. shlibpath_var=LD_LIBRARY_PATH
  9309. fi
  9310. ;;
  9311. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9312. version_type=freebsd-elf
  9313. need_lib_prefix=no
  9314. need_version=no
  9315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9316. soname_spec='${libname}${release}${shared_ext}$major'
  9317. shlibpath_var=LD_LIBRARY_PATH
  9318. shlibpath_overrides_runpath=yes
  9319. hardcode_into_libs=yes
  9320. if test "$with_gnu_ld" = yes; then
  9321. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9322. else
  9323. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9324. case $host_os in
  9325. sco3.2v5*)
  9326. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9327. ;;
  9328. esac
  9329. fi
  9330. sys_lib_dlsearch_path_spec='/usr/lib'
  9331. ;;
  9332. tpf*)
  9333. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9334. version_type=linux # correct to gnu/linux during the next big refactor
  9335. need_lib_prefix=no
  9336. need_version=no
  9337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9338. shlibpath_var=LD_LIBRARY_PATH
  9339. shlibpath_overrides_runpath=no
  9340. hardcode_into_libs=yes
  9341. ;;
  9342. uts4*)
  9343. version_type=linux # correct to gnu/linux during the next big refactor
  9344. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9345. soname_spec='${libname}${release}${shared_ext}$major'
  9346. shlibpath_var=LD_LIBRARY_PATH
  9347. ;;
  9348. *)
  9349. dynamic_linker=no
  9350. ;;
  9351. esac
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9353. $as_echo "$dynamic_linker" >&6; }
  9354. test "$dynamic_linker" = no && can_build_shared=no
  9355. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9356. if test "$GCC" = yes; then
  9357. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9358. fi
  9359. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9360. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9361. fi
  9362. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9363. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9364. fi
  9365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9366. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9367. hardcode_action=
  9368. if test -n "$hardcode_libdir_flag_spec" ||
  9369. test -n "$runpath_var" ||
  9370. test "X$hardcode_automatic" = "Xyes" ; then
  9371. # We can hardcode non-existent directories.
  9372. if test "$hardcode_direct" != no &&
  9373. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9374. # have to relink, otherwise we might link with an installed library
  9375. # when we should be linking with a yet-to-be-installed one
  9376. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9377. test "$hardcode_minus_L" != no; then
  9378. # Linking always hardcodes the temporary library directory.
  9379. hardcode_action=relink
  9380. else
  9381. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9382. hardcode_action=immediate
  9383. fi
  9384. else
  9385. # We cannot hardcode anything, or else we can only hardcode existing
  9386. # directories.
  9387. hardcode_action=unsupported
  9388. fi
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9390. $as_echo "$hardcode_action" >&6; }
  9391. if test "$hardcode_action" = relink ||
  9392. test "$inherit_rpath" = yes; then
  9393. # Fast installation is not supported
  9394. enable_fast_install=no
  9395. elif test "$shlibpath_overrides_runpath" = yes ||
  9396. test "$enable_shared" = no; then
  9397. # Fast installation is not necessary
  9398. enable_fast_install=needless
  9399. fi
  9400. if test "x$enable_dlopen" != xyes; then
  9401. enable_dlopen=unknown
  9402. enable_dlopen_self=unknown
  9403. enable_dlopen_self_static=unknown
  9404. else
  9405. lt_cv_dlopen=no
  9406. lt_cv_dlopen_libs=
  9407. case $host_os in
  9408. beos*)
  9409. lt_cv_dlopen="load_add_on"
  9410. lt_cv_dlopen_libs=
  9411. lt_cv_dlopen_self=yes
  9412. ;;
  9413. mingw* | pw32* | cegcc*)
  9414. lt_cv_dlopen="LoadLibrary"
  9415. lt_cv_dlopen_libs=
  9416. ;;
  9417. cygwin*)
  9418. lt_cv_dlopen="dlopen"
  9419. lt_cv_dlopen_libs=
  9420. ;;
  9421. darwin*)
  9422. # if libdl is installed we need to link against it
  9423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9424. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9425. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9426. $as_echo_n "(cached) " >&6
  9427. else
  9428. ac_check_lib_save_LIBS=$LIBS
  9429. LIBS="-ldl $LIBS"
  9430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9431. /* end confdefs.h. */
  9432. /* Override any GCC internal prototype to avoid an error.
  9433. Use char because int might match the return type of a GCC
  9434. builtin and then its argument prototype would still apply. */
  9435. #ifdef __cplusplus
  9436. extern "C"
  9437. #endif
  9438. char dlopen ();
  9439. int
  9440. main ()
  9441. {
  9442. return dlopen ();
  9443. ;
  9444. return 0;
  9445. }
  9446. _ACEOF
  9447. if ac_fn_c_try_link "$LINENO"; then :
  9448. ac_cv_lib_dl_dlopen=yes
  9449. else
  9450. ac_cv_lib_dl_dlopen=no
  9451. fi
  9452. rm -f core conftest.err conftest.$ac_objext \
  9453. conftest$ac_exeext conftest.$ac_ext
  9454. LIBS=$ac_check_lib_save_LIBS
  9455. fi
  9456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9457. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9458. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9459. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9460. else
  9461. lt_cv_dlopen="dyld"
  9462. lt_cv_dlopen_libs=
  9463. lt_cv_dlopen_self=yes
  9464. fi
  9465. ;;
  9466. *)
  9467. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9468. if test "x$ac_cv_func_shl_load" = xyes; then :
  9469. lt_cv_dlopen="shl_load"
  9470. else
  9471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9472. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9473. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9474. $as_echo_n "(cached) " >&6
  9475. else
  9476. ac_check_lib_save_LIBS=$LIBS
  9477. LIBS="-ldld $LIBS"
  9478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9479. /* end confdefs.h. */
  9480. /* Override any GCC internal prototype to avoid an error.
  9481. Use char because int might match the return type of a GCC
  9482. builtin and then its argument prototype would still apply. */
  9483. #ifdef __cplusplus
  9484. extern "C"
  9485. #endif
  9486. char shl_load ();
  9487. int
  9488. main ()
  9489. {
  9490. return shl_load ();
  9491. ;
  9492. return 0;
  9493. }
  9494. _ACEOF
  9495. if ac_fn_c_try_link "$LINENO"; then :
  9496. ac_cv_lib_dld_shl_load=yes
  9497. else
  9498. ac_cv_lib_dld_shl_load=no
  9499. fi
  9500. rm -f core conftest.err conftest.$ac_objext \
  9501. conftest$ac_exeext conftest.$ac_ext
  9502. LIBS=$ac_check_lib_save_LIBS
  9503. fi
  9504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9505. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9506. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9507. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9508. else
  9509. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9510. if test "x$ac_cv_func_dlopen" = xyes; then :
  9511. lt_cv_dlopen="dlopen"
  9512. else
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9514. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9515. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9516. $as_echo_n "(cached) " >&6
  9517. else
  9518. ac_check_lib_save_LIBS=$LIBS
  9519. LIBS="-ldl $LIBS"
  9520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9521. /* end confdefs.h. */
  9522. /* Override any GCC internal prototype to avoid an error.
  9523. Use char because int might match the return type of a GCC
  9524. builtin and then its argument prototype would still apply. */
  9525. #ifdef __cplusplus
  9526. extern "C"
  9527. #endif
  9528. char dlopen ();
  9529. int
  9530. main ()
  9531. {
  9532. return dlopen ();
  9533. ;
  9534. return 0;
  9535. }
  9536. _ACEOF
  9537. if ac_fn_c_try_link "$LINENO"; then :
  9538. ac_cv_lib_dl_dlopen=yes
  9539. else
  9540. ac_cv_lib_dl_dlopen=no
  9541. fi
  9542. rm -f core conftest.err conftest.$ac_objext \
  9543. conftest$ac_exeext conftest.$ac_ext
  9544. LIBS=$ac_check_lib_save_LIBS
  9545. fi
  9546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9547. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9548. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9549. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9550. else
  9551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9552. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9553. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9554. $as_echo_n "(cached) " >&6
  9555. else
  9556. ac_check_lib_save_LIBS=$LIBS
  9557. LIBS="-lsvld $LIBS"
  9558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9559. /* end confdefs.h. */
  9560. /* Override any GCC internal prototype to avoid an error.
  9561. Use char because int might match the return type of a GCC
  9562. builtin and then its argument prototype would still apply. */
  9563. #ifdef __cplusplus
  9564. extern "C"
  9565. #endif
  9566. char dlopen ();
  9567. int
  9568. main ()
  9569. {
  9570. return dlopen ();
  9571. ;
  9572. return 0;
  9573. }
  9574. _ACEOF
  9575. if ac_fn_c_try_link "$LINENO"; then :
  9576. ac_cv_lib_svld_dlopen=yes
  9577. else
  9578. ac_cv_lib_svld_dlopen=no
  9579. fi
  9580. rm -f core conftest.err conftest.$ac_objext \
  9581. conftest$ac_exeext conftest.$ac_ext
  9582. LIBS=$ac_check_lib_save_LIBS
  9583. fi
  9584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9585. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9586. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9587. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9588. else
  9589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9590. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9591. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9592. $as_echo_n "(cached) " >&6
  9593. else
  9594. ac_check_lib_save_LIBS=$LIBS
  9595. LIBS="-ldld $LIBS"
  9596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9597. /* end confdefs.h. */
  9598. /* Override any GCC internal prototype to avoid an error.
  9599. Use char because int might match the return type of a GCC
  9600. builtin and then its argument prototype would still apply. */
  9601. #ifdef __cplusplus
  9602. extern "C"
  9603. #endif
  9604. char dld_link ();
  9605. int
  9606. main ()
  9607. {
  9608. return dld_link ();
  9609. ;
  9610. return 0;
  9611. }
  9612. _ACEOF
  9613. if ac_fn_c_try_link "$LINENO"; then :
  9614. ac_cv_lib_dld_dld_link=yes
  9615. else
  9616. ac_cv_lib_dld_dld_link=no
  9617. fi
  9618. rm -f core conftest.err conftest.$ac_objext \
  9619. conftest$ac_exeext conftest.$ac_ext
  9620. LIBS=$ac_check_lib_save_LIBS
  9621. fi
  9622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9623. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9624. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9625. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9626. fi
  9627. fi
  9628. fi
  9629. fi
  9630. fi
  9631. fi
  9632. ;;
  9633. esac
  9634. if test "x$lt_cv_dlopen" != xno; then
  9635. enable_dlopen=yes
  9636. else
  9637. enable_dlopen=no
  9638. fi
  9639. case $lt_cv_dlopen in
  9640. dlopen)
  9641. save_CPPFLAGS="$CPPFLAGS"
  9642. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9643. save_LDFLAGS="$LDFLAGS"
  9644. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9645. save_LIBS="$LIBS"
  9646. LIBS="$lt_cv_dlopen_libs $LIBS"
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9648. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9649. if ${lt_cv_dlopen_self+:} false; then :
  9650. $as_echo_n "(cached) " >&6
  9651. else
  9652. if test "$cross_compiling" = yes; then :
  9653. lt_cv_dlopen_self=cross
  9654. else
  9655. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9656. lt_status=$lt_dlunknown
  9657. cat > conftest.$ac_ext <<_LT_EOF
  9658. #line $LINENO "configure"
  9659. #include "confdefs.h"
  9660. #if HAVE_DLFCN_H
  9661. #include <dlfcn.h>
  9662. #endif
  9663. #include <stdio.h>
  9664. #ifdef RTLD_GLOBAL
  9665. # define LT_DLGLOBAL RTLD_GLOBAL
  9666. #else
  9667. # ifdef DL_GLOBAL
  9668. # define LT_DLGLOBAL DL_GLOBAL
  9669. # else
  9670. # define LT_DLGLOBAL 0
  9671. # endif
  9672. #endif
  9673. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9674. find out it does not work in some platform. */
  9675. #ifndef LT_DLLAZY_OR_NOW
  9676. # ifdef RTLD_LAZY
  9677. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9678. # else
  9679. # ifdef DL_LAZY
  9680. # define LT_DLLAZY_OR_NOW DL_LAZY
  9681. # else
  9682. # ifdef RTLD_NOW
  9683. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9684. # else
  9685. # ifdef DL_NOW
  9686. # define LT_DLLAZY_OR_NOW DL_NOW
  9687. # else
  9688. # define LT_DLLAZY_OR_NOW 0
  9689. # endif
  9690. # endif
  9691. # endif
  9692. # endif
  9693. #endif
  9694. /* When -fvisbility=hidden is used, assume the code has been annotated
  9695. correspondingly for the symbols needed. */
  9696. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9697. int fnord () __attribute__((visibility("default")));
  9698. #endif
  9699. int fnord () { return 42; }
  9700. int main ()
  9701. {
  9702. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9703. int status = $lt_dlunknown;
  9704. if (self)
  9705. {
  9706. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9707. else
  9708. {
  9709. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9710. else puts (dlerror ());
  9711. }
  9712. /* dlclose (self); */
  9713. }
  9714. else
  9715. puts (dlerror ());
  9716. return status;
  9717. }
  9718. _LT_EOF
  9719. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9720. (eval $ac_link) 2>&5
  9721. ac_status=$?
  9722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9723. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9724. (./conftest; exit; ) >&5 2>/dev/null
  9725. lt_status=$?
  9726. case x$lt_status in
  9727. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9728. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9729. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9730. esac
  9731. else :
  9732. # compilation failed
  9733. lt_cv_dlopen_self=no
  9734. fi
  9735. fi
  9736. rm -fr conftest*
  9737. fi
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9739. $as_echo "$lt_cv_dlopen_self" >&6; }
  9740. if test "x$lt_cv_dlopen_self" = xyes; then
  9741. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9743. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9744. if ${lt_cv_dlopen_self_static+:} false; then :
  9745. $as_echo_n "(cached) " >&6
  9746. else
  9747. if test "$cross_compiling" = yes; then :
  9748. lt_cv_dlopen_self_static=cross
  9749. else
  9750. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9751. lt_status=$lt_dlunknown
  9752. cat > conftest.$ac_ext <<_LT_EOF
  9753. #line $LINENO "configure"
  9754. #include "confdefs.h"
  9755. #if HAVE_DLFCN_H
  9756. #include <dlfcn.h>
  9757. #endif
  9758. #include <stdio.h>
  9759. #ifdef RTLD_GLOBAL
  9760. # define LT_DLGLOBAL RTLD_GLOBAL
  9761. #else
  9762. # ifdef DL_GLOBAL
  9763. # define LT_DLGLOBAL DL_GLOBAL
  9764. # else
  9765. # define LT_DLGLOBAL 0
  9766. # endif
  9767. #endif
  9768. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9769. find out it does not work in some platform. */
  9770. #ifndef LT_DLLAZY_OR_NOW
  9771. # ifdef RTLD_LAZY
  9772. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9773. # else
  9774. # ifdef DL_LAZY
  9775. # define LT_DLLAZY_OR_NOW DL_LAZY
  9776. # else
  9777. # ifdef RTLD_NOW
  9778. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9779. # else
  9780. # ifdef DL_NOW
  9781. # define LT_DLLAZY_OR_NOW DL_NOW
  9782. # else
  9783. # define LT_DLLAZY_OR_NOW 0
  9784. # endif
  9785. # endif
  9786. # endif
  9787. # endif
  9788. #endif
  9789. /* When -fvisbility=hidden is used, assume the code has been annotated
  9790. correspondingly for the symbols needed. */
  9791. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9792. int fnord () __attribute__((visibility("default")));
  9793. #endif
  9794. int fnord () { return 42; }
  9795. int main ()
  9796. {
  9797. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9798. int status = $lt_dlunknown;
  9799. if (self)
  9800. {
  9801. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9802. else
  9803. {
  9804. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9805. else puts (dlerror ());
  9806. }
  9807. /* dlclose (self); */
  9808. }
  9809. else
  9810. puts (dlerror ());
  9811. return status;
  9812. }
  9813. _LT_EOF
  9814. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9815. (eval $ac_link) 2>&5
  9816. ac_status=$?
  9817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9818. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9819. (./conftest; exit; ) >&5 2>/dev/null
  9820. lt_status=$?
  9821. case x$lt_status in
  9822. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9823. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9824. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9825. esac
  9826. else :
  9827. # compilation failed
  9828. lt_cv_dlopen_self_static=no
  9829. fi
  9830. fi
  9831. rm -fr conftest*
  9832. fi
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9834. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9835. fi
  9836. CPPFLAGS="$save_CPPFLAGS"
  9837. LDFLAGS="$save_LDFLAGS"
  9838. LIBS="$save_LIBS"
  9839. ;;
  9840. esac
  9841. case $lt_cv_dlopen_self in
  9842. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9843. *) enable_dlopen_self=unknown ;;
  9844. esac
  9845. case $lt_cv_dlopen_self_static in
  9846. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9847. *) enable_dlopen_self_static=unknown ;;
  9848. esac
  9849. fi
  9850. striplib=
  9851. old_striplib=
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9853. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9854. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9855. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9856. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9858. $as_echo "yes" >&6; }
  9859. else
  9860. # FIXME - insert some real tests, host_os isn't really good enough
  9861. case $host_os in
  9862. darwin*)
  9863. if test -n "$STRIP" ; then
  9864. striplib="$STRIP -x"
  9865. old_striplib="$STRIP -S"
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9867. $as_echo "yes" >&6; }
  9868. else
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9870. $as_echo "no" >&6; }
  9871. fi
  9872. ;;
  9873. *)
  9874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9875. $as_echo "no" >&6; }
  9876. ;;
  9877. esac
  9878. fi
  9879. # Report which library types will actually be built
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9881. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9883. $as_echo "$can_build_shared" >&6; }
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9885. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9886. test "$can_build_shared" = "no" && enable_shared=no
  9887. # On AIX, shared libraries and static libraries use the same namespace, and
  9888. # are all built from PIC.
  9889. case $host_os in
  9890. aix3*)
  9891. test "$enable_shared" = yes && enable_static=no
  9892. if test -n "$RANLIB"; then
  9893. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9894. postinstall_cmds='$RANLIB $lib'
  9895. fi
  9896. ;;
  9897. aix[4-9]*)
  9898. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9899. test "$enable_shared" = yes && enable_static=no
  9900. fi
  9901. ;;
  9902. esac
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9904. $as_echo "$enable_shared" >&6; }
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9906. $as_echo_n "checking whether to build static libraries... " >&6; }
  9907. # Make sure either enable_shared or enable_static is yes.
  9908. test "$enable_shared" = yes || enable_static=yes
  9909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9910. $as_echo "$enable_static" >&6; }
  9911. fi
  9912. ac_ext=c
  9913. ac_cpp='$CPP $CPPFLAGS'
  9914. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9915. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9916. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9917. CC="$lt_save_CC"
  9918. ac_config_commands="$ac_config_commands libtool"
  9919. # Only expand once:
  9920. if test -n "$ac_tool_prefix"; then
  9921. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  9922. set dummy ${ac_tool_prefix}windres; ac_word=$2
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9924. $as_echo_n "checking for $ac_word... " >&6; }
  9925. if ${ac_cv_prog_RC+:} false; then :
  9926. $as_echo_n "(cached) " >&6
  9927. else
  9928. if test -n "$RC"; then
  9929. ac_cv_prog_RC="$RC" # Let the user override the test.
  9930. else
  9931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9932. for as_dir in $PATH
  9933. do
  9934. IFS=$as_save_IFS
  9935. test -z "$as_dir" && as_dir=.
  9936. for ac_exec_ext in '' $ac_executable_extensions; do
  9937. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9938. ac_cv_prog_RC="${ac_tool_prefix}windres"
  9939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9940. break 2
  9941. fi
  9942. done
  9943. done
  9944. IFS=$as_save_IFS
  9945. fi
  9946. fi
  9947. RC=$ac_cv_prog_RC
  9948. if test -n "$RC"; then
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
  9950. $as_echo "$RC" >&6; }
  9951. else
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9953. $as_echo "no" >&6; }
  9954. fi
  9955. fi
  9956. if test -z "$ac_cv_prog_RC"; then
  9957. ac_ct_RC=$RC
  9958. # Extract the first word of "windres", so it can be a program name with args.
  9959. set dummy windres; ac_word=$2
  9960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9961. $as_echo_n "checking for $ac_word... " >&6; }
  9962. if ${ac_cv_prog_ac_ct_RC+:} false; then :
  9963. $as_echo_n "(cached) " >&6
  9964. else
  9965. if test -n "$ac_ct_RC"; then
  9966. ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
  9967. else
  9968. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9969. for as_dir in $PATH
  9970. do
  9971. IFS=$as_save_IFS
  9972. test -z "$as_dir" && as_dir=.
  9973. for ac_exec_ext in '' $ac_executable_extensions; do
  9974. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9975. ac_cv_prog_ac_ct_RC="windres"
  9976. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9977. break 2
  9978. fi
  9979. done
  9980. done
  9981. IFS=$as_save_IFS
  9982. fi
  9983. fi
  9984. ac_ct_RC=$ac_cv_prog_ac_ct_RC
  9985. if test -n "$ac_ct_RC"; then
  9986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
  9987. $as_echo "$ac_ct_RC" >&6; }
  9988. else
  9989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9990. $as_echo "no" >&6; }
  9991. fi
  9992. if test "x$ac_ct_RC" = x; then
  9993. RC=""
  9994. else
  9995. case $cross_compiling:$ac_tool_warned in
  9996. yes:)
  9997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9998. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9999. ac_tool_warned=yes ;;
  10000. esac
  10001. RC=$ac_ct_RC
  10002. fi
  10003. else
  10004. RC="$ac_cv_prog_RC"
  10005. fi
  10006. # Source file extension for RC test sources.
  10007. ac_ext=rc
  10008. # Object file extension for compiled RC test sources.
  10009. objext=o
  10010. objext_RC=$objext
  10011. # Code to be used in simple compile tests
  10012. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10013. # Code to be used in simple link tests
  10014. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10015. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10016. # If no C compiler was specified, use CC.
  10017. LTCC=${LTCC-"$CC"}
  10018. # If no C compiler flags were specified, use CFLAGS.
  10019. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10020. # Allow CC to be a program name with arguments.
  10021. compiler=$CC
  10022. # save warnings/boilerplate of simple test code
  10023. ac_outfile=conftest.$ac_objext
  10024. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10025. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10026. _lt_compiler_boilerplate=`cat conftest.err`
  10027. $RM conftest*
  10028. ac_outfile=conftest.$ac_objext
  10029. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10030. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10031. _lt_linker_boilerplate=`cat conftest.err`
  10032. $RM -r conftest*
  10033. # Allow CC to be a program name with arguments.
  10034. lt_save_CC="$CC"
  10035. lt_save_CFLAGS=$CFLAGS
  10036. lt_save_GCC=$GCC
  10037. GCC=
  10038. CC=${RC-"windres"}
  10039. CFLAGS=
  10040. compiler=$CC
  10041. compiler_RC=$CC
  10042. for cc_temp in $compiler""; do
  10043. case $cc_temp in
  10044. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10045. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10046. \-*) ;;
  10047. *) break;;
  10048. esac
  10049. done
  10050. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10051. lt_cv_prog_compiler_c_o_RC=yes
  10052. if test -n "$compiler"; then
  10053. :
  10054. fi
  10055. GCC=$lt_save_GCC
  10056. ac_ext=c
  10057. ac_cpp='$CPP $CPPFLAGS'
  10058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10061. CC=$lt_save_CC
  10062. CFLAGS=$lt_save_CFLAGS
  10063. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  10064. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  10065. LT_REVISION=$SDL_INTERFACE_AGE
  10066. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  10067. ac_ext=c
  10068. ac_cpp='$CPP $CPPFLAGS'
  10069. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10070. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10071. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10072. if test -n "$ac_tool_prefix"; then
  10073. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  10074. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  10075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10076. $as_echo_n "checking for $ac_word... " >&6; }
  10077. if ${ac_cv_prog_CC+:} false; then :
  10078. $as_echo_n "(cached) " >&6
  10079. else
  10080. if test -n "$CC"; then
  10081. ac_cv_prog_CC="$CC" # Let the user override the test.
  10082. else
  10083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10084. for as_dir in $PATH
  10085. do
  10086. IFS=$as_save_IFS
  10087. test -z "$as_dir" && as_dir=.
  10088. for ac_exec_ext in '' $ac_executable_extensions; do
  10089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10090. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  10091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10092. break 2
  10093. fi
  10094. done
  10095. done
  10096. IFS=$as_save_IFS
  10097. fi
  10098. fi
  10099. CC=$ac_cv_prog_CC
  10100. if test -n "$CC"; then
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10102. $as_echo "$CC" >&6; }
  10103. else
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10105. $as_echo "no" >&6; }
  10106. fi
  10107. fi
  10108. if test -z "$ac_cv_prog_CC"; then
  10109. ac_ct_CC=$CC
  10110. # Extract the first word of "gcc", so it can be a program name with args.
  10111. set dummy gcc; ac_word=$2
  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10113. $as_echo_n "checking for $ac_word... " >&6; }
  10114. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10115. $as_echo_n "(cached) " >&6
  10116. else
  10117. if test -n "$ac_ct_CC"; then
  10118. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10119. else
  10120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10121. for as_dir in $PATH
  10122. do
  10123. IFS=$as_save_IFS
  10124. test -z "$as_dir" && as_dir=.
  10125. for ac_exec_ext in '' $ac_executable_extensions; do
  10126. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10127. ac_cv_prog_ac_ct_CC="gcc"
  10128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10129. break 2
  10130. fi
  10131. done
  10132. done
  10133. IFS=$as_save_IFS
  10134. fi
  10135. fi
  10136. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10137. if test -n "$ac_ct_CC"; then
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10139. $as_echo "$ac_ct_CC" >&6; }
  10140. else
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10142. $as_echo "no" >&6; }
  10143. fi
  10144. if test "x$ac_ct_CC" = x; then
  10145. CC=""
  10146. else
  10147. case $cross_compiling:$ac_tool_warned in
  10148. yes:)
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10150. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10151. ac_tool_warned=yes ;;
  10152. esac
  10153. CC=$ac_ct_CC
  10154. fi
  10155. else
  10156. CC="$ac_cv_prog_CC"
  10157. fi
  10158. if test -z "$CC"; then
  10159. if test -n "$ac_tool_prefix"; then
  10160. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  10161. set dummy ${ac_tool_prefix}cc; ac_word=$2
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10163. $as_echo_n "checking for $ac_word... " >&6; }
  10164. if ${ac_cv_prog_CC+:} false; then :
  10165. $as_echo_n "(cached) " >&6
  10166. else
  10167. if test -n "$CC"; then
  10168. ac_cv_prog_CC="$CC" # Let the user override the test.
  10169. else
  10170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10171. for as_dir in $PATH
  10172. do
  10173. IFS=$as_save_IFS
  10174. test -z "$as_dir" && as_dir=.
  10175. for ac_exec_ext in '' $ac_executable_extensions; do
  10176. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10177. ac_cv_prog_CC="${ac_tool_prefix}cc"
  10178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10179. break 2
  10180. fi
  10181. done
  10182. done
  10183. IFS=$as_save_IFS
  10184. fi
  10185. fi
  10186. CC=$ac_cv_prog_CC
  10187. if test -n "$CC"; then
  10188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10189. $as_echo "$CC" >&6; }
  10190. else
  10191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10192. $as_echo "no" >&6; }
  10193. fi
  10194. fi
  10195. fi
  10196. if test -z "$CC"; then
  10197. # Extract the first word of "cc", so it can be a program name with args.
  10198. set dummy cc; ac_word=$2
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10200. $as_echo_n "checking for $ac_word... " >&6; }
  10201. if ${ac_cv_prog_CC+:} false; then :
  10202. $as_echo_n "(cached) " >&6
  10203. else
  10204. if test -n "$CC"; then
  10205. ac_cv_prog_CC="$CC" # Let the user override the test.
  10206. else
  10207. ac_prog_rejected=no
  10208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10209. for as_dir in $PATH
  10210. do
  10211. IFS=$as_save_IFS
  10212. test -z "$as_dir" && as_dir=.
  10213. for ac_exec_ext in '' $ac_executable_extensions; do
  10214. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10215. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  10216. ac_prog_rejected=yes
  10217. continue
  10218. fi
  10219. ac_cv_prog_CC="cc"
  10220. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10221. break 2
  10222. fi
  10223. done
  10224. done
  10225. IFS=$as_save_IFS
  10226. if test $ac_prog_rejected = yes; then
  10227. # We found a bogon in the path, so make sure we never use it.
  10228. set dummy $ac_cv_prog_CC
  10229. shift
  10230. if test $# != 0; then
  10231. # We chose a different compiler from the bogus one.
  10232. # However, it has the same basename, so the bogon will be chosen
  10233. # first if we set CC to just the basename; use the full file name.
  10234. shift
  10235. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  10236. fi
  10237. fi
  10238. fi
  10239. fi
  10240. CC=$ac_cv_prog_CC
  10241. if test -n "$CC"; then
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10243. $as_echo "$CC" >&6; }
  10244. else
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10246. $as_echo "no" >&6; }
  10247. fi
  10248. fi
  10249. if test -z "$CC"; then
  10250. if test -n "$ac_tool_prefix"; then
  10251. for ac_prog in cl.exe
  10252. do
  10253. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10254. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10256. $as_echo_n "checking for $ac_word... " >&6; }
  10257. if ${ac_cv_prog_CC+:} false; then :
  10258. $as_echo_n "(cached) " >&6
  10259. else
  10260. if test -n "$CC"; then
  10261. ac_cv_prog_CC="$CC" # Let the user override the test.
  10262. else
  10263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10264. for as_dir in $PATH
  10265. do
  10266. IFS=$as_save_IFS
  10267. test -z "$as_dir" && as_dir=.
  10268. for ac_exec_ext in '' $ac_executable_extensions; do
  10269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10270. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10272. break 2
  10273. fi
  10274. done
  10275. done
  10276. IFS=$as_save_IFS
  10277. fi
  10278. fi
  10279. CC=$ac_cv_prog_CC
  10280. if test -n "$CC"; then
  10281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10282. $as_echo "$CC" >&6; }
  10283. else
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10285. $as_echo "no" >&6; }
  10286. fi
  10287. test -n "$CC" && break
  10288. done
  10289. fi
  10290. if test -z "$CC"; then
  10291. ac_ct_CC=$CC
  10292. for ac_prog in cl.exe
  10293. do
  10294. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10295. set dummy $ac_prog; ac_word=$2
  10296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10297. $as_echo_n "checking for $ac_word... " >&6; }
  10298. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10299. $as_echo_n "(cached) " >&6
  10300. else
  10301. if test -n "$ac_ct_CC"; then
  10302. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10303. else
  10304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10305. for as_dir in $PATH
  10306. do
  10307. IFS=$as_save_IFS
  10308. test -z "$as_dir" && as_dir=.
  10309. for ac_exec_ext in '' $ac_executable_extensions; do
  10310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10311. ac_cv_prog_ac_ct_CC="$ac_prog"
  10312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10313. break 2
  10314. fi
  10315. done
  10316. done
  10317. IFS=$as_save_IFS
  10318. fi
  10319. fi
  10320. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10321. if test -n "$ac_ct_CC"; then
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10323. $as_echo "$ac_ct_CC" >&6; }
  10324. else
  10325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10326. $as_echo "no" >&6; }
  10327. fi
  10328. test -n "$ac_ct_CC" && break
  10329. done
  10330. if test "x$ac_ct_CC" = x; then
  10331. CC=""
  10332. else
  10333. case $cross_compiling:$ac_tool_warned in
  10334. yes:)
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10336. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10337. ac_tool_warned=yes ;;
  10338. esac
  10339. CC=$ac_ct_CC
  10340. fi
  10341. fi
  10342. fi
  10343. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10344. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10345. as_fn_error $? "no acceptable C compiler found in \$PATH
  10346. See \`config.log' for more details" "$LINENO" 5; }
  10347. # Provide some information about the compiler.
  10348. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10349. set X $ac_compile
  10350. ac_compiler=$2
  10351. for ac_option in --version -v -V -qversion; do
  10352. { { ac_try="$ac_compiler $ac_option >&5"
  10353. case "(($ac_try" in
  10354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10355. *) ac_try_echo=$ac_try;;
  10356. esac
  10357. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10358. $as_echo "$ac_try_echo"; } >&5
  10359. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10360. ac_status=$?
  10361. if test -s conftest.err; then
  10362. sed '10a\
  10363. ... rest of stderr output deleted ...
  10364. 10q' conftest.err >conftest.er1
  10365. cat conftest.er1 >&5
  10366. fi
  10367. rm -f conftest.er1 conftest.err
  10368. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10369. test $ac_status = 0; }
  10370. done
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10372. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10373. if ${ac_cv_c_compiler_gnu+:} false; then :
  10374. $as_echo_n "(cached) " >&6
  10375. else
  10376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10377. /* end confdefs.h. */
  10378. int
  10379. main ()
  10380. {
  10381. #ifndef __GNUC__
  10382. choke me
  10383. #endif
  10384. ;
  10385. return 0;
  10386. }
  10387. _ACEOF
  10388. if ac_fn_c_try_compile "$LINENO"; then :
  10389. ac_compiler_gnu=yes
  10390. else
  10391. ac_compiler_gnu=no
  10392. fi
  10393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10394. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10395. fi
  10396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10397. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10398. if test $ac_compiler_gnu = yes; then
  10399. GCC=yes
  10400. else
  10401. GCC=
  10402. fi
  10403. ac_test_CFLAGS=${CFLAGS+set}
  10404. ac_save_CFLAGS=$CFLAGS
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10406. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10407. if ${ac_cv_prog_cc_g+:} false; then :
  10408. $as_echo_n "(cached) " >&6
  10409. else
  10410. ac_save_c_werror_flag=$ac_c_werror_flag
  10411. ac_c_werror_flag=yes
  10412. ac_cv_prog_cc_g=no
  10413. CFLAGS="-g"
  10414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10415. /* end confdefs.h. */
  10416. int
  10417. main ()
  10418. {
  10419. ;
  10420. return 0;
  10421. }
  10422. _ACEOF
  10423. if ac_fn_c_try_compile "$LINENO"; then :
  10424. ac_cv_prog_cc_g=yes
  10425. else
  10426. CFLAGS=""
  10427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10428. /* end confdefs.h. */
  10429. int
  10430. main ()
  10431. {
  10432. ;
  10433. return 0;
  10434. }
  10435. _ACEOF
  10436. if ac_fn_c_try_compile "$LINENO"; then :
  10437. else
  10438. ac_c_werror_flag=$ac_save_c_werror_flag
  10439. CFLAGS="-g"
  10440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10441. /* end confdefs.h. */
  10442. int
  10443. main ()
  10444. {
  10445. ;
  10446. return 0;
  10447. }
  10448. _ACEOF
  10449. if ac_fn_c_try_compile "$LINENO"; then :
  10450. ac_cv_prog_cc_g=yes
  10451. fi
  10452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10453. fi
  10454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10455. fi
  10456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10457. ac_c_werror_flag=$ac_save_c_werror_flag
  10458. fi
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10460. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10461. if test "$ac_test_CFLAGS" = set; then
  10462. CFLAGS=$ac_save_CFLAGS
  10463. elif test $ac_cv_prog_cc_g = yes; then
  10464. if test "$GCC" = yes; then
  10465. CFLAGS="-g -O2"
  10466. else
  10467. CFLAGS="-g"
  10468. fi
  10469. else
  10470. if test "$GCC" = yes; then
  10471. CFLAGS="-O2"
  10472. else
  10473. CFLAGS=
  10474. fi
  10475. fi
  10476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10477. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10478. if ${ac_cv_prog_cc_c89+:} false; then :
  10479. $as_echo_n "(cached) " >&6
  10480. else
  10481. ac_cv_prog_cc_c89=no
  10482. ac_save_CC=$CC
  10483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10484. /* end confdefs.h. */
  10485. #include <stdarg.h>
  10486. #include <stdio.h>
  10487. struct stat;
  10488. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10489. struct buf { int x; };
  10490. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10491. static char *e (p, i)
  10492. char **p;
  10493. int i;
  10494. {
  10495. return p[i];
  10496. }
  10497. static char *f (char * (*g) (char **, int), char **p, ...)
  10498. {
  10499. char *s;
  10500. va_list v;
  10501. va_start (v,p);
  10502. s = g (p, va_arg (v,int));
  10503. va_end (v);
  10504. return s;
  10505. }
  10506. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10507. function prototypes and stuff, but not '\xHH' hex character constants.
  10508. These don't provoke an error unfortunately, instead are silently treated
  10509. as 'x'. The following induces an error, until -std is added to get
  10510. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10511. array size at least. It's necessary to write '\x00'==0 to get something
  10512. that's true only with -std. */
  10513. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10514. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10515. inside strings and character constants. */
  10516. #define FOO(x) 'x'
  10517. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10518. int test (int i, double x);
  10519. struct s1 {int (*f) (int a);};
  10520. struct s2 {int (*f) (double a);};
  10521. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10522. int argc;
  10523. char **argv;
  10524. int
  10525. main ()
  10526. {
  10527. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10528. ;
  10529. return 0;
  10530. }
  10531. _ACEOF
  10532. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10533. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10534. do
  10535. CC="$ac_save_CC $ac_arg"
  10536. if ac_fn_c_try_compile "$LINENO"; then :
  10537. ac_cv_prog_cc_c89=$ac_arg
  10538. fi
  10539. rm -f core conftest.err conftest.$ac_objext
  10540. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10541. done
  10542. rm -f conftest.$ac_ext
  10543. CC=$ac_save_CC
  10544. fi
  10545. # AC_CACHE_VAL
  10546. case "x$ac_cv_prog_cc_c89" in
  10547. x)
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10549. $as_echo "none needed" >&6; } ;;
  10550. xno)
  10551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10552. $as_echo "unsupported" >&6; } ;;
  10553. *)
  10554. CC="$CC $ac_cv_prog_cc_c89"
  10555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10556. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10557. esac
  10558. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10559. fi
  10560. ac_ext=c
  10561. ac_cpp='$CPP $CPPFLAGS'
  10562. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10563. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10564. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10565. ac_ext=cpp
  10566. ac_cpp='$CXXCPP $CPPFLAGS'
  10567. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10568. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10569. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10570. if test -z "$CXX"; then
  10571. if test -n "$CCC"; then
  10572. CXX=$CCC
  10573. else
  10574. if test -n "$ac_tool_prefix"; then
  10575. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10576. do
  10577. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10578. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10580. $as_echo_n "checking for $ac_word... " >&6; }
  10581. if ${ac_cv_prog_CXX+:} false; then :
  10582. $as_echo_n "(cached) " >&6
  10583. else
  10584. if test -n "$CXX"; then
  10585. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10586. else
  10587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10588. for as_dir in $PATH
  10589. do
  10590. IFS=$as_save_IFS
  10591. test -z "$as_dir" && as_dir=.
  10592. for ac_exec_ext in '' $ac_executable_extensions; do
  10593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10594. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10596. break 2
  10597. fi
  10598. done
  10599. done
  10600. IFS=$as_save_IFS
  10601. fi
  10602. fi
  10603. CXX=$ac_cv_prog_CXX
  10604. if test -n "$CXX"; then
  10605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10606. $as_echo "$CXX" >&6; }
  10607. else
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10609. $as_echo "no" >&6; }
  10610. fi
  10611. test -n "$CXX" && break
  10612. done
  10613. fi
  10614. if test -z "$CXX"; then
  10615. ac_ct_CXX=$CXX
  10616. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10617. do
  10618. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10619. set dummy $ac_prog; ac_word=$2
  10620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10621. $as_echo_n "checking for $ac_word... " >&6; }
  10622. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10623. $as_echo_n "(cached) " >&6
  10624. else
  10625. if test -n "$ac_ct_CXX"; then
  10626. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10627. else
  10628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10629. for as_dir in $PATH
  10630. do
  10631. IFS=$as_save_IFS
  10632. test -z "$as_dir" && as_dir=.
  10633. for ac_exec_ext in '' $ac_executable_extensions; do
  10634. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10635. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10637. break 2
  10638. fi
  10639. done
  10640. done
  10641. IFS=$as_save_IFS
  10642. fi
  10643. fi
  10644. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10645. if test -n "$ac_ct_CXX"; then
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10647. $as_echo "$ac_ct_CXX" >&6; }
  10648. else
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10650. $as_echo "no" >&6; }
  10651. fi
  10652. test -n "$ac_ct_CXX" && break
  10653. done
  10654. if test "x$ac_ct_CXX" = x; then
  10655. CXX="g++"
  10656. else
  10657. case $cross_compiling:$ac_tool_warned in
  10658. yes:)
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10660. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10661. ac_tool_warned=yes ;;
  10662. esac
  10663. CXX=$ac_ct_CXX
  10664. fi
  10665. fi
  10666. fi
  10667. fi
  10668. # Provide some information about the compiler.
  10669. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10670. set X $ac_compile
  10671. ac_compiler=$2
  10672. for ac_option in --version -v -V -qversion; do
  10673. { { ac_try="$ac_compiler $ac_option >&5"
  10674. case "(($ac_try" in
  10675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10676. *) ac_try_echo=$ac_try;;
  10677. esac
  10678. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10679. $as_echo "$ac_try_echo"; } >&5
  10680. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10681. ac_status=$?
  10682. if test -s conftest.err; then
  10683. sed '10a\
  10684. ... rest of stderr output deleted ...
  10685. 10q' conftest.err >conftest.er1
  10686. cat conftest.er1 >&5
  10687. fi
  10688. rm -f conftest.er1 conftest.err
  10689. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10690. test $ac_status = 0; }
  10691. done
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10693. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10694. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10695. $as_echo_n "(cached) " >&6
  10696. else
  10697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10698. /* end confdefs.h. */
  10699. int
  10700. main ()
  10701. {
  10702. #ifndef __GNUC__
  10703. choke me
  10704. #endif
  10705. ;
  10706. return 0;
  10707. }
  10708. _ACEOF
  10709. if ac_fn_cxx_try_compile "$LINENO"; then :
  10710. ac_compiler_gnu=yes
  10711. else
  10712. ac_compiler_gnu=no
  10713. fi
  10714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10715. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10716. fi
  10717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10718. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10719. if test $ac_compiler_gnu = yes; then
  10720. GXX=yes
  10721. else
  10722. GXX=
  10723. fi
  10724. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10725. ac_save_CXXFLAGS=$CXXFLAGS
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10727. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10728. if ${ac_cv_prog_cxx_g+:} false; then :
  10729. $as_echo_n "(cached) " >&6
  10730. else
  10731. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10732. ac_cxx_werror_flag=yes
  10733. ac_cv_prog_cxx_g=no
  10734. CXXFLAGS="-g"
  10735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10736. /* end confdefs.h. */
  10737. int
  10738. main ()
  10739. {
  10740. ;
  10741. return 0;
  10742. }
  10743. _ACEOF
  10744. if ac_fn_cxx_try_compile "$LINENO"; then :
  10745. ac_cv_prog_cxx_g=yes
  10746. else
  10747. CXXFLAGS=""
  10748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10749. /* end confdefs.h. */
  10750. int
  10751. main ()
  10752. {
  10753. ;
  10754. return 0;
  10755. }
  10756. _ACEOF
  10757. if ac_fn_cxx_try_compile "$LINENO"; then :
  10758. else
  10759. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10760. CXXFLAGS="-g"
  10761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10762. /* end confdefs.h. */
  10763. int
  10764. main ()
  10765. {
  10766. ;
  10767. return 0;
  10768. }
  10769. _ACEOF
  10770. if ac_fn_cxx_try_compile "$LINENO"; then :
  10771. ac_cv_prog_cxx_g=yes
  10772. fi
  10773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10774. fi
  10775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10776. fi
  10777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10778. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10779. fi
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10781. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10782. if test "$ac_test_CXXFLAGS" = set; then
  10783. CXXFLAGS=$ac_save_CXXFLAGS
  10784. elif test $ac_cv_prog_cxx_g = yes; then
  10785. if test "$GXX" = yes; then
  10786. CXXFLAGS="-g -O2"
  10787. else
  10788. CXXFLAGS="-g"
  10789. fi
  10790. else
  10791. if test "$GXX" = yes; then
  10792. CXXFLAGS="-O2"
  10793. else
  10794. CXXFLAGS=
  10795. fi
  10796. fi
  10797. ac_ext=c
  10798. ac_cpp='$CPP $CPPFLAGS'
  10799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10802. func_stripname_cnf ()
  10803. {
  10804. case ${2} in
  10805. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10806. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10807. esac
  10808. } # func_stripname_cnf
  10809. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10810. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10811. (test "X$CXX" != "Xg++"))) ; then
  10812. ac_ext=cpp
  10813. ac_cpp='$CXXCPP $CPPFLAGS'
  10814. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10815. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10816. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10818. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10819. if test -z "$CXXCPP"; then
  10820. if ${ac_cv_prog_CXXCPP+:} false; then :
  10821. $as_echo_n "(cached) " >&6
  10822. else
  10823. # Double quotes because CXXCPP needs to be expanded
  10824. for CXXCPP in "$CXX -E" "/lib/cpp"
  10825. do
  10826. ac_preproc_ok=false
  10827. for ac_cxx_preproc_warn_flag in '' yes
  10828. do
  10829. # Use a header file that comes with gcc, so configuring glibc
  10830. # with a fresh cross-compiler works.
  10831. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10832. # <limits.h> exists even on freestanding compilers.
  10833. # On the NeXT, cc -E runs the code through the compiler's parser,
  10834. # not just through cpp. "Syntax error" is here to catch this case.
  10835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10836. /* end confdefs.h. */
  10837. #ifdef __STDC__
  10838. # include <limits.h>
  10839. #else
  10840. # include <assert.h>
  10841. #endif
  10842. Syntax error
  10843. _ACEOF
  10844. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10845. else
  10846. # Broken: fails on valid input.
  10847. continue
  10848. fi
  10849. rm -f conftest.err conftest.i conftest.$ac_ext
  10850. # OK, works on sane cases. Now check whether nonexistent headers
  10851. # can be detected and how.
  10852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10853. /* end confdefs.h. */
  10854. #include <ac_nonexistent.h>
  10855. _ACEOF
  10856. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10857. # Broken: success on invalid input.
  10858. continue
  10859. else
  10860. # Passes both tests.
  10861. ac_preproc_ok=:
  10862. break
  10863. fi
  10864. rm -f conftest.err conftest.i conftest.$ac_ext
  10865. done
  10866. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10867. rm -f conftest.i conftest.err conftest.$ac_ext
  10868. if $ac_preproc_ok; then :
  10869. break
  10870. fi
  10871. done
  10872. ac_cv_prog_CXXCPP=$CXXCPP
  10873. fi
  10874. CXXCPP=$ac_cv_prog_CXXCPP
  10875. else
  10876. ac_cv_prog_CXXCPP=$CXXCPP
  10877. fi
  10878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10879. $as_echo "$CXXCPP" >&6; }
  10880. ac_preproc_ok=false
  10881. for ac_cxx_preproc_warn_flag in '' yes
  10882. do
  10883. # Use a header file that comes with gcc, so configuring glibc
  10884. # with a fresh cross-compiler works.
  10885. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10886. # <limits.h> exists even on freestanding compilers.
  10887. # On the NeXT, cc -E runs the code through the compiler's parser,
  10888. # not just through cpp. "Syntax error" is here to catch this case.
  10889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10890. /* end confdefs.h. */
  10891. #ifdef __STDC__
  10892. # include <limits.h>
  10893. #else
  10894. # include <assert.h>
  10895. #endif
  10896. Syntax error
  10897. _ACEOF
  10898. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10899. else
  10900. # Broken: fails on valid input.
  10901. continue
  10902. fi
  10903. rm -f conftest.err conftest.i conftest.$ac_ext
  10904. # OK, works on sane cases. Now check whether nonexistent headers
  10905. # can be detected and how.
  10906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10907. /* end confdefs.h. */
  10908. #include <ac_nonexistent.h>
  10909. _ACEOF
  10910. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10911. # Broken: success on invalid input.
  10912. continue
  10913. else
  10914. # Passes both tests.
  10915. ac_preproc_ok=:
  10916. break
  10917. fi
  10918. rm -f conftest.err conftest.i conftest.$ac_ext
  10919. done
  10920. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10921. rm -f conftest.i conftest.err conftest.$ac_ext
  10922. if $ac_preproc_ok; then :
  10923. else
  10924. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10925. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10926. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10927. See \`config.log' for more details" "$LINENO" 5; }
  10928. fi
  10929. ac_ext=c
  10930. ac_cpp='$CPP $CPPFLAGS'
  10931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10934. else
  10935. _lt_caught_CXX_error=yes
  10936. fi
  10937. ac_ext=cpp
  10938. ac_cpp='$CXXCPP $CPPFLAGS'
  10939. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10940. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10941. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10942. archive_cmds_need_lc_CXX=no
  10943. allow_undefined_flag_CXX=
  10944. always_export_symbols_CXX=no
  10945. archive_expsym_cmds_CXX=
  10946. compiler_needs_object_CXX=no
  10947. export_dynamic_flag_spec_CXX=
  10948. hardcode_direct_CXX=no
  10949. hardcode_direct_absolute_CXX=no
  10950. hardcode_libdir_flag_spec_CXX=
  10951. hardcode_libdir_separator_CXX=
  10952. hardcode_minus_L_CXX=no
  10953. hardcode_shlibpath_var_CXX=unsupported
  10954. hardcode_automatic_CXX=no
  10955. inherit_rpath_CXX=no
  10956. module_cmds_CXX=
  10957. module_expsym_cmds_CXX=
  10958. link_all_deplibs_CXX=unknown
  10959. old_archive_cmds_CXX=$old_archive_cmds
  10960. reload_flag_CXX=$reload_flag
  10961. reload_cmds_CXX=$reload_cmds
  10962. no_undefined_flag_CXX=
  10963. whole_archive_flag_spec_CXX=
  10964. enable_shared_with_static_runtimes_CXX=no
  10965. # Source file extension for C++ test sources.
  10966. ac_ext=cpp
  10967. # Object file extension for compiled C++ test sources.
  10968. objext=o
  10969. objext_CXX=$objext
  10970. # No sense in running all these tests if we already determined that
  10971. # the CXX compiler isn't working. Some variables (like enable_shared)
  10972. # are currently assumed to apply to all compilers on this platform,
  10973. # and will be corrupted by setting them based on a non-working compiler.
  10974. if test "$_lt_caught_CXX_error" != yes; then
  10975. # Code to be used in simple compile tests
  10976. lt_simple_compile_test_code="int some_variable = 0;"
  10977. # Code to be used in simple link tests
  10978. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10979. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10980. # If no C compiler was specified, use CC.
  10981. LTCC=${LTCC-"$CC"}
  10982. # If no C compiler flags were specified, use CFLAGS.
  10983. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10984. # Allow CC to be a program name with arguments.
  10985. compiler=$CC
  10986. # save warnings/boilerplate of simple test code
  10987. ac_outfile=conftest.$ac_objext
  10988. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10989. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10990. _lt_compiler_boilerplate=`cat conftest.err`
  10991. $RM conftest*
  10992. ac_outfile=conftest.$ac_objext
  10993. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10994. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10995. _lt_linker_boilerplate=`cat conftest.err`
  10996. $RM -r conftest*
  10997. # Allow CC to be a program name with arguments.
  10998. lt_save_CC=$CC
  10999. lt_save_CFLAGS=$CFLAGS
  11000. lt_save_LD=$LD
  11001. lt_save_GCC=$GCC
  11002. GCC=$GXX
  11003. lt_save_with_gnu_ld=$with_gnu_ld
  11004. lt_save_path_LD=$lt_cv_path_LD
  11005. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11006. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11007. else
  11008. $as_unset lt_cv_prog_gnu_ld
  11009. fi
  11010. if test -n "${lt_cv_path_LDCXX+set}"; then
  11011. lt_cv_path_LD=$lt_cv_path_LDCXX
  11012. else
  11013. $as_unset lt_cv_path_LD
  11014. fi
  11015. test -z "${LDCXX+set}" || LD=$LDCXX
  11016. CC=${CXX-"c++"}
  11017. CFLAGS=$CXXFLAGS
  11018. compiler=$CC
  11019. compiler_CXX=$CC
  11020. for cc_temp in $compiler""; do
  11021. case $cc_temp in
  11022. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11023. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11024. \-*) ;;
  11025. *) break;;
  11026. esac
  11027. done
  11028. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11029. if test -n "$compiler"; then
  11030. # We don't want -fno-exception when compiling C++ code, so set the
  11031. # no_builtin_flag separately
  11032. if test "$GXX" = yes; then
  11033. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11034. else
  11035. lt_prog_compiler_no_builtin_flag_CXX=
  11036. fi
  11037. if test "$GXX" = yes; then
  11038. # Set up default GNU C++ configuration
  11039. # Check whether --with-gnu-ld was given.
  11040. if test "${with_gnu_ld+set}" = set; then :
  11041. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11042. else
  11043. with_gnu_ld=no
  11044. fi
  11045. ac_prog=ld
  11046. if test "$GCC" = yes; then
  11047. # Check if gcc -print-prog-name=ld gives a path.
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11049. $as_echo_n "checking for ld used by $CC... " >&6; }
  11050. case $host in
  11051. *-*-mingw*)
  11052. # gcc leaves a trailing carriage return which upsets mingw
  11053. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11054. *)
  11055. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11056. esac
  11057. case $ac_prog in
  11058. # Accept absolute paths.
  11059. [\\/]* | ?:[\\/]*)
  11060. re_direlt='/[^/][^/]*/\.\./'
  11061. # Canonicalize the pathname of ld
  11062. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11063. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11064. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11065. done
  11066. test -z "$LD" && LD="$ac_prog"
  11067. ;;
  11068. "")
  11069. # If it fails, then pretend we aren't using GCC.
  11070. ac_prog=ld
  11071. ;;
  11072. *)
  11073. # If it is relative, then search for the first ld in PATH.
  11074. with_gnu_ld=unknown
  11075. ;;
  11076. esac
  11077. elif test "$with_gnu_ld" = yes; then
  11078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11079. $as_echo_n "checking for GNU ld... " >&6; }
  11080. else
  11081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11082. $as_echo_n "checking for non-GNU ld... " >&6; }
  11083. fi
  11084. if ${lt_cv_path_LD+:} false; then :
  11085. $as_echo_n "(cached) " >&6
  11086. else
  11087. if test -z "$LD"; then
  11088. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11089. for ac_dir in $PATH; do
  11090. IFS="$lt_save_ifs"
  11091. test -z "$ac_dir" && ac_dir=.
  11092. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11093. lt_cv_path_LD="$ac_dir/$ac_prog"
  11094. # Check to see if the program is GNU ld. I'd rather use --version,
  11095. # but apparently some variants of GNU ld only accept -v.
  11096. # Break only if it was the GNU/non-GNU ld that we prefer.
  11097. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11098. *GNU* | *'with BFD'*)
  11099. test "$with_gnu_ld" != no && break
  11100. ;;
  11101. *)
  11102. test "$with_gnu_ld" != yes && break
  11103. ;;
  11104. esac
  11105. fi
  11106. done
  11107. IFS="$lt_save_ifs"
  11108. else
  11109. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11110. fi
  11111. fi
  11112. LD="$lt_cv_path_LD"
  11113. if test -n "$LD"; then
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11115. $as_echo "$LD" >&6; }
  11116. else
  11117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11118. $as_echo "no" >&6; }
  11119. fi
  11120. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11122. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11123. if ${lt_cv_prog_gnu_ld+:} false; then :
  11124. $as_echo_n "(cached) " >&6
  11125. else
  11126. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11127. case `$LD -v 2>&1 </dev/null` in
  11128. *GNU* | *'with BFD'*)
  11129. lt_cv_prog_gnu_ld=yes
  11130. ;;
  11131. *)
  11132. lt_cv_prog_gnu_ld=no
  11133. ;;
  11134. esac
  11135. fi
  11136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11137. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11138. with_gnu_ld=$lt_cv_prog_gnu_ld
  11139. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11140. # archiving commands below assume that GNU ld is being used.
  11141. if test "$with_gnu_ld" = yes; then
  11142. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11143. 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'
  11144. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11145. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11146. # If archive_cmds runs LD, not CC, wlarc should be empty
  11147. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11148. # investigate it a little bit more. (MM)
  11149. wlarc='${wl}'
  11150. # ancient GNU ld didn't support --whole-archive et. al.
  11151. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11152. $GREP 'no-whole-archive' > /dev/null; then
  11153. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11154. else
  11155. whole_archive_flag_spec_CXX=
  11156. fi
  11157. else
  11158. with_gnu_ld=no
  11159. wlarc=
  11160. # A generic and very simple default shared library creation
  11161. # command for GNU C++ for the case where it uses the native
  11162. # linker, instead of GNU ld. If possible, this setting should
  11163. # overridden to take advantage of the native linker features on
  11164. # the platform it is being used on.
  11165. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11166. fi
  11167. # Commands to make compiler produce verbose output that lists
  11168. # what "hidden" libraries, object files and flags are used when
  11169. # linking a shared library.
  11170. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11171. else
  11172. GXX=no
  11173. with_gnu_ld=no
  11174. wlarc=
  11175. fi
  11176. # PORTME: fill in a description of your system's C++ link characteristics
  11177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11178. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11179. ld_shlibs_CXX=yes
  11180. case $host_os in
  11181. aix3*)
  11182. # FIXME: insert proper C++ library support
  11183. ld_shlibs_CXX=no
  11184. ;;
  11185. aix[4-9]*)
  11186. if test "$host_cpu" = ia64; then
  11187. # On IA64, the linker does run time linking by default, so we don't
  11188. # have to do anything special.
  11189. aix_use_runtimelinking=no
  11190. exp_sym_flag='-Bexport'
  11191. no_entry_flag=""
  11192. else
  11193. aix_use_runtimelinking=no
  11194. # Test if we are trying to use run time linking or normal
  11195. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11196. # need to do runtime linking.
  11197. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11198. for ld_flag in $LDFLAGS; do
  11199. case $ld_flag in
  11200. *-brtl*)
  11201. aix_use_runtimelinking=yes
  11202. break
  11203. ;;
  11204. esac
  11205. done
  11206. ;;
  11207. esac
  11208. exp_sym_flag='-bexport'
  11209. no_entry_flag='-bnoentry'
  11210. fi
  11211. # When large executables or shared objects are built, AIX ld can
  11212. # have problems creating the table of contents. If linking a library
  11213. # or program results in "error TOC overflow" add -mminimal-toc to
  11214. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11215. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11216. archive_cmds_CXX=''
  11217. hardcode_direct_CXX=yes
  11218. hardcode_direct_absolute_CXX=yes
  11219. hardcode_libdir_separator_CXX=':'
  11220. link_all_deplibs_CXX=yes
  11221. file_list_spec_CXX='${wl}-f,'
  11222. if test "$GXX" = yes; then
  11223. case $host_os in aix4.[012]|aix4.[012].*)
  11224. # We only want to do this on AIX 4.2 and lower, the check
  11225. # below for broken collect2 doesn't work under 4.3+
  11226. collect2name=`${CC} -print-prog-name=collect2`
  11227. if test -f "$collect2name" &&
  11228. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11229. then
  11230. # We have reworked collect2
  11231. :
  11232. else
  11233. # We have old collect2
  11234. hardcode_direct_CXX=unsupported
  11235. # It fails to find uninstalled libraries when the uninstalled
  11236. # path is not listed in the libpath. Setting hardcode_minus_L
  11237. # to unsupported forces relinking
  11238. hardcode_minus_L_CXX=yes
  11239. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11240. hardcode_libdir_separator_CXX=
  11241. fi
  11242. esac
  11243. shared_flag='-shared'
  11244. if test "$aix_use_runtimelinking" = yes; then
  11245. shared_flag="$shared_flag "'${wl}-G'
  11246. fi
  11247. else
  11248. # not using gcc
  11249. if test "$host_cpu" = ia64; then
  11250. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11251. # chokes on -Wl,-G. The following line is correct:
  11252. shared_flag='-G'
  11253. else
  11254. if test "$aix_use_runtimelinking" = yes; then
  11255. shared_flag='${wl}-G'
  11256. else
  11257. shared_flag='${wl}-bM:SRE'
  11258. fi
  11259. fi
  11260. fi
  11261. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11262. # It seems that -bexpall does not export symbols beginning with
  11263. # underscore (_), so it is better to generate a list of symbols to
  11264. # export.
  11265. always_export_symbols_CXX=yes
  11266. if test "$aix_use_runtimelinking" = yes; then
  11267. # Warning - without using the other runtime loading flags (-brtl),
  11268. # -berok will link without error, but may produce a broken library.
  11269. allow_undefined_flag_CXX='-berok'
  11270. # Determine the default libpath from the value encoded in an empty
  11271. # executable.
  11272. if test "${lt_cv_aix_libpath+set}" = set; then
  11273. aix_libpath=$lt_cv_aix_libpath
  11274. else
  11275. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11276. $as_echo_n "(cached) " >&6
  11277. else
  11278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11279. /* end confdefs.h. */
  11280. int
  11281. main ()
  11282. {
  11283. ;
  11284. return 0;
  11285. }
  11286. _ACEOF
  11287. if ac_fn_cxx_try_link "$LINENO"; then :
  11288. lt_aix_libpath_sed='
  11289. /Import File Strings/,/^$/ {
  11290. /^0/ {
  11291. s/^0 *\([^ ]*\) *$/\1/
  11292. p
  11293. }
  11294. }'
  11295. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11296. # Check for a 64-bit object if we didn't find anything.
  11297. if test -z "$lt_cv_aix_libpath__CXX"; then
  11298. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11299. fi
  11300. fi
  11301. rm -f core conftest.err conftest.$ac_objext \
  11302. conftest$ac_exeext conftest.$ac_ext
  11303. if test -z "$lt_cv_aix_libpath__CXX"; then
  11304. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11305. fi
  11306. fi
  11307. aix_libpath=$lt_cv_aix_libpath__CXX
  11308. fi
  11309. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11310. 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"
  11311. else
  11312. if test "$host_cpu" = ia64; then
  11313. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11314. allow_undefined_flag_CXX="-z nodefs"
  11315. 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"
  11316. else
  11317. # Determine the default libpath from the value encoded in an
  11318. # empty executable.
  11319. if test "${lt_cv_aix_libpath+set}" = set; then
  11320. aix_libpath=$lt_cv_aix_libpath
  11321. else
  11322. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11323. $as_echo_n "(cached) " >&6
  11324. else
  11325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11326. /* end confdefs.h. */
  11327. int
  11328. main ()
  11329. {
  11330. ;
  11331. return 0;
  11332. }
  11333. _ACEOF
  11334. if ac_fn_cxx_try_link "$LINENO"; then :
  11335. lt_aix_libpath_sed='
  11336. /Import File Strings/,/^$/ {
  11337. /^0/ {
  11338. s/^0 *\([^ ]*\) *$/\1/
  11339. p
  11340. }
  11341. }'
  11342. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11343. # Check for a 64-bit object if we didn't find anything.
  11344. if test -z "$lt_cv_aix_libpath__CXX"; then
  11345. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11346. fi
  11347. fi
  11348. rm -f core conftest.err conftest.$ac_objext \
  11349. conftest$ac_exeext conftest.$ac_ext
  11350. if test -z "$lt_cv_aix_libpath__CXX"; then
  11351. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11352. fi
  11353. fi
  11354. aix_libpath=$lt_cv_aix_libpath__CXX
  11355. fi
  11356. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11357. # Warning - without using the other run time loading flags,
  11358. # -berok will link without error, but may produce a broken library.
  11359. no_undefined_flag_CXX=' ${wl}-bernotok'
  11360. allow_undefined_flag_CXX=' ${wl}-berok'
  11361. if test "$with_gnu_ld" = yes; then
  11362. # We only use this code for GNU lds that support --whole-archive.
  11363. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11364. else
  11365. # Exported symbols can be pulled into shared objects from archives
  11366. whole_archive_flag_spec_CXX='$convenience'
  11367. fi
  11368. archive_cmds_need_lc_CXX=yes
  11369. # This is similar to how AIX traditionally builds its shared
  11370. # libraries.
  11371. 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'
  11372. fi
  11373. fi
  11374. ;;
  11375. beos*)
  11376. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11377. allow_undefined_flag_CXX=unsupported
  11378. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11379. # support --undefined. This deserves some investigation. FIXME
  11380. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11381. else
  11382. ld_shlibs_CXX=no
  11383. fi
  11384. ;;
  11385. chorus*)
  11386. case $cc_basename in
  11387. *)
  11388. # FIXME: insert proper C++ library support
  11389. ld_shlibs_CXX=no
  11390. ;;
  11391. esac
  11392. ;;
  11393. cygwin* | mingw* | pw32* | cegcc*)
  11394. case $GXX,$cc_basename in
  11395. ,cl* | no,cl*)
  11396. # Native MSVC
  11397. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11398. # no search path for DLLs.
  11399. hardcode_libdir_flag_spec_CXX=' '
  11400. allow_undefined_flag_CXX=unsupported
  11401. always_export_symbols_CXX=yes
  11402. file_list_spec_CXX='@'
  11403. # Tell ltmain to make .lib files, not .a files.
  11404. libext=lib
  11405. # Tell ltmain to make .dll files, not .so files.
  11406. shrext_cmds=".dll"
  11407. # FIXME: Setting linknames here is a bad hack.
  11408. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11409. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11410. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11411. else
  11412. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11413. fi~
  11414. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11415. linknames='
  11416. # The linker will not automatically build a static lib if we build a DLL.
  11417. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11418. enable_shared_with_static_runtimes_CXX=yes
  11419. # Don't use ranlib
  11420. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11421. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11422. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11423. case $lt_outputfile in
  11424. *.exe|*.EXE) ;;
  11425. *)
  11426. lt_outputfile="$lt_outputfile.exe"
  11427. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11428. ;;
  11429. esac~
  11430. func_to_tool_file "$lt_outputfile"~
  11431. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11432. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11433. $RM "$lt_outputfile.manifest";
  11434. fi'
  11435. ;;
  11436. *)
  11437. # g++
  11438. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11439. # as there is no search path for DLLs.
  11440. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11441. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11442. allow_undefined_flag_CXX=unsupported
  11443. always_export_symbols_CXX=no
  11444. enable_shared_with_static_runtimes_CXX=yes
  11445. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11446. 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'
  11447. # If the export-symbols file already is a .def file (1st line
  11448. # is EXPORTS), use it as is; otherwise, prepend...
  11449. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11450. cp $export_symbols $output_objdir/$soname.def;
  11451. else
  11452. echo EXPORTS > $output_objdir/$soname.def;
  11453. cat $export_symbols >> $output_objdir/$soname.def;
  11454. fi~
  11455. $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'
  11456. else
  11457. ld_shlibs_CXX=no
  11458. fi
  11459. ;;
  11460. esac
  11461. ;;
  11462. darwin* | rhapsody*)
  11463. archive_cmds_need_lc_CXX=no
  11464. hardcode_direct_CXX=no
  11465. hardcode_automatic_CXX=yes
  11466. hardcode_shlibpath_var_CXX=unsupported
  11467. if test "$lt_cv_ld_force_load" = "yes"; then
  11468. 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\"`'
  11469. else
  11470. whole_archive_flag_spec_CXX=''
  11471. fi
  11472. link_all_deplibs_CXX=yes
  11473. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11474. case $cc_basename in
  11475. ifort*) _lt_dar_can_shared=yes ;;
  11476. *) _lt_dar_can_shared=$GCC ;;
  11477. esac
  11478. if test "$_lt_dar_can_shared" = "yes"; then
  11479. output_verbose_link_cmd=func_echo_all
  11480. 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}"
  11481. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11482. 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}"
  11483. 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}"
  11484. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11485. 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}"
  11486. 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}"
  11487. fi
  11488. else
  11489. ld_shlibs_CXX=no
  11490. fi
  11491. ;;
  11492. dgux*)
  11493. case $cc_basename in
  11494. ec++*)
  11495. # FIXME: insert proper C++ library support
  11496. ld_shlibs_CXX=no
  11497. ;;
  11498. ghcx*)
  11499. # Green Hills C++ Compiler
  11500. # FIXME: insert proper C++ library support
  11501. ld_shlibs_CXX=no
  11502. ;;
  11503. *)
  11504. # FIXME: insert proper C++ library support
  11505. ld_shlibs_CXX=no
  11506. ;;
  11507. esac
  11508. ;;
  11509. freebsd2.*)
  11510. # C++ shared libraries reported to be fairly broken before
  11511. # switch to ELF
  11512. ld_shlibs_CXX=no
  11513. ;;
  11514. freebsd-elf*)
  11515. archive_cmds_need_lc_CXX=no
  11516. ;;
  11517. freebsd* | dragonfly*)
  11518. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11519. # conventions
  11520. ld_shlibs_CXX=yes
  11521. ;;
  11522. gnu*)
  11523. ;;
  11524. haiku*)
  11525. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11526. link_all_deplibs_CXX=yes
  11527. ;;
  11528. hpux9*)
  11529. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11530. hardcode_libdir_separator_CXX=:
  11531. export_dynamic_flag_spec_CXX='${wl}-E'
  11532. hardcode_direct_CXX=yes
  11533. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11534. # but as the default
  11535. # location of the library.
  11536. case $cc_basename in
  11537. CC*)
  11538. # FIXME: insert proper C++ library support
  11539. ld_shlibs_CXX=no
  11540. ;;
  11541. aCC*)
  11542. 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'
  11543. # Commands to make compiler produce verbose output that lists
  11544. # what "hidden" libraries, object files and flags are used when
  11545. # linking a shared library.
  11546. #
  11547. # There doesn't appear to be a way to prevent this compiler from
  11548. # explicitly linking system object files so we need to strip them
  11549. # from the output so that they don't get included in the library
  11550. # dependencies.
  11551. 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"'
  11552. ;;
  11553. *)
  11554. if test "$GXX" = yes; then
  11555. 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'
  11556. else
  11557. # FIXME: insert proper C++ library support
  11558. ld_shlibs_CXX=no
  11559. fi
  11560. ;;
  11561. esac
  11562. ;;
  11563. hpux10*|hpux11*)
  11564. if test $with_gnu_ld = no; then
  11565. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11566. hardcode_libdir_separator_CXX=:
  11567. case $host_cpu in
  11568. hppa*64*|ia64*)
  11569. ;;
  11570. *)
  11571. export_dynamic_flag_spec_CXX='${wl}-E'
  11572. ;;
  11573. esac
  11574. fi
  11575. case $host_cpu in
  11576. hppa*64*|ia64*)
  11577. hardcode_direct_CXX=no
  11578. hardcode_shlibpath_var_CXX=no
  11579. ;;
  11580. *)
  11581. hardcode_direct_CXX=yes
  11582. hardcode_direct_absolute_CXX=yes
  11583. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11584. # but as the default
  11585. # location of the library.
  11586. ;;
  11587. esac
  11588. case $cc_basename in
  11589. CC*)
  11590. # FIXME: insert proper C++ library support
  11591. ld_shlibs_CXX=no
  11592. ;;
  11593. aCC*)
  11594. case $host_cpu in
  11595. hppa*64*)
  11596. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11597. ;;
  11598. ia64*)
  11599. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11600. ;;
  11601. *)
  11602. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11603. ;;
  11604. esac
  11605. # Commands to make compiler produce verbose output that lists
  11606. # what "hidden" libraries, object files and flags are used when
  11607. # linking a shared library.
  11608. #
  11609. # There doesn't appear to be a way to prevent this compiler from
  11610. # explicitly linking system object files so we need to strip them
  11611. # from the output so that they don't get included in the library
  11612. # dependencies.
  11613. 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"'
  11614. ;;
  11615. *)
  11616. if test "$GXX" = yes; then
  11617. if test $with_gnu_ld = no; then
  11618. case $host_cpu in
  11619. hppa*64*)
  11620. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11621. ;;
  11622. ia64*)
  11623. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11624. ;;
  11625. *)
  11626. 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'
  11627. ;;
  11628. esac
  11629. fi
  11630. else
  11631. # FIXME: insert proper C++ library support
  11632. ld_shlibs_CXX=no
  11633. fi
  11634. ;;
  11635. esac
  11636. ;;
  11637. interix[3-9]*)
  11638. hardcode_direct_CXX=no
  11639. hardcode_shlibpath_var_CXX=no
  11640. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11641. export_dynamic_flag_spec_CXX='${wl}-E'
  11642. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11643. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11644. # default) and relocated if they conflict, which is a slow very memory
  11645. # consuming and fragmenting process. To avoid this, we pick a random,
  11646. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11647. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11648. 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'
  11649. 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'
  11650. ;;
  11651. irix5* | irix6*)
  11652. case $cc_basename in
  11653. CC*)
  11654. # SGI C++
  11655. 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'
  11656. # Archives containing C++ object files must be created using
  11657. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11658. # necessary to make sure instantiated templates are included
  11659. # in the archive.
  11660. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11661. ;;
  11662. *)
  11663. if test "$GXX" = yes; then
  11664. if test "$with_gnu_ld" = no; then
  11665. 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'
  11666. else
  11667. 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'
  11668. fi
  11669. fi
  11670. link_all_deplibs_CXX=yes
  11671. ;;
  11672. esac
  11673. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11674. hardcode_libdir_separator_CXX=:
  11675. inherit_rpath_CXX=yes
  11676. ;;
  11677. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11678. case $cc_basename in
  11679. KCC*)
  11680. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11681. # KCC will only create a shared library if the output file
  11682. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11683. # to its proper name (with version) after linking.
  11684. 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'
  11685. 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'
  11686. # Commands to make compiler produce verbose output that lists
  11687. # what "hidden" libraries, object files and flags are used when
  11688. # linking a shared library.
  11689. #
  11690. # There doesn't appear to be a way to prevent this compiler from
  11691. # explicitly linking system object files so we need to strip them
  11692. # from the output so that they don't get included in the library
  11693. # dependencies.
  11694. 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"'
  11695. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11696. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11697. # Archives containing C++ object files must be created using
  11698. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11699. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11700. ;;
  11701. icpc* | ecpc* )
  11702. # Intel C++
  11703. with_gnu_ld=yes
  11704. # version 8.0 and above of icpc choke on multiply defined symbols
  11705. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11706. # earlier do not add the objects themselves.
  11707. case `$CC -V 2>&1` in
  11708. *"Version 7."*)
  11709. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11710. 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'
  11711. ;;
  11712. *) # Version 8.0 or newer
  11713. tmp_idyn=
  11714. case $host_cpu in
  11715. ia64*) tmp_idyn=' -i_dynamic';;
  11716. esac
  11717. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11718. 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'
  11719. ;;
  11720. esac
  11721. archive_cmds_need_lc_CXX=no
  11722. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11723. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11724. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11725. ;;
  11726. pgCC* | pgcpp*)
  11727. # Portland Group C++ compiler
  11728. case `$CC -V` in
  11729. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11730. prelink_cmds_CXX='tpldir=Template.dir~
  11731. rm -rf $tpldir~
  11732. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11733. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11734. old_archive_cmds_CXX='tpldir=Template.dir~
  11735. rm -rf $tpldir~
  11736. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11737. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11738. $RANLIB $oldlib'
  11739. archive_cmds_CXX='tpldir=Template.dir~
  11740. rm -rf $tpldir~
  11741. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11742. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11743. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11744. rm -rf $tpldir~
  11745. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11746. $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'
  11747. ;;
  11748. *) # Version 6 and above use weak symbols
  11749. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11750. 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'
  11751. ;;
  11752. esac
  11753. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11754. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11755. 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'
  11756. ;;
  11757. cxx*)
  11758. # Compaq C++
  11759. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11760. 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'
  11761. runpath_var=LD_RUN_PATH
  11762. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11763. hardcode_libdir_separator_CXX=:
  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. #
  11768. # There doesn't appear to be a way to prevent this compiler from
  11769. # explicitly linking system object files so we need to strip them
  11770. # from the output so that they don't get included in the library
  11771. # dependencies.
  11772. 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'
  11773. ;;
  11774. xl* | mpixl* | bgxl*)
  11775. # IBM XL 8.0 on PPC, with GNU ld
  11776. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11777. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11778. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11779. if test "x$supports_anon_versioning" = xyes; then
  11780. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11781. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11782. echo "local: *; };" >> $output_objdir/$libname.ver~
  11783. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11784. fi
  11785. ;;
  11786. *)
  11787. case `$CC -V 2>&1 | sed 5q` in
  11788. *Sun\ C*)
  11789. # Sun C++ 5.9
  11790. no_undefined_flag_CXX=' -zdefs'
  11791. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11792. 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'
  11793. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11794. 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'
  11795. compiler_needs_object_CXX=yes
  11796. # Not sure whether something based on
  11797. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11798. # would be better.
  11799. output_verbose_link_cmd='func_echo_all'
  11800. # Archives containing C++ object files must be created using
  11801. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11802. # necessary to make sure instantiated templates are included
  11803. # in the archive.
  11804. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11805. ;;
  11806. esac
  11807. ;;
  11808. esac
  11809. ;;
  11810. lynxos*)
  11811. # FIXME: insert proper C++ library support
  11812. ld_shlibs_CXX=no
  11813. ;;
  11814. m88k*)
  11815. # FIXME: insert proper C++ library support
  11816. ld_shlibs_CXX=no
  11817. ;;
  11818. mvs*)
  11819. case $cc_basename in
  11820. cxx*)
  11821. # FIXME: insert proper C++ library support
  11822. ld_shlibs_CXX=no
  11823. ;;
  11824. *)
  11825. # FIXME: insert proper C++ library support
  11826. ld_shlibs_CXX=no
  11827. ;;
  11828. esac
  11829. ;;
  11830. netbsd*)
  11831. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11832. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11833. wlarc=
  11834. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11835. hardcode_direct_CXX=yes
  11836. hardcode_shlibpath_var_CXX=no
  11837. fi
  11838. # Workaround some broken pre-1.5 toolchains
  11839. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11840. ;;
  11841. *nto* | *qnx*)
  11842. ld_shlibs_CXX=yes
  11843. ;;
  11844. openbsd2*)
  11845. # C++ shared libraries are fairly broken
  11846. ld_shlibs_CXX=no
  11847. ;;
  11848. openbsd*)
  11849. if test -f /usr/libexec/ld.so; then
  11850. hardcode_direct_CXX=yes
  11851. hardcode_shlibpath_var_CXX=no
  11852. hardcode_direct_absolute_CXX=yes
  11853. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11854. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11855. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11856. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11857. export_dynamic_flag_spec_CXX='${wl}-E'
  11858. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11859. fi
  11860. output_verbose_link_cmd=func_echo_all
  11861. else
  11862. ld_shlibs_CXX=no
  11863. fi
  11864. ;;
  11865. osf3* | osf4* | osf5*)
  11866. case $cc_basename in
  11867. KCC*)
  11868. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11869. # KCC will only create a shared library if the output file
  11870. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11871. # to its proper name (with version) after linking.
  11872. 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'
  11873. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11874. hardcode_libdir_separator_CXX=:
  11875. # Archives containing C++ object files must be created using
  11876. # the KAI C++ compiler.
  11877. case $host in
  11878. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11879. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11880. esac
  11881. ;;
  11882. RCC*)
  11883. # Rational C++ 2.4.1
  11884. # FIXME: insert proper C++ library support
  11885. ld_shlibs_CXX=no
  11886. ;;
  11887. cxx*)
  11888. case $host in
  11889. osf3*)
  11890. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11891. 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'
  11892. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11893. ;;
  11894. *)
  11895. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11896. 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'
  11897. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11898. echo "-hidden">> $lib.exp~
  11899. $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~
  11900. $RM $lib.exp'
  11901. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11902. ;;
  11903. esac
  11904. hardcode_libdir_separator_CXX=:
  11905. # Commands to make compiler produce verbose output that lists
  11906. # what "hidden" libraries, object files and flags are used when
  11907. # linking a shared library.
  11908. #
  11909. # There doesn't appear to be a way to prevent this compiler from
  11910. # explicitly linking system object files so we need to strip them
  11911. # from the output so that they don't get included in the library
  11912. # dependencies.
  11913. 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"'
  11914. ;;
  11915. *)
  11916. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11917. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11918. case $host in
  11919. osf3*)
  11920. 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'
  11921. ;;
  11922. *)
  11923. 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'
  11924. ;;
  11925. esac
  11926. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11927. hardcode_libdir_separator_CXX=:
  11928. # Commands to make compiler produce verbose output that lists
  11929. # what "hidden" libraries, object files and flags are used when
  11930. # linking a shared library.
  11931. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11932. else
  11933. # FIXME: insert proper C++ library support
  11934. ld_shlibs_CXX=no
  11935. fi
  11936. ;;
  11937. esac
  11938. ;;
  11939. psos*)
  11940. # FIXME: insert proper C++ library support
  11941. ld_shlibs_CXX=no
  11942. ;;
  11943. sunos4*)
  11944. case $cc_basename in
  11945. CC*)
  11946. # Sun C++ 4.x
  11947. # FIXME: insert proper C++ library support
  11948. ld_shlibs_CXX=no
  11949. ;;
  11950. lcc*)
  11951. # Lucid
  11952. # FIXME: insert proper C++ library support
  11953. ld_shlibs_CXX=no
  11954. ;;
  11955. *)
  11956. # FIXME: insert proper C++ library support
  11957. ld_shlibs_CXX=no
  11958. ;;
  11959. esac
  11960. ;;
  11961. solaris*)
  11962. case $cc_basename in
  11963. CC* | sunCC*)
  11964. # Sun C++ 4.2, 5.x and Centerline C++
  11965. archive_cmds_need_lc_CXX=yes
  11966. no_undefined_flag_CXX=' -zdefs'
  11967. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11968. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11969. $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'
  11970. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11971. hardcode_shlibpath_var_CXX=no
  11972. case $host_os in
  11973. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11974. *)
  11975. # The compiler driver will combine and reorder linker options,
  11976. # but understands `-z linker_flag'.
  11977. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11978. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11979. ;;
  11980. esac
  11981. link_all_deplibs_CXX=yes
  11982. output_verbose_link_cmd='func_echo_all'
  11983. # Archives containing C++ object files must be created using
  11984. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11985. # necessary to make sure instantiated templates are included
  11986. # in the archive.
  11987. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11988. ;;
  11989. gcx*)
  11990. # Green Hills C++ Compiler
  11991. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11992. # The C++ compiler must be used to create the archive.
  11993. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11994. ;;
  11995. *)
  11996. # GNU C++ compiler with Solaris linker
  11997. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11998. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11999. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12000. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12001. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12002. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12003. # Commands to make compiler produce verbose output that lists
  12004. # what "hidden" libraries, object files and flags are used when
  12005. # linking a shared library.
  12006. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12007. else
  12008. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12009. # platform.
  12010. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12011. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12012. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12013. # Commands to make compiler produce verbose output that lists
  12014. # what "hidden" libraries, object files and flags are used when
  12015. # linking a shared library.
  12016. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12017. fi
  12018. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12019. case $host_os in
  12020. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12021. *)
  12022. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12023. ;;
  12024. esac
  12025. fi
  12026. ;;
  12027. esac
  12028. ;;
  12029. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12030. no_undefined_flag_CXX='${wl}-z,text'
  12031. archive_cmds_need_lc_CXX=no
  12032. hardcode_shlibpath_var_CXX=no
  12033. runpath_var='LD_RUN_PATH'
  12034. case $cc_basename in
  12035. CC*)
  12036. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12037. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12038. ;;
  12039. *)
  12040. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12041. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12042. ;;
  12043. esac
  12044. ;;
  12045. sysv5* | sco3.2v5* | sco5v6*)
  12046. # Note: We can NOT use -z defs as we might desire, because we do not
  12047. # link with -lc, and that would cause any symbols used from libc to
  12048. # always be unresolved, which means just about no library would
  12049. # ever link correctly. If we're not using GNU ld we use -z text
  12050. # though, which does catch some bad symbols but isn't as heavy-handed
  12051. # as -z defs.
  12052. no_undefined_flag_CXX='${wl}-z,text'
  12053. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12054. archive_cmds_need_lc_CXX=no
  12055. hardcode_shlibpath_var_CXX=no
  12056. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12057. hardcode_libdir_separator_CXX=':'
  12058. link_all_deplibs_CXX=yes
  12059. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12060. runpath_var='LD_RUN_PATH'
  12061. case $cc_basename in
  12062. CC*)
  12063. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12064. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12065. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12066. '"$old_archive_cmds_CXX"
  12067. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12068. '"$reload_cmds_CXX"
  12069. ;;
  12070. *)
  12071. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12072. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12073. ;;
  12074. esac
  12075. ;;
  12076. tandem*)
  12077. case $cc_basename in
  12078. NCC*)
  12079. # NonStop-UX NCC 3.20
  12080. # FIXME: insert proper C++ library support
  12081. ld_shlibs_CXX=no
  12082. ;;
  12083. *)
  12084. # FIXME: insert proper C++ library support
  12085. ld_shlibs_CXX=no
  12086. ;;
  12087. esac
  12088. ;;
  12089. vxworks*)
  12090. # FIXME: insert proper C++ library support
  12091. ld_shlibs_CXX=no
  12092. ;;
  12093. *)
  12094. # FIXME: insert proper C++ library support
  12095. ld_shlibs_CXX=no
  12096. ;;
  12097. esac
  12098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12099. $as_echo "$ld_shlibs_CXX" >&6; }
  12100. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12101. GCC_CXX="$GXX"
  12102. LD_CXX="$LD"
  12103. ## CAVEAT EMPTOR:
  12104. ## There is no encapsulation within the following macros, do not change
  12105. ## the running order or otherwise move them around unless you know exactly
  12106. ## what you are doing...
  12107. # Dependencies to place before and after the object being linked:
  12108. predep_objects_CXX=
  12109. postdep_objects_CXX=
  12110. predeps_CXX=
  12111. postdeps_CXX=
  12112. compiler_lib_search_path_CXX=
  12113. cat > conftest.$ac_ext <<_LT_EOF
  12114. class Foo
  12115. {
  12116. public:
  12117. Foo (void) { a = 0; }
  12118. private:
  12119. int a;
  12120. };
  12121. _LT_EOF
  12122. _lt_libdeps_save_CFLAGS=$CFLAGS
  12123. case "$CC $CFLAGS " in #(
  12124. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12125. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12126. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12127. esac
  12128. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12129. (eval $ac_compile) 2>&5
  12130. ac_status=$?
  12131. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12132. test $ac_status = 0; }; then
  12133. # Parse the compiler output and extract the necessary
  12134. # objects, libraries and library flags.
  12135. # Sentinel used to keep track of whether or not we are before
  12136. # the conftest object file.
  12137. pre_test_object_deps_done=no
  12138. for p in `eval "$output_verbose_link_cmd"`; do
  12139. case ${prev}${p} in
  12140. -L* | -R* | -l*)
  12141. # Some compilers place space between "-{L,R}" and the path.
  12142. # Remove the space.
  12143. if test $p = "-L" ||
  12144. test $p = "-R"; then
  12145. prev=$p
  12146. continue
  12147. fi
  12148. # Expand the sysroot to ease extracting the directories later.
  12149. if test -z "$prev"; then
  12150. case $p in
  12151. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12152. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12153. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12154. esac
  12155. fi
  12156. case $p in
  12157. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12158. esac
  12159. if test "$pre_test_object_deps_done" = no; then
  12160. case ${prev} in
  12161. -L | -R)
  12162. # Internal compiler library paths should come after those
  12163. # provided the user. The postdeps already come after the
  12164. # user supplied libs so there is no need to process them.
  12165. if test -z "$compiler_lib_search_path_CXX"; then
  12166. compiler_lib_search_path_CXX="${prev}${p}"
  12167. else
  12168. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12169. fi
  12170. ;;
  12171. # The "-l" case would never come before the object being
  12172. # linked, so don't bother handling this case.
  12173. esac
  12174. else
  12175. if test -z "$postdeps_CXX"; then
  12176. postdeps_CXX="${prev}${p}"
  12177. else
  12178. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12179. fi
  12180. fi
  12181. prev=
  12182. ;;
  12183. *.lto.$objext) ;; # Ignore GCC LTO objects
  12184. *.$objext)
  12185. # This assumes that the test object file only shows up
  12186. # once in the compiler output.
  12187. if test "$p" = "conftest.$objext"; then
  12188. pre_test_object_deps_done=yes
  12189. continue
  12190. fi
  12191. if test "$pre_test_object_deps_done" = no; then
  12192. if test -z "$predep_objects_CXX"; then
  12193. predep_objects_CXX="$p"
  12194. else
  12195. predep_objects_CXX="$predep_objects_CXX $p"
  12196. fi
  12197. else
  12198. if test -z "$postdep_objects_CXX"; then
  12199. postdep_objects_CXX="$p"
  12200. else
  12201. postdep_objects_CXX="$postdep_objects_CXX $p"
  12202. fi
  12203. fi
  12204. ;;
  12205. *) ;; # Ignore the rest.
  12206. esac
  12207. done
  12208. # Clean up.
  12209. rm -f a.out a.exe
  12210. else
  12211. echo "libtool.m4: error: problem compiling CXX test program"
  12212. fi
  12213. $RM -f confest.$objext
  12214. CFLAGS=$_lt_libdeps_save_CFLAGS
  12215. # PORTME: override above test on systems where it is broken
  12216. case $host_os in
  12217. interix[3-9]*)
  12218. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12219. # hack all around it, let's just trust "g++" to DTRT.
  12220. predep_objects_CXX=
  12221. postdep_objects_CXX=
  12222. postdeps_CXX=
  12223. ;;
  12224. linux*)
  12225. case `$CC -V 2>&1 | sed 5q` in
  12226. *Sun\ C*)
  12227. # Sun C++ 5.9
  12228. # The more standards-conforming stlport4 library is
  12229. # incompatible with the Cstd library. Avoid specifying
  12230. # it if it's in CXXFLAGS. Ignore libCrun as
  12231. # -library=stlport4 depends on it.
  12232. case " $CXX $CXXFLAGS " in
  12233. *" -library=stlport4 "*)
  12234. solaris_use_stlport4=yes
  12235. ;;
  12236. esac
  12237. if test "$solaris_use_stlport4" != yes; then
  12238. postdeps_CXX='-library=Cstd -library=Crun'
  12239. fi
  12240. ;;
  12241. esac
  12242. ;;
  12243. solaris*)
  12244. case $cc_basename in
  12245. CC* | sunCC*)
  12246. # The more standards-conforming stlport4 library is
  12247. # incompatible with the Cstd library. Avoid specifying
  12248. # it if it's in CXXFLAGS. Ignore libCrun as
  12249. # -library=stlport4 depends on it.
  12250. case " $CXX $CXXFLAGS " in
  12251. *" -library=stlport4 "*)
  12252. solaris_use_stlport4=yes
  12253. ;;
  12254. esac
  12255. # Adding this requires a known-good setup of shared libraries for
  12256. # Sun compiler versions before 5.6, else PIC objects from an old
  12257. # archive will be linked into the output, leading to subtle bugs.
  12258. if test "$solaris_use_stlport4" != yes; then
  12259. postdeps_CXX='-library=Cstd -library=Crun'
  12260. fi
  12261. ;;
  12262. esac
  12263. ;;
  12264. esac
  12265. case " $postdeps_CXX " in
  12266. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12267. esac
  12268. compiler_lib_search_dirs_CXX=
  12269. if test -n "${compiler_lib_search_path_CXX}"; then
  12270. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12271. fi
  12272. lt_prog_compiler_wl_CXX=
  12273. lt_prog_compiler_pic_CXX=
  12274. lt_prog_compiler_static_CXX=
  12275. # C++ specific cases for pic, static, wl, etc.
  12276. if test "$GXX" = yes; then
  12277. lt_prog_compiler_wl_CXX='-Wl,'
  12278. lt_prog_compiler_static_CXX='-static'
  12279. case $host_os in
  12280. aix*)
  12281. # All AIX code is PIC.
  12282. if test "$host_cpu" = ia64; then
  12283. # AIX 5 now supports IA64 processor
  12284. lt_prog_compiler_static_CXX='-Bstatic'
  12285. fi
  12286. ;;
  12287. amigaos*)
  12288. case $host_cpu in
  12289. powerpc)
  12290. # see comment about AmigaOS4 .so support
  12291. lt_prog_compiler_pic_CXX='-fPIC'
  12292. ;;
  12293. m68k)
  12294. # FIXME: we need at least 68020 code to build shared libraries, but
  12295. # adding the `-m68020' flag to GCC prevents building anything better,
  12296. # like `-m68040'.
  12297. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12298. ;;
  12299. esac
  12300. ;;
  12301. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12302. # PIC is the default for these OSes.
  12303. ;;
  12304. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12305. # This hack is so that the source file can tell whether it is being
  12306. # built for inclusion in a dll (and should export symbols for example).
  12307. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12308. # (--disable-auto-import) libraries
  12309. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12310. ;;
  12311. darwin* | rhapsody*)
  12312. # PIC is the default on this platform
  12313. # Common symbols not allowed in MH_DYLIB files
  12314. lt_prog_compiler_pic_CXX='-fno-common'
  12315. ;;
  12316. *djgpp*)
  12317. # DJGPP does not support shared libraries at all
  12318. lt_prog_compiler_pic_CXX=
  12319. ;;
  12320. haiku*)
  12321. # PIC is the default for Haiku.
  12322. # The "-static" flag exists, but is broken.
  12323. lt_prog_compiler_static_CXX=
  12324. ;;
  12325. interix[3-9]*)
  12326. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12327. # Instead, we relocate shared libraries at runtime.
  12328. ;;
  12329. sysv4*MP*)
  12330. if test -d /usr/nec; then
  12331. lt_prog_compiler_pic_CXX=-Kconform_pic
  12332. fi
  12333. ;;
  12334. hpux*)
  12335. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12336. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12337. # sets the default TLS model and affects inlining.
  12338. case $host_cpu in
  12339. hppa*64*)
  12340. ;;
  12341. *)
  12342. lt_prog_compiler_pic_CXX='-fPIC'
  12343. ;;
  12344. esac
  12345. ;;
  12346. *qnx* | *nto*)
  12347. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12348. # it will coredump.
  12349. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12350. ;;
  12351. *)
  12352. lt_prog_compiler_pic_CXX='-fPIC'
  12353. ;;
  12354. esac
  12355. else
  12356. case $host_os in
  12357. aix[4-9]*)
  12358. # All AIX code is PIC.
  12359. if test "$host_cpu" = ia64; then
  12360. # AIX 5 now supports IA64 processor
  12361. lt_prog_compiler_static_CXX='-Bstatic'
  12362. else
  12363. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12364. fi
  12365. ;;
  12366. chorus*)
  12367. case $cc_basename in
  12368. cxch68*)
  12369. # Green Hills C++ Compiler
  12370. # _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"
  12371. ;;
  12372. esac
  12373. ;;
  12374. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12375. # This hack is so that the source file can tell whether it is being
  12376. # built for inclusion in a dll (and should export symbols for example).
  12377. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12378. ;;
  12379. dgux*)
  12380. case $cc_basename in
  12381. ec++*)
  12382. lt_prog_compiler_pic_CXX='-KPIC'
  12383. ;;
  12384. ghcx*)
  12385. # Green Hills C++ Compiler
  12386. lt_prog_compiler_pic_CXX='-pic'
  12387. ;;
  12388. *)
  12389. ;;
  12390. esac
  12391. ;;
  12392. freebsd* | dragonfly*)
  12393. # FreeBSD uses GNU C++
  12394. ;;
  12395. hpux9* | hpux10* | hpux11*)
  12396. case $cc_basename in
  12397. CC*)
  12398. lt_prog_compiler_wl_CXX='-Wl,'
  12399. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12400. if test "$host_cpu" != ia64; then
  12401. lt_prog_compiler_pic_CXX='+Z'
  12402. fi
  12403. ;;
  12404. aCC*)
  12405. lt_prog_compiler_wl_CXX='-Wl,'
  12406. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12407. case $host_cpu in
  12408. hppa*64*|ia64*)
  12409. # +Z the default
  12410. ;;
  12411. *)
  12412. lt_prog_compiler_pic_CXX='+Z'
  12413. ;;
  12414. esac
  12415. ;;
  12416. *)
  12417. ;;
  12418. esac
  12419. ;;
  12420. interix*)
  12421. # This is c89, which is MS Visual C++ (no shared libs)
  12422. # Anyone wants to do a port?
  12423. ;;
  12424. irix5* | irix6* | nonstopux*)
  12425. case $cc_basename in
  12426. CC*)
  12427. lt_prog_compiler_wl_CXX='-Wl,'
  12428. lt_prog_compiler_static_CXX='-non_shared'
  12429. # CC pic flag -KPIC is the default.
  12430. ;;
  12431. *)
  12432. ;;
  12433. esac
  12434. ;;
  12435. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12436. case $cc_basename in
  12437. KCC*)
  12438. # KAI C++ Compiler
  12439. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12440. lt_prog_compiler_pic_CXX='-fPIC'
  12441. ;;
  12442. ecpc* )
  12443. # old Intel C++ for x86_64 which still supported -KPIC.
  12444. lt_prog_compiler_wl_CXX='-Wl,'
  12445. lt_prog_compiler_pic_CXX='-KPIC'
  12446. lt_prog_compiler_static_CXX='-static'
  12447. ;;
  12448. icpc* )
  12449. # Intel C++, used to be incompatible with GCC.
  12450. # ICC 10 doesn't accept -KPIC any more.
  12451. lt_prog_compiler_wl_CXX='-Wl,'
  12452. lt_prog_compiler_pic_CXX='-fPIC'
  12453. lt_prog_compiler_static_CXX='-static'
  12454. ;;
  12455. pgCC* | pgcpp*)
  12456. # Portland Group C++ compiler
  12457. lt_prog_compiler_wl_CXX='-Wl,'
  12458. lt_prog_compiler_pic_CXX='-fpic'
  12459. lt_prog_compiler_static_CXX='-Bstatic'
  12460. ;;
  12461. cxx*)
  12462. # Compaq C++
  12463. # Make sure the PIC flag is empty. It appears that all Alpha
  12464. # Linux and Compaq Tru64 Unix objects are PIC.
  12465. lt_prog_compiler_pic_CXX=
  12466. lt_prog_compiler_static_CXX='-non_shared'
  12467. ;;
  12468. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12469. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12470. lt_prog_compiler_wl_CXX='-Wl,'
  12471. lt_prog_compiler_pic_CXX='-qpic'
  12472. lt_prog_compiler_static_CXX='-qstaticlink'
  12473. ;;
  12474. *)
  12475. case `$CC -V 2>&1 | sed 5q` in
  12476. *Sun\ C*)
  12477. # Sun C++ 5.9
  12478. lt_prog_compiler_pic_CXX='-KPIC'
  12479. lt_prog_compiler_static_CXX='-Bstatic'
  12480. lt_prog_compiler_wl_CXX='-Qoption ld '
  12481. ;;
  12482. esac
  12483. ;;
  12484. esac
  12485. ;;
  12486. lynxos*)
  12487. ;;
  12488. m88k*)
  12489. ;;
  12490. mvs*)
  12491. case $cc_basename in
  12492. cxx*)
  12493. lt_prog_compiler_pic_CXX='-W c,exportall'
  12494. ;;
  12495. *)
  12496. ;;
  12497. esac
  12498. ;;
  12499. netbsd*)
  12500. ;;
  12501. *qnx* | *nto*)
  12502. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12503. # it will coredump.
  12504. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12505. ;;
  12506. osf3* | osf4* | osf5*)
  12507. case $cc_basename in
  12508. KCC*)
  12509. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12510. ;;
  12511. RCC*)
  12512. # Rational C++ 2.4.1
  12513. lt_prog_compiler_pic_CXX='-pic'
  12514. ;;
  12515. cxx*)
  12516. # Digital/Compaq C++
  12517. lt_prog_compiler_wl_CXX='-Wl,'
  12518. # Make sure the PIC flag is empty. It appears that all Alpha
  12519. # Linux and Compaq Tru64 Unix objects are PIC.
  12520. lt_prog_compiler_pic_CXX=
  12521. lt_prog_compiler_static_CXX='-non_shared'
  12522. ;;
  12523. *)
  12524. ;;
  12525. esac
  12526. ;;
  12527. psos*)
  12528. ;;
  12529. solaris*)
  12530. case $cc_basename in
  12531. CC* | sunCC*)
  12532. # Sun C++ 4.2, 5.x and Centerline C++
  12533. lt_prog_compiler_pic_CXX='-KPIC'
  12534. lt_prog_compiler_static_CXX='-Bstatic'
  12535. lt_prog_compiler_wl_CXX='-Qoption ld '
  12536. ;;
  12537. gcx*)
  12538. # Green Hills C++ Compiler
  12539. lt_prog_compiler_pic_CXX='-PIC'
  12540. ;;
  12541. *)
  12542. ;;
  12543. esac
  12544. ;;
  12545. sunos4*)
  12546. case $cc_basename in
  12547. CC*)
  12548. # Sun C++ 4.x
  12549. lt_prog_compiler_pic_CXX='-pic'
  12550. lt_prog_compiler_static_CXX='-Bstatic'
  12551. ;;
  12552. lcc*)
  12553. # Lucid
  12554. lt_prog_compiler_pic_CXX='-pic'
  12555. ;;
  12556. *)
  12557. ;;
  12558. esac
  12559. ;;
  12560. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12561. case $cc_basename in
  12562. CC*)
  12563. lt_prog_compiler_wl_CXX='-Wl,'
  12564. lt_prog_compiler_pic_CXX='-KPIC'
  12565. lt_prog_compiler_static_CXX='-Bstatic'
  12566. ;;
  12567. esac
  12568. ;;
  12569. tandem*)
  12570. case $cc_basename in
  12571. NCC*)
  12572. # NonStop-UX NCC 3.20
  12573. lt_prog_compiler_pic_CXX='-KPIC'
  12574. ;;
  12575. *)
  12576. ;;
  12577. esac
  12578. ;;
  12579. vxworks*)
  12580. ;;
  12581. *)
  12582. lt_prog_compiler_can_build_shared_CXX=no
  12583. ;;
  12584. esac
  12585. fi
  12586. case $host_os in
  12587. # For platforms which do not support PIC, -DPIC is meaningless:
  12588. *djgpp*)
  12589. lt_prog_compiler_pic_CXX=
  12590. ;;
  12591. *)
  12592. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12593. ;;
  12594. esac
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12596. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12597. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12598. $as_echo_n "(cached) " >&6
  12599. else
  12600. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12601. fi
  12602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12603. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12604. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12605. #
  12606. # Check to make sure the PIC flag actually works.
  12607. #
  12608. if test -n "$lt_prog_compiler_pic_CXX"; then
  12609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12610. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12611. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12612. $as_echo_n "(cached) " >&6
  12613. else
  12614. lt_cv_prog_compiler_pic_works_CXX=no
  12615. ac_outfile=conftest.$ac_objext
  12616. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12617. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12618. # Insert the option either (1) after the last *FLAGS variable, or
  12619. # (2) before a word containing "conftest.", or (3) at the end.
  12620. # Note that $ac_compile itself does not contain backslashes and begins
  12621. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12622. # The option is referenced via a variable to avoid confusing sed.
  12623. lt_compile=`echo "$ac_compile" | $SED \
  12624. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12625. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12626. -e 's:$: $lt_compiler_flag:'`
  12627. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12628. (eval "$lt_compile" 2>conftest.err)
  12629. ac_status=$?
  12630. cat conftest.err >&5
  12631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12632. if (exit $ac_status) && test -s "$ac_outfile"; then
  12633. # The compiler can only warn and ignore the option if not recognized
  12634. # So say no if there are warnings other than the usual output.
  12635. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12636. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12637. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12638. lt_cv_prog_compiler_pic_works_CXX=yes
  12639. fi
  12640. fi
  12641. $RM conftest*
  12642. fi
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12644. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12645. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12646. case $lt_prog_compiler_pic_CXX in
  12647. "" | " "*) ;;
  12648. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12649. esac
  12650. else
  12651. lt_prog_compiler_pic_CXX=
  12652. lt_prog_compiler_can_build_shared_CXX=no
  12653. fi
  12654. fi
  12655. #
  12656. # Check to make sure the static flag actually works.
  12657. #
  12658. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12660. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12661. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12662. $as_echo_n "(cached) " >&6
  12663. else
  12664. lt_cv_prog_compiler_static_works_CXX=no
  12665. save_LDFLAGS="$LDFLAGS"
  12666. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12667. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12668. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12669. # The linker can only warn and ignore the option if not recognized
  12670. # So say no if there are warnings
  12671. if test -s conftest.err; then
  12672. # Append any errors to the config.log.
  12673. cat conftest.err 1>&5
  12674. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12675. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12676. if diff conftest.exp conftest.er2 >/dev/null; then
  12677. lt_cv_prog_compiler_static_works_CXX=yes
  12678. fi
  12679. else
  12680. lt_cv_prog_compiler_static_works_CXX=yes
  12681. fi
  12682. fi
  12683. $RM -r conftest*
  12684. LDFLAGS="$save_LDFLAGS"
  12685. fi
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12687. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12688. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12689. :
  12690. else
  12691. lt_prog_compiler_static_CXX=
  12692. fi
  12693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12694. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12695. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12696. $as_echo_n "(cached) " >&6
  12697. else
  12698. lt_cv_prog_compiler_c_o_CXX=no
  12699. $RM -r conftest 2>/dev/null
  12700. mkdir conftest
  12701. cd conftest
  12702. mkdir out
  12703. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12704. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12705. # Insert the option either (1) after the last *FLAGS variable, or
  12706. # (2) before a word containing "conftest.", or (3) at the end.
  12707. # Note that $ac_compile itself does not contain backslashes and begins
  12708. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12709. lt_compile=`echo "$ac_compile" | $SED \
  12710. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12711. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12712. -e 's:$: $lt_compiler_flag:'`
  12713. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12714. (eval "$lt_compile" 2>out/conftest.err)
  12715. ac_status=$?
  12716. cat out/conftest.err >&5
  12717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12718. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12719. then
  12720. # The compiler can only warn and ignore the option if not recognized
  12721. # So say no if there are warnings
  12722. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12723. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12724. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12725. lt_cv_prog_compiler_c_o_CXX=yes
  12726. fi
  12727. fi
  12728. chmod u+w . 2>&5
  12729. $RM conftest*
  12730. # SGI C++ compiler will create directory out/ii_files/ for
  12731. # template instantiation
  12732. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12733. $RM out/* && rmdir out
  12734. cd ..
  12735. $RM -r conftest
  12736. $RM conftest*
  12737. fi
  12738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12739. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12741. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12742. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12743. $as_echo_n "(cached) " >&6
  12744. else
  12745. lt_cv_prog_compiler_c_o_CXX=no
  12746. $RM -r conftest 2>/dev/null
  12747. mkdir conftest
  12748. cd conftest
  12749. mkdir out
  12750. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12751. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12752. # Insert the option either (1) after the last *FLAGS variable, or
  12753. # (2) before a word containing "conftest.", or (3) at the end.
  12754. # Note that $ac_compile itself does not contain backslashes and begins
  12755. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12756. lt_compile=`echo "$ac_compile" | $SED \
  12757. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12758. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12759. -e 's:$: $lt_compiler_flag:'`
  12760. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12761. (eval "$lt_compile" 2>out/conftest.err)
  12762. ac_status=$?
  12763. cat out/conftest.err >&5
  12764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12765. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12766. then
  12767. # The compiler can only warn and ignore the option if not recognized
  12768. # So say no if there are warnings
  12769. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12770. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12771. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12772. lt_cv_prog_compiler_c_o_CXX=yes
  12773. fi
  12774. fi
  12775. chmod u+w . 2>&5
  12776. $RM conftest*
  12777. # SGI C++ compiler will create directory out/ii_files/ for
  12778. # template instantiation
  12779. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12780. $RM out/* && rmdir out
  12781. cd ..
  12782. $RM -r conftest
  12783. $RM conftest*
  12784. fi
  12785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12786. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12787. hard_links="nottested"
  12788. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12789. # do not overwrite the value of need_locks provided by the user
  12790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12791. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12792. hard_links=yes
  12793. $RM conftest*
  12794. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12795. touch conftest.a
  12796. ln conftest.a conftest.b 2>&5 || hard_links=no
  12797. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12799. $as_echo "$hard_links" >&6; }
  12800. if test "$hard_links" = no; then
  12801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12802. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12803. need_locks=warn
  12804. fi
  12805. else
  12806. need_locks=no
  12807. fi
  12808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12809. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12810. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12811. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12812. case $host_os in
  12813. aix[4-9]*)
  12814. # If we're using GNU nm, then we don't want the "-C" option.
  12815. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12816. # Also, AIX nm treats weak defined symbols like other global defined
  12817. # symbols, whereas GNU nm marks them as "W".
  12818. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12819. 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'
  12820. else
  12821. 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'
  12822. fi
  12823. ;;
  12824. pw32*)
  12825. export_symbols_cmds_CXX="$ltdll_cmds"
  12826. ;;
  12827. cygwin* | mingw* | cegcc*)
  12828. case $cc_basename in
  12829. cl*)
  12830. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12831. ;;
  12832. *)
  12833. 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'
  12834. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12835. ;;
  12836. esac
  12837. ;;
  12838. *)
  12839. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12840. ;;
  12841. esac
  12842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12843. $as_echo "$ld_shlibs_CXX" >&6; }
  12844. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12845. with_gnu_ld_CXX=$with_gnu_ld
  12846. #
  12847. # Do we need to explicitly link libc?
  12848. #
  12849. case "x$archive_cmds_need_lc_CXX" in
  12850. x|xyes)
  12851. # Assume -lc should be added
  12852. archive_cmds_need_lc_CXX=yes
  12853. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12854. case $archive_cmds_CXX in
  12855. *'~'*)
  12856. # FIXME: we may have to deal with multi-command sequences.
  12857. ;;
  12858. '$CC '*)
  12859. # Test whether the compiler implicitly links with -lc since on some
  12860. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12861. # to ld, don't add -lc before -lgcc.
  12862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12863. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12864. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12865. $as_echo_n "(cached) " >&6
  12866. else
  12867. $RM conftest*
  12868. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12869. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12870. (eval $ac_compile) 2>&5
  12871. ac_status=$?
  12872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12873. test $ac_status = 0; } 2>conftest.err; then
  12874. soname=conftest
  12875. lib=conftest
  12876. libobjs=conftest.$ac_objext
  12877. deplibs=
  12878. wl=$lt_prog_compiler_wl_CXX
  12879. pic_flag=$lt_prog_compiler_pic_CXX
  12880. compiler_flags=-v
  12881. linker_flags=-v
  12882. verstring=
  12883. output_objdir=.
  12884. libname=conftest
  12885. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12886. allow_undefined_flag_CXX=
  12887. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12888. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12889. ac_status=$?
  12890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12891. test $ac_status = 0; }
  12892. then
  12893. lt_cv_archive_cmds_need_lc_CXX=no
  12894. else
  12895. lt_cv_archive_cmds_need_lc_CXX=yes
  12896. fi
  12897. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12898. else
  12899. cat conftest.err 1>&5
  12900. fi
  12901. $RM conftest*
  12902. fi
  12903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12904. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12905. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12906. ;;
  12907. esac
  12908. fi
  12909. ;;
  12910. esac
  12911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12912. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12913. library_names_spec=
  12914. libname_spec='lib$name'
  12915. soname_spec=
  12916. shrext_cmds=".so"
  12917. postinstall_cmds=
  12918. postuninstall_cmds=
  12919. finish_cmds=
  12920. finish_eval=
  12921. shlibpath_var=
  12922. shlibpath_overrides_runpath=unknown
  12923. version_type=none
  12924. dynamic_linker="$host_os ld.so"
  12925. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12926. need_lib_prefix=unknown
  12927. hardcode_into_libs=no
  12928. # when you set need_version to no, make sure it does not cause -set_version
  12929. # flags to be left without arguments
  12930. need_version=unknown
  12931. case $host_os in
  12932. aix3*)
  12933. version_type=linux # correct to gnu/linux during the next big refactor
  12934. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12935. shlibpath_var=LIBPATH
  12936. # AIX 3 has no versioning support, so we append a major version to the name.
  12937. soname_spec='${libname}${release}${shared_ext}$major'
  12938. ;;
  12939. aix[4-9]*)
  12940. version_type=linux # correct to gnu/linux during the next big refactor
  12941. need_lib_prefix=no
  12942. need_version=no
  12943. hardcode_into_libs=yes
  12944. if test "$host_cpu" = ia64; then
  12945. # AIX 5 supports IA64
  12946. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12947. shlibpath_var=LD_LIBRARY_PATH
  12948. else
  12949. # With GCC up to 2.95.x, collect2 would create an import file
  12950. # for dependence libraries. The import file would start with
  12951. # the line `#! .'. This would cause the generated library to
  12952. # depend on `.', always an invalid library. This was fixed in
  12953. # development snapshots of GCC prior to 3.0.
  12954. case $host_os in
  12955. aix4 | aix4.[01] | aix4.[01].*)
  12956. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12957. echo ' yes '
  12958. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12959. :
  12960. else
  12961. can_build_shared=no
  12962. fi
  12963. ;;
  12964. esac
  12965. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12966. # soname into executable. Probably we can add versioning support to
  12967. # collect2, so additional links can be useful in future.
  12968. if test "$aix_use_runtimelinking" = yes; then
  12969. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12970. # instead of lib<name>.a to let people know that these are not
  12971. # typical AIX shared libraries.
  12972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12973. else
  12974. # We preserve .a as extension for shared libraries through AIX4.2
  12975. # and later when we are not doing run time linking.
  12976. library_names_spec='${libname}${release}.a $libname.a'
  12977. soname_spec='${libname}${release}${shared_ext}$major'
  12978. fi
  12979. shlibpath_var=LIBPATH
  12980. fi
  12981. ;;
  12982. amigaos*)
  12983. case $host_cpu in
  12984. powerpc)
  12985. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12986. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12988. ;;
  12989. m68k)
  12990. library_names_spec='$libname.ixlibrary $libname.a'
  12991. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12992. 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'
  12993. ;;
  12994. esac
  12995. ;;
  12996. beos*)
  12997. library_names_spec='${libname}${shared_ext}'
  12998. dynamic_linker="$host_os ld.so"
  12999. shlibpath_var=LIBRARY_PATH
  13000. ;;
  13001. bsdi[45]*)
  13002. version_type=linux # correct to gnu/linux during the next big refactor
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13007. shlibpath_var=LD_LIBRARY_PATH
  13008. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13009. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13010. # the default ld.so.conf also contains /usr/contrib/lib and
  13011. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13012. # libtool to hard-code these into programs
  13013. ;;
  13014. cygwin* | mingw* | pw32* | cegcc*)
  13015. version_type=windows
  13016. shrext_cmds=".dll"
  13017. need_version=no
  13018. need_lib_prefix=no
  13019. case $GCC,$cc_basename in
  13020. yes,*)
  13021. # gcc
  13022. library_names_spec='$libname.dll.a'
  13023. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13024. postinstall_cmds='base_file=`basename \${file}`~
  13025. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13026. dldir=$destdir/`dirname \$dlpath`~
  13027. test -d \$dldir || mkdir -p \$dldir~
  13028. $install_prog $dir/$dlname \$dldir/$dlname~
  13029. chmod a+x \$dldir/$dlname~
  13030. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13031. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13032. fi'
  13033. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13034. dlpath=$dir/\$dldll~
  13035. $RM \$dlpath'
  13036. shlibpath_overrides_runpath=yes
  13037. case $host_os in
  13038. cygwin*)
  13039. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13040. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13041. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  13042. ;;
  13043. mingw* | cegcc*)
  13044. # MinGW DLLs use traditional 'lib' prefix
  13045. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  13046. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  13047. ;;
  13048. pw32*)
  13049. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13050. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13051. ;;
  13052. esac
  13053. dynamic_linker='Win32 ld.exe'
  13054. ;;
  13055. *,cl*)
  13056. # Native MSVC
  13057. libname_spec='$name'
  13058. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13059. library_names_spec='${libname}.dll.lib'
  13060. case $build_os in
  13061. mingw*)
  13062. sys_lib_search_path_spec=
  13063. lt_save_ifs=$IFS
  13064. IFS=';'
  13065. for lt_path in $LIB
  13066. do
  13067. IFS=$lt_save_ifs
  13068. # Let DOS variable expansion print the short 8.3 style file name.
  13069. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13070. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13071. done
  13072. IFS=$lt_save_ifs
  13073. # Convert to MSYS style.
  13074. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13075. ;;
  13076. cygwin*)
  13077. # Convert to unix form, then to dos form, then back to unix form
  13078. # but this time dos style (no spaces!) so that the unix form looks
  13079. # like /cygdrive/c/PROGRA~1:/cygdr...
  13080. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13081. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13082. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13083. ;;
  13084. *)
  13085. sys_lib_search_path_spec="$LIB"
  13086. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13087. # It is most probably a Windows format PATH.
  13088. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13089. else
  13090. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13091. fi
  13092. # FIXME: find the short name or the path components, as spaces are
  13093. # common. (e.g. "Program Files" -> "PROGRA~1")
  13094. ;;
  13095. esac
  13096. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13097. postinstall_cmds='base_file=`basename \${file}`~
  13098. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13099. dldir=$destdir/`dirname \$dlpath`~
  13100. test -d \$dldir || mkdir -p \$dldir~
  13101. $install_prog $dir/$dlname \$dldir/$dlname'
  13102. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13103. dlpath=$dir/\$dldll~
  13104. $RM \$dlpath'
  13105. shlibpath_overrides_runpath=yes
  13106. dynamic_linker='Win32 link.exe'
  13107. ;;
  13108. *)
  13109. # Assume MSVC wrapper
  13110. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13111. dynamic_linker='Win32 ld.exe'
  13112. ;;
  13113. esac
  13114. # FIXME: first we should search . and the directory the executable is in
  13115. shlibpath_var=PATH
  13116. ;;
  13117. darwin* | rhapsody*)
  13118. dynamic_linker="$host_os dyld"
  13119. version_type=darwin
  13120. need_lib_prefix=no
  13121. need_version=no
  13122. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13123. soname_spec='${libname}${release}${major}$shared_ext'
  13124. shlibpath_overrides_runpath=yes
  13125. shlibpath_var=DYLD_LIBRARY_PATH
  13126. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13127. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13128. ;;
  13129. dgux*)
  13130. version_type=linux # correct to gnu/linux during the next big refactor
  13131. need_lib_prefix=no
  13132. need_version=no
  13133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13134. soname_spec='${libname}${release}${shared_ext}$major'
  13135. shlibpath_var=LD_LIBRARY_PATH
  13136. ;;
  13137. freebsd* | dragonfly*)
  13138. # DragonFly does not have aout. When/if they implement a new
  13139. # versioning mechanism, adjust this.
  13140. if test -x /usr/bin/objformat; then
  13141. objformat=`/usr/bin/objformat`
  13142. else
  13143. case $host_os in
  13144. freebsd[23].*) objformat=aout ;;
  13145. *) objformat=elf ;;
  13146. esac
  13147. fi
  13148. version_type=freebsd-$objformat
  13149. case $version_type in
  13150. freebsd-elf*)
  13151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13152. need_version=no
  13153. need_lib_prefix=no
  13154. ;;
  13155. freebsd-*)
  13156. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13157. need_version=yes
  13158. ;;
  13159. esac
  13160. shlibpath_var=LD_LIBRARY_PATH
  13161. case $host_os in
  13162. freebsd2.*)
  13163. shlibpath_overrides_runpath=yes
  13164. ;;
  13165. freebsd3.[01]* | freebsdelf3.[01]*)
  13166. shlibpath_overrides_runpath=yes
  13167. hardcode_into_libs=yes
  13168. ;;
  13169. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13170. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13171. shlibpath_overrides_runpath=no
  13172. hardcode_into_libs=yes
  13173. ;;
  13174. *) # from 4.6 on, and DragonFly
  13175. shlibpath_overrides_runpath=yes
  13176. hardcode_into_libs=yes
  13177. ;;
  13178. esac
  13179. ;;
  13180. gnu*)
  13181. version_type=linux # correct to gnu/linux during the next big refactor
  13182. need_lib_prefix=no
  13183. need_version=no
  13184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13185. soname_spec='${libname}${release}${shared_ext}$major'
  13186. shlibpath_var=LD_LIBRARY_PATH
  13187. shlibpath_overrides_runpath=no
  13188. hardcode_into_libs=yes
  13189. ;;
  13190. haiku*)
  13191. version_type=linux # correct to gnu/linux during the next big refactor
  13192. need_lib_prefix=no
  13193. need_version=no
  13194. dynamic_linker="$host_os runtime_loader"
  13195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13196. soname_spec='${libname}${release}${shared_ext}$major'
  13197. shlibpath_var=LIBRARY_PATH
  13198. shlibpath_overrides_runpath=yes
  13199. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13200. hardcode_into_libs=yes
  13201. ;;
  13202. hpux9* | hpux10* | hpux11*)
  13203. # Give a soname corresponding to the major version so that dld.sl refuses to
  13204. # link against other versions.
  13205. version_type=sunos
  13206. need_lib_prefix=no
  13207. need_version=no
  13208. case $host_cpu in
  13209. ia64*)
  13210. shrext_cmds='.so'
  13211. hardcode_into_libs=yes
  13212. dynamic_linker="$host_os dld.so"
  13213. shlibpath_var=LD_LIBRARY_PATH
  13214. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13216. soname_spec='${libname}${release}${shared_ext}$major'
  13217. if test "X$HPUX_IA64_MODE" = X32; then
  13218. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13219. else
  13220. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13221. fi
  13222. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13223. ;;
  13224. hppa*64*)
  13225. shrext_cmds='.sl'
  13226. hardcode_into_libs=yes
  13227. dynamic_linker="$host_os dld.sl"
  13228. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13229. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13231. soname_spec='${libname}${release}${shared_ext}$major'
  13232. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13233. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13234. ;;
  13235. *)
  13236. shrext_cmds='.sl'
  13237. dynamic_linker="$host_os dld.sl"
  13238. shlibpath_var=SHLIB_PATH
  13239. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13241. soname_spec='${libname}${release}${shared_ext}$major'
  13242. ;;
  13243. esac
  13244. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13245. postinstall_cmds='chmod 555 $lib'
  13246. # or fails outright, so override atomically:
  13247. install_override_mode=555
  13248. ;;
  13249. interix[3-9]*)
  13250. version_type=linux # correct to gnu/linux during the next big refactor
  13251. need_lib_prefix=no
  13252. need_version=no
  13253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13254. soname_spec='${libname}${release}${shared_ext}$major'
  13255. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13256. shlibpath_var=LD_LIBRARY_PATH
  13257. shlibpath_overrides_runpath=no
  13258. hardcode_into_libs=yes
  13259. ;;
  13260. irix5* | irix6* | nonstopux*)
  13261. case $host_os in
  13262. nonstopux*) version_type=nonstopux ;;
  13263. *)
  13264. if test "$lt_cv_prog_gnu_ld" = yes; then
  13265. version_type=linux # correct to gnu/linux during the next big refactor
  13266. else
  13267. version_type=irix
  13268. fi ;;
  13269. esac
  13270. need_lib_prefix=no
  13271. need_version=no
  13272. soname_spec='${libname}${release}${shared_ext}$major'
  13273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13274. case $host_os in
  13275. irix5* | nonstopux*)
  13276. libsuff= shlibsuff=
  13277. ;;
  13278. *)
  13279. case $LD in # libtool.m4 will add one of these switches to LD
  13280. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13281. libsuff= shlibsuff= libmagic=32-bit;;
  13282. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13283. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13284. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13285. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13286. *) libsuff= shlibsuff= libmagic=never-match;;
  13287. esac
  13288. ;;
  13289. esac
  13290. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13291. shlibpath_overrides_runpath=no
  13292. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13293. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13294. hardcode_into_libs=yes
  13295. ;;
  13296. # No shared lib support for Linux oldld, aout, or coff.
  13297. linux*oldld* | linux*aout* | linux*coff*)
  13298. dynamic_linker=no
  13299. ;;
  13300. # This must be glibc/ELF.
  13301. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13302. version_type=linux # correct to gnu/linux during the next big refactor
  13303. need_lib_prefix=no
  13304. need_version=no
  13305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13306. soname_spec='${libname}${release}${shared_ext}$major'
  13307. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13308. shlibpath_var=LD_LIBRARY_PATH
  13309. shlibpath_overrides_runpath=no
  13310. # Some binutils ld are patched to set DT_RUNPATH
  13311. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13312. $as_echo_n "(cached) " >&6
  13313. else
  13314. lt_cv_shlibpath_overrides_runpath=no
  13315. save_LDFLAGS=$LDFLAGS
  13316. save_libdir=$libdir
  13317. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13318. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13320. /* end confdefs.h. */
  13321. int
  13322. main ()
  13323. {
  13324. ;
  13325. return 0;
  13326. }
  13327. _ACEOF
  13328. if ac_fn_cxx_try_link "$LINENO"; then :
  13329. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13330. lt_cv_shlibpath_overrides_runpath=yes
  13331. fi
  13332. fi
  13333. rm -f core conftest.err conftest.$ac_objext \
  13334. conftest$ac_exeext conftest.$ac_ext
  13335. LDFLAGS=$save_LDFLAGS
  13336. libdir=$save_libdir
  13337. fi
  13338. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13339. # This implies no fast_install, which is unacceptable.
  13340. # Some rework will be needed to allow for fast_install
  13341. # before this can be enabled.
  13342. hardcode_into_libs=yes
  13343. # Append ld.so.conf contents to the search path
  13344. if test -f /etc/ld.so.conf; then
  13345. 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' ' '`
  13346. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13347. fi
  13348. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13349. # powerpc, because MkLinux only supported shared libraries with the
  13350. # GNU dynamic linker. Since this was broken with cross compilers,
  13351. # most powerpc-linux boxes support dynamic linking these days and
  13352. # people can always --disable-shared, the test was removed, and we
  13353. # assume the GNU/Linux dynamic linker is in use.
  13354. dynamic_linker='GNU/Linux ld.so'
  13355. ;;
  13356. netbsd*)
  13357. version_type=sunos
  13358. need_lib_prefix=no
  13359. need_version=no
  13360. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13361. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13362. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13363. dynamic_linker='NetBSD (a.out) ld.so'
  13364. else
  13365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13366. soname_spec='${libname}${release}${shared_ext}$major'
  13367. dynamic_linker='NetBSD ld.elf_so'
  13368. fi
  13369. shlibpath_var=LD_LIBRARY_PATH
  13370. shlibpath_overrides_runpath=yes
  13371. hardcode_into_libs=yes
  13372. ;;
  13373. newsos6)
  13374. version_type=linux # correct to gnu/linux during the next big refactor
  13375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13376. shlibpath_var=LD_LIBRARY_PATH
  13377. shlibpath_overrides_runpath=yes
  13378. ;;
  13379. *nto* | *qnx*)
  13380. version_type=qnx
  13381. need_lib_prefix=no
  13382. need_version=no
  13383. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13384. soname_spec='${libname}${release}${shared_ext}$major'
  13385. shlibpath_var=LD_LIBRARY_PATH
  13386. shlibpath_overrides_runpath=no
  13387. hardcode_into_libs=yes
  13388. dynamic_linker='ldqnx.so'
  13389. ;;
  13390. openbsd*)
  13391. version_type=sunos
  13392. sys_lib_dlsearch_path_spec="/usr/lib"
  13393. need_lib_prefix=no
  13394. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13395. case $host_os in
  13396. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13397. *) need_version=no ;;
  13398. esac
  13399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13400. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13401. shlibpath_var=LD_LIBRARY_PATH
  13402. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13403. case $host_os in
  13404. openbsd2.[89] | openbsd2.[89].*)
  13405. shlibpath_overrides_runpath=no
  13406. ;;
  13407. *)
  13408. shlibpath_overrides_runpath=yes
  13409. ;;
  13410. esac
  13411. else
  13412. shlibpath_overrides_runpath=yes
  13413. fi
  13414. ;;
  13415. os2*)
  13416. libname_spec='$name'
  13417. shrext_cmds=".dll"
  13418. need_lib_prefix=no
  13419. library_names_spec='$libname${shared_ext} $libname.a'
  13420. dynamic_linker='OS/2 ld.exe'
  13421. shlibpath_var=LIBPATH
  13422. ;;
  13423. osf3* | osf4* | osf5*)
  13424. version_type=osf
  13425. need_lib_prefix=no
  13426. need_version=no
  13427. soname_spec='${libname}${release}${shared_ext}$major'
  13428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13429. shlibpath_var=LD_LIBRARY_PATH
  13430. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13431. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13432. ;;
  13433. rdos*)
  13434. dynamic_linker=no
  13435. ;;
  13436. solaris*)
  13437. version_type=linux # correct to gnu/linux during the next big refactor
  13438. need_lib_prefix=no
  13439. need_version=no
  13440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13441. soname_spec='${libname}${release}${shared_ext}$major'
  13442. shlibpath_var=LD_LIBRARY_PATH
  13443. shlibpath_overrides_runpath=yes
  13444. hardcode_into_libs=yes
  13445. # ldd complains unless libraries are executable
  13446. postinstall_cmds='chmod +x $lib'
  13447. ;;
  13448. sunos4*)
  13449. version_type=sunos
  13450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13451. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13452. shlibpath_var=LD_LIBRARY_PATH
  13453. shlibpath_overrides_runpath=yes
  13454. if test "$with_gnu_ld" = yes; then
  13455. need_lib_prefix=no
  13456. fi
  13457. need_version=yes
  13458. ;;
  13459. sysv4 | sysv4.3*)
  13460. version_type=linux # correct to gnu/linux during the next big refactor
  13461. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13462. soname_spec='${libname}${release}${shared_ext}$major'
  13463. shlibpath_var=LD_LIBRARY_PATH
  13464. case $host_vendor in
  13465. sni)
  13466. shlibpath_overrides_runpath=no
  13467. need_lib_prefix=no
  13468. runpath_var=LD_RUN_PATH
  13469. ;;
  13470. siemens)
  13471. need_lib_prefix=no
  13472. ;;
  13473. motorola)
  13474. need_lib_prefix=no
  13475. need_version=no
  13476. shlibpath_overrides_runpath=no
  13477. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13478. ;;
  13479. esac
  13480. ;;
  13481. sysv4*MP*)
  13482. if test -d /usr/nec ;then
  13483. version_type=linux # correct to gnu/linux during the next big refactor
  13484. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13485. soname_spec='$libname${shared_ext}.$major'
  13486. shlibpath_var=LD_LIBRARY_PATH
  13487. fi
  13488. ;;
  13489. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13490. version_type=freebsd-elf
  13491. need_lib_prefix=no
  13492. need_version=no
  13493. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13494. soname_spec='${libname}${release}${shared_ext}$major'
  13495. shlibpath_var=LD_LIBRARY_PATH
  13496. shlibpath_overrides_runpath=yes
  13497. hardcode_into_libs=yes
  13498. if test "$with_gnu_ld" = yes; then
  13499. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13500. else
  13501. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13502. case $host_os in
  13503. sco3.2v5*)
  13504. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13505. ;;
  13506. esac
  13507. fi
  13508. sys_lib_dlsearch_path_spec='/usr/lib'
  13509. ;;
  13510. tpf*)
  13511. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13512. version_type=linux # correct to gnu/linux during the next big refactor
  13513. need_lib_prefix=no
  13514. need_version=no
  13515. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13516. shlibpath_var=LD_LIBRARY_PATH
  13517. shlibpath_overrides_runpath=no
  13518. hardcode_into_libs=yes
  13519. ;;
  13520. uts4*)
  13521. version_type=linux # correct to gnu/linux during the next big refactor
  13522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13523. soname_spec='${libname}${release}${shared_ext}$major'
  13524. shlibpath_var=LD_LIBRARY_PATH
  13525. ;;
  13526. *)
  13527. dynamic_linker=no
  13528. ;;
  13529. esac
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13531. $as_echo "$dynamic_linker" >&6; }
  13532. test "$dynamic_linker" = no && can_build_shared=no
  13533. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13534. if test "$GCC" = yes; then
  13535. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13536. fi
  13537. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13538. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13539. fi
  13540. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13541. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13542. fi
  13543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13544. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13545. hardcode_action_CXX=
  13546. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13547. test -n "$runpath_var_CXX" ||
  13548. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13549. # We can hardcode non-existent directories.
  13550. if test "$hardcode_direct_CXX" != no &&
  13551. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13552. # have to relink, otherwise we might link with an installed library
  13553. # when we should be linking with a yet-to-be-installed one
  13554. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13555. test "$hardcode_minus_L_CXX" != no; then
  13556. # Linking always hardcodes the temporary library directory.
  13557. hardcode_action_CXX=relink
  13558. else
  13559. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13560. hardcode_action_CXX=immediate
  13561. fi
  13562. else
  13563. # We cannot hardcode anything, or else we can only hardcode existing
  13564. # directories.
  13565. hardcode_action_CXX=unsupported
  13566. fi
  13567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13568. $as_echo "$hardcode_action_CXX" >&6; }
  13569. if test "$hardcode_action_CXX" = relink ||
  13570. test "$inherit_rpath_CXX" = yes; then
  13571. # Fast installation is not supported
  13572. enable_fast_install=no
  13573. elif test "$shlibpath_overrides_runpath" = yes ||
  13574. test "$enable_shared" = no; then
  13575. # Fast installation is not necessary
  13576. enable_fast_install=needless
  13577. fi
  13578. fi # test -n "$compiler"
  13579. CC=$lt_save_CC
  13580. CFLAGS=$lt_save_CFLAGS
  13581. LDCXX=$LD
  13582. LD=$lt_save_LD
  13583. GCC=$lt_save_GCC
  13584. with_gnu_ld=$lt_save_with_gnu_ld
  13585. lt_cv_path_LDCXX=$lt_cv_path_LD
  13586. lt_cv_path_LD=$lt_save_path_LD
  13587. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13588. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13589. fi # test "$_lt_caught_CXX_error" != yes
  13590. ac_ext=c
  13591. ac_cpp='$CPP $CPPFLAGS'
  13592. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13593. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13594. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13595. # Find a good install program. We prefer a C program (faster),
  13596. # so one script is as good as another. But avoid the broken or
  13597. # incompatible versions:
  13598. # SysV /etc/install, /usr/sbin/install
  13599. # SunOS /usr/etc/install
  13600. # IRIX /sbin/install
  13601. # AIX /bin/install
  13602. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13603. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13604. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13605. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13606. # OS/2's system install, which has a completely different semantic
  13607. # ./install, which can be erroneously created by make from ./install.sh.
  13608. # Reject install programs that cannot install multiple files.
  13609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13610. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13611. if test -z "$INSTALL"; then
  13612. if ${ac_cv_path_install+:} false; then :
  13613. $as_echo_n "(cached) " >&6
  13614. else
  13615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13616. for as_dir in $PATH
  13617. do
  13618. IFS=$as_save_IFS
  13619. test -z "$as_dir" && as_dir=.
  13620. # Account for people who put trailing slashes in PATH elements.
  13621. case $as_dir/ in #((
  13622. ./ | .// | /[cC]/* | \
  13623. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13624. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13625. /usr/ucb/* ) ;;
  13626. *)
  13627. # OSF1 and SCO ODT 3.0 have their own names for install.
  13628. # Don't use installbsd from OSF since it installs stuff as root
  13629. # by default.
  13630. for ac_prog in ginstall scoinst install; do
  13631. for ac_exec_ext in '' $ac_executable_extensions; do
  13632. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13633. if test $ac_prog = install &&
  13634. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13635. # AIX install. It has an incompatible calling convention.
  13636. :
  13637. elif test $ac_prog = install &&
  13638. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13639. # program-specific install script used by HP pwplus--don't use.
  13640. :
  13641. else
  13642. rm -rf conftest.one conftest.two conftest.dir
  13643. echo one > conftest.one
  13644. echo two > conftest.two
  13645. mkdir conftest.dir
  13646. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13647. test -s conftest.one && test -s conftest.two &&
  13648. test -s conftest.dir/conftest.one &&
  13649. test -s conftest.dir/conftest.two
  13650. then
  13651. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13652. break 3
  13653. fi
  13654. fi
  13655. fi
  13656. done
  13657. done
  13658. ;;
  13659. esac
  13660. done
  13661. IFS=$as_save_IFS
  13662. rm -rf conftest.one conftest.two conftest.dir
  13663. fi
  13664. if test "${ac_cv_path_install+set}" = set; then
  13665. INSTALL=$ac_cv_path_install
  13666. else
  13667. # As a last resort, use the slow shell script. Don't cache a
  13668. # value for INSTALL within a source directory, because that will
  13669. # break other packages using the cache if that directory is
  13670. # removed, or if the value is a relative name.
  13671. INSTALL=$ac_install_sh
  13672. fi
  13673. fi
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13675. $as_echo "$INSTALL" >&6; }
  13676. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13677. # It thinks the first close brace ends the variable substitution.
  13678. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13679. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13680. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13682. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13683. set x ${MAKE-make}
  13684. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13685. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13686. $as_echo_n "(cached) " >&6
  13687. else
  13688. cat >conftest.make <<\_ACEOF
  13689. SHELL = /bin/sh
  13690. all:
  13691. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13692. _ACEOF
  13693. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13694. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13695. *@@@%%%=?*=@@@%%%*)
  13696. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13697. *)
  13698. eval ac_cv_prog_make_${ac_make}_set=no;;
  13699. esac
  13700. rm -f conftest.make
  13701. fi
  13702. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13704. $as_echo "yes" >&6; }
  13705. SET_MAKE=
  13706. else
  13707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13708. $as_echo "no" >&6; }
  13709. SET_MAKE="MAKE=${MAKE-make}"
  13710. fi
  13711. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13712. if test -n "$ac_tool_prefix"; then
  13713. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13714. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13716. $as_echo_n "checking for $ac_word... " >&6; }
  13717. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13718. $as_echo_n "(cached) " >&6
  13719. else
  13720. case $PKG_CONFIG in
  13721. [\\/]* | ?:[\\/]*)
  13722. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13723. ;;
  13724. *)
  13725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13726. for as_dir in $PATH
  13727. do
  13728. IFS=$as_save_IFS
  13729. test -z "$as_dir" && as_dir=.
  13730. for ac_exec_ext in '' $ac_executable_extensions; do
  13731. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13732. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13733. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13734. break 2
  13735. fi
  13736. done
  13737. done
  13738. IFS=$as_save_IFS
  13739. ;;
  13740. esac
  13741. fi
  13742. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13743. if test -n "$PKG_CONFIG"; then
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13745. $as_echo "$PKG_CONFIG" >&6; }
  13746. else
  13747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13748. $as_echo "no" >&6; }
  13749. fi
  13750. fi
  13751. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13752. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13753. # Extract the first word of "pkg-config", so it can be a program name with args.
  13754. set dummy pkg-config; ac_word=$2
  13755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13756. $as_echo_n "checking for $ac_word... " >&6; }
  13757. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13758. $as_echo_n "(cached) " >&6
  13759. else
  13760. case $ac_pt_PKG_CONFIG in
  13761. [\\/]* | ?:[\\/]*)
  13762. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13763. ;;
  13764. *)
  13765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13766. for as_dir in $PATH
  13767. do
  13768. IFS=$as_save_IFS
  13769. test -z "$as_dir" && as_dir=.
  13770. for ac_exec_ext in '' $ac_executable_extensions; do
  13771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13772. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13774. break 2
  13775. fi
  13776. done
  13777. done
  13778. IFS=$as_save_IFS
  13779. ;;
  13780. esac
  13781. fi
  13782. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13783. if test -n "$ac_pt_PKG_CONFIG"; then
  13784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13785. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13786. else
  13787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13788. $as_echo "no" >&6; }
  13789. fi
  13790. if test "x$ac_pt_PKG_CONFIG" = x; then
  13791. PKG_CONFIG=""
  13792. else
  13793. case $cross_compiling:$ac_tool_warned in
  13794. yes:)
  13795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13796. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13797. ac_tool_warned=yes ;;
  13798. esac
  13799. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13800. fi
  13801. else
  13802. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13803. fi
  13804. fi
  13805. if test -n "$PKG_CONFIG"; then
  13806. _pkg_min_version=0.9.0
  13807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13808. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13809. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13811. $as_echo "yes" >&6; }
  13812. else
  13813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13814. $as_echo "no" >&6; }
  13815. PKG_CONFIG=""
  13816. fi
  13817. fi
  13818. case "$host" in
  13819. *-*-mingw32*)
  13820. # Except on msys, where make can't handle full pathnames (bug 1972)
  13821. ;;
  13822. *)
  13823. srcdir=`cd $srcdir && pwd`
  13824. ;;
  13825. esac
  13826. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13827. if test x$srcdir != x.; then
  13828. INCLUDE="-Iinclude $INCLUDE"
  13829. elif test -d .hg; then
  13830. as_fn_error $? "
  13831. *** When building from Mercurial you should configure and build in a
  13832. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13833. " "$LINENO" 5
  13834. fi
  13835. BASE_CFLAGS=""
  13836. BASE_LDFLAGS=""
  13837. case "$host" in
  13838. *-*-cygwin*)
  13839. # We build SDL on cygwin without the UNIX emulation layer
  13840. save_CFLAGS="$CFLAGS"
  13841. have_no_cygwin=no
  13842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13843. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13844. CFLAGS="$save_CFLAGS -mno-cygwin"
  13845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13846. /* end confdefs.h. */
  13847. int
  13848. main ()
  13849. {
  13850. ;
  13851. return 0;
  13852. }
  13853. _ACEOF
  13854. if ac_fn_c_try_compile "$LINENO"; then :
  13855. have_no_cygwin=yes
  13856. fi
  13857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13859. $as_echo "$have_no_cygwin" >&6; }
  13860. CFLAGS="$save_CFLAGS"
  13861. if test x$have_no_cygwin = xyes; then
  13862. BASE_CFLAGS="-mno-cygwin"
  13863. BASE_LDFLAGS="-mno-cygwin"
  13864. fi
  13865. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13866. ;;
  13867. esac
  13868. # Uncomment the following line if you want to force SDL and applications
  13869. # built with it to be compiled for a particular architecture.
  13870. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13871. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13872. # The default optimization for SDL is -O3 (Bug #31)
  13873. if test "x$orig_CFLAGS" = x; then
  13874. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13875. fi
  13876. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13877. BUILD_LDFLAGS="$LDFLAGS"
  13878. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13879. ## These are common directories to find software packages
  13880. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13881. # if test -d $path/include; then
  13882. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13883. # fi
  13884. # if test -d $path/lib; then
  13885. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13886. # fi
  13887. #done
  13888. SDL_CFLAGS="$BASE_CFLAGS"
  13889. SDL_LIBS="-lSDL2"
  13890. if test "x$BASE_LDFLAGS" != x; then
  13891. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13892. fi
  13893. if test "x$EXTRA_CFLAGS" != x; then
  13894. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13895. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13896. fi
  13897. if test "x$EXTRA_LDFLAGS" != x; then
  13898. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13899. fi
  13900. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13901. find_lib()
  13902. {
  13903. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13904. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13905. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13906. if test "$cross_compiling" = yes; then
  13907. host_lib_path=""
  13908. else
  13909. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13910. fi
  13911. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13912. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13913. if test x$lib != x; then
  13914. echo $lib
  13915. return
  13916. fi
  13917. done
  13918. # Try again, this time allowing more than one version digit after the .so
  13919. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13920. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13921. if test x$lib != x; then
  13922. echo $lib
  13923. return
  13924. fi
  13925. done
  13926. }
  13927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13928. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13929. if ${ac_cv_c_const+:} false; then :
  13930. $as_echo_n "(cached) " >&6
  13931. else
  13932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13933. /* end confdefs.h. */
  13934. int
  13935. main ()
  13936. {
  13937. #ifndef __cplusplus
  13938. /* Ultrix mips cc rejects this sort of thing. */
  13939. typedef int charset[2];
  13940. const charset cs = { 0, 0 };
  13941. /* SunOS 4.1.1 cc rejects this. */
  13942. char const *const *pcpcc;
  13943. char **ppc;
  13944. /* NEC SVR4.0.2 mips cc rejects this. */
  13945. struct point {int x, y;};
  13946. static struct point const zero = {0,0};
  13947. /* AIX XL C 1.02.0.0 rejects this.
  13948. It does not let you subtract one const X* pointer from another in
  13949. an arm of an if-expression whose if-part is not a constant
  13950. expression */
  13951. const char *g = "string";
  13952. pcpcc = &g + (g ? g-g : 0);
  13953. /* HPUX 7.0 cc rejects these. */
  13954. ++pcpcc;
  13955. ppc = (char**) pcpcc;
  13956. pcpcc = (char const *const *) ppc;
  13957. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13958. char tx;
  13959. char *t = &tx;
  13960. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13961. *t++ = 0;
  13962. if (s) return 0;
  13963. }
  13964. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13965. int x[] = {25, 17};
  13966. const int *foo = &x[0];
  13967. ++foo;
  13968. }
  13969. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13970. typedef const int *iptr;
  13971. iptr p = 0;
  13972. ++p;
  13973. }
  13974. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13975. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13976. struct s { int j; const int *ap[3]; } bx;
  13977. struct s *b = &bx; b->j = 5;
  13978. }
  13979. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13980. const int foo = 10;
  13981. if (!foo) return 0;
  13982. }
  13983. return !cs[0] && !zero.x;
  13984. #endif
  13985. ;
  13986. return 0;
  13987. }
  13988. _ACEOF
  13989. if ac_fn_c_try_compile "$LINENO"; then :
  13990. ac_cv_c_const=yes
  13991. else
  13992. ac_cv_c_const=no
  13993. fi
  13994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13995. fi
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13997. $as_echo "$ac_cv_c_const" >&6; }
  13998. if test $ac_cv_c_const = no; then
  13999. $as_echo "#define const /**/" >>confdefs.h
  14000. fi
  14001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14002. $as_echo_n "checking for inline... " >&6; }
  14003. if ${ac_cv_c_inline+:} false; then :
  14004. $as_echo_n "(cached) " >&6
  14005. else
  14006. ac_cv_c_inline=no
  14007. for ac_kw in inline __inline__ __inline; do
  14008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14009. /* end confdefs.h. */
  14010. #ifndef __cplusplus
  14011. typedef int foo_t;
  14012. static $ac_kw foo_t static_foo () {return 0; }
  14013. $ac_kw foo_t foo () {return 0; }
  14014. #endif
  14015. _ACEOF
  14016. if ac_fn_c_try_compile "$LINENO"; then :
  14017. ac_cv_c_inline=$ac_kw
  14018. fi
  14019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14020. test "$ac_cv_c_inline" != no && break
  14021. done
  14022. fi
  14023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14024. $as_echo "$ac_cv_c_inline" >&6; }
  14025. case $ac_cv_c_inline in
  14026. inline | yes) ;;
  14027. *)
  14028. case $ac_cv_c_inline in
  14029. no) ac_val=;;
  14030. *) ac_val=$ac_cv_c_inline;;
  14031. esac
  14032. cat >>confdefs.h <<_ACEOF
  14033. #ifndef __cplusplus
  14034. #define inline $ac_val
  14035. #endif
  14036. _ACEOF
  14037. ;;
  14038. esac
  14039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14040. $as_echo_n "checking for working volatile... " >&6; }
  14041. if ${ac_cv_c_volatile+:} false; then :
  14042. $as_echo_n "(cached) " >&6
  14043. else
  14044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14045. /* end confdefs.h. */
  14046. int
  14047. main ()
  14048. {
  14049. volatile int x;
  14050. int * volatile y = (int *) 0;
  14051. return !x && !y;
  14052. ;
  14053. return 0;
  14054. }
  14055. _ACEOF
  14056. if ac_fn_c_try_compile "$LINENO"; then :
  14057. ac_cv_c_volatile=yes
  14058. else
  14059. ac_cv_c_volatile=no
  14060. fi
  14061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14062. fi
  14063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14064. $as_echo "$ac_cv_c_volatile" >&6; }
  14065. if test $ac_cv_c_volatile = no; then
  14066. $as_echo "#define volatile /**/" >>confdefs.h
  14067. fi
  14068. # Check whether --enable-assertions was given.
  14069. if test "${enable_assertions+set}" = set; then :
  14070. enableval=$enable_assertions;
  14071. else
  14072. enable_assertions=auto
  14073. fi
  14074. case "$enable_assertions" in
  14075. auto) # Use optimization settings to determine assertion level
  14076. ;;
  14077. disabled)
  14078. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  14079. ;;
  14080. release)
  14081. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  14082. ;;
  14083. enabled)
  14084. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  14085. ;;
  14086. paranoid)
  14087. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  14088. ;;
  14089. *)
  14090. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  14091. ;;
  14092. esac
  14093. # Check whether --enable-dependency-tracking was given.
  14094. if test "${enable_dependency_tracking+set}" = set; then :
  14095. enableval=$enable_dependency_tracking;
  14096. else
  14097. enable_dependency_tracking=yes
  14098. fi
  14099. if test x$enable_dependency_tracking = xyes; then
  14100. have_gcc_mmd_mt=no
  14101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  14102. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  14103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14104. /* end confdefs.h. */
  14105. #if !defined(__GNUC__) || __GNUC__ < 3
  14106. #error Dependency tracking requires GCC 3.0 or newer
  14107. #endif
  14108. int
  14109. main ()
  14110. {
  14111. ;
  14112. return 0;
  14113. }
  14114. _ACEOF
  14115. if ac_fn_c_try_compile "$LINENO"; then :
  14116. have_gcc_mmd_mt=yes
  14117. fi
  14118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  14120. $as_echo "$have_gcc_mmd_mt" >&6; }
  14121. if test x$have_gcc_mmd_mt = xyes; then
  14122. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  14123. fi
  14124. fi
  14125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  14126. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  14127. have_no_undefined=no
  14128. case "$host" in
  14129. *-*-openbsd*)
  14130. ;;
  14131. *)
  14132. save_LDFLAGS="$LDFLAGS"
  14133. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  14134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14135. /* end confdefs.h. */
  14136. int
  14137. main ()
  14138. {
  14139. ;
  14140. return 0;
  14141. }
  14142. _ACEOF
  14143. if ac_fn_c_try_link "$LINENO"; then :
  14144. have_no_undefined=yes
  14145. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  14146. fi
  14147. rm -f core conftest.err conftest.$ac_objext \
  14148. conftest$ac_exeext conftest.$ac_ext
  14149. LDFLAGS="$save_LDFLAGS"
  14150. ;;
  14151. esac
  14152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  14153. $as_echo "$have_no_undefined" >&6; }
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  14155. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  14156. have_dynamicbase=no
  14157. case "$host" in
  14158. *)
  14159. save_LDFLAGS="$LDFLAGS"
  14160. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  14161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14162. /* end confdefs.h. */
  14163. int
  14164. main ()
  14165. {
  14166. ;
  14167. return 0;
  14168. }
  14169. _ACEOF
  14170. if ac_fn_c_try_link "$LINENO"; then :
  14171. have_dynamicbase=yes
  14172. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  14173. fi
  14174. rm -f core conftest.err conftest.$ac_objext \
  14175. conftest$ac_exeext conftest.$ac_ext
  14176. LDFLAGS="$save_LDFLAGS"
  14177. ;;
  14178. esac
  14179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  14180. $as_echo "$have_dynamicbase" >&6; }
  14181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  14182. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  14183. have_nxcompat=no
  14184. case "$host" in
  14185. *)
  14186. save_LDFLAGS="$LDFLAGS"
  14187. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  14188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14189. /* end confdefs.h. */
  14190. int
  14191. main ()
  14192. {
  14193. ;
  14194. return 0;
  14195. }
  14196. _ACEOF
  14197. if ac_fn_c_try_link "$LINENO"; then :
  14198. have_nxcompat=yes
  14199. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  14200. fi
  14201. rm -f core conftest.err conftest.$ac_objext \
  14202. conftest$ac_exeext conftest.$ac_ext
  14203. LDFLAGS="$save_LDFLAGS"
  14204. ;;
  14205. esac
  14206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  14207. $as_echo "$have_nxcompat" >&6; }
  14208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  14209. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  14210. have_high_entropy_va=no
  14211. case "$host" in
  14212. *)
  14213. save_LDFLAGS="$LDFLAGS"
  14214. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  14215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14216. /* end confdefs.h. */
  14217. int
  14218. main ()
  14219. {
  14220. ;
  14221. return 0;
  14222. }
  14223. _ACEOF
  14224. if ac_fn_c_try_link "$LINENO"; then :
  14225. have_high_entropy_va=yes
  14226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  14227. fi
  14228. rm -f core conftest.err conftest.$ac_objext \
  14229. conftest$ac_exeext conftest.$ac_ext
  14230. LDFLAGS="$save_LDFLAGS"
  14231. ;;
  14232. esac
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  14234. $as_echo "$have_high_entropy_va" >&6; }
  14235. # Check whether --enable-libc was given.
  14236. if test "${enable_libc+set}" = set; then :
  14237. enableval=$enable_libc;
  14238. else
  14239. enable_libc=yes
  14240. fi
  14241. if test x$enable_libc = xyes; then
  14242. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  14243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14244. $as_echo_n "checking for ANSI C header files... " >&6; }
  14245. if ${ac_cv_header_stdc+:} false; then :
  14246. $as_echo_n "(cached) " >&6
  14247. else
  14248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14249. /* end confdefs.h. */
  14250. #include <stdlib.h>
  14251. #include <stdarg.h>
  14252. #include <string.h>
  14253. #include <float.h>
  14254. int
  14255. main ()
  14256. {
  14257. ;
  14258. return 0;
  14259. }
  14260. _ACEOF
  14261. if ac_fn_c_try_compile "$LINENO"; then :
  14262. ac_cv_header_stdc=yes
  14263. else
  14264. ac_cv_header_stdc=no
  14265. fi
  14266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14267. if test $ac_cv_header_stdc = yes; then
  14268. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14270. /* end confdefs.h. */
  14271. #include <string.h>
  14272. _ACEOF
  14273. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14274. $EGREP "memchr" >/dev/null 2>&1; then :
  14275. else
  14276. ac_cv_header_stdc=no
  14277. fi
  14278. rm -f conftest*
  14279. fi
  14280. if test $ac_cv_header_stdc = yes; then
  14281. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14283. /* end confdefs.h. */
  14284. #include <stdlib.h>
  14285. _ACEOF
  14286. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14287. $EGREP "free" >/dev/null 2>&1; then :
  14288. else
  14289. ac_cv_header_stdc=no
  14290. fi
  14291. rm -f conftest*
  14292. fi
  14293. if test $ac_cv_header_stdc = yes; then
  14294. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14295. if test "$cross_compiling" = yes; then :
  14296. :
  14297. else
  14298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14299. /* end confdefs.h. */
  14300. #include <ctype.h>
  14301. #include <stdlib.h>
  14302. #if ((' ' & 0x0FF) == 0x020)
  14303. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14304. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14305. #else
  14306. # define ISLOWER(c) \
  14307. (('a' <= (c) && (c) <= 'i') \
  14308. || ('j' <= (c) && (c) <= 'r') \
  14309. || ('s' <= (c) && (c) <= 'z'))
  14310. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14311. #endif
  14312. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14313. int
  14314. main ()
  14315. {
  14316. int i;
  14317. for (i = 0; i < 256; i++)
  14318. if (XOR (islower (i), ISLOWER (i))
  14319. || toupper (i) != TOUPPER (i))
  14320. return 2;
  14321. return 0;
  14322. }
  14323. _ACEOF
  14324. if ac_fn_c_try_run "$LINENO"; then :
  14325. else
  14326. ac_cv_header_stdc=no
  14327. fi
  14328. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14329. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14330. fi
  14331. fi
  14332. fi
  14333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14334. $as_echo "$ac_cv_header_stdc" >&6; }
  14335. if test $ac_cv_header_stdc = yes; then
  14336. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14337. fi
  14338. 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
  14339. do :
  14340. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14341. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14342. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14343. cat >>confdefs.h <<_ACEOF
  14344. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14345. _ACEOF
  14346. fi
  14347. done
  14348. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14349. if test "x$ac_cv_type_size_t" = xyes; then :
  14350. else
  14351. cat >>confdefs.h <<_ACEOF
  14352. #define size_t unsigned int
  14353. _ACEOF
  14354. fi
  14355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14356. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14357. if ${ac_cv_define_M_PI+:} false; then :
  14358. $as_echo_n "(cached) " >&6
  14359. else
  14360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14361. /* end confdefs.h. */
  14362. #include <math.h>
  14363. #ifdef M_PI
  14364. YES_IS_DEFINED
  14365. #endif
  14366. _ACEOF
  14367. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14368. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14369. ac_cv_define_M_PI=yes
  14370. else
  14371. ac_cv_define_M_PI=no
  14372. fi
  14373. rm -f conftest*
  14374. fi
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14376. $as_echo "$ac_cv_define_M_PI" >&6; }
  14377. if test "$ac_cv_define_M_PI" = "yes" ; then
  14378. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14379. fi
  14380. case "$host" in
  14381. *-*-cygwin* | *-*-mingw32*)
  14382. ;;
  14383. *)
  14384. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14385. # for constant arguments. Useless!
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14387. $as_echo_n "checking for working alloca.h... " >&6; }
  14388. if ${ac_cv_working_alloca_h+:} false; then :
  14389. $as_echo_n "(cached) " >&6
  14390. else
  14391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14392. /* end confdefs.h. */
  14393. #include <alloca.h>
  14394. int
  14395. main ()
  14396. {
  14397. char *p = (char *) alloca (2 * sizeof (int));
  14398. if (p) return 0;
  14399. ;
  14400. return 0;
  14401. }
  14402. _ACEOF
  14403. if ac_fn_c_try_link "$LINENO"; then :
  14404. ac_cv_working_alloca_h=yes
  14405. else
  14406. ac_cv_working_alloca_h=no
  14407. fi
  14408. rm -f core conftest.err conftest.$ac_objext \
  14409. conftest$ac_exeext conftest.$ac_ext
  14410. fi
  14411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14412. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14413. if test $ac_cv_working_alloca_h = yes; then
  14414. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14415. fi
  14416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14417. $as_echo_n "checking for alloca... " >&6; }
  14418. if ${ac_cv_func_alloca_works+:} false; then :
  14419. $as_echo_n "(cached) " >&6
  14420. else
  14421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14422. /* end confdefs.h. */
  14423. #ifdef __GNUC__
  14424. # define alloca __builtin_alloca
  14425. #else
  14426. # ifdef _MSC_VER
  14427. # include <malloc.h>
  14428. # define alloca _alloca
  14429. # else
  14430. # ifdef HAVE_ALLOCA_H
  14431. # include <alloca.h>
  14432. # else
  14433. # ifdef _AIX
  14434. #pragma alloca
  14435. # else
  14436. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14437. void *alloca (size_t);
  14438. # endif
  14439. # endif
  14440. # endif
  14441. # endif
  14442. #endif
  14443. int
  14444. main ()
  14445. {
  14446. char *p = (char *) alloca (1);
  14447. if (p) return 0;
  14448. ;
  14449. return 0;
  14450. }
  14451. _ACEOF
  14452. if ac_fn_c_try_link "$LINENO"; then :
  14453. ac_cv_func_alloca_works=yes
  14454. else
  14455. ac_cv_func_alloca_works=no
  14456. fi
  14457. rm -f core conftest.err conftest.$ac_objext \
  14458. conftest$ac_exeext conftest.$ac_ext
  14459. fi
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14461. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14462. if test $ac_cv_func_alloca_works = yes; then
  14463. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14464. else
  14465. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14466. # that cause trouble. Some versions do not even contain alloca or
  14467. # contain a buggy version. If you still want to use their alloca,
  14468. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14469. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14470. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14472. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14473. if ${ac_cv_os_cray+:} false; then :
  14474. $as_echo_n "(cached) " >&6
  14475. else
  14476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14477. /* end confdefs.h. */
  14478. #if defined CRAY && ! defined CRAY2
  14479. webecray
  14480. #else
  14481. wenotbecray
  14482. #endif
  14483. _ACEOF
  14484. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14485. $EGREP "webecray" >/dev/null 2>&1; then :
  14486. ac_cv_os_cray=yes
  14487. else
  14488. ac_cv_os_cray=no
  14489. fi
  14490. rm -f conftest*
  14491. fi
  14492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14493. $as_echo "$ac_cv_os_cray" >&6; }
  14494. if test $ac_cv_os_cray = yes; then
  14495. for ac_func in _getb67 GETB67 getb67; do
  14496. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14497. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14498. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14499. cat >>confdefs.h <<_ACEOF
  14500. #define CRAY_STACKSEG_END $ac_func
  14501. _ACEOF
  14502. break
  14503. fi
  14504. done
  14505. fi
  14506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14507. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14508. if ${ac_cv_c_stack_direction+:} false; then :
  14509. $as_echo_n "(cached) " >&6
  14510. else
  14511. if test "$cross_compiling" = yes; then :
  14512. ac_cv_c_stack_direction=0
  14513. else
  14514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14515. /* end confdefs.h. */
  14516. $ac_includes_default
  14517. int
  14518. find_stack_direction (int *addr, int depth)
  14519. {
  14520. int dir, dummy = 0;
  14521. if (! addr)
  14522. addr = &dummy;
  14523. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14524. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14525. return dir + dummy;
  14526. }
  14527. int
  14528. main (int argc, char **argv)
  14529. {
  14530. return find_stack_direction (0, argc + !argv + 20) < 0;
  14531. }
  14532. _ACEOF
  14533. if ac_fn_c_try_run "$LINENO"; then :
  14534. ac_cv_c_stack_direction=1
  14535. else
  14536. ac_cv_c_stack_direction=-1
  14537. fi
  14538. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14539. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14540. fi
  14541. fi
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14543. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14544. cat >>confdefs.h <<_ACEOF
  14545. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14546. _ACEOF
  14547. fi
  14548. ;;
  14549. esac
  14550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14551. $as_echo_n "checking for working memcmp... " >&6; }
  14552. if ${ac_cv_func_memcmp_working+:} false; then :
  14553. $as_echo_n "(cached) " >&6
  14554. else
  14555. if test "$cross_compiling" = yes; then :
  14556. ac_cv_func_memcmp_working=no
  14557. else
  14558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14559. /* end confdefs.h. */
  14560. $ac_includes_default
  14561. int
  14562. main ()
  14563. {
  14564. /* Some versions of memcmp are not 8-bit clean. */
  14565. char c0 = '\100', c1 = '\200', c2 = '\201';
  14566. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14567. return 1;
  14568. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14569. or more and with at least one buffer not starting on a 4-byte boundary.
  14570. William Lewis provided this test program. */
  14571. {
  14572. char foo[21];
  14573. char bar[21];
  14574. int i;
  14575. for (i = 0; i < 4; i++)
  14576. {
  14577. char *a = foo + i;
  14578. char *b = bar + i;
  14579. strcpy (a, "--------01111111");
  14580. strcpy (b, "--------10000000");
  14581. if (memcmp (a, b, 16) >= 0)
  14582. return 1;
  14583. }
  14584. return 0;
  14585. }
  14586. ;
  14587. return 0;
  14588. }
  14589. _ACEOF
  14590. if ac_fn_c_try_run "$LINENO"; then :
  14591. ac_cv_func_memcmp_working=yes
  14592. else
  14593. ac_cv_func_memcmp_working=no
  14594. fi
  14595. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14596. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14597. fi
  14598. fi
  14599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14600. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14601. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14602. *" memcmp.$ac_objext "* ) ;;
  14603. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14604. ;;
  14605. esac
  14606. if test x$ac_cv_func_memcmp_working = xyes; then
  14607. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14608. fi
  14609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14610. $as_echo_n "checking for working strtod... " >&6; }
  14611. if ${ac_cv_func_strtod+:} false; then :
  14612. $as_echo_n "(cached) " >&6
  14613. else
  14614. if test "$cross_compiling" = yes; then :
  14615. ac_cv_func_strtod=no
  14616. else
  14617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14618. /* end confdefs.h. */
  14619. $ac_includes_default
  14620. #ifndef strtod
  14621. double strtod ();
  14622. #endif
  14623. int
  14624. main()
  14625. {
  14626. {
  14627. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14628. char *string = " +69";
  14629. char *term;
  14630. double value;
  14631. value = strtod (string, &term);
  14632. if (value != 69 || term != (string + 4))
  14633. return 1;
  14634. }
  14635. {
  14636. /* Under Solaris 2.4, strtod returns the wrong value for the
  14637. terminating character under some conditions. */
  14638. char *string = "NaN";
  14639. char *term;
  14640. strtod (string, &term);
  14641. if (term != string && *(term - 1) == 0)
  14642. return 1;
  14643. }
  14644. return 0;
  14645. }
  14646. _ACEOF
  14647. if ac_fn_c_try_run "$LINENO"; then :
  14648. ac_cv_func_strtod=yes
  14649. else
  14650. ac_cv_func_strtod=no
  14651. fi
  14652. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14653. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14654. fi
  14655. fi
  14656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14657. $as_echo "$ac_cv_func_strtod" >&6; }
  14658. if test $ac_cv_func_strtod = no; then
  14659. case " $LIBOBJS " in
  14660. *" strtod.$ac_objext "* ) ;;
  14661. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14662. ;;
  14663. esac
  14664. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14665. if test "x$ac_cv_func_pow" = xyes; then :
  14666. fi
  14667. if test $ac_cv_func_pow = no; then
  14668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14669. $as_echo_n "checking for pow in -lm... " >&6; }
  14670. if ${ac_cv_lib_m_pow+:} false; then :
  14671. $as_echo_n "(cached) " >&6
  14672. else
  14673. ac_check_lib_save_LIBS=$LIBS
  14674. LIBS="-lm $LIBS"
  14675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14676. /* end confdefs.h. */
  14677. /* Override any GCC internal prototype to avoid an error.
  14678. Use char because int might match the return type of a GCC
  14679. builtin and then its argument prototype would still apply. */
  14680. #ifdef __cplusplus
  14681. extern "C"
  14682. #endif
  14683. char pow ();
  14684. int
  14685. main ()
  14686. {
  14687. return pow ();
  14688. ;
  14689. return 0;
  14690. }
  14691. _ACEOF
  14692. if ac_fn_c_try_link "$LINENO"; then :
  14693. ac_cv_lib_m_pow=yes
  14694. else
  14695. ac_cv_lib_m_pow=no
  14696. fi
  14697. rm -f core conftest.err conftest.$ac_objext \
  14698. conftest$ac_exeext conftest.$ac_ext
  14699. LIBS=$ac_check_lib_save_LIBS
  14700. fi
  14701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14702. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14703. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14704. POW_LIB=-lm
  14705. else
  14706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14707. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14708. fi
  14709. fi
  14710. fi
  14711. if test x$ac_cv_func_strtod = xyes; then
  14712. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14713. fi
  14714. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14715. if test "x$ac_cv_func_mprotect" = xyes; then :
  14716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14717. /* end confdefs.h. */
  14718. #include <sys/types.h>
  14719. #include <sys/mman.h>
  14720. int
  14721. main ()
  14722. {
  14723. ;
  14724. return 0;
  14725. }
  14726. _ACEOF
  14727. if ac_fn_c_try_compile "$LINENO"; then :
  14728. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14729. fi
  14730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14731. fi
  14732. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr strtok_r 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 _Exit
  14733. do :
  14734. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14735. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14736. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14737. cat >>confdefs.h <<_ACEOF
  14738. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14739. _ACEOF
  14740. fi
  14741. done
  14742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14743. $as_echo_n "checking for pow in -lm... " >&6; }
  14744. if ${ac_cv_lib_m_pow+:} false; then :
  14745. $as_echo_n "(cached) " >&6
  14746. else
  14747. ac_check_lib_save_LIBS=$LIBS
  14748. LIBS="-lm $LIBS"
  14749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14750. /* end confdefs.h. */
  14751. /* Override any GCC internal prototype to avoid an error.
  14752. Use char because int might match the return type of a GCC
  14753. builtin and then its argument prototype would still apply. */
  14754. #ifdef __cplusplus
  14755. extern "C"
  14756. #endif
  14757. char pow ();
  14758. int
  14759. main ()
  14760. {
  14761. return pow ();
  14762. ;
  14763. return 0;
  14764. }
  14765. _ACEOF
  14766. if ac_fn_c_try_link "$LINENO"; then :
  14767. ac_cv_lib_m_pow=yes
  14768. else
  14769. ac_cv_lib_m_pow=no
  14770. fi
  14771. rm -f core conftest.err conftest.$ac_objext \
  14772. conftest$ac_exeext conftest.$ac_ext
  14773. LIBS=$ac_check_lib_save_LIBS
  14774. fi
  14775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14776. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14777. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14778. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14779. fi
  14780. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf trunc truncf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14781. do :
  14782. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14783. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14784. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14785. cat >>confdefs.h <<_ACEOF
  14786. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14787. _ACEOF
  14788. fi
  14789. done
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14791. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14792. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14793. $as_echo_n "(cached) " >&6
  14794. else
  14795. ac_check_lib_save_LIBS=$LIBS
  14796. LIBS="-liconv $LIBS"
  14797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14798. /* end confdefs.h. */
  14799. /* Override any GCC internal prototype to avoid an error.
  14800. Use char because int might match the return type of a GCC
  14801. builtin and then its argument prototype would still apply. */
  14802. #ifdef __cplusplus
  14803. extern "C"
  14804. #endif
  14805. char iconv_open ();
  14806. int
  14807. main ()
  14808. {
  14809. return iconv_open ();
  14810. ;
  14811. return 0;
  14812. }
  14813. _ACEOF
  14814. if ac_fn_c_try_link "$LINENO"; then :
  14815. ac_cv_lib_iconv_iconv_open=yes
  14816. else
  14817. ac_cv_lib_iconv_iconv_open=no
  14818. fi
  14819. rm -f core conftest.err conftest.$ac_objext \
  14820. conftest$ac_exeext conftest.$ac_ext
  14821. LIBS=$ac_check_lib_save_LIBS
  14822. fi
  14823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14824. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14825. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14826. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14827. fi
  14828. for ac_func in iconv
  14829. do :
  14830. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14831. if test "x$ac_cv_func_iconv" = xyes; then :
  14832. cat >>confdefs.h <<_ACEOF
  14833. #define HAVE_ICONV 1
  14834. _ACEOF
  14835. fi
  14836. done
  14837. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14838. "
  14839. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14840. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14841. fi
  14842. for ac_header in libunwind.h
  14843. do :
  14844. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14845. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14846. cat >>confdefs.h <<_ACEOF
  14847. #define HAVE_LIBUNWIND_H 1
  14848. _ACEOF
  14849. fi
  14850. done
  14851. fi
  14852. # Check whether --enable-gcc-atomics was given.
  14853. if test "${enable_gcc_atomics+set}" = set; then :
  14854. enableval=$enable_gcc_atomics;
  14855. else
  14856. enable_gcc_atomics=yes
  14857. fi
  14858. if test x$enable_gcc_atomics = xyes; then
  14859. have_gcc_atomics=no
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14861. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14863. /* end confdefs.h. */
  14864. int
  14865. main ()
  14866. {
  14867. int a;
  14868. void *x, *y, *z;
  14869. __sync_lock_test_and_set(&a, 4);
  14870. __sync_lock_test_and_set(&x, y);
  14871. __sync_fetch_and_add(&a, 1);
  14872. __sync_bool_compare_and_swap(&a, 5, 10);
  14873. __sync_bool_compare_and_swap(&x, y, z);
  14874. ;
  14875. return 0;
  14876. }
  14877. _ACEOF
  14878. if ac_fn_c_try_link "$LINENO"; then :
  14879. have_gcc_atomics=yes
  14880. fi
  14881. rm -f core conftest.err conftest.$ac_objext \
  14882. conftest$ac_exeext conftest.$ac_ext
  14883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14884. $as_echo "$have_gcc_atomics" >&6; }
  14885. if test x$have_gcc_atomics = xyes; then
  14886. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14887. else
  14888. # See if we have the minimum operation needed for GCC atomics
  14889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14890. /* end confdefs.h. */
  14891. int
  14892. main ()
  14893. {
  14894. int a;
  14895. __sync_lock_test_and_set(&a, 1);
  14896. __sync_lock_release(&a);
  14897. ;
  14898. return 0;
  14899. }
  14900. _ACEOF
  14901. if ac_fn_c_try_link "$LINENO"; then :
  14902. have_gcc_sync_lock_test_and_set=yes
  14903. fi
  14904. rm -f core conftest.err conftest.$ac_objext \
  14905. conftest$ac_exeext conftest.$ac_ext
  14906. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14907. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14908. fi
  14909. fi
  14910. fi
  14911. # Standard C sources
  14912. SOURCES="$SOURCES $srcdir/src/*.c"
  14913. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14914. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14915. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14916. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14917. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14918. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14919. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14920. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14921. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14922. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14923. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14924. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14925. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14926. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14927. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14928. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14929. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14930. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14931. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14932. # Check whether --enable-atomic was given.
  14933. if test "${enable_atomic+set}" = set; then :
  14934. enableval=$enable_atomic;
  14935. else
  14936. enable_atomic=yes
  14937. fi
  14938. if test x$enable_atomic != xyes; then
  14939. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14940. else
  14941. SUMMARY_modules="${SUMMARY_modules} atomic"
  14942. fi
  14943. # Check whether --enable-audio was given.
  14944. if test "${enable_audio+set}" = set; then :
  14945. enableval=$enable_audio;
  14946. else
  14947. enable_audio=yes
  14948. fi
  14949. if test x$enable_audio != xyes; then
  14950. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14951. else
  14952. SUMMARY_modules="${SUMMARY_modules} audio"
  14953. fi
  14954. # Check whether --enable-video was given.
  14955. if test "${enable_video+set}" = set; then :
  14956. enableval=$enable_video;
  14957. else
  14958. enable_video=yes
  14959. fi
  14960. if test x$enable_video != xyes; then
  14961. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14962. else
  14963. SUMMARY_modules="${SUMMARY_modules} video"
  14964. fi
  14965. # Check whether --enable-render was given.
  14966. if test "${enable_render+set}" = set; then :
  14967. enableval=$enable_render;
  14968. else
  14969. enable_render=yes
  14970. fi
  14971. if test x$enable_render != xyes; then
  14972. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14973. else
  14974. SUMMARY_modules="${SUMMARY_modules} render"
  14975. fi
  14976. # Check whether --enable-events was given.
  14977. if test "${enable_events+set}" = set; then :
  14978. enableval=$enable_events;
  14979. else
  14980. enable_events=yes
  14981. fi
  14982. if test x$enable_events != xyes; then
  14983. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14984. else
  14985. SUMMARY_modules="${SUMMARY_modules} events"
  14986. fi
  14987. # Check whether --enable-joystick was given.
  14988. if test "${enable_joystick+set}" = set; then :
  14989. enableval=$enable_joystick;
  14990. else
  14991. enable_joystick=yes
  14992. fi
  14993. if test x$enable_joystick != xyes; then
  14994. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14995. else
  14996. SUMMARY_modules="${SUMMARY_modules} joystick"
  14997. fi
  14998. # Check whether --enable-haptic was given.
  14999. if test "${enable_haptic+set}" = set; then :
  15000. enableval=$enable_haptic;
  15001. else
  15002. enable_haptic=yes
  15003. fi
  15004. if test x$enable_haptic != xyes; then
  15005. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  15006. else
  15007. SUMMARY_modules="${SUMMARY_modules} haptic"
  15008. fi
  15009. # Check whether --enable-sensor was given.
  15010. if test "${enable_sensor+set}" = set; then :
  15011. enableval=$enable_sensor;
  15012. else
  15013. enable_sensor=yes
  15014. fi
  15015. if test x$enable_sensor != xyes; then
  15016. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  15017. else
  15018. SUMMARY_modules="${SUMMARY_modules} sensor"
  15019. fi
  15020. # Check whether --enable-power was given.
  15021. if test "${enable_power+set}" = set; then :
  15022. enableval=$enable_power;
  15023. else
  15024. enable_power=yes
  15025. fi
  15026. if test x$enable_power != xyes; then
  15027. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  15028. else
  15029. SUMMARY_modules="${SUMMARY_modules} power"
  15030. fi
  15031. # Check whether --enable-filesystem was given.
  15032. if test "${enable_filesystem+set}" = set; then :
  15033. enableval=$enable_filesystem;
  15034. else
  15035. enable_filesystem=yes
  15036. fi
  15037. if test x$enable_filesystem != xyes; then
  15038. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  15039. else
  15040. SUMMARY_modules="${SUMMARY_modules} filesystem"
  15041. fi
  15042. # Check whether --enable-threads was given.
  15043. if test "${enable_threads+set}" = set; then :
  15044. enableval=$enable_threads;
  15045. else
  15046. enable_threads=yes
  15047. fi
  15048. if test x$enable_threads != xyes; then
  15049. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  15050. else
  15051. SUMMARY_modules="${SUMMARY_modules} threads"
  15052. fi
  15053. # Check whether --enable-timers was given.
  15054. if test "${enable_timers+set}" = set; then :
  15055. enableval=$enable_timers;
  15056. else
  15057. enable_timers=yes
  15058. fi
  15059. if test x$enable_timers != xyes; then
  15060. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  15061. else
  15062. SUMMARY_modules="${SUMMARY_modules} timers"
  15063. fi
  15064. # Check whether --enable-file was given.
  15065. if test "${enable_file+set}" = set; then :
  15066. enableval=$enable_file;
  15067. else
  15068. enable_file=yes
  15069. fi
  15070. if test x$enable_file != xyes; then
  15071. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  15072. else
  15073. SUMMARY_modules="${SUMMARY_modules} file"
  15074. fi
  15075. # Check whether --enable-loadso was given.
  15076. if test "${enable_loadso+set}" = set; then :
  15077. enableval=$enable_loadso;
  15078. else
  15079. enable_loadso=yes
  15080. fi
  15081. if test x$enable_loadso != xyes; then
  15082. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  15083. else
  15084. SUMMARY_modules="${SUMMARY_modules} loadso"
  15085. fi
  15086. # Check whether --enable-cpuinfo was given.
  15087. if test "${enable_cpuinfo+set}" = set; then :
  15088. enableval=$enable_cpuinfo;
  15089. else
  15090. enable_cpuinfo=yes
  15091. fi
  15092. if test x$enable_cpuinfo != xyes; then
  15093. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  15094. else
  15095. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  15096. fi
  15097. # Check whether --enable-assembly was given.
  15098. if test "${enable_assembly+set}" = set; then :
  15099. enableval=$enable_assembly;
  15100. else
  15101. enable_assembly=yes
  15102. fi
  15103. if test x$enable_assembly = xyes; then
  15104. SUMMARY_modules="${SUMMARY_modules} assembly"
  15105. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  15106. # Make sure that we don't generate floating point code that would
  15107. # cause illegal instruction exceptions on older processors
  15108. case "$host" in
  15109. *-*-darwin*)
  15110. # Don't need to worry about Apple hardware, it's all SSE capable
  15111. default_ssemath=yes
  15112. ;;
  15113. *64-*-*)
  15114. # x86 64-bit architectures all have SSE instructions
  15115. default_ssemath=yes
  15116. ;;
  15117. *)
  15118. default_ssemath=no
  15119. ;;
  15120. esac
  15121. # Check whether --enable-ssemath was given.
  15122. if test "${enable_ssemath+set}" = set; then :
  15123. enableval=$enable_ssemath;
  15124. else
  15125. enable_ssemath=$default_ssemath
  15126. fi
  15127. if test x$enable_ssemath = xno; then
  15128. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  15129. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  15130. fi
  15131. fi
  15132. # Check whether --enable-mmx was given.
  15133. if test "${enable_mmx+set}" = set; then :
  15134. enableval=$enable_mmx;
  15135. else
  15136. enable_mmx=yes
  15137. fi
  15138. if test x$enable_mmx = xyes; then
  15139. save_CFLAGS="$CFLAGS"
  15140. have_gcc_mmx=no
  15141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  15142. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  15143. mmx_CFLAGS="-mmmx"
  15144. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  15145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15146. /* end confdefs.h. */
  15147. #ifdef __MINGW32__
  15148. #include <_mingw.h>
  15149. #ifdef __MINGW64_VERSION_MAJOR
  15150. #include <intrin.h>
  15151. #else
  15152. #include <mmintrin.h>
  15153. #endif
  15154. #else
  15155. #include <mmintrin.h>
  15156. #endif
  15157. #ifndef __MMX__
  15158. #error Assembler CPP flag not enabled
  15159. #endif
  15160. int
  15161. main ()
  15162. {
  15163. ;
  15164. return 0;
  15165. }
  15166. _ACEOF
  15167. if ac_fn_c_try_compile "$LINENO"; then :
  15168. have_gcc_mmx=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_mmx" >&5
  15172. $as_echo "$have_gcc_mmx" >&6; }
  15173. CFLAGS="$save_CFLAGS"
  15174. if test x$have_gcc_mmx = xyes; then
  15175. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  15176. SUMMARY_math="${SUMMARY_math} mmx"
  15177. fi
  15178. fi
  15179. # Check whether --enable-3dnow was given.
  15180. if test "${enable_3dnow+set}" = set; then :
  15181. enableval=$enable_3dnow;
  15182. else
  15183. enable_3dnow=yes
  15184. fi
  15185. if test x$enable_3dnow = xyes; then
  15186. save_CFLAGS="$CFLAGS"
  15187. have_gcc_3dnow=no
  15188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  15189. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  15190. amd3dnow_CFLAGS="-m3dnow"
  15191. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  15192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15193. /* end confdefs.h. */
  15194. #include <mm3dnow.h>
  15195. #ifndef __3dNOW__
  15196. #error Assembler CPP flag not enabled
  15197. #endif
  15198. int
  15199. main ()
  15200. {
  15201. void *p = 0;
  15202. _m_prefetch(p);
  15203. ;
  15204. return 0;
  15205. }
  15206. _ACEOF
  15207. if ac_fn_c_try_link "$LINENO"; then :
  15208. have_gcc_3dnow=yes
  15209. fi
  15210. rm -f core conftest.err conftest.$ac_objext \
  15211. conftest$ac_exeext conftest.$ac_ext
  15212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  15213. $as_echo "$have_gcc_3dnow" >&6; }
  15214. CFLAGS="$save_CFLAGS"
  15215. if test x$have_gcc_3dnow = xyes; then
  15216. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  15217. SUMMARY_math="${SUMMARY_math} 3dnow"
  15218. fi
  15219. fi
  15220. # Check whether --enable-sse was given.
  15221. if test "${enable_sse+set}" = set; then :
  15222. enableval=$enable_sse;
  15223. else
  15224. enable_sse=yes
  15225. fi
  15226. if test x$enable_sse = xyes; then
  15227. save_CFLAGS="$CFLAGS"
  15228. have_gcc_sse=no
  15229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  15230. $as_echo_n "checking for GCC -msse option... " >&6; }
  15231. sse_CFLAGS="-msse"
  15232. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  15233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15234. /* end confdefs.h. */
  15235. #ifdef __MINGW32__
  15236. #include <_mingw.h>
  15237. #ifdef __MINGW64_VERSION_MAJOR
  15238. #include <intrin.h>
  15239. #else
  15240. #include <xmmintrin.h>
  15241. #endif
  15242. #else
  15243. #include <xmmintrin.h>
  15244. #endif
  15245. #ifndef __SSE__
  15246. #error Assembler CPP flag not enabled
  15247. #endif
  15248. int
  15249. main ()
  15250. {
  15251. ;
  15252. return 0;
  15253. }
  15254. _ACEOF
  15255. if ac_fn_c_try_compile "$LINENO"; then :
  15256. have_gcc_sse=yes
  15257. fi
  15258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  15260. $as_echo "$have_gcc_sse" >&6; }
  15261. CFLAGS="$save_CFLAGS"
  15262. if test x$have_gcc_sse = xyes; then
  15263. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  15264. SUMMARY_math="${SUMMARY_math} sse"
  15265. fi
  15266. fi
  15267. # Check whether --enable-sse2 was given.
  15268. if test "${enable_sse2+set}" = set; then :
  15269. enableval=$enable_sse2;
  15270. else
  15271. enable_sse2=$default_ssemath
  15272. fi
  15273. if test x$enable_sse2 = xyes; then
  15274. save_CFLAGS="$CFLAGS"
  15275. have_gcc_sse2=no
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15277. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15278. sse2_CFLAGS="-msse2"
  15279. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15281. /* end confdefs.h. */
  15282. #ifdef __MINGW32__
  15283. #include <_mingw.h>
  15284. #ifdef __MINGW64_VERSION_MAJOR
  15285. #include <intrin.h>
  15286. #else
  15287. #include <emmintrin.h>
  15288. #endif
  15289. #else
  15290. #include <emmintrin.h>
  15291. #endif
  15292. #ifndef __SSE2__
  15293. #error Assembler CPP flag not enabled
  15294. #endif
  15295. int
  15296. main ()
  15297. {
  15298. ;
  15299. return 0;
  15300. }
  15301. _ACEOF
  15302. if ac_fn_c_try_compile "$LINENO"; then :
  15303. have_gcc_sse2=yes
  15304. fi
  15305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15307. $as_echo "$have_gcc_sse2" >&6; }
  15308. CFLAGS="$save_CFLAGS"
  15309. if test x$have_gcc_sse2 = xyes; then
  15310. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15311. SUMMARY_math="${SUMMARY_math} sse2"
  15312. fi
  15313. fi
  15314. # Check whether --enable-sse3 was given.
  15315. if test "${enable_sse3+set}" = set; then :
  15316. enableval=$enable_sse3;
  15317. else
  15318. enable_sse3=$default_ssemath
  15319. fi
  15320. if test x$enable_sse3 = xyes; then
  15321. save_CFLAGS="$CFLAGS"
  15322. have_gcc_sse3=no
  15323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15324. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15325. sse3_CFLAGS="-msse3"
  15326. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15328. /* end confdefs.h. */
  15329. #ifdef __MINGW32__
  15330. #include <_mingw.h>
  15331. #ifdef __MINGW64_VERSION_MAJOR
  15332. #include <intrin.h>
  15333. #else
  15334. #include <pmmintrin.h>
  15335. #endif
  15336. #else
  15337. #include <pmmintrin.h>
  15338. #endif
  15339. #ifndef __SSE2__
  15340. #error Assembler CPP flag not enabled
  15341. #endif
  15342. int
  15343. main ()
  15344. {
  15345. ;
  15346. return 0;
  15347. }
  15348. _ACEOF
  15349. if ac_fn_c_try_compile "$LINENO"; then :
  15350. have_gcc_sse3=yes
  15351. fi
  15352. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15354. $as_echo "$have_gcc_sse3" >&6; }
  15355. CFLAGS="$save_CFLAGS"
  15356. if test x$have_gcc_sse3 = xyes; then
  15357. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15358. SUMMARY_math="${SUMMARY_math} sse3"
  15359. fi
  15360. fi
  15361. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15362. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15363. have_immintrin_h_hdr=yes
  15364. else
  15365. have_immintrin_h_hdr=no
  15366. fi
  15367. if test x$have_immintrin_h_hdr = xyes; then
  15368. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15369. fi
  15370. # Check whether --enable-altivec was given.
  15371. if test "${enable_altivec+set}" = set; then :
  15372. enableval=$enable_altivec;
  15373. else
  15374. enable_altivec=yes
  15375. fi
  15376. if test x$enable_altivec = xyes; then
  15377. save_CFLAGS="$CFLAGS"
  15378. have_gcc_altivec=no
  15379. have_altivec_h_hdr=no
  15380. altivec_CFLAGS="-maltivec"
  15381. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15383. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15385. /* end confdefs.h. */
  15386. #include <altivec.h>
  15387. vector unsigned int vzero() {
  15388. return vec_splat_u32(0);
  15389. }
  15390. int
  15391. main ()
  15392. {
  15393. ;
  15394. return 0;
  15395. }
  15396. _ACEOF
  15397. if ac_fn_c_try_compile "$LINENO"; then :
  15398. have_gcc_altivec=yes
  15399. have_altivec_h_hdr=yes
  15400. fi
  15401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15403. $as_echo "$have_gcc_altivec" >&6; }
  15404. if test x$have_gcc_altivec = xno; then
  15405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15406. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15408. /* end confdefs.h. */
  15409. vector unsigned int vzero() {
  15410. return vec_splat_u32(0);
  15411. }
  15412. int
  15413. main ()
  15414. {
  15415. ;
  15416. return 0;
  15417. }
  15418. _ACEOF
  15419. if ac_fn_c_try_compile "$LINENO"; then :
  15420. have_gcc_altivec=yes
  15421. fi
  15422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15424. $as_echo "$have_gcc_altivec" >&6; }
  15425. fi
  15426. if test x$have_gcc_altivec = xno; then
  15427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15428. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15429. altivec_CFLAGS="-faltivec"
  15430. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15432. /* end confdefs.h. */
  15433. #include <altivec.h>
  15434. vector unsigned int vzero() {
  15435. return vec_splat_u32(0);
  15436. }
  15437. int
  15438. main ()
  15439. {
  15440. ;
  15441. return 0;
  15442. }
  15443. _ACEOF
  15444. if ac_fn_c_try_compile "$LINENO"; then :
  15445. have_gcc_altivec=yes
  15446. have_altivec_h_hdr=yes
  15447. fi
  15448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15450. $as_echo "$have_gcc_altivec" >&6; }
  15451. fi
  15452. if test x$have_gcc_altivec = xno; then
  15453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15454. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15456. /* end confdefs.h. */
  15457. vector unsigned int vzero() {
  15458. return vec_splat_u32(0);
  15459. }
  15460. int
  15461. main ()
  15462. {
  15463. ;
  15464. return 0;
  15465. }
  15466. _ACEOF
  15467. if ac_fn_c_try_compile "$LINENO"; then :
  15468. have_gcc_altivec=yes
  15469. fi
  15470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15472. $as_echo "$have_gcc_altivec" >&6; }
  15473. fi
  15474. CFLAGS="$save_CFLAGS"
  15475. if test x$have_gcc_altivec = xyes; then
  15476. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15477. if test x$have_altivec_h_hdr = xyes; then
  15478. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15479. fi
  15480. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15481. SUMMARY_math="${SUMMARY_math} altivec"
  15482. fi
  15483. fi
  15484. fi
  15485. CheckOSS()
  15486. {
  15487. # Check whether --enable-oss was given.
  15488. if test "${enable_oss+set}" = set; then :
  15489. enableval=$enable_oss;
  15490. else
  15491. enable_oss=maybe
  15492. fi
  15493. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15494. # use sndio instead. So on there, we default to disabled. You can force
  15495. # it on if you really want, though.
  15496. if test x$enable_oss = xmaybe; then
  15497. enable_oss=yes
  15498. case "$host" in
  15499. *-*-openbsd*)
  15500. enable_oss=no;;
  15501. esac
  15502. fi
  15503. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15505. $as_echo_n "checking for OSS audio support... " >&6; }
  15506. have_oss=no
  15507. if test x$have_oss != xyes; then
  15508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15509. /* end confdefs.h. */
  15510. #include <sys/soundcard.h>
  15511. int
  15512. main ()
  15513. {
  15514. int arg = SNDCTL_DSP_SETFRAGMENT;
  15515. ;
  15516. return 0;
  15517. }
  15518. _ACEOF
  15519. if ac_fn_c_try_compile "$LINENO"; then :
  15520. have_oss=yes
  15521. fi
  15522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15523. fi
  15524. if test x$have_oss != xyes; then
  15525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15526. /* end confdefs.h. */
  15527. #include <soundcard.h>
  15528. int
  15529. main ()
  15530. {
  15531. int arg = SNDCTL_DSP_SETFRAGMENT;
  15532. ;
  15533. return 0;
  15534. }
  15535. _ACEOF
  15536. if ac_fn_c_try_compile "$LINENO"; then :
  15537. have_oss=yes
  15538. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15539. fi
  15540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15541. fi
  15542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15543. $as_echo "$have_oss" >&6; }
  15544. if test x$have_oss = xyes; then
  15545. SUMMARY_audio="${SUMMARY_audio} oss"
  15546. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15547. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15548. have_audio=yes
  15549. # We may need to link with ossaudio emulation library
  15550. case "$host" in
  15551. *-*-openbsd*|*-*-netbsd*)
  15552. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15553. esac
  15554. fi
  15555. fi
  15556. }
  15557. CheckALSA()
  15558. {
  15559. # Check whether --enable-alsa was given.
  15560. if test "${enable_alsa+set}" = set; then :
  15561. enableval=$enable_alsa;
  15562. else
  15563. enable_alsa=yes
  15564. fi
  15565. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15566. alsa_save_CFLAGS="$CFLAGS"
  15567. alsa_save_LDFLAGS="$LDFLAGS"
  15568. alsa_save_LIBS="$LIBS"
  15569. alsa_found=yes
  15570. # Check whether --with-alsa-prefix was given.
  15571. if test "${with_alsa_prefix+set}" = set; then :
  15572. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15573. else
  15574. alsa_prefix=""
  15575. fi
  15576. # Check whether --with-alsa-inc-prefix was given.
  15577. if test "${with_alsa_inc_prefix+set}" = set; then :
  15578. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15579. else
  15580. alsa_inc_prefix=""
  15581. fi
  15582. # Check whether --enable-alsatest was given.
  15583. if test "${enable_alsatest+set}" = set; then :
  15584. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15585. else
  15586. enable_alsatest=yes
  15587. fi
  15588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15589. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15590. if test "$alsa_inc_prefix" != "" ; then
  15591. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15592. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15593. fi
  15594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15595. $as_echo "$ALSA_CFLAGS" >&6; }
  15596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15597. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15598. if test "$alsa_prefix" != "" ; then
  15599. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15600. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15601. fi
  15602. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15603. LIBS=`echo $LIBS | sed 's/-lm//'`
  15604. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15605. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15606. LIBS=`echo $LIBS | sed 's/ //'`
  15607. LIBS="$ALSA_LIBS $LIBS"
  15608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15609. $as_echo "$ALSA_LIBS" >&6; }
  15610. min_alsa_version=1.0.11
  15611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15612. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15613. no_alsa=""
  15614. alsa_min_major_version=`echo $min_alsa_version | \
  15615. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15616. alsa_min_minor_version=`echo $min_alsa_version | \
  15617. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15618. alsa_min_micro_version=`echo $min_alsa_version | \
  15619. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15620. ac_ext=c
  15621. ac_cpp='$CPP $CPPFLAGS'
  15622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15626. /* end confdefs.h. */
  15627. #include <alsa/asoundlib.h>
  15628. int
  15629. main ()
  15630. {
  15631. /* ensure backward compatibility */
  15632. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15633. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15634. #endif
  15635. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15636. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15637. #endif
  15638. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15639. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15640. #endif
  15641. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15642. exit(0);
  15643. # else
  15644. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15645. # error not present
  15646. # endif
  15647. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15648. exit(0);
  15649. # else
  15650. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15651. # error not present
  15652. # endif
  15653. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15654. # error not present
  15655. # endif
  15656. # endif
  15657. # endif
  15658. exit(0);
  15659. ;
  15660. return 0;
  15661. }
  15662. _ACEOF
  15663. if ac_fn_c_try_compile "$LINENO"; then :
  15664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15665. $as_echo "found." >&6; }
  15666. else
  15667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15668. $as_echo "not present." >&6; }
  15669. alsa_found=no
  15670. fi
  15671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15672. ac_ext=c
  15673. ac_cpp='$CPP $CPPFLAGS'
  15674. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15675. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15676. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15677. if test "x$enable_alsatest" = "xyes"; then
  15678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15679. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15680. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15681. $as_echo_n "(cached) " >&6
  15682. else
  15683. ac_check_lib_save_LIBS=$LIBS
  15684. LIBS="-lasound $LIBS"
  15685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15686. /* end confdefs.h. */
  15687. /* Override any GCC internal prototype to avoid an error.
  15688. Use char because int might match the return type of a GCC
  15689. builtin and then its argument prototype would still apply. */
  15690. #ifdef __cplusplus
  15691. extern "C"
  15692. #endif
  15693. char snd_ctl_open ();
  15694. int
  15695. main ()
  15696. {
  15697. return snd_ctl_open ();
  15698. ;
  15699. return 0;
  15700. }
  15701. _ACEOF
  15702. if ac_fn_c_try_link "$LINENO"; then :
  15703. ac_cv_lib_asound_snd_ctl_open=yes
  15704. else
  15705. ac_cv_lib_asound_snd_ctl_open=no
  15706. fi
  15707. rm -f core conftest.err conftest.$ac_objext \
  15708. conftest$ac_exeext conftest.$ac_ext
  15709. LIBS=$ac_check_lib_save_LIBS
  15710. fi
  15711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15712. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15713. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15714. cat >>confdefs.h <<_ACEOF
  15715. #define HAVE_LIBASOUND 1
  15716. _ACEOF
  15717. LIBS="-lasound $LIBS"
  15718. else
  15719. alsa_found=no
  15720. fi
  15721. fi
  15722. if test "x$alsa_found" = "xyes" ; then
  15723. have_alsa=yes
  15724. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15725. LIBS=`echo $LIBS | sed 's/ //'`
  15726. LIBS="-lasound $LIBS"
  15727. fi
  15728. if test "x$alsa_found" = "xno" ; then
  15729. have_alsa=no
  15730. CFLAGS="$alsa_save_CFLAGS"
  15731. LDFLAGS="$alsa_save_LDFLAGS"
  15732. LIBS="$alsa_save_LIBS"
  15733. ALSA_CFLAGS=""
  15734. ALSA_LIBS=""
  15735. fi
  15736. # Restore all flags from before the ALSA detection runs
  15737. CFLAGS="$alsa_save_CFLAGS"
  15738. LDFLAGS="$alsa_save_LDFLAGS"
  15739. LIBS="$alsa_save_LIBS"
  15740. if test x$have_alsa = xyes; then
  15741. # Check whether --enable-alsa-shared was given.
  15742. if test "${enable_alsa_shared+set}" = set; then :
  15743. enableval=$enable_alsa_shared;
  15744. else
  15745. enable_alsa_shared=yes
  15746. fi
  15747. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15748. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15749. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15750. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15751. if test x$have_loadso != xyes && \
  15752. test x$enable_alsa_shared = xyes; then
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15754. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15755. fi
  15756. if test x$have_loadso = xyes && \
  15757. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15758. echo "-- dynamic libasound -> $alsa_lib"
  15759. cat >>confdefs.h <<_ACEOF
  15760. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15761. _ACEOF
  15762. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15763. else
  15764. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15765. SUMMARY_audio="${SUMMARY_audio} alsa"
  15766. fi
  15767. have_audio=yes
  15768. fi
  15769. fi
  15770. }
  15771. CheckJACK()
  15772. {
  15773. # Check whether --enable-jack was given.
  15774. if test "${enable_jack+set}" = set; then :
  15775. enableval=$enable_jack;
  15776. else
  15777. enable_jack=yes
  15778. fi
  15779. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15780. pkg_failed=no
  15781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
  15782. $as_echo_n "checking for JACK... " >&6; }
  15783. if test -n "$JACK_CFLAGS"; then
  15784. pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
  15785. elif test -n "$PKG_CONFIG"; then
  15786. if test -n "$PKG_CONFIG" && \
  15787. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15788. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15789. ac_status=$?
  15790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15791. test $ac_status = 0; }; then
  15792. pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
  15793. else
  15794. pkg_failed=yes
  15795. fi
  15796. else
  15797. pkg_failed=untried
  15798. fi
  15799. if test -n "$JACK_LIBS"; then
  15800. pkg_cv_JACK_LIBS="$JACK_LIBS"
  15801. elif test -n "$PKG_CONFIG"; then
  15802. if test -n "$PKG_CONFIG" && \
  15803. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
  15804. ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
  15805. ac_status=$?
  15806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15807. test $ac_status = 0; }; then
  15808. pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
  15809. else
  15810. pkg_failed=yes
  15811. fi
  15812. else
  15813. pkg_failed=untried
  15814. fi
  15815. if test $pkg_failed = yes; then
  15816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15817. $as_echo "no" >&6; }
  15818. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  15819. _pkg_short_errors_supported=yes
  15820. else
  15821. _pkg_short_errors_supported=no
  15822. fi
  15823. if test $_pkg_short_errors_supported = yes; then
  15824. JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
  15825. else
  15826. JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
  15827. fi
  15828. # Put the nasty error message in config.log where it belongs
  15829. echo "$JACK_PKG_ERRORS" >&5
  15830. audio_jack=no
  15831. elif test $pkg_failed = untried; then
  15832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15833. $as_echo "no" >&6; }
  15834. audio_jack=no
  15835. else
  15836. JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
  15837. JACK_LIBS=$pkg_cv_JACK_LIBS
  15838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15839. $as_echo "yes" >&6; }
  15840. audio_jack=yes
  15841. fi
  15842. if test x$audio_jack = xyes; then
  15843. # Check whether --enable-jack-shared was given.
  15844. if test "${enable_jack_shared+set}" = set; then :
  15845. enableval=$enable_jack_shared;
  15846. else
  15847. enable_jack_shared=yes
  15848. fi
  15849. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15850. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15851. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15852. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15853. if test x$have_loadso != xyes && \
  15854. test x$enable_jack_shared = xyes; then
  15855. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15856. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15857. fi
  15858. if test x$have_loadso = xyes && \
  15859. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15860. echo "-- dynamic libjack -> $jack_lib"
  15861. cat >>confdefs.h <<_ACEOF
  15862. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15863. _ACEOF
  15864. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15865. case "$host" in
  15866. # On Solaris, jack must be linked deferred explicitly
  15867. # to prevent undefined symbol failures.
  15868. *-*-solaris*)
  15869. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15870. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15871. esac
  15872. else
  15873. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15874. SUMMARY_audio="${SUMMARY_audio} jack"
  15875. fi
  15876. have_audio=yes
  15877. fi
  15878. fi
  15879. }
  15880. CheckESD()
  15881. {
  15882. # Check whether --enable-esd was given.
  15883. if test "${enable_esd+set}" = set; then :
  15884. enableval=$enable_esd;
  15885. else
  15886. enable_esd=yes
  15887. fi
  15888. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15889. # Check whether --with-esd-prefix was given.
  15890. if test "${with_esd_prefix+set}" = set; then :
  15891. withval=$with_esd_prefix; esd_prefix="$withval"
  15892. else
  15893. esd_prefix=""
  15894. fi
  15895. # Check whether --with-esd-exec-prefix was given.
  15896. if test "${with_esd_exec_prefix+set}" = set; then :
  15897. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15898. else
  15899. esd_exec_prefix=""
  15900. fi
  15901. # Check whether --enable-esdtest was given.
  15902. if test "${enable_esdtest+set}" = set; then :
  15903. enableval=$enable_esdtest;
  15904. else
  15905. enable_esdtest=yes
  15906. fi
  15907. if test x$esd_exec_prefix != x ; then
  15908. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15909. if test x${ESD_CONFIG+set} != xset ; then
  15910. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15911. fi
  15912. fi
  15913. if test x$esd_prefix != x ; then
  15914. esd_args="$esd_args --prefix=$esd_prefix"
  15915. if test x${ESD_CONFIG+set} != xset ; then
  15916. ESD_CONFIG=$esd_prefix/bin/esd-config
  15917. fi
  15918. fi
  15919. # Extract the first word of "esd-config", so it can be a program name with args.
  15920. set dummy esd-config; ac_word=$2
  15921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15922. $as_echo_n "checking for $ac_word... " >&6; }
  15923. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15924. $as_echo_n "(cached) " >&6
  15925. else
  15926. case $ESD_CONFIG in
  15927. [\\/]* | ?:[\\/]*)
  15928. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15929. ;;
  15930. *)
  15931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15932. for as_dir in $PATH
  15933. do
  15934. IFS=$as_save_IFS
  15935. test -z "$as_dir" && as_dir=.
  15936. for ac_exec_ext in '' $ac_executable_extensions; do
  15937. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15938. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15940. break 2
  15941. fi
  15942. done
  15943. done
  15944. IFS=$as_save_IFS
  15945. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15946. ;;
  15947. esac
  15948. fi
  15949. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15950. if test -n "$ESD_CONFIG"; then
  15951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15952. $as_echo "$ESD_CONFIG" >&6; }
  15953. else
  15954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15955. $as_echo "no" >&6; }
  15956. fi
  15957. min_esd_version=0.2.8
  15958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15959. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15960. no_esd=""
  15961. if test "$ESD_CONFIG" = "no" ; then
  15962. no_esd=yes
  15963. else
  15964. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15965. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15966. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15967. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15968. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15969. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15970. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15971. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15972. if test "x$enable_esdtest" = "xyes" ; then
  15973. ac_save_CFLAGS="$CFLAGS"
  15974. ac_save_LIBS="$LIBS"
  15975. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15976. LIBS="$LIBS $ESD_LIBS"
  15977. rm -f conf.esdtest
  15978. if test "$cross_compiling" = yes; then :
  15979. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15980. else
  15981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15982. /* end confdefs.h. */
  15983. #include <stdio.h>
  15984. #include <stdlib.h>
  15985. #include <string.h>
  15986. #include <esd.h>
  15987. char*
  15988. my_strdup (char *str)
  15989. {
  15990. char *new_str;
  15991. if (str)
  15992. {
  15993. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15994. strcpy (new_str, str);
  15995. }
  15996. else
  15997. new_str = NULL;
  15998. return new_str;
  15999. }
  16000. int main ()
  16001. {
  16002. int major, minor, micro;
  16003. char *tmp_version;
  16004. system ("touch conf.esdtest");
  16005. /* HP/UX 9 (%@#!) writes to sscanf strings */
  16006. tmp_version = my_strdup("$min_esd_version");
  16007. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  16008. printf("%s, bad version string\n", "$min_esd_version");
  16009. exit(1);
  16010. }
  16011. if (($esd_major_version > major) ||
  16012. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  16013. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  16014. {
  16015. return 0;
  16016. }
  16017. else
  16018. {
  16019. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  16020. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  16021. printf("*** best to upgrade to the required version.\n");
  16022. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  16023. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  16024. printf("*** config.cache before re-running configure\n");
  16025. return 1;
  16026. }
  16027. }
  16028. _ACEOF
  16029. if ac_fn_c_try_run "$LINENO"; then :
  16030. else
  16031. no_esd=yes
  16032. fi
  16033. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16034. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16035. fi
  16036. CFLAGS="$ac_save_CFLAGS"
  16037. LIBS="$ac_save_LIBS"
  16038. fi
  16039. fi
  16040. if test "x$no_esd" = x ; then
  16041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16042. $as_echo "yes" >&6; }
  16043. have_esd=yes
  16044. else
  16045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16046. $as_echo "no" >&6; }
  16047. if test "$ESD_CONFIG" = "no" ; then
  16048. echo "*** The esd-config script installed by ESD could not be found"
  16049. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  16050. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  16051. echo "*** full path to esd-config."
  16052. else
  16053. if test -f conf.esdtest ; then
  16054. :
  16055. else
  16056. echo "*** Could not run ESD test program, checking why..."
  16057. CFLAGS="$CFLAGS $ESD_CFLAGS"
  16058. LIBS="$LIBS $ESD_LIBS"
  16059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16060. /* end confdefs.h. */
  16061. #include <stdio.h>
  16062. #include <esd.h>
  16063. int
  16064. main ()
  16065. {
  16066. return 0;
  16067. ;
  16068. return 0;
  16069. }
  16070. _ACEOF
  16071. if ac_fn_c_try_link "$LINENO"; then :
  16072. echo "*** The test program compiled, but did not run. This usually means"
  16073. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  16074. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  16075. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  16076. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  16077. echo "*** is required on your system"
  16078. echo "***"
  16079. echo "*** If you have an old version installed, it is best to remove it, although"
  16080. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  16081. else
  16082. echo "*** The test program failed to compile or link. See the file config.log for the"
  16083. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  16084. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  16085. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  16086. fi
  16087. rm -f core conftest.err conftest.$ac_objext \
  16088. conftest$ac_exeext conftest.$ac_ext
  16089. CFLAGS="$ac_save_CFLAGS"
  16090. LIBS="$ac_save_LIBS"
  16091. fi
  16092. fi
  16093. ESD_CFLAGS=""
  16094. ESD_LIBS=""
  16095. have_esd=no
  16096. fi
  16097. rm -f conf.esdtest
  16098. if test x$have_esd = xyes; then
  16099. # Check whether --enable-esd-shared was given.
  16100. if test "${enable_esd_shared+set}" = set; then :
  16101. enableval=$enable_esd_shared;
  16102. else
  16103. enable_esd_shared=yes
  16104. fi
  16105. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16106. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  16107. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  16108. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  16109. if test x$have_loadso != xyes && \
  16110. test x$enable_esd_shared = xyes; then
  16111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  16112. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  16113. fi
  16114. if test x$have_loadso = xyes && \
  16115. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  16116. echo "-- dynamic libesd -> $esd_lib"
  16117. cat >>confdefs.h <<_ACEOF
  16118. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  16119. _ACEOF
  16120. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  16121. else
  16122. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  16123. SUMMARY_audio="${SUMMARY_audio} esd"
  16124. fi
  16125. have_audio=yes
  16126. fi
  16127. fi
  16128. }
  16129. CheckPulseAudio()
  16130. {
  16131. # Check whether --enable-pulseaudio was given.
  16132. if test "${enable_pulseaudio+set}" = set; then :
  16133. enableval=$enable_pulseaudio;
  16134. else
  16135. enable_pulseaudio=yes
  16136. fi
  16137. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  16138. pkg_failed=no
  16139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
  16140. $as_echo_n "checking for PULSEAUDIO... " >&6; }
  16141. if test -n "$PULSEAUDIO_CFLAGS"; then
  16142. pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
  16143. elif test -n "$PKG_CONFIG"; then
  16144. if test -n "$PKG_CONFIG" && \
  16145. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16146. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16147. ac_status=$?
  16148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16149. test $ac_status = 0; }; then
  16150. pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
  16151. else
  16152. pkg_failed=yes
  16153. fi
  16154. else
  16155. pkg_failed=untried
  16156. fi
  16157. if test -n "$PULSEAUDIO_LIBS"; then
  16158. pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
  16159. elif test -n "$PKG_CONFIG"; then
  16160. if test -n "$PKG_CONFIG" && \
  16161. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
  16162. ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
  16163. ac_status=$?
  16164. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16165. test $ac_status = 0; }; then
  16166. pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
  16167. else
  16168. pkg_failed=yes
  16169. fi
  16170. else
  16171. pkg_failed=untried
  16172. fi
  16173. if test $pkg_failed = yes; then
  16174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16175. $as_echo "no" >&6; }
  16176. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16177. _pkg_short_errors_supported=yes
  16178. else
  16179. _pkg_short_errors_supported=no
  16180. fi
  16181. if test $_pkg_short_errors_supported = yes; then
  16182. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
  16183. else
  16184. PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
  16185. fi
  16186. # Put the nasty error message in config.log where it belongs
  16187. echo "$PULSEAUDIO_PKG_ERRORS" >&5
  16188. audio_pulseaudio=no
  16189. elif test $pkg_failed = untried; then
  16190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16191. $as_echo "no" >&6; }
  16192. audio_pulseaudio=no
  16193. else
  16194. PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
  16195. PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
  16196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16197. $as_echo "yes" >&6; }
  16198. audio_pulseaudio=yes
  16199. fi
  16200. if test x$audio_pulseaudio = xyes; then
  16201. # Check whether --enable-pulseaudio-shared was given.
  16202. if test "${enable_pulseaudio_shared+set}" = set; then :
  16203. enableval=$enable_pulseaudio_shared;
  16204. else
  16205. enable_pulseaudio_shared=yes
  16206. fi
  16207. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16208. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  16209. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  16210. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  16211. if test x$have_loadso != xyes && \
  16212. test x$enable_pulseaudio_shared = xyes; then
  16213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  16214. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  16215. fi
  16216. if test x$have_loadso = xyes && \
  16217. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  16218. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  16219. cat >>confdefs.h <<_ACEOF
  16220. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  16221. _ACEOF
  16222. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  16223. case "$host" in
  16224. # On Solaris, pulseaudio must be linked deferred explicitly
  16225. # to prevent undefined symbol failures.
  16226. *-*-solaris*)
  16227. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  16228. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  16229. esac
  16230. else
  16231. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  16232. SUMMARY_audio="${SUMMARY_audio} pulse"
  16233. fi
  16234. have_audio=yes
  16235. fi
  16236. fi
  16237. }
  16238. CheckARTSC()
  16239. {
  16240. # Check whether --enable-arts was given.
  16241. if test "${enable_arts+set}" = set; then :
  16242. enableval=$enable_arts;
  16243. else
  16244. enable_arts=yes
  16245. fi
  16246. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  16247. # Extract the first word of "artsc-config", so it can be a program name with args.
  16248. set dummy artsc-config; ac_word=$2
  16249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16250. $as_echo_n "checking for $ac_word... " >&6; }
  16251. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  16252. $as_echo_n "(cached) " >&6
  16253. else
  16254. case $ARTSCONFIG in
  16255. [\\/]* | ?:[\\/]*)
  16256. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  16257. ;;
  16258. *)
  16259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16260. for as_dir in $PATH
  16261. do
  16262. IFS=$as_save_IFS
  16263. test -z "$as_dir" && as_dir=.
  16264. for ac_exec_ext in '' $ac_executable_extensions; do
  16265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16266. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  16267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16268. break 2
  16269. fi
  16270. done
  16271. done
  16272. IFS=$as_save_IFS
  16273. ;;
  16274. esac
  16275. fi
  16276. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  16277. if test -n "$ARTSCONFIG"; then
  16278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  16279. $as_echo "$ARTSCONFIG" >&6; }
  16280. else
  16281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16282. $as_echo "no" >&6; }
  16283. fi
  16284. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  16285. : # arts isn't installed
  16286. else
  16287. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  16288. ARTS_LIBS=`$ARTSCONFIG --libs`
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  16290. $as_echo_n "checking for aRts development environment... " >&6; }
  16291. audio_arts=no
  16292. save_CFLAGS="$CFLAGS"
  16293. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16295. /* end confdefs.h. */
  16296. #include <artsc.h>
  16297. int
  16298. main ()
  16299. {
  16300. arts_stream_t stream;
  16301. ;
  16302. return 0;
  16303. }
  16304. _ACEOF
  16305. if ac_fn_c_try_compile "$LINENO"; then :
  16306. audio_arts=yes
  16307. fi
  16308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16309. CFLAGS="$save_CFLAGS"
  16310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16311. $as_echo "$audio_arts" >&6; }
  16312. if test x$audio_arts = xyes; then
  16313. # Check whether --enable-arts-shared was given.
  16314. if test "${enable_arts_shared+set}" = set; then :
  16315. enableval=$enable_arts_shared;
  16316. else
  16317. enable_arts_shared=yes
  16318. fi
  16319. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16320. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16321. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16322. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16323. if test x$have_loadso != xyes && \
  16324. test x$enable_arts_shared = xyes; then
  16325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16326. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16327. fi
  16328. if test x$have_loadso = xyes && \
  16329. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16330. echo "-- dynamic libartsc -> $arts_lib"
  16331. cat >>confdefs.h <<_ACEOF
  16332. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16333. _ACEOF
  16334. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16335. else
  16336. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16337. SUMMARY_audio="${SUMMARY_audio} arts"
  16338. fi
  16339. have_audio=yes
  16340. fi
  16341. fi
  16342. fi
  16343. }
  16344. CheckNAS()
  16345. {
  16346. # Check whether --enable-nas was given.
  16347. if test "${enable_nas+set}" = set; then :
  16348. enableval=$enable_nas;
  16349. else
  16350. enable_nas=yes
  16351. fi
  16352. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16353. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16354. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16355. have_nas_hdr=yes
  16356. fi
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16358. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16359. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16360. $as_echo_n "(cached) " >&6
  16361. else
  16362. ac_check_lib_save_LIBS=$LIBS
  16363. LIBS="-laudio $LIBS"
  16364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16365. /* end confdefs.h. */
  16366. /* Override any GCC internal prototype to avoid an error.
  16367. Use char because int might match the return type of a GCC
  16368. builtin and then its argument prototype would still apply. */
  16369. #ifdef __cplusplus
  16370. extern "C"
  16371. #endif
  16372. char AuOpenServer ();
  16373. int
  16374. main ()
  16375. {
  16376. return AuOpenServer ();
  16377. ;
  16378. return 0;
  16379. }
  16380. _ACEOF
  16381. if ac_fn_c_try_link "$LINENO"; then :
  16382. ac_cv_lib_audio_AuOpenServer=yes
  16383. else
  16384. ac_cv_lib_audio_AuOpenServer=no
  16385. fi
  16386. rm -f core conftest.err conftest.$ac_objext \
  16387. conftest$ac_exeext conftest.$ac_ext
  16388. LIBS=$ac_check_lib_save_LIBS
  16389. fi
  16390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16391. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16392. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16393. have_nas_lib=yes
  16394. fi
  16395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16396. $as_echo_n "checking for NAS audio support... " >&6; }
  16397. have_nas=no
  16398. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16399. have_nas=yes
  16400. NAS_LIBS="-laudio"
  16401. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16402. have_nas=yes
  16403. NAS_CFLAGS="-I/usr/X11R6/include/"
  16404. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16405. fi
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16407. $as_echo "$have_nas" >&6; }
  16408. if test x$have_nas = xyes; then
  16409. # Check whether --enable-nas-shared was given.
  16410. if test "${enable_nas_shared+set}" = set; then :
  16411. enableval=$enable_nas_shared;
  16412. else
  16413. enable_nas_shared=yes
  16414. fi
  16415. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16416. if test x$have_loadso != xyes && \
  16417. test x$enable_nas_shared = xyes; then
  16418. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16419. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16420. fi
  16421. if test x$have_loadso = xyes && \
  16422. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16423. echo "-- dynamic libaudio -> $nas_lib"
  16424. cat >>confdefs.h <<_ACEOF
  16425. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16426. _ACEOF
  16427. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16428. else
  16429. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16430. SUMMARY_audio="${SUMMARY_audio} nas"
  16431. fi
  16432. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16433. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16434. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16435. have_audio=yes
  16436. fi
  16437. fi
  16438. }
  16439. CheckSNDIO()
  16440. {
  16441. # Check whether --enable-sndio was given.
  16442. if test "${enable_sndio+set}" = set; then :
  16443. enableval=$enable_sndio;
  16444. else
  16445. enable_sndio=yes
  16446. fi
  16447. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16448. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16449. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16450. have_sndio_hdr=yes
  16451. fi
  16452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16453. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16454. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16455. $as_echo_n "(cached) " >&6
  16456. else
  16457. ac_check_lib_save_LIBS=$LIBS
  16458. LIBS="-lsndio $LIBS"
  16459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16460. /* end confdefs.h. */
  16461. /* Override any GCC internal prototype to avoid an error.
  16462. Use char because int might match the return type of a GCC
  16463. builtin and then its argument prototype would still apply. */
  16464. #ifdef __cplusplus
  16465. extern "C"
  16466. #endif
  16467. char sio_open ();
  16468. int
  16469. main ()
  16470. {
  16471. return sio_open ();
  16472. ;
  16473. return 0;
  16474. }
  16475. _ACEOF
  16476. if ac_fn_c_try_link "$LINENO"; then :
  16477. ac_cv_lib_sndio_sio_open=yes
  16478. else
  16479. ac_cv_lib_sndio_sio_open=no
  16480. fi
  16481. rm -f core conftest.err conftest.$ac_objext \
  16482. conftest$ac_exeext conftest.$ac_ext
  16483. LIBS=$ac_check_lib_save_LIBS
  16484. fi
  16485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16486. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16487. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16488. have_sndio_lib=yes
  16489. fi
  16490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16491. $as_echo_n "checking for sndio audio support... " >&6; }
  16492. have_sndio=no
  16493. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16494. have_sndio=yes
  16495. SNDIO_LIBS="-lsndio"
  16496. fi
  16497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16498. $as_echo "$have_sndio" >&6; }
  16499. if test x$have_sndio = xyes; then
  16500. # Check whether --enable-sndio-shared was given.
  16501. if test "${enable_sndio_shared+set}" = set; then :
  16502. enableval=$enable_sndio_shared;
  16503. else
  16504. enable_sndio_shared=yes
  16505. fi
  16506. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16507. if test x$have_loadso != xyes && \
  16508. test x$enable_sndio_shared = xyes; then
  16509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16510. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16511. fi
  16512. if test x$have_loadso = xyes && \
  16513. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16514. echo "-- dynamic libsndio -> $sndio_lib"
  16515. cat >>confdefs.h <<_ACEOF
  16516. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16517. _ACEOF
  16518. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16519. else
  16520. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16521. SUMMARY_audio="${SUMMARY_audio} sndio"
  16522. fi
  16523. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16524. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16525. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16526. have_audio=yes
  16527. fi
  16528. fi
  16529. }
  16530. CheckFusionSound()
  16531. {
  16532. # Check whether --enable-fusionsound was given.
  16533. if test "${enable_fusionsound+set}" = set; then :
  16534. enableval=$enable_fusionsound;
  16535. else
  16536. enable_fusionsound=no
  16537. fi
  16538. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16539. pkg_failed=no
  16540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
  16541. $as_echo_n "checking for FUSIONSOUND... " >&6; }
  16542. if test -n "$FUSIONSOUND_CFLAGS"; then
  16543. pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
  16544. elif test -n "$PKG_CONFIG"; then
  16545. if test -n "$PKG_CONFIG" && \
  16546. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16547. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16548. ac_status=$?
  16549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16550. test $ac_status = 0; }; then
  16551. pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
  16552. else
  16553. pkg_failed=yes
  16554. fi
  16555. else
  16556. pkg_failed=untried
  16557. fi
  16558. if test -n "$FUSIONSOUND_LIBS"; then
  16559. pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
  16560. elif test -n "$PKG_CONFIG"; then
  16561. if test -n "$PKG_CONFIG" && \
  16562. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
  16563. ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
  16564. ac_status=$?
  16565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16566. test $ac_status = 0; }; then
  16567. pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
  16568. else
  16569. pkg_failed=yes
  16570. fi
  16571. else
  16572. pkg_failed=untried
  16573. fi
  16574. if test $pkg_failed = yes; then
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16576. $as_echo "no" >&6; }
  16577. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16578. _pkg_short_errors_supported=yes
  16579. else
  16580. _pkg_short_errors_supported=no
  16581. fi
  16582. if test $_pkg_short_errors_supported = yes; then
  16583. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
  16584. else
  16585. FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
  16586. fi
  16587. # Put the nasty error message in config.log where it belongs
  16588. echo "$FUSIONSOUND_PKG_ERRORS" >&5
  16589. fusionsound=no
  16590. elif test $pkg_failed = untried; then
  16591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16592. $as_echo "no" >&6; }
  16593. fusionsound=no
  16594. else
  16595. FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
  16596. FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
  16597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16598. $as_echo "yes" >&6; }
  16599. fusionsound=yes
  16600. fi
  16601. if test x$fusionsound = xyes; then
  16602. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16603. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16604. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16605. # Check whether --enable-fusionsound-shared was given.
  16606. if test "${enable_fusionsound_shared+set}" = set; then :
  16607. enableval=$enable_fusionsound_shared;
  16608. else
  16609. enable_fusionsound_shared=yes
  16610. fi
  16611. fusionsound_shared=no
  16612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16613. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16614. if test x$have_loadso != xyes && \
  16615. test x$enable_fusionsound_shared = xyes; then
  16616. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16617. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16618. fi
  16619. if test x$have_loadso = xyes && \
  16620. test x$enable_fusionsound_shared = xyes; then
  16621. cat >>confdefs.h <<_ACEOF
  16622. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16623. _ACEOF
  16624. fusionsound_shared=yes
  16625. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16626. else
  16627. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16628. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16629. fi
  16630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16631. $as_echo "$fusionsound_shared" >&6; }
  16632. have_audio=yes
  16633. fi
  16634. fi
  16635. }
  16636. CheckDiskAudio()
  16637. {
  16638. # Check whether --enable-diskaudio was given.
  16639. if test "${enable_diskaudio+set}" = set; then :
  16640. enableval=$enable_diskaudio;
  16641. else
  16642. enable_diskaudio=yes
  16643. fi
  16644. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16645. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16646. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16647. SUMMARY_audio="${SUMMARY_audio} disk"
  16648. fi
  16649. }
  16650. CheckDummyAudio()
  16651. {
  16652. # Check whether --enable-dummyaudio was given.
  16653. if test "${enable_dummyaudio+set}" = set; then :
  16654. enableval=$enable_dummyaudio;
  16655. else
  16656. enable_dummyaudio=yes
  16657. fi
  16658. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16659. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16660. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16661. SUMMARY_audio="${SUMMARY_audio} dummy"
  16662. fi
  16663. }
  16664. CheckLibSampleRate()
  16665. {
  16666. # Check whether --enable-libsamplerate was given.
  16667. if test "${enable_libsamplerate+set}" = set; then :
  16668. enableval=$enable_libsamplerate;
  16669. else
  16670. enable_libsamplerate=yes
  16671. fi
  16672. if test x$enable_libsamplerate = xyes; then
  16673. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16674. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16675. have_samplerate_h_hdr=yes
  16676. else
  16677. have_samplerate_h_hdr=no
  16678. fi
  16679. if test x$have_samplerate_h_hdr = xyes; then
  16680. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16681. # Check whether --enable-libsamplerate-shared was given.
  16682. if test "${enable_libsamplerate_shared+set}" = set; then :
  16683. enableval=$enable_libsamplerate_shared;
  16684. else
  16685. enable_libsamplerate_shared=yes
  16686. fi
  16687. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16688. if test x$have_loadso != xyes && \
  16689. test x$enable_libsamplerate_shared = xyes; then
  16690. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16691. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16692. fi
  16693. if test x$have_loadso = xyes && \
  16694. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16695. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16696. cat >>confdefs.h <<_ACEOF
  16697. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16698. _ACEOF
  16699. else
  16700. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16701. fi
  16702. fi
  16703. fi
  16704. }
  16705. CheckARM()
  16706. {
  16707. # Check whether --enable-arm-simd was given.
  16708. if test "${enable_arm_simd+set}" = set; then :
  16709. enableval=$enable_arm_simd; enable_arm_simd=$enableval
  16710. else
  16711. enable_arm_simd=yes
  16712. fi
  16713. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_simd = xyes; then
  16714. save_CFLAGS="$CFLAGS"
  16715. have_arm_simd=no
  16716. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM SIMD" >&5
  16718. $as_echo_n "checking for ARM SIMD... " >&6; }
  16719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16720. /* end confdefs.h. */
  16721. .text
  16722. .arch armv6
  16723. .object_arch armv4
  16724. .arm
  16725. .altmacro
  16726. #ifndef __ARM_EABI__
  16727. #error EABI is required (to be sure that calling conventions are compatible)
  16728. #endif
  16729. pld [r0]
  16730. uqadd8 r0, r0, r0
  16731. _ACEOF
  16732. if ac_fn_c_try_compile "$LINENO"; then :
  16733. have_arm_simd=yes
  16734. fi
  16735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_simd" >&5
  16737. $as_echo "$have_arm_simd" >&6; }
  16738. CFLAGS="$save_CFLAGS"
  16739. if test x$have_arm_simd = xyes; then
  16740. $as_echo "#define SDL_ARM_SIMD_BLITTERS 1" >>confdefs.h
  16741. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-simd*.S"
  16742. WARN_ABOUT_ARM_SIMD_ASM_MIT="yes"
  16743. fi
  16744. fi
  16745. }
  16746. CheckNEON()
  16747. {
  16748. # Check whether --enable-arm-neon was given.
  16749. if test "${enable_arm_neon+set}" = set; then :
  16750. enableval=$enable_arm_neon; enable_arm_neon=$enableval
  16751. else
  16752. enable_arm_neon=no
  16753. fi
  16754. if test x$enable_video = xyes -a x$enable_assembly = xyes -a x$enable_arm_neon = xyes; then
  16755. save_CFLAGS="$CFLAGS"
  16756. have_arm_neon=no
  16757. CFLAGS="-x assembler-with-cpp $CFLAGS"
  16758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM NEON" >&5
  16759. $as_echo_n "checking for ARM NEON... " >&6; }
  16760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16761. /* end confdefs.h. */
  16762. .text
  16763. .fpu neon
  16764. .arch armv7a
  16765. .object_arch armv4
  16766. .eabi_attribute 10, 0
  16767. .arm
  16768. .altmacro
  16769. #ifndef __ARM_EABI__
  16770. #error EABI is required (to be sure that calling conventions are compatible)
  16771. #endif
  16772. pld [r0]
  16773. vmovn.u16 d0, q0
  16774. _ACEOF
  16775. if ac_fn_c_try_compile "$LINENO"; then :
  16776. have_arm_neon=yes
  16777. fi
  16778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_arm_neon" >&5
  16780. $as_echo "$have_arm_neon" >&6; }
  16781. CFLAGS="$save_CFLAGS"
  16782. if test x$have_arm_neon = xyes; then
  16783. $as_echo "#define SDL_ARM_NEON_BLITTERS 1" >>confdefs.h
  16784. SOURCES="$SOURCES $srcdir/src/video/arm/pixman-arm-neon*.S"
  16785. WARN_ABOUT_ARM_NEON_ASM_MIT="yes"
  16786. fi
  16787. fi
  16788. }
  16789. CheckVisibilityHidden()
  16790. {
  16791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16792. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16793. have_gcc_fvisibility=no
  16794. visibility_CFLAGS="-fvisibility=hidden"
  16795. save_CFLAGS="$CFLAGS"
  16796. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16798. /* end confdefs.h. */
  16799. #if !defined(__GNUC__) || __GNUC__ < 4
  16800. #error SDL only uses visibility attributes in GCC 4 or newer
  16801. #endif
  16802. int
  16803. main ()
  16804. {
  16805. ;
  16806. return 0;
  16807. }
  16808. _ACEOF
  16809. if ac_fn_c_try_compile "$LINENO"; then :
  16810. have_gcc_fvisibility=yes
  16811. fi
  16812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16814. $as_echo "$have_gcc_fvisibility" >&6; }
  16815. CFLAGS="$save_CFLAGS"
  16816. if test x$have_gcc_fvisibility = xyes; then
  16817. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16818. fi
  16819. }
  16820. CheckNoStrictAliasing()
  16821. {
  16822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fno-strict-aliasing option" >&5
  16823. $as_echo_n "checking for GCC -fno-strict-aliasing option... " >&6; }
  16824. have_gcc_no_strict_aliasing=no
  16825. save_CFLAGS="$CFLAGS"
  16826. CFLAGS="$save_CFLAGS -fno-strict-aliasing"
  16827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16828. /* end confdefs.h. */
  16829. int x = 0;
  16830. int
  16831. main ()
  16832. {
  16833. ;
  16834. return 0;
  16835. }
  16836. _ACEOF
  16837. if ac_fn_c_try_compile "$LINENO"; then :
  16838. have_gcc_no_strict_aliasing=yes
  16839. fi
  16840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_no_strict_aliasing" >&5
  16842. $as_echo "$have_gcc_no_strict_aliasing" >&6; }
  16843. CFLAGS="$save_CFLAGS"
  16844. if test x$have_gcc_no_strict_aliasing = xyes; then
  16845. EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
  16846. fi
  16847. }
  16848. CheckStackBoundary()
  16849. {
  16850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16851. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16852. have_gcc_preferred_stack_boundary=no
  16853. save_CFLAGS="$CFLAGS"
  16854. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16856. /* end confdefs.h. */
  16857. int x = 0;
  16858. int
  16859. main ()
  16860. {
  16861. ;
  16862. return 0;
  16863. }
  16864. _ACEOF
  16865. if ac_fn_c_try_compile "$LINENO"; then :
  16866. have_gcc_preferred_stack_boundary=yes
  16867. fi
  16868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16870. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16871. CFLAGS="$save_CFLAGS"
  16872. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16873. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16874. fi
  16875. }
  16876. CheckDeclarationAfterStatement()
  16877. {
  16878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16879. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16880. have_gcc_declaration_after_statement=no
  16881. save_CFLAGS="$CFLAGS"
  16882. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16884. /* end confdefs.h. */
  16885. int x = 0;
  16886. int
  16887. main ()
  16888. {
  16889. ;
  16890. return 0;
  16891. }
  16892. _ACEOF
  16893. if ac_fn_c_try_compile "$LINENO"; then :
  16894. have_gcc_declaration_after_statement=yes
  16895. fi
  16896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16898. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16899. CFLAGS="$save_CFLAGS"
  16900. if test x$have_gcc_declaration_after_statement = xyes; then
  16901. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16902. fi
  16903. }
  16904. CheckWarnAll()
  16905. {
  16906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16907. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16908. have_gcc_Wall=no
  16909. save_CFLAGS="$CFLAGS"
  16910. CFLAGS="$save_CFLAGS -Wall"
  16911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16912. /* end confdefs.h. */
  16913. int x = 0;
  16914. int
  16915. main ()
  16916. {
  16917. ;
  16918. return 0;
  16919. }
  16920. _ACEOF
  16921. if ac_fn_c_try_compile "$LINENO"; then :
  16922. have_gcc_Wall=yes
  16923. fi
  16924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16926. $as_echo "$have_gcc_Wall" >&6; }
  16927. CFLAGS="$save_CFLAGS"
  16928. if test x$have_gcc_Wall = xyes; then
  16929. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16931. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16932. need_gcc_Wno_multichar=no
  16933. case "$host" in
  16934. *-*-haiku*)
  16935. need_gcc_Wno_multichar=yes
  16936. ;;
  16937. esac
  16938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16939. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16940. if test x$need_gcc_Wno_multichar = xyes; then
  16941. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16942. fi
  16943. fi
  16944. }
  16945. CheckWayland()
  16946. {
  16947. # Check whether --enable-video-wayland was given.
  16948. if test "${enable_video_wayland+set}" = set; then :
  16949. enableval=$enable_video_wayland;
  16950. else
  16951. enable_video_wayland=yes
  16952. fi
  16953. # Check whether --enable-video-wayland-qt-touch was given.
  16954. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16955. enableval=$enable_video_wayland_qt_touch;
  16956. else
  16957. enable_video_wayland_qt_touch=yes
  16958. fi
  16959. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16961. $as_echo_n "checking for Wayland support... " >&6; }
  16962. video_wayland=no
  16963. if test x$video_opengl_egl = xyes && \
  16964. test x$video_opengles_v2 = xyes; then
  16965. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-egl wayland-cursor egl xkbcommon ; then
  16966. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16967. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16968. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16969. video_wayland=yes
  16970. fi
  16971. fi
  16972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16973. $as_echo "$video_wayland" >&6; }
  16974. if test x$video_wayland = xyes; then
  16975. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16976. if test x$enable_video_wayland_qt_touch = xyes; then
  16977. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16978. fi
  16979. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16980. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16981. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16982. # Check whether --enable-wayland-shared was given.
  16983. if test "${enable_wayland_shared+set}" = set; then :
  16984. enableval=$enable_wayland_shared;
  16985. else
  16986. enable_wayland_shared=maybe
  16987. fi
  16988. case "$host" in
  16989. *)
  16990. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16991. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16992. if test x$wayland_egl_lib = x; then
  16993. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16994. fi
  16995. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16996. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16997. ;;
  16998. esac
  16999. if test x$enable_wayland_shared = xmaybe; then
  17000. enable_wayland_shared=yes
  17001. fi
  17002. if test x$have_loadso != xyes && \
  17003. test x$enable_wayland_shared = xyes; then
  17004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  17005. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  17006. enable_wayland_shared=no
  17007. fi
  17008. if test x$have_loadso = xyes && \
  17009. test x$enable_wayland_shared = xyes && \
  17010. test x$wayland_client_lib != x && \
  17011. test x$wayland_egl_lib != x && \
  17012. test x$wayland_cursor_lib != x && \
  17013. test x$xkbcommon_lib != x; then
  17014. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  17015. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  17016. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  17017. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  17018. cat >>confdefs.h <<_ACEOF
  17019. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  17020. _ACEOF
  17021. cat >>confdefs.h <<_ACEOF
  17022. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  17023. _ACEOF
  17024. cat >>confdefs.h <<_ACEOF
  17025. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  17026. _ACEOF
  17027. cat >>confdefs.h <<_ACEOF
  17028. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  17029. _ACEOF
  17030. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  17031. else
  17032. enable_wayland_shared=no
  17033. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  17034. SUMMARY_video="${SUMMARY_video} wayland"
  17035. fi
  17036. have_video=yes
  17037. fi
  17038. fi
  17039. }
  17040. CheckNativeClient()
  17041. {
  17042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17043. /* end confdefs.h. */
  17044. #if !defined(__native_client__)
  17045. #error "NO NACL"
  17046. #endif
  17047. int
  17048. main ()
  17049. {
  17050. ;
  17051. return 0;
  17052. }
  17053. _ACEOF
  17054. if ac_fn_c_try_compile "$LINENO"; then :
  17055. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  17056. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  17057. $as_echo "#define HAVE_POW 1" >>confdefs.h
  17058. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  17059. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  17060. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  17061. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  17062. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  17063. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  17064. SUMMARY_audio="${SUMMARY_audio} nacl"
  17065. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  17066. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  17067. fi
  17068. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17069. }
  17070. CheckRPI()
  17071. {
  17072. # Check whether --enable-video-rpi was given.
  17073. if test "${enable_video_rpi+set}" = set; then :
  17074. enableval=$enable_video_rpi;
  17075. else
  17076. enable_video_rpi=yes
  17077. fi
  17078. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  17079. pkg_failed=no
  17080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
  17081. $as_echo_n "checking for RPI... " >&6; }
  17082. if test -n "$RPI_CFLAGS"; then
  17083. pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
  17084. elif test -n "$PKG_CONFIG"; then
  17085. if test -n "$PKG_CONFIG" && \
  17086. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17087. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17088. ac_status=$?
  17089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17090. test $ac_status = 0; }; then
  17091. pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
  17092. else
  17093. pkg_failed=yes
  17094. fi
  17095. else
  17096. pkg_failed=untried
  17097. fi
  17098. if test -n "$RPI_LIBS"; then
  17099. pkg_cv_RPI_LIBS="$RPI_LIBS"
  17100. elif test -n "$PKG_CONFIG"; then
  17101. if test -n "$PKG_CONFIG" && \
  17102. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
  17103. ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
  17104. ac_status=$?
  17105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17106. test $ac_status = 0; }; then
  17107. pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
  17108. else
  17109. pkg_failed=yes
  17110. fi
  17111. else
  17112. pkg_failed=untried
  17113. fi
  17114. if test $pkg_failed = yes; then
  17115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17116. $as_echo "no" >&6; }
  17117. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  17118. _pkg_short_errors_supported=yes
  17119. else
  17120. _pkg_short_errors_supported=no
  17121. fi
  17122. if test $_pkg_short_errors_supported = yes; then
  17123. RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
  17124. else
  17125. RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
  17126. fi
  17127. # Put the nasty error message in config.log where it belongs
  17128. echo "$RPI_PKG_ERRORS" >&5
  17129. video_rpi=no
  17130. elif test $pkg_failed = untried; then
  17131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17132. $as_echo "no" >&6; }
  17133. video_rpi=no
  17134. else
  17135. RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
  17136. RPI_LIBS=$pkg_cv_RPI_LIBS
  17137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17138. $as_echo "yes" >&6; }
  17139. video_rpi=yes
  17140. fi
  17141. if test x$video_rpi = xno; then
  17142. if test x$ARCH = xnetbsd; then
  17143. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  17144. RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  17145. else
  17146. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  17147. RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  17148. fi
  17149. fi
  17150. # Save the original compiler flags and libraries
  17151. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  17152. # Add the Raspberry Pi compiler flags and libraries
  17153. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
  17154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  17155. $as_echo_n "checking for Raspberry Pi... " >&6; }
  17156. have_video_rpi=no
  17157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17158. /* end confdefs.h. */
  17159. #include <bcm_host.h>
  17160. int
  17161. main ()
  17162. {
  17163. bcm_host_init();
  17164. ;
  17165. return 0;
  17166. }
  17167. _ACEOF
  17168. if ac_fn_c_try_link "$LINENO"; then :
  17169. have_video_rpi=yes
  17170. fi
  17171. rm -f core conftest.err conftest.$ac_objext \
  17172. conftest$ac_exeext conftest.$ac_ext
  17173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  17174. $as_echo "$have_video_rpi" >&6; }
  17175. # Restore the compiler flags and libraries
  17176. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  17177. if test x$have_video_rpi = xyes; then
  17178. CFLAGS="$CFLAGS $RPI_CFLAGS"
  17179. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  17180. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  17181. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
  17182. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  17183. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  17184. SUMMARY_video="${SUMMARY_video} rpi"
  17185. fi
  17186. fi
  17187. }
  17188. CheckX11()
  17189. {
  17190. # Check whether --enable-video-x11 was given.
  17191. if test "${enable_video_x11+set}" = set; then :
  17192. enableval=$enable_video_x11;
  17193. else
  17194. enable_video_x11=yes
  17195. fi
  17196. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  17197. case "$host" in
  17198. *-*-darwin*)
  17199. # This isn't necessary for X11, but fixes GLX detection
  17200. if test "x$x_includes" = xNONE && \
  17201. test "x$x_libraries" = xNONE && \
  17202. test -d /opt/X11/include && \
  17203. test -d /opt/X11/lib; then
  17204. x_includes="/opt/X11/include"
  17205. x_libraries="/opt/X11/lib"
  17206. fi
  17207. ;;
  17208. esac
  17209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  17210. $as_echo_n "checking for X... " >&6; }
  17211. # Check whether --with-x was given.
  17212. if test "${with_x+set}" = set; then :
  17213. withval=$with_x;
  17214. fi
  17215. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  17216. if test "x$with_x" = xno; then
  17217. # The user explicitly disabled X.
  17218. have_x=disabled
  17219. else
  17220. case $x_includes,$x_libraries in #(
  17221. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  17222. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  17223. $as_echo_n "(cached) " >&6
  17224. else
  17225. # One or both of the vars are not set, and there is no cached value.
  17226. ac_x_includes=no ac_x_libraries=no
  17227. rm -f -r conftest.dir
  17228. if mkdir conftest.dir; then
  17229. cd conftest.dir
  17230. cat >Imakefile <<'_ACEOF'
  17231. incroot:
  17232. @echo incroot='${INCROOT}'
  17233. usrlibdir:
  17234. @echo usrlibdir='${USRLIBDIR}'
  17235. libdir:
  17236. @echo libdir='${LIBDIR}'
  17237. _ACEOF
  17238. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  17239. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  17240. for ac_var in incroot usrlibdir libdir; do
  17241. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  17242. done
  17243. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  17244. for ac_extension in a so sl dylib la dll; do
  17245. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  17246. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  17247. ac_im_usrlibdir=$ac_im_libdir; break
  17248. fi
  17249. done
  17250. # Screen out bogus values from the imake configuration. They are
  17251. # bogus both because they are the default anyway, and because
  17252. # using them would break gcc on systems where it needs fixed includes.
  17253. case $ac_im_incroot in
  17254. /usr/include) ac_x_includes= ;;
  17255. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  17256. esac
  17257. case $ac_im_usrlibdir in
  17258. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  17259. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  17260. esac
  17261. fi
  17262. cd ..
  17263. rm -f -r conftest.dir
  17264. fi
  17265. # Standard set of common directories for X headers.
  17266. # Check X11 before X11Rn because it is often a symlink to the current release.
  17267. ac_x_header_dirs='
  17268. /usr/X11/include
  17269. /usr/X11R7/include
  17270. /usr/X11R6/include
  17271. /usr/X11R5/include
  17272. /usr/X11R4/include
  17273. /usr/include/X11
  17274. /usr/include/X11R7
  17275. /usr/include/X11R6
  17276. /usr/include/X11R5
  17277. /usr/include/X11R4
  17278. /usr/local/X11/include
  17279. /usr/local/X11R7/include
  17280. /usr/local/X11R6/include
  17281. /usr/local/X11R5/include
  17282. /usr/local/X11R4/include
  17283. /usr/local/include/X11
  17284. /usr/local/include/X11R7
  17285. /usr/local/include/X11R6
  17286. /usr/local/include/X11R5
  17287. /usr/local/include/X11R4
  17288. /usr/X386/include
  17289. /usr/x386/include
  17290. /usr/XFree86/include/X11
  17291. /usr/include
  17292. /usr/local/include
  17293. /usr/unsupported/include
  17294. /usr/athena/include
  17295. /usr/local/x11r5/include
  17296. /usr/lpp/Xamples/include
  17297. /usr/openwin/include
  17298. /usr/openwin/share/include'
  17299. if test "$ac_x_includes" = no; then
  17300. # Guess where to find include files, by looking for Xlib.h.
  17301. # First, try using that file with no special directory specified.
  17302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17303. /* end confdefs.h. */
  17304. #include <X11/Xlib.h>
  17305. _ACEOF
  17306. if ac_fn_c_try_cpp "$LINENO"; then :
  17307. # We can compile using X headers with no special include directory.
  17308. ac_x_includes=
  17309. else
  17310. for ac_dir in $ac_x_header_dirs; do
  17311. if test -r "$ac_dir/X11/Xlib.h"; then
  17312. ac_x_includes=$ac_dir
  17313. break
  17314. fi
  17315. done
  17316. fi
  17317. rm -f conftest.err conftest.i conftest.$ac_ext
  17318. fi # $ac_x_includes = no
  17319. if test "$ac_x_libraries" = no; then
  17320. # Check for the libraries.
  17321. # See if we find them without any special options.
  17322. # Don't add to $LIBS permanently.
  17323. ac_save_LIBS=$LIBS
  17324. LIBS="-lX11 $LIBS"
  17325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17326. /* end confdefs.h. */
  17327. #include <X11/Xlib.h>
  17328. int
  17329. main ()
  17330. {
  17331. XrmInitialize ()
  17332. ;
  17333. return 0;
  17334. }
  17335. _ACEOF
  17336. if ac_fn_c_try_link "$LINENO"; then :
  17337. LIBS=$ac_save_LIBS
  17338. # We can link X programs with no special library path.
  17339. ac_x_libraries=
  17340. else
  17341. LIBS=$ac_save_LIBS
  17342. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  17343. do
  17344. # Don't even attempt the hair of trying to link an X program!
  17345. for ac_extension in a so sl dylib la dll; do
  17346. if test -r "$ac_dir/libX11.$ac_extension"; then
  17347. ac_x_libraries=$ac_dir
  17348. break 2
  17349. fi
  17350. done
  17351. done
  17352. fi
  17353. rm -f core conftest.err conftest.$ac_objext \
  17354. conftest$ac_exeext conftest.$ac_ext
  17355. fi # $ac_x_libraries = no
  17356. case $ac_x_includes,$ac_x_libraries in #(
  17357. no,* | *,no | *\'*)
  17358. # Didn't find X, or a directory has "'" in its name.
  17359. ac_cv_have_x="have_x=no";; #(
  17360. *)
  17361. # Record where we found X for the cache.
  17362. ac_cv_have_x="have_x=yes\
  17363. ac_x_includes='$ac_x_includes'\
  17364. ac_x_libraries='$ac_x_libraries'"
  17365. esac
  17366. fi
  17367. ;; #(
  17368. *) have_x=yes;;
  17369. esac
  17370. eval "$ac_cv_have_x"
  17371. fi # $with_x != no
  17372. if test "$have_x" != yes; then
  17373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  17374. $as_echo "$have_x" >&6; }
  17375. no_x=yes
  17376. else
  17377. # If each of the values was on the command line, it overrides each guess.
  17378. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17379. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17380. # Update the cache value to reflect the command line values.
  17381. ac_cv_have_x="have_x=yes\
  17382. ac_x_includes='$x_includes'\
  17383. ac_x_libraries='$x_libraries'"
  17384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17385. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17386. fi
  17387. if test "$no_x" = yes; then
  17388. # Not all programs may use this symbol, but it does not hurt to define it.
  17389. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17390. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17391. else
  17392. if test -n "$x_includes"; then
  17393. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17394. fi
  17395. # It would also be nice to do this for all -L options, not just this one.
  17396. if test -n "$x_libraries"; then
  17397. X_LIBS="$X_LIBS -L$x_libraries"
  17398. # For Solaris; some versions of Sun CC require a space after -R and
  17399. # others require no space. Words are not sufficient . . . .
  17400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17401. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17402. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17403. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17404. ac_c_werror_flag=yes
  17405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17406. /* end confdefs.h. */
  17407. int
  17408. main ()
  17409. {
  17410. ;
  17411. return 0;
  17412. }
  17413. _ACEOF
  17414. if ac_fn_c_try_link "$LINENO"; then :
  17415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17416. $as_echo "no" >&6; }
  17417. X_LIBS="$X_LIBS -R$x_libraries"
  17418. else
  17419. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17421. /* end confdefs.h. */
  17422. int
  17423. main ()
  17424. {
  17425. ;
  17426. return 0;
  17427. }
  17428. _ACEOF
  17429. if ac_fn_c_try_link "$LINENO"; then :
  17430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17431. $as_echo "yes" >&6; }
  17432. X_LIBS="$X_LIBS -R $x_libraries"
  17433. else
  17434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17435. $as_echo "neither works" >&6; }
  17436. fi
  17437. rm -f core conftest.err conftest.$ac_objext \
  17438. conftest$ac_exeext conftest.$ac_ext
  17439. fi
  17440. rm -f core conftest.err conftest.$ac_objext \
  17441. conftest$ac_exeext conftest.$ac_ext
  17442. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17443. LIBS=$ac_xsave_LIBS
  17444. fi
  17445. # Check for system-dependent libraries X programs must link with.
  17446. # Do this before checking for the system-independent R6 libraries
  17447. # (-lICE), since we may need -lsocket or whatever for X linking.
  17448. if test "$ISC" = yes; then
  17449. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17450. else
  17451. # Martyn Johnson says this is needed for Ultrix, if the X
  17452. # libraries were built with DECnet support. And Karl Berry says
  17453. # the Alpha needs dnet_stub (dnet does not exist).
  17454. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17456. /* end confdefs.h. */
  17457. /* Override any GCC internal prototype to avoid an error.
  17458. Use char because int might match the return type of a GCC
  17459. builtin and then its argument prototype would still apply. */
  17460. #ifdef __cplusplus
  17461. extern "C"
  17462. #endif
  17463. char XOpenDisplay ();
  17464. int
  17465. main ()
  17466. {
  17467. return XOpenDisplay ();
  17468. ;
  17469. return 0;
  17470. }
  17471. _ACEOF
  17472. if ac_fn_c_try_link "$LINENO"; then :
  17473. else
  17474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17475. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17476. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17477. $as_echo_n "(cached) " >&6
  17478. else
  17479. ac_check_lib_save_LIBS=$LIBS
  17480. LIBS="-ldnet $LIBS"
  17481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17482. /* end confdefs.h. */
  17483. /* Override any GCC internal prototype to avoid an error.
  17484. Use char because int might match the return type of a GCC
  17485. builtin and then its argument prototype would still apply. */
  17486. #ifdef __cplusplus
  17487. extern "C"
  17488. #endif
  17489. char dnet_ntoa ();
  17490. int
  17491. main ()
  17492. {
  17493. return dnet_ntoa ();
  17494. ;
  17495. return 0;
  17496. }
  17497. _ACEOF
  17498. if ac_fn_c_try_link "$LINENO"; then :
  17499. ac_cv_lib_dnet_dnet_ntoa=yes
  17500. else
  17501. ac_cv_lib_dnet_dnet_ntoa=no
  17502. fi
  17503. rm -f core conftest.err conftest.$ac_objext \
  17504. conftest$ac_exeext conftest.$ac_ext
  17505. LIBS=$ac_check_lib_save_LIBS
  17506. fi
  17507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17508. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17509. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17510. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17511. fi
  17512. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17514. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17515. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17516. $as_echo_n "(cached) " >&6
  17517. else
  17518. ac_check_lib_save_LIBS=$LIBS
  17519. LIBS="-ldnet_stub $LIBS"
  17520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17521. /* end confdefs.h. */
  17522. /* Override any GCC internal prototype to avoid an error.
  17523. Use char because int might match the return type of a GCC
  17524. builtin and then its argument prototype would still apply. */
  17525. #ifdef __cplusplus
  17526. extern "C"
  17527. #endif
  17528. char dnet_ntoa ();
  17529. int
  17530. main ()
  17531. {
  17532. return dnet_ntoa ();
  17533. ;
  17534. return 0;
  17535. }
  17536. _ACEOF
  17537. if ac_fn_c_try_link "$LINENO"; then :
  17538. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17539. else
  17540. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17541. fi
  17542. rm -f core conftest.err conftest.$ac_objext \
  17543. conftest$ac_exeext conftest.$ac_ext
  17544. LIBS=$ac_check_lib_save_LIBS
  17545. fi
  17546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17547. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17548. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17549. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17550. fi
  17551. fi
  17552. fi
  17553. rm -f core conftest.err conftest.$ac_objext \
  17554. conftest$ac_exeext conftest.$ac_ext
  17555. LIBS="$ac_xsave_LIBS"
  17556. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17557. # to get the SysV transport functions.
  17558. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17559. # needs -lnsl.
  17560. # The nsl library prevents programs from opening the X display
  17561. # on Irix 5.2, according to T.E. Dickey.
  17562. # The functions gethostbyname, getservbyname, and inet_addr are
  17563. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17564. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17565. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17566. fi
  17567. if test $ac_cv_func_gethostbyname = no; then
  17568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17569. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17570. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17571. $as_echo_n "(cached) " >&6
  17572. else
  17573. ac_check_lib_save_LIBS=$LIBS
  17574. LIBS="-lnsl $LIBS"
  17575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17576. /* end confdefs.h. */
  17577. /* Override any GCC internal prototype to avoid an error.
  17578. Use char because int might match the return type of a GCC
  17579. builtin and then its argument prototype would still apply. */
  17580. #ifdef __cplusplus
  17581. extern "C"
  17582. #endif
  17583. char gethostbyname ();
  17584. int
  17585. main ()
  17586. {
  17587. return gethostbyname ();
  17588. ;
  17589. return 0;
  17590. }
  17591. _ACEOF
  17592. if ac_fn_c_try_link "$LINENO"; then :
  17593. ac_cv_lib_nsl_gethostbyname=yes
  17594. else
  17595. ac_cv_lib_nsl_gethostbyname=no
  17596. fi
  17597. rm -f core conftest.err conftest.$ac_objext \
  17598. conftest$ac_exeext conftest.$ac_ext
  17599. LIBS=$ac_check_lib_save_LIBS
  17600. fi
  17601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17602. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17603. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17604. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17605. fi
  17606. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17608. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17609. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17610. $as_echo_n "(cached) " >&6
  17611. else
  17612. ac_check_lib_save_LIBS=$LIBS
  17613. LIBS="-lbsd $LIBS"
  17614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17615. /* end confdefs.h. */
  17616. /* Override any GCC internal prototype to avoid an error.
  17617. Use char because int might match the return type of a GCC
  17618. builtin and then its argument prototype would still apply. */
  17619. #ifdef __cplusplus
  17620. extern "C"
  17621. #endif
  17622. char gethostbyname ();
  17623. int
  17624. main ()
  17625. {
  17626. return gethostbyname ();
  17627. ;
  17628. return 0;
  17629. }
  17630. _ACEOF
  17631. if ac_fn_c_try_link "$LINENO"; then :
  17632. ac_cv_lib_bsd_gethostbyname=yes
  17633. else
  17634. ac_cv_lib_bsd_gethostbyname=no
  17635. fi
  17636. rm -f core conftest.err conftest.$ac_objext \
  17637. conftest$ac_exeext conftest.$ac_ext
  17638. LIBS=$ac_check_lib_save_LIBS
  17639. fi
  17640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17641. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17642. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17643. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17644. fi
  17645. fi
  17646. fi
  17647. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17648. # socket/setsockopt and other routines are undefined under SCO ODT
  17649. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17650. # on later versions), says Simon Leinen: it contains gethostby*
  17651. # variants that don't use the name server (or something). -lsocket
  17652. # must be given before -lnsl if both are needed. We assume that
  17653. # if connect needs -lnsl, so does gethostbyname.
  17654. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17655. if test "x$ac_cv_func_connect" = xyes; then :
  17656. fi
  17657. if test $ac_cv_func_connect = no; then
  17658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17659. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17660. if ${ac_cv_lib_socket_connect+:} false; then :
  17661. $as_echo_n "(cached) " >&6
  17662. else
  17663. ac_check_lib_save_LIBS=$LIBS
  17664. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17666. /* end confdefs.h. */
  17667. /* Override any GCC internal prototype to avoid an error.
  17668. Use char because int might match the return type of a GCC
  17669. builtin and then its argument prototype would still apply. */
  17670. #ifdef __cplusplus
  17671. extern "C"
  17672. #endif
  17673. char connect ();
  17674. int
  17675. main ()
  17676. {
  17677. return connect ();
  17678. ;
  17679. return 0;
  17680. }
  17681. _ACEOF
  17682. if ac_fn_c_try_link "$LINENO"; then :
  17683. ac_cv_lib_socket_connect=yes
  17684. else
  17685. ac_cv_lib_socket_connect=no
  17686. fi
  17687. rm -f core conftest.err conftest.$ac_objext \
  17688. conftest$ac_exeext conftest.$ac_ext
  17689. LIBS=$ac_check_lib_save_LIBS
  17690. fi
  17691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17692. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17693. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17694. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17695. fi
  17696. fi
  17697. # Guillermo Gomez says -lposix is necessary on A/UX.
  17698. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17699. if test "x$ac_cv_func_remove" = xyes; then :
  17700. fi
  17701. if test $ac_cv_func_remove = no; then
  17702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17703. $as_echo_n "checking for remove in -lposix... " >&6; }
  17704. if ${ac_cv_lib_posix_remove+:} false; then :
  17705. $as_echo_n "(cached) " >&6
  17706. else
  17707. ac_check_lib_save_LIBS=$LIBS
  17708. LIBS="-lposix $LIBS"
  17709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17710. /* end confdefs.h. */
  17711. /* Override any GCC internal prototype to avoid an error.
  17712. Use char because int might match the return type of a GCC
  17713. builtin and then its argument prototype would still apply. */
  17714. #ifdef __cplusplus
  17715. extern "C"
  17716. #endif
  17717. char remove ();
  17718. int
  17719. main ()
  17720. {
  17721. return remove ();
  17722. ;
  17723. return 0;
  17724. }
  17725. _ACEOF
  17726. if ac_fn_c_try_link "$LINENO"; then :
  17727. ac_cv_lib_posix_remove=yes
  17728. else
  17729. ac_cv_lib_posix_remove=no
  17730. fi
  17731. rm -f core conftest.err conftest.$ac_objext \
  17732. conftest$ac_exeext conftest.$ac_ext
  17733. LIBS=$ac_check_lib_save_LIBS
  17734. fi
  17735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17736. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17737. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17738. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17739. fi
  17740. fi
  17741. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17742. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17743. if test "x$ac_cv_func_shmat" = xyes; then :
  17744. fi
  17745. if test $ac_cv_func_shmat = no; then
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17747. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17748. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17749. $as_echo_n "(cached) " >&6
  17750. else
  17751. ac_check_lib_save_LIBS=$LIBS
  17752. LIBS="-lipc $LIBS"
  17753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17754. /* end confdefs.h. */
  17755. /* Override any GCC internal prototype to avoid an error.
  17756. Use char because int might match the return type of a GCC
  17757. builtin and then its argument prototype would still apply. */
  17758. #ifdef __cplusplus
  17759. extern "C"
  17760. #endif
  17761. char shmat ();
  17762. int
  17763. main ()
  17764. {
  17765. return shmat ();
  17766. ;
  17767. return 0;
  17768. }
  17769. _ACEOF
  17770. if ac_fn_c_try_link "$LINENO"; then :
  17771. ac_cv_lib_ipc_shmat=yes
  17772. else
  17773. ac_cv_lib_ipc_shmat=no
  17774. fi
  17775. rm -f core conftest.err conftest.$ac_objext \
  17776. conftest$ac_exeext conftest.$ac_ext
  17777. LIBS=$ac_check_lib_save_LIBS
  17778. fi
  17779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17780. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17781. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17782. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17783. fi
  17784. fi
  17785. fi
  17786. # Check for libraries that X11R6 Xt/Xaw programs need.
  17787. ac_save_LDFLAGS=$LDFLAGS
  17788. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17789. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17790. # check for ICE first), but we must link in the order -lSM -lICE or
  17791. # we get undefined symbols. So assume we have SM if we have ICE.
  17792. # These have to be linked with before -lX11, unlike the other
  17793. # libraries we check for below, so use a different variable.
  17794. # John Interrante, Karl Berry
  17795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17796. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17797. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17798. $as_echo_n "(cached) " >&6
  17799. else
  17800. ac_check_lib_save_LIBS=$LIBS
  17801. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17803. /* end confdefs.h. */
  17804. /* Override any GCC internal prototype to avoid an error.
  17805. Use char because int might match the return type of a GCC
  17806. builtin and then its argument prototype would still apply. */
  17807. #ifdef __cplusplus
  17808. extern "C"
  17809. #endif
  17810. char IceConnectionNumber ();
  17811. int
  17812. main ()
  17813. {
  17814. return IceConnectionNumber ();
  17815. ;
  17816. return 0;
  17817. }
  17818. _ACEOF
  17819. if ac_fn_c_try_link "$LINENO"; then :
  17820. ac_cv_lib_ICE_IceConnectionNumber=yes
  17821. else
  17822. ac_cv_lib_ICE_IceConnectionNumber=no
  17823. fi
  17824. rm -f core conftest.err conftest.$ac_objext \
  17825. conftest$ac_exeext conftest.$ac_ext
  17826. LIBS=$ac_check_lib_save_LIBS
  17827. fi
  17828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17829. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17830. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17831. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17832. fi
  17833. LDFLAGS=$ac_save_LDFLAGS
  17834. fi
  17835. if test x$have_x = xyes; then
  17836. # Check whether --enable-x11-shared was given.
  17837. if test "${enable_x11_shared+set}" = set; then :
  17838. enableval=$enable_x11_shared;
  17839. else
  17840. enable_x11_shared=maybe
  17841. fi
  17842. case "$host" in
  17843. *-*-darwin*)
  17844. # Apple now puts this in /opt/X11
  17845. x11_lib='/opt/X11/lib/libX11.6.dylib'
  17846. x11ext_lib='/opt/X11/lib/libXext.6.dylib'
  17847. xcursor_lib='/opt/X11/lib/libXcursor.1.dylib'
  17848. xinerama_lib='/opt/X11/lib/libXinerama.1.dylib'
  17849. xinput_lib='/opt/X11/lib/libXi.6.dylib'
  17850. xrandr_lib='/opt/X11/lib/libXrandr.2.dylib'
  17851. xrender_lib='/opt/X11/lib/libXrender.1.dylib'
  17852. xss_lib='/opt/X11/lib/libXss.1.dylib'
  17853. xvidmode_lib='/opt/X11/lib/libXxf86vm.1.dylib'
  17854. ;;
  17855. *-*-openbsd*)
  17856. x11_lib='libX11.so'
  17857. x11ext_lib='libXext.so'
  17858. xcursor_lib='libXcursor.so'
  17859. xinerama_lib='libXinerama.so'
  17860. xinput_lib='libXi.so'
  17861. xrandr_lib='libXrandr.so'
  17862. xrender_lib='libXrender.so'
  17863. xss_lib='libXss.so'
  17864. xvidmode_lib='libXxf86vm.so'
  17865. ;;
  17866. *)
  17867. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17868. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17869. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17870. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17871. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17872. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17873. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17874. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17875. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17876. ;;
  17877. esac
  17878. if test x$ac_cv_func_shmat != xyes; then
  17879. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17880. fi
  17881. CFLAGS="$CFLAGS $X_CFLAGS"
  17882. LDFLAGS="$LDFLAGS $X_LIBS"
  17883. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17884. #include <X11/Xproto.h>
  17885. "
  17886. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17887. have_xext_h_hdr=yes
  17888. else
  17889. have_xext_h_hdr=no
  17890. fi
  17891. if test x$have_xext_h_hdr != xyes; then
  17892. as_fn_error $? "
  17893. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17894. " "$LINENO" 5
  17895. fi
  17896. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17897. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17898. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17899. # Needed so SDL applications can include SDL_syswm.h
  17900. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17901. if test x$enable_x11_shared = xmaybe; then
  17902. enable_x11_shared=yes
  17903. fi
  17904. if test x$have_loadso != xyes && \
  17905. test x$enable_x11_shared = xyes; then
  17906. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17907. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17908. enable_x11_shared=no
  17909. fi
  17910. if test x$have_loadso = xyes && \
  17911. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17912. echo "-- dynamic libX11 -> $x11_lib"
  17913. echo "-- dynamic libX11ext -> $x11ext_lib"
  17914. cat >>confdefs.h <<_ACEOF
  17915. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17916. _ACEOF
  17917. cat >>confdefs.h <<_ACEOF
  17918. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17919. _ACEOF
  17920. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17921. else
  17922. enable_x11_shared=no
  17923. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17924. SUMMARY_video="${SUMMARY_video} x11"
  17925. fi
  17926. have_video=yes
  17927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17928. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17929. have_const_param_XextAddDisplay=no
  17930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17931. /* end confdefs.h. */
  17932. #include <X11/Xlib.h>
  17933. #include <X11/Xproto.h>
  17934. #include <X11/extensions/Xext.h>
  17935. #include <X11/extensions/extutil.h>
  17936. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17937. int
  17938. main ()
  17939. {
  17940. ;
  17941. return 0;
  17942. }
  17943. _ACEOF
  17944. if ac_fn_c_try_compile "$LINENO"; then :
  17945. have_const_param_XextAddDisplay=yes
  17946. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17947. fi
  17948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17950. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17952. $as_echo_n "checking for XGenericEvent... " >&6; }
  17953. have_XGenericEvent=no
  17954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17955. /* end confdefs.h. */
  17956. #include <X11/Xlib.h>
  17957. int
  17958. main ()
  17959. {
  17960. Display *display;
  17961. XEvent event;
  17962. XGenericEventCookie *cookie = &event.xcookie;
  17963. XNextEvent(display, &event);
  17964. XGetEventData(display, cookie);
  17965. XFreeEventData(display, cookie);
  17966. ;
  17967. return 0;
  17968. }
  17969. _ACEOF
  17970. if ac_fn_c_try_compile "$LINENO"; then :
  17971. have_XGenericEvent=yes
  17972. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17973. fi
  17974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17976. $as_echo "$have_XGenericEvent" >&6; }
  17977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17978. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17979. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17980. $as_echo_n "(cached) " >&6
  17981. else
  17982. ac_check_lib_save_LIBS=$LIBS
  17983. LIBS="-lX11 $LIBS"
  17984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17985. /* end confdefs.h. */
  17986. /* Override any GCC internal prototype to avoid an error.
  17987. Use char because int might match the return type of a GCC
  17988. builtin and then its argument prototype would still apply. */
  17989. #ifdef __cplusplus
  17990. extern "C"
  17991. #endif
  17992. char XkbKeycodeToKeysym ();
  17993. int
  17994. main ()
  17995. {
  17996. return XkbKeycodeToKeysym ();
  17997. ;
  17998. return 0;
  17999. }
  18000. _ACEOF
  18001. if ac_fn_c_try_link "$LINENO"; then :
  18002. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  18003. else
  18004. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  18005. fi
  18006. rm -f core conftest.err conftest.$ac_objext \
  18007. conftest$ac_exeext conftest.$ac_ext
  18008. LIBS=$ac_check_lib_save_LIBS
  18009. fi
  18010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  18011. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  18012. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  18013. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  18014. fi
  18015. # Check whether --enable-video-x11-xcursor was given.
  18016. if test "${enable_video_x11_xcursor+set}" = set; then :
  18017. enableval=$enable_video_x11_xcursor;
  18018. else
  18019. enable_video_x11_xcursor=yes
  18020. fi
  18021. if test x$enable_video_x11_xcursor = xyes; then
  18022. definitely_enable_video_x11_xcursor=no
  18023. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  18024. "
  18025. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  18026. have_xcursor_h_hdr=yes
  18027. else
  18028. have_xcursor_h_hdr=no
  18029. fi
  18030. if test x$have_xcursor_h_hdr = xyes; then
  18031. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  18032. echo "-- dynamic libXcursor -> $xcursor_lib"
  18033. cat >>confdefs.h <<_ACEOF
  18034. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  18035. _ACEOF
  18036. definitely_enable_video_x11_xcursor=yes
  18037. else
  18038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  18039. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  18040. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  18041. $as_echo_n "(cached) " >&6
  18042. else
  18043. ac_check_lib_save_LIBS=$LIBS
  18044. LIBS="-lXcursor $LIBS"
  18045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18046. /* end confdefs.h. */
  18047. /* Override any GCC internal prototype to avoid an error.
  18048. Use char because int might match the return type of a GCC
  18049. builtin and then its argument prototype would still apply. */
  18050. #ifdef __cplusplus
  18051. extern "C"
  18052. #endif
  18053. char XcursorImageCreate ();
  18054. int
  18055. main ()
  18056. {
  18057. return XcursorImageCreate ();
  18058. ;
  18059. return 0;
  18060. }
  18061. _ACEOF
  18062. if ac_fn_c_try_link "$LINENO"; then :
  18063. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  18064. else
  18065. ac_cv_lib_Xcursor_XcursorImageCreate=no
  18066. fi
  18067. rm -f core conftest.err conftest.$ac_objext \
  18068. conftest$ac_exeext conftest.$ac_ext
  18069. LIBS=$ac_check_lib_save_LIBS
  18070. fi
  18071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  18072. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  18073. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  18074. have_xcursor_lib=yes
  18075. fi
  18076. if test x$have_xcursor_lib = xyes ; then
  18077. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  18078. definitely_enable_video_x11_xcursor=yes
  18079. fi
  18080. fi
  18081. fi
  18082. fi
  18083. if test x$definitely_enable_video_x11_xcursor = xyes; then
  18084. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  18085. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  18086. fi
  18087. # Check whether --enable-video-x11-xdbe was given.
  18088. if test "${enable_video_x11_xdbe+set}" = set; then :
  18089. enableval=$enable_video_x11_xdbe;
  18090. else
  18091. enable_video_x11_xdbe=yes
  18092. fi
  18093. if test x$enable_video_x11_xdbe = xyes; then
  18094. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  18095. "
  18096. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  18097. have_dbe_h_hdr=yes
  18098. else
  18099. have_dbe_h_hdr=no
  18100. fi
  18101. if test x$have_dbe_h_hdr = xyes; then
  18102. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  18103. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  18104. fi
  18105. fi
  18106. # Check whether --enable-video-x11-xinerama was given.
  18107. if test "${enable_video_x11_xinerama+set}" = set; then :
  18108. enableval=$enable_video_x11_xinerama;
  18109. else
  18110. enable_video_x11_xinerama=yes
  18111. fi
  18112. if test x$enable_video_x11_xinerama = xyes; then
  18113. definitely_enable_video_x11_xinerama=no
  18114. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  18115. "
  18116. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  18117. have_xinerama_h_hdr=yes
  18118. else
  18119. have_xinerama_h_hdr=no
  18120. fi
  18121. if test x$have_xinerama_h_hdr = xyes; then
  18122. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  18123. echo "-- dynamic libXinerama -> $xinerama_lib"
  18124. cat >>confdefs.h <<_ACEOF
  18125. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  18126. _ACEOF
  18127. definitely_enable_video_x11_xinerama=yes
  18128. else
  18129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  18130. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  18131. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  18132. $as_echo_n "(cached) " >&6
  18133. else
  18134. ac_check_lib_save_LIBS=$LIBS
  18135. LIBS="-lXinerama $LIBS"
  18136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18137. /* end confdefs.h. */
  18138. /* Override any GCC internal prototype to avoid an error.
  18139. Use char because int might match the return type of a GCC
  18140. builtin and then its argument prototype would still apply. */
  18141. #ifdef __cplusplus
  18142. extern "C"
  18143. #endif
  18144. char XineramaQueryExtension ();
  18145. int
  18146. main ()
  18147. {
  18148. return XineramaQueryExtension ();
  18149. ;
  18150. return 0;
  18151. }
  18152. _ACEOF
  18153. if ac_fn_c_try_link "$LINENO"; then :
  18154. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  18155. else
  18156. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  18157. fi
  18158. rm -f core conftest.err conftest.$ac_objext \
  18159. conftest$ac_exeext conftest.$ac_ext
  18160. LIBS=$ac_check_lib_save_LIBS
  18161. fi
  18162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  18163. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  18164. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  18165. have_xinerama_lib=yes
  18166. fi
  18167. if test x$have_xinerama_lib = xyes ; then
  18168. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  18169. definitely_enable_video_x11_xinerama=yes
  18170. fi
  18171. fi
  18172. fi
  18173. fi
  18174. if test x$definitely_enable_video_x11_xinerama = xyes; then
  18175. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  18176. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  18177. fi
  18178. # Check whether --enable-video-x11-xinput was given.
  18179. if test "${enable_video_x11_xinput+set}" = set; then :
  18180. enableval=$enable_video_x11_xinput;
  18181. else
  18182. enable_video_x11_xinput=yes
  18183. fi
  18184. if test x$enable_video_x11_xinput = xyes; then
  18185. definitely_enable_video_x11_xinput=no
  18186. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  18187. "
  18188. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  18189. have_xinput_h_hdr=yes
  18190. else
  18191. have_xinput_h_hdr=no
  18192. fi
  18193. if test x$have_xinput_h_hdr = xyes; then
  18194. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  18195. echo "-- dynamic libXi -> $xinput_lib"
  18196. cat >>confdefs.h <<_ACEOF
  18197. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  18198. _ACEOF
  18199. definitely_enable_video_x11_xinput=yes
  18200. else
  18201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  18202. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  18203. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  18204. $as_echo_n "(cached) " >&6
  18205. else
  18206. ac_check_lib_save_LIBS=$LIBS
  18207. LIBS="-lXi $LIBS"
  18208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18209. /* end confdefs.h. */
  18210. /* Override any GCC internal prototype to avoid an error.
  18211. Use char because int might match the return type of a GCC
  18212. builtin and then its argument prototype would still apply. */
  18213. #ifdef __cplusplus
  18214. extern "C"
  18215. #endif
  18216. char XOpenDevice ();
  18217. int
  18218. main ()
  18219. {
  18220. return XOpenDevice ();
  18221. ;
  18222. return 0;
  18223. }
  18224. _ACEOF
  18225. if ac_fn_c_try_link "$LINENO"; then :
  18226. ac_cv_lib_Xi_XOpenDevice=yes
  18227. else
  18228. ac_cv_lib_Xi_XOpenDevice=no
  18229. fi
  18230. rm -f core conftest.err conftest.$ac_objext \
  18231. conftest$ac_exeext conftest.$ac_ext
  18232. LIBS=$ac_check_lib_save_LIBS
  18233. fi
  18234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  18235. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  18236. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  18237. have_xinput_lib=yes
  18238. fi
  18239. if test x$have_xinput_lib = xyes ; then
  18240. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  18241. definitely_enable_video_x11_xinput=yes
  18242. fi
  18243. fi
  18244. fi
  18245. fi
  18246. if test x$definitely_enable_video_x11_xinput = xyes; then
  18247. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  18248. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  18249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  18250. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  18251. have_xinput2_multitouch=no
  18252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18253. /* end confdefs.h. */
  18254. #include <X11/Xlib.h>
  18255. #include <X11/Xproto.h>
  18256. #include <X11/extensions/XInput2.h>
  18257. int
  18258. main ()
  18259. {
  18260. int event_type = XI_TouchBegin;
  18261. XITouchClassInfo *t;
  18262. ;
  18263. return 0;
  18264. }
  18265. _ACEOF
  18266. if ac_fn_c_try_compile "$LINENO"; then :
  18267. have_xinput2_multitouch=yes
  18268. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  18269. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  18270. fi
  18271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  18273. $as_echo "$have_xinput2_multitouch" >&6; }
  18274. fi
  18275. # Check whether --enable-video-x11-xrandr was given.
  18276. if test "${enable_video_x11_xrandr+set}" = set; then :
  18277. enableval=$enable_video_x11_xrandr;
  18278. else
  18279. enable_video_x11_xrandr=yes
  18280. fi
  18281. if test x$enable_video_x11_xrandr = xyes; then
  18282. definitely_enable_video_x11_xrandr=no
  18283. have_xrandr_h_hdr=no
  18284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18285. /* end confdefs.h. */
  18286. #include <X11/Xlib.h>
  18287. #include <X11/extensions/Xrandr.h>
  18288. int
  18289. main ()
  18290. {
  18291. XRRScreenResources *res = NULL;
  18292. ;
  18293. return 0;
  18294. }
  18295. _ACEOF
  18296. if ac_fn_c_try_compile "$LINENO"; then :
  18297. have_xrandr_h_hdr=yes
  18298. fi
  18299. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18300. if test x$have_xrandr_h_hdr = xyes; then
  18301. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  18302. echo "-- dynamic libXrandr -> $xrandr_lib"
  18303. cat >>confdefs.h <<_ACEOF
  18304. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  18305. _ACEOF
  18306. definitely_enable_video_x11_xrandr=yes
  18307. else
  18308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  18309. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  18310. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  18311. $as_echo_n "(cached) " >&6
  18312. else
  18313. ac_check_lib_save_LIBS=$LIBS
  18314. LIBS="-lXrandr $LIBS"
  18315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18316. /* end confdefs.h. */
  18317. /* Override any GCC internal prototype to avoid an error.
  18318. Use char because int might match the return type of a GCC
  18319. builtin and then its argument prototype would still apply. */
  18320. #ifdef __cplusplus
  18321. extern "C"
  18322. #endif
  18323. char XRRQueryExtension ();
  18324. int
  18325. main ()
  18326. {
  18327. return XRRQueryExtension ();
  18328. ;
  18329. return 0;
  18330. }
  18331. _ACEOF
  18332. if ac_fn_c_try_link "$LINENO"; then :
  18333. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  18334. else
  18335. ac_cv_lib_Xrandr_XRRQueryExtension=no
  18336. fi
  18337. rm -f core conftest.err conftest.$ac_objext \
  18338. conftest$ac_exeext conftest.$ac_ext
  18339. LIBS=$ac_check_lib_save_LIBS
  18340. fi
  18341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  18342. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  18343. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  18344. have_xrandr_lib=yes
  18345. fi
  18346. if test x$have_xrandr_lib = xyes ; then
  18347. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  18348. definitely_enable_video_x11_xrandr=yes
  18349. fi
  18350. fi
  18351. fi
  18352. fi
  18353. if test x$definitely_enable_video_x11_xrandr = xyes; then
  18354. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  18355. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  18356. fi
  18357. # Check whether --enable-video-x11-scrnsaver was given.
  18358. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  18359. enableval=$enable_video_x11_scrnsaver;
  18360. else
  18361. enable_video_x11_scrnsaver=yes
  18362. fi
  18363. if test x$enable_video_x11_scrnsaver = xyes; then
  18364. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  18365. "
  18366. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  18367. have_scrnsaver_h_hdr=yes
  18368. else
  18369. have_scrnsaver_h_hdr=no
  18370. fi
  18371. if test x$have_scrnsaver_h_hdr = xyes; then
  18372. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  18373. echo "-- dynamic libXss -> $xss_lib"
  18374. cat >>confdefs.h <<_ACEOF
  18375. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18376. _ACEOF
  18377. definitely_enable_video_x11_scrnsaver=yes
  18378. else
  18379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18380. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18381. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18382. $as_echo_n "(cached) " >&6
  18383. else
  18384. ac_check_lib_save_LIBS=$LIBS
  18385. LIBS="-lXss $LIBS"
  18386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18387. /* end confdefs.h. */
  18388. /* Override any GCC internal prototype to avoid an error.
  18389. Use char because int might match the return type of a GCC
  18390. builtin and then its argument prototype would still apply. */
  18391. #ifdef __cplusplus
  18392. extern "C"
  18393. #endif
  18394. char XScreenSaverSuspend ();
  18395. int
  18396. main ()
  18397. {
  18398. return XScreenSaverSuspend ();
  18399. ;
  18400. return 0;
  18401. }
  18402. _ACEOF
  18403. if ac_fn_c_try_link "$LINENO"; then :
  18404. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18405. else
  18406. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18407. fi
  18408. rm -f core conftest.err conftest.$ac_objext \
  18409. conftest$ac_exeext conftest.$ac_ext
  18410. LIBS=$ac_check_lib_save_LIBS
  18411. fi
  18412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18413. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18414. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18415. have_xss_lib=yes
  18416. fi
  18417. if test x$have_xss_lib = xyes ; then
  18418. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18419. definitely_enable_video_x11_scrnsaver=yes
  18420. fi
  18421. fi
  18422. fi
  18423. fi
  18424. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18425. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18426. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18427. fi
  18428. # Check whether --enable-video-x11-xshape was given.
  18429. if test "${enable_video_x11_xshape+set}" = set; then :
  18430. enableval=$enable_video_x11_xshape;
  18431. else
  18432. enable_video_x11_xshape=yes
  18433. fi
  18434. if test x$enable_video_x11_xshape = xyes; then
  18435. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18436. "
  18437. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18438. have_shape_h_hdr=yes
  18439. else
  18440. have_shape_h_hdr=no
  18441. fi
  18442. if test x$have_shape_h_hdr = xyes; then
  18443. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18444. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18445. fi
  18446. fi
  18447. # Check whether --enable-video-x11-vm was given.
  18448. if test "${enable_video_x11_vm+set}" = set; then :
  18449. enableval=$enable_video_x11_vm;
  18450. else
  18451. enable_video_x11_vm=yes
  18452. fi
  18453. if test x$enable_video_x11_vm = xyes; then
  18454. definitely_enable_video_x11_vm=no
  18455. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18456. "
  18457. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18458. have_vm_h_hdr=yes
  18459. else
  18460. have_vm_h_hdr=no
  18461. fi
  18462. if test x$have_vm_h_hdr = xyes; then
  18463. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18464. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18465. cat >>confdefs.h <<_ACEOF
  18466. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18467. _ACEOF
  18468. definitely_enable_video_x11_vm=yes
  18469. else
  18470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18471. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18472. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18473. $as_echo_n "(cached) " >&6
  18474. else
  18475. ac_check_lib_save_LIBS=$LIBS
  18476. LIBS="-lXxf86vm $LIBS"
  18477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18478. /* end confdefs.h. */
  18479. /* Override any GCC internal prototype to avoid an error.
  18480. Use char because int might match the return type of a GCC
  18481. builtin and then its argument prototype would still apply. */
  18482. #ifdef __cplusplus
  18483. extern "C"
  18484. #endif
  18485. char XF86VidModeQueryVersion ();
  18486. int
  18487. main ()
  18488. {
  18489. return XF86VidModeQueryVersion ();
  18490. ;
  18491. return 0;
  18492. }
  18493. _ACEOF
  18494. if ac_fn_c_try_link "$LINENO"; then :
  18495. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18496. else
  18497. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18498. fi
  18499. rm -f core conftest.err conftest.$ac_objext \
  18500. conftest$ac_exeext conftest.$ac_ext
  18501. LIBS=$ac_check_lib_save_LIBS
  18502. fi
  18503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18504. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18505. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18506. have_vm_lib=yes
  18507. fi
  18508. if test x$have_vm_lib = xyes ; then
  18509. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18510. definitely_enable_video_x11_vm=yes
  18511. fi
  18512. fi
  18513. fi
  18514. fi
  18515. if test x$definitely_enable_video_x11_vm = xyes; then
  18516. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18517. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18518. fi
  18519. fi
  18520. else
  18521. # Prevent Mesa from including X11 headers
  18522. EXTRA_CFLAGS="$EXTRA_CFLAGS -DMESA_EGL_NO_X11_HEADERS -DEGL_NO_X11"
  18523. fi
  18524. }
  18525. CheckVivanteVideo()
  18526. {
  18527. # Check whether --enable-video-vivante was given.
  18528. if test "${enable_video_vivante+set}" = set; then :
  18529. enableval=$enable_video_vivante;
  18530. else
  18531. enable_video_vivante=yes
  18532. fi
  18533. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18535. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18536. have_vivante_vdk=no
  18537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18538. /* end confdefs.h. */
  18539. #define LINUX
  18540. #define EGL_API_FB
  18541. #include <gc_vdk.h>
  18542. int
  18543. main ()
  18544. {
  18545. ;
  18546. return 0;
  18547. }
  18548. _ACEOF
  18549. if ac_fn_c_try_compile "$LINENO"; then :
  18550. have_vivante_vdk=yes
  18551. fi
  18552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18554. $as_echo "$have_vivante_vdk" >&6; }
  18555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18556. $as_echo_n "checking for Vivante FB API... " >&6; }
  18557. have_vivante_egl=no
  18558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18559. /* end confdefs.h. */
  18560. #define LINUX
  18561. #define EGL_API_FB
  18562. #include <EGL/eglvivante.h>
  18563. int
  18564. main ()
  18565. {
  18566. ;
  18567. return 0;
  18568. }
  18569. _ACEOF
  18570. if ac_fn_c_try_compile "$LINENO"; then :
  18571. have_vivante_egl=yes
  18572. fi
  18573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18575. $as_echo "$have_vivante_egl" >&6; }
  18576. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18577. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18578. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18579. if test x$have_vivante_vdk = xyes; then
  18580. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18581. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18582. fi
  18583. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18584. SUMMARY_video="${SUMMARY_video} vivante"
  18585. have_video=yes
  18586. fi
  18587. fi
  18588. }
  18589. CheckHaikuVideo()
  18590. {
  18591. if test x$enable_video = xyes; then
  18592. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18593. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18594. have_video=yes
  18595. SUMMARY_video="${SUMMARY_video} haiku"
  18596. fi
  18597. }
  18598. CheckCOCOA()
  18599. {
  18600. # Check whether --enable-video-cocoa was given.
  18601. if test "${enable_video_cocoa+set}" = set; then :
  18602. enableval=$enable_video_cocoa;
  18603. else
  18604. enable_video_cocoa=yes
  18605. fi
  18606. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18607. save_CFLAGS="$CFLAGS"
  18608. CFLAGS="$CFLAGS -x objective-c"
  18609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18610. $as_echo_n "checking for Cocoa framework... " >&6; }
  18611. have_cocoa=no
  18612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18613. /* end confdefs.h. */
  18614. #import <Cocoa/Cocoa.h>
  18615. int
  18616. main ()
  18617. {
  18618. ;
  18619. return 0;
  18620. }
  18621. _ACEOF
  18622. if ac_fn_c_try_compile "$LINENO"; then :
  18623. have_cocoa=yes
  18624. fi
  18625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18627. $as_echo "$have_cocoa" >&6; }
  18628. CFLAGS="$save_CFLAGS"
  18629. if test x$have_cocoa = xyes; then
  18630. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18631. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18632. SUMMARY_video="${SUMMARY_video} cocoa"
  18633. have_video=yes
  18634. fi
  18635. fi
  18636. }
  18637. CheckMETAL()
  18638. {
  18639. # Check whether --enable-video-metal was given.
  18640. if test "${enable_video_metal+set}" = set; then :
  18641. enableval=$enable_video_metal;
  18642. else
  18643. enable_video_metal=yes
  18644. fi
  18645. # Check whether --enable-render-metal was given.
  18646. if test "${enable_render_metal+set}" = set; then :
  18647. enableval=$enable_render_metal;
  18648. else
  18649. enable_render_metal=yes
  18650. fi
  18651. if test x$enable_video = xyes -a x$enable_video_metal = xyes; then
  18652. save_CFLAGS="$CFLAGS"
  18653. CFLAGS="$CFLAGS -x objective-c"
  18654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18655. $as_echo_n "checking for Metal framework... " >&6; }
  18656. have_metal=no
  18657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18658. /* end confdefs.h. */
  18659. #import <Cocoa/Cocoa.h>
  18660. #import <Metal/Metal.h>
  18661. #import <QuartzCore/CAMetalLayer.h>
  18662. #if !TARGET_CPU_X86_64
  18663. #error Metal doesn't work on this configuration
  18664. #endif
  18665. int
  18666. main ()
  18667. {
  18668. ;
  18669. return 0;
  18670. }
  18671. _ACEOF
  18672. if ac_fn_c_try_compile "$LINENO"; then :
  18673. have_metal=yes
  18674. fi
  18675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18676. CFLAGS="$save_CFLAGS"
  18677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18678. $as_echo "$have_metal" >&6; }
  18679. if test x$have_metal = xyes; then
  18680. $as_echo "#define SDL_VIDEO_METAL 1" >>confdefs.h
  18681. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18682. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18683. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18684. fi
  18685. SUMMARY_video="${SUMMARY_video} metal"
  18686. else
  18687. enable_video_metal=no
  18688. enable_render_metal=no
  18689. fi
  18690. fi
  18691. }
  18692. CheckDirectFB()
  18693. {
  18694. # Check whether --enable-video-directfb was given.
  18695. if test "${enable_video_directfb+set}" = set; then :
  18696. enableval=$enable_video_directfb;
  18697. else
  18698. enable_video_directfb=no
  18699. fi
  18700. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18701. pkg_failed=no
  18702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
  18703. $as_echo_n "checking for DIRECTFB... " >&6; }
  18704. if test -n "$DIRECTFB_CFLAGS"; then
  18705. pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
  18706. elif test -n "$PKG_CONFIG"; then
  18707. if test -n "$PKG_CONFIG" && \
  18708. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18709. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18710. ac_status=$?
  18711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18712. test $ac_status = 0; }; then
  18713. pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
  18714. else
  18715. pkg_failed=yes
  18716. fi
  18717. else
  18718. pkg_failed=untried
  18719. fi
  18720. if test -n "$DIRECTFB_LIBS"; then
  18721. pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
  18722. elif test -n "$PKG_CONFIG"; then
  18723. if test -n "$PKG_CONFIG" && \
  18724. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
  18725. ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
  18726. ac_status=$?
  18727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18728. test $ac_status = 0; }; then
  18729. pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
  18730. else
  18731. pkg_failed=yes
  18732. fi
  18733. else
  18734. pkg_failed=untried
  18735. fi
  18736. if test $pkg_failed = yes; then
  18737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18738. $as_echo "no" >&6; }
  18739. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18740. _pkg_short_errors_supported=yes
  18741. else
  18742. _pkg_short_errors_supported=no
  18743. fi
  18744. if test $_pkg_short_errors_supported = yes; then
  18745. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
  18746. else
  18747. DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
  18748. fi
  18749. # Put the nasty error message in config.log where it belongs
  18750. echo "$DIRECTFB_PKG_ERRORS" >&5
  18751. video_directfb=no
  18752. elif test $pkg_failed = untried; then
  18753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18754. $as_echo "no" >&6; }
  18755. video_directfb=no
  18756. else
  18757. DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
  18758. DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
  18759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18760. $as_echo "yes" >&6; }
  18761. video_directfb=yes
  18762. fi
  18763. if test x$video_directfb = xyes; then
  18764. # SuSE 11.1 installs directfb-config without directfb-devel
  18765. save_CPPFLAGS="$CPPFLAGS"
  18766. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18767. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18768. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18769. have_directfb_hdr=yes
  18770. else
  18771. have_directfb_hdr=no
  18772. fi
  18773. CPPFLAGS="$save_CPPFLAGS"
  18774. video_directfb=$have_directfb_hdr
  18775. fi
  18776. if test x$video_directfb = xyes; then
  18777. # Check whether --enable-directfb-shared was given.
  18778. if test "${enable_directfb_shared+set}" = set; then :
  18779. enableval=$enable_directfb_shared;
  18780. else
  18781. enable_directfb_shared=yes
  18782. fi
  18783. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18784. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18785. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18786. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18788. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18789. directfb_shared=no
  18790. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18791. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18793. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18794. if test x$have_loadso != xyes && \
  18795. test x$enable_directfb_shared = xyes; then
  18796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18797. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18798. fi
  18799. if test x$have_loadso = xyes && \
  18800. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18801. directfb_shared=yes
  18802. echo "-- $directfb_lib_spec -> $directfb_lib"
  18803. cat >>confdefs.h <<_ACEOF
  18804. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18805. _ACEOF
  18806. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18807. else
  18808. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18809. SUMMARY_video="${SUMMARY_video} directfb"
  18810. fi
  18811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18812. $as_echo "$directfb_shared" >&6; }
  18813. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18814. have_video=yes
  18815. fi
  18816. fi
  18817. }
  18818. CheckKMSDRM()
  18819. {
  18820. # Check whether --enable-video-kmsdrm was given.
  18821. if test "${enable_video_kmsdrm+set}" = set; then :
  18822. enableval=$enable_video_kmsdrm;
  18823. else
  18824. enable_video_kmsdrm=no
  18825. fi
  18826. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18827. video_kmsdrm=no
  18828. pkg_failed=no
  18829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
  18830. $as_echo_n "checking for LIBDRM... " >&6; }
  18831. if test -n "$LIBDRM_CFLAGS"; then
  18832. pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
  18833. elif test -n "$PKG_CONFIG"; then
  18834. if test -n "$PKG_CONFIG" && \
  18835. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18836. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18837. ac_status=$?
  18838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18839. test $ac_status = 0; }; then
  18840. pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
  18841. else
  18842. pkg_failed=yes
  18843. fi
  18844. else
  18845. pkg_failed=untried
  18846. fi
  18847. if test -n "$LIBDRM_LIBS"; then
  18848. pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
  18849. elif test -n "$PKG_CONFIG"; then
  18850. if test -n "$PKG_CONFIG" && \
  18851. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
  18852. ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
  18853. ac_status=$?
  18854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18855. test $ac_status = 0; }; then
  18856. pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
  18857. else
  18858. pkg_failed=yes
  18859. fi
  18860. else
  18861. pkg_failed=untried
  18862. fi
  18863. if test $pkg_failed = yes; then
  18864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18865. $as_echo "no" >&6; }
  18866. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18867. _pkg_short_errors_supported=yes
  18868. else
  18869. _pkg_short_errors_supported=no
  18870. fi
  18871. if test $_pkg_short_errors_supported = yes; then
  18872. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
  18873. else
  18874. LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
  18875. fi
  18876. # Put the nasty error message in config.log where it belongs
  18877. echo "$LIBDRM_PKG_ERRORS" >&5
  18878. libdrm_avail=no
  18879. elif test $pkg_failed = untried; then
  18880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18881. $as_echo "no" >&6; }
  18882. libdrm_avail=no
  18883. else
  18884. LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
  18885. LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
  18886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18887. $as_echo "yes" >&6; }
  18888. libdrm_avail=yes
  18889. fi
  18890. pkg_failed=no
  18891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
  18892. $as_echo_n "checking for LIBGBM... " >&6; }
  18893. if test -n "$LIBGBM_CFLAGS"; then
  18894. pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
  18895. elif test -n "$PKG_CONFIG"; then
  18896. if test -n "$PKG_CONFIG" && \
  18897. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18898. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18899. ac_status=$?
  18900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18901. test $ac_status = 0; }; then
  18902. pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
  18903. else
  18904. pkg_failed=yes
  18905. fi
  18906. else
  18907. pkg_failed=untried
  18908. fi
  18909. if test -n "$LIBGBM_LIBS"; then
  18910. pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
  18911. elif test -n "$PKG_CONFIG"; then
  18912. if test -n "$PKG_CONFIG" && \
  18913. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
  18914. ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
  18915. ac_status=$?
  18916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18917. test $ac_status = 0; }; then
  18918. pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
  18919. else
  18920. pkg_failed=yes
  18921. fi
  18922. else
  18923. pkg_failed=untried
  18924. fi
  18925. if test $pkg_failed = yes; then
  18926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18927. $as_echo "no" >&6; }
  18928. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  18929. _pkg_short_errors_supported=yes
  18930. else
  18931. _pkg_short_errors_supported=no
  18932. fi
  18933. if test $_pkg_short_errors_supported = yes; then
  18934. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
  18935. else
  18936. LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
  18937. fi
  18938. # Put the nasty error message in config.log where it belongs
  18939. echo "$LIBGBM_PKG_ERRORS" >&5
  18940. libgbm_avail=no
  18941. elif test $pkg_failed = untried; then
  18942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18943. $as_echo "no" >&6; }
  18944. libgbm_avail=no
  18945. else
  18946. LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
  18947. LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
  18948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18949. $as_echo "yes" >&6; }
  18950. libgbm_avail=yes
  18951. fi
  18952. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18953. video_kmsdrm=yes
  18954. fi
  18955. if test x$video_kmsdrm = xyes; then
  18956. # Check whether --enable-kmsdrm-shared was given.
  18957. if test "${enable_kmsdrm_shared+set}" = set; then :
  18958. enableval=$enable_kmsdrm_shared;
  18959. else
  18960. enable_kmsdrm_shared=yes
  18961. fi
  18962. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18963. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18964. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18966. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18967. kmsdrm_shared=no
  18968. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18969. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18970. if test x$have_loadso != xyes && \
  18971. test x$enable_kmsdrm_shared = xyes; then
  18972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18973. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18974. fi
  18975. if test x$have_loadso = xyes && \
  18976. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18977. kmsdrm_shared=yes
  18978. cat >>confdefs.h <<_ACEOF
  18979. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18980. _ACEOF
  18981. cat >>confdefs.h <<_ACEOF
  18982. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18983. _ACEOF
  18984. cat >>confdefs.h <<_ACEOF
  18985. #define HAVE_KMSDRM_SHARED "TRUE"
  18986. _ACEOF
  18987. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18988. else
  18989. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18990. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18991. fi
  18992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18993. $as_echo "$kmsdrm_shared" >&6; }
  18994. have_video=yes
  18995. fi
  18996. fi
  18997. }
  18998. CheckDummyVideo()
  18999. {
  19000. # Check whether --enable-video-dummy was given.
  19001. if test "${enable_video_dummy+set}" = set; then :
  19002. enableval=$enable_video_dummy;
  19003. else
  19004. enable_video_dummy=yes
  19005. fi
  19006. if test x$enable_video_dummy = xyes; then
  19007. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  19008. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  19009. have_video=yes
  19010. SUMMARY_video="${SUMMARY_video} dummy"
  19011. fi
  19012. }
  19013. CheckQNXVideo()
  19014. {
  19015. if test x$enable_video = xyes; then
  19016. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  19017. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  19018. have_video=yes
  19019. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  19020. SUMMARY_video="${SUMMARY_video} qnx"
  19021. fi
  19022. }
  19023. CheckQNXAudio()
  19024. {
  19025. if test x$enable_audio = xyes; then
  19026. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  19027. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  19028. have_audio=yes
  19029. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  19030. SUMMARY_audio="${SUMMARY_audio} qsa"
  19031. fi
  19032. }
  19033. # Check whether --enable-video-opengl was given.
  19034. if test "${enable_video_opengl+set}" = set; then :
  19035. enableval=$enable_video_opengl;
  19036. else
  19037. enable_video_opengl=yes
  19038. fi
  19039. CheckOpenGLX11()
  19040. {
  19041. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  19043. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  19044. video_opengl=no
  19045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19046. /* end confdefs.h. */
  19047. #include <GL/gl.h>
  19048. #include <GL/glx.h>
  19049. int
  19050. main ()
  19051. {
  19052. ;
  19053. return 0;
  19054. }
  19055. _ACEOF
  19056. if ac_fn_c_try_compile "$LINENO"; then :
  19057. video_opengl=yes
  19058. fi
  19059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  19061. $as_echo "$video_opengl" >&6; }
  19062. if test x$video_opengl = xyes; then
  19063. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19064. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  19065. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19066. SUMMARY_video="${SUMMARY_video} opengl"
  19067. fi
  19068. fi
  19069. }
  19070. # Check whether --enable-video-opengles was given.
  19071. if test "${enable_video_opengles+set}" = set; then :
  19072. enableval=$enable_video_opengles;
  19073. else
  19074. enable_video_opengles=yes
  19075. fi
  19076. # Check whether --enable-video-opengles1 was given.
  19077. if test "${enable_video_opengles1+set}" = set; then :
  19078. enableval=$enable_video_opengles1;
  19079. else
  19080. enable_video_opengles1=yes
  19081. fi
  19082. # Check whether --enable-video-opengles2 was given.
  19083. if test "${enable_video_opengles2+set}" = set; then :
  19084. enableval=$enable_video_opengles2;
  19085. else
  19086. enable_video_opengles2=yes
  19087. fi
  19088. CheckOpenGLESX11()
  19089. {
  19090. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19092. $as_echo_n "checking for EGL support... " >&6; }
  19093. video_opengl_egl=no
  19094. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19095. /* end confdefs.h. */
  19096. #define LINUX
  19097. #define EGL_API_FB
  19098. #define MESA_EGL_NO_X11_HEADERS
  19099. #include <EGL/egl.h>
  19100. #include <EGL/eglext.h>
  19101. int
  19102. main ()
  19103. {
  19104. ;
  19105. return 0;
  19106. }
  19107. _ACEOF
  19108. if ac_fn_c_try_compile "$LINENO"; then :
  19109. video_opengl_egl=yes
  19110. fi
  19111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19113. $as_echo "$video_opengl_egl" >&6; }
  19114. if test x$video_opengl_egl = xyes; then
  19115. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19116. fi
  19117. if test x$enable_video_opengles1 = xyes; then
  19118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  19119. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  19120. video_opengles_v1=no
  19121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19122. /* end confdefs.h. */
  19123. #include <GLES/gl.h>
  19124. #include <GLES/glext.h>
  19125. int
  19126. main ()
  19127. {
  19128. ;
  19129. return 0;
  19130. }
  19131. _ACEOF
  19132. if ac_fn_c_try_compile "$LINENO"; then :
  19133. video_opengles_v1=yes
  19134. fi
  19135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  19137. $as_echo "$video_opengles_v1" >&6; }
  19138. if test x$video_opengles_v1 = xyes; then
  19139. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  19140. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  19141. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19142. fi
  19143. fi
  19144. if test x$enable_video_opengles2 = xyes; then
  19145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19146. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19147. video_opengles_v2=no
  19148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19149. /* end confdefs.h. */
  19150. #include <GLES2/gl2.h>
  19151. #include <GLES2/gl2ext.h>
  19152. int
  19153. main ()
  19154. {
  19155. ;
  19156. return 0;
  19157. }
  19158. _ACEOF
  19159. if ac_fn_c_try_compile "$LINENO"; then :
  19160. video_opengles_v2=yes
  19161. fi
  19162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19164. $as_echo "$video_opengles_v2" >&6; }
  19165. if test x$video_opengles_v2 = xyes; then
  19166. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19167. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19168. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19169. fi
  19170. fi
  19171. fi
  19172. }
  19173. CheckWINDOWSGL()
  19174. {
  19175. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19176. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19177. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  19178. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19179. SUMMARY_video="${SUMMARY_video} opengl"
  19180. fi
  19181. }
  19182. CheckWINDOWSGLES()
  19183. {
  19184. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19186. $as_echo_n "checking for EGL support... " >&6; }
  19187. video_opengl_egl=no
  19188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19189. /* end confdefs.h. */
  19190. #include <EGL/egl.h>
  19191. int
  19192. main ()
  19193. {
  19194. ;
  19195. return 0;
  19196. }
  19197. _ACEOF
  19198. if ac_fn_c_try_compile "$LINENO"; then :
  19199. video_opengl_egl=yes
  19200. fi
  19201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19203. $as_echo "$video_opengl_egl" >&6; }
  19204. if test x$video_opengl_egl = xyes; then
  19205. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19206. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19207. SUMMARY_video="${SUMMARY_video} opengl_es1"
  19208. fi
  19209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19210. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19211. video_opengles_v2=no
  19212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19213. /* end confdefs.h. */
  19214. #include <GLES2/gl2.h>
  19215. #include <GLES2/gl2ext.h>
  19216. int
  19217. main ()
  19218. {
  19219. ;
  19220. return 0;
  19221. }
  19222. _ACEOF
  19223. if ac_fn_c_try_compile "$LINENO"; then :
  19224. video_opengles_v2=yes
  19225. fi
  19226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19228. $as_echo "$video_opengles_v2" >&6; }
  19229. if test x$video_opengles_v2 = xyes; then
  19230. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19231. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19232. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19233. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19234. fi
  19235. fi
  19236. }
  19237. CheckHaikuGL()
  19238. {
  19239. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19240. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19241. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  19242. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19243. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  19244. SUMMARY_video="${SUMMARY_video} opengl"
  19245. fi
  19246. }
  19247. CheckMacGL()
  19248. {
  19249. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  19250. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  19251. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  19252. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  19253. SUMMARY_video="${SUMMARY_video} opengl"
  19254. fi
  19255. }
  19256. CheckMacGLES()
  19257. {
  19258. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19259. video_opengl_egl=yes
  19260. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19261. video_opengles_v2=yes
  19262. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19263. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19264. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19265. fi
  19266. }
  19267. CheckEmscriptenGLES()
  19268. {
  19269. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  19270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  19271. $as_echo_n "checking for EGL support... " >&6; }
  19272. video_opengl_egl=no
  19273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19274. /* end confdefs.h. */
  19275. #include <EGL/egl.h>
  19276. int
  19277. main ()
  19278. {
  19279. ;
  19280. return 0;
  19281. }
  19282. _ACEOF
  19283. if ac_fn_c_try_compile "$LINENO"; then :
  19284. video_opengl_egl=yes
  19285. fi
  19286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  19288. $as_echo "$video_opengl_egl" >&6; }
  19289. if test x$video_opengl_egl = xyes; then
  19290. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  19291. fi
  19292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  19293. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  19294. video_opengles_v2=no
  19295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19296. /* end confdefs.h. */
  19297. #include <GLES2/gl2.h>
  19298. #include <GLES2/gl2ext.h>
  19299. int
  19300. main ()
  19301. {
  19302. ;
  19303. return 0;
  19304. }
  19305. _ACEOF
  19306. if ac_fn_c_try_compile "$LINENO"; then :
  19307. video_opengles_v2=yes
  19308. fi
  19309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  19311. $as_echo "$video_opengles_v2" >&6; }
  19312. if test x$video_opengles_v2 = xyes; then
  19313. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  19314. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  19315. SUMMARY_video="${SUMMARY_video} opengl_es2"
  19316. fi
  19317. fi
  19318. }
  19319. # Check whether --enable-video-vulkan was given.
  19320. if test "${enable_video_vulkan+set}" = set; then :
  19321. enableval=$enable_video_vulkan;
  19322. else
  19323. enable_video_vulkan=yes
  19324. fi
  19325. CheckVulkan()
  19326. {
  19327. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  19328. case "$host" in
  19329. *-*-android*)
  19330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19331. /* end confdefs.h. */
  19332. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  19333. #error Vulkan doesn't work on this configuration
  19334. #endif
  19335. int
  19336. main ()
  19337. {
  19338. ;
  19339. return 0;
  19340. }
  19341. _ACEOF
  19342. if ac_fn_c_try_compile "$LINENO"; then :
  19343. else
  19344. enable_video_vulkan=no
  19345. fi
  19346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19347. ;;
  19348. *-*-darwin*)
  19349. save_CFLAGS="$CFLAGS"
  19350. CFLAGS="$CFLAGS -x objective-c"
  19351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19352. /* end confdefs.h. */
  19353. #include <Cocoa/Cocoa.h>
  19354. #include <Metal/Metal.h>
  19355. #include <QuartzCore/CAMetalLayer.h>
  19356. #if !TARGET_CPU_X86_64
  19357. #error Vulkan doesn't work on this configuration
  19358. #endif
  19359. int
  19360. main ()
  19361. {
  19362. ;
  19363. return 0;
  19364. }
  19365. _ACEOF
  19366. if ac_fn_c_try_compile "$LINENO"; then :
  19367. else
  19368. enable_video_vulkan=no
  19369. fi
  19370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19371. CFLAGS="$save_CFLAGS"
  19372. ;;
  19373. *)
  19374. ;;
  19375. esac
  19376. if test x$enable_video_vulkan = xno; then
  19377. # For reasons I am totally unable to see, I get an undefined macro error if
  19378. # I put this in the AC_TRY_COMPILE.
  19379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  19380. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  19381. fi
  19382. fi
  19383. if test x$enable_video_vulkan = xyes; then
  19384. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  19385. SUMMARY_video="${SUMMARY_video} vulkan"
  19386. fi
  19387. }
  19388. CheckInputEvents()
  19389. {
  19390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  19391. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  19392. use_input_events=no
  19393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19394. /* end confdefs.h. */
  19395. #include <linux/input.h>
  19396. int
  19397. main ()
  19398. {
  19399. #ifndef EVIOCGNAME
  19400. #error EVIOCGNAME() ioctl not available
  19401. #endif
  19402. ;
  19403. return 0;
  19404. }
  19405. _ACEOF
  19406. if ac_fn_c_try_compile "$LINENO"; then :
  19407. use_input_events=yes
  19408. fi
  19409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19411. $as_echo "$use_input_events" >&6; }
  19412. if test x$use_input_events = xyes; then
  19413. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19414. SUMMARY_input="${SUMMARY_input} linuxev"
  19415. fi
  19416. }
  19417. CheckInputKD()
  19418. {
  19419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19420. $as_echo_n "checking for Linux kd.h... " >&6; }
  19421. use_input_kd=no
  19422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19423. /* end confdefs.h. */
  19424. #include <linux/kd.h>
  19425. #include <linux/keyboard.h>
  19426. int
  19427. main ()
  19428. {
  19429. struct kbentry kbe;
  19430. kbe.kb_table = KG_CTRL;
  19431. ioctl(0, KDGKBENT, &kbe);
  19432. ;
  19433. return 0;
  19434. }
  19435. _ACEOF
  19436. if ac_fn_c_try_compile "$LINENO"; then :
  19437. use_input_kd=yes
  19438. fi
  19439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19441. $as_echo "$use_input_kd" >&6; }
  19442. if test x$use_input_kd = xyes; then
  19443. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19444. SUMMARY_input="${SUMMARY_input} linuxkd"
  19445. fi
  19446. }
  19447. CheckLibUDev()
  19448. {
  19449. # Check whether --enable-libudev was given.
  19450. if test "${enable_libudev+set}" = set; then :
  19451. enableval=$enable_libudev;
  19452. else
  19453. enable_libudev=yes
  19454. fi
  19455. if test x$enable_libudev = xyes; then
  19456. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19457. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19458. have_libudev_h_hdr=yes
  19459. else
  19460. have_libudev_h_hdr=no
  19461. fi
  19462. if test x$have_libudev_h_hdr = xyes; then
  19463. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19464. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19465. if test x$udev_lib != x; then
  19466. echo "-- dynamic udev -> $udev_lib"
  19467. cat >>confdefs.h <<_ACEOF
  19468. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19469. _ACEOF
  19470. fi
  19471. fi
  19472. fi
  19473. }
  19474. CheckDBus()
  19475. {
  19476. # Check whether --enable-dbus was given.
  19477. if test "${enable_dbus+set}" = set; then :
  19478. enableval=$enable_dbus;
  19479. else
  19480. enable_dbus=yes
  19481. fi
  19482. if test x$enable_dbus = xyes; then
  19483. pkg_failed=no
  19484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
  19485. $as_echo_n "checking for DBUS... " >&6; }
  19486. if test -n "$DBUS_CFLAGS"; then
  19487. pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
  19488. elif test -n "$PKG_CONFIG"; then
  19489. if test -n "$PKG_CONFIG" && \
  19490. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19491. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19492. ac_status=$?
  19493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19494. test $ac_status = 0; }; then
  19495. pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
  19496. else
  19497. pkg_failed=yes
  19498. fi
  19499. else
  19500. pkg_failed=untried
  19501. fi
  19502. if test -n "$DBUS_LIBS"; then
  19503. pkg_cv_DBUS_LIBS="$DBUS_LIBS"
  19504. elif test -n "$PKG_CONFIG"; then
  19505. if test -n "$PKG_CONFIG" && \
  19506. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
  19507. ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
  19508. ac_status=$?
  19509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19510. test $ac_status = 0; }; then
  19511. pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
  19512. else
  19513. pkg_failed=yes
  19514. fi
  19515. else
  19516. pkg_failed=untried
  19517. fi
  19518. if test $pkg_failed = yes; then
  19519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19520. $as_echo "no" >&6; }
  19521. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19522. _pkg_short_errors_supported=yes
  19523. else
  19524. _pkg_short_errors_supported=no
  19525. fi
  19526. if test $_pkg_short_errors_supported = yes; then
  19527. DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
  19528. else
  19529. DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
  19530. fi
  19531. # Put the nasty error message in config.log where it belongs
  19532. echo "$DBUS_PKG_ERRORS" >&5
  19533. have_dbus=no
  19534. elif test $pkg_failed = untried; then
  19535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19536. $as_echo "no" >&6; }
  19537. have_dbus=no
  19538. else
  19539. DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
  19540. DBUS_LIBS=$pkg_cv_DBUS_LIBS
  19541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19542. $as_echo "yes" >&6; }
  19543. have_dbus=yes
  19544. fi
  19545. save_CFLAGS="$CFLAGS"
  19546. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19547. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19548. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19549. have_dbus_dbus_h_hdr=yes
  19550. else
  19551. have_dbus_dbus_h_hdr=no
  19552. fi
  19553. CFLAGS="$save_CFLAGS"
  19554. if test x$have_dbus_dbus_h_hdr = xyes; then
  19555. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19556. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19557. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19558. fi
  19559. fi
  19560. }
  19561. CheckIME()
  19562. {
  19563. # Check whether --enable-ime was given.
  19564. if test "${enable_ime+set}" = set; then :
  19565. enableval=$enable_ime;
  19566. else
  19567. enable_ime=yes
  19568. fi
  19569. if test x$enable_ime = xyes; then
  19570. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19571. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19572. fi
  19573. }
  19574. CheckIBus()
  19575. {
  19576. # Check whether --enable-ibus was given.
  19577. if test "${enable_ibus+set}" = set; then :
  19578. enableval=$enable_ibus;
  19579. else
  19580. enable_ibus=yes
  19581. fi
  19582. if test x$enable_ibus = xyes; then
  19583. pkg_failed=no
  19584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
  19585. $as_echo_n "checking for IBUS... " >&6; }
  19586. if test -n "$IBUS_CFLAGS"; then
  19587. pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
  19588. elif test -n "$PKG_CONFIG"; then
  19589. if test -n "$PKG_CONFIG" && \
  19590. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19591. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19592. ac_status=$?
  19593. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19594. test $ac_status = 0; }; then
  19595. pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
  19596. else
  19597. pkg_failed=yes
  19598. fi
  19599. else
  19600. pkg_failed=untried
  19601. fi
  19602. if test -n "$IBUS_LIBS"; then
  19603. pkg_cv_IBUS_LIBS="$IBUS_LIBS"
  19604. elif test -n "$PKG_CONFIG"; then
  19605. if test -n "$PKG_CONFIG" && \
  19606. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
  19607. ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
  19608. ac_status=$?
  19609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19610. test $ac_status = 0; }; then
  19611. pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
  19612. else
  19613. pkg_failed=yes
  19614. fi
  19615. else
  19616. pkg_failed=untried
  19617. fi
  19618. if test $pkg_failed = yes; then
  19619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19620. $as_echo "no" >&6; }
  19621. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19622. _pkg_short_errors_supported=yes
  19623. else
  19624. _pkg_short_errors_supported=no
  19625. fi
  19626. if test $_pkg_short_errors_supported = yes; then
  19627. IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
  19628. else
  19629. IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
  19630. fi
  19631. # Put the nasty error message in config.log where it belongs
  19632. echo "$IBUS_PKG_ERRORS" >&5
  19633. have_ibus=no
  19634. elif test $pkg_failed = untried; then
  19635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19636. $as_echo "no" >&6; }
  19637. have_ibus=no
  19638. else
  19639. IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
  19640. IBUS_LIBS=$pkg_cv_IBUS_LIBS
  19641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19642. $as_echo "yes" >&6; }
  19643. have_ibus=yes
  19644. fi
  19645. save_CFLAGS="$CFLAGS"
  19646. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19647. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19648. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19649. have_ibus_ibus_h_hdr=yes
  19650. else
  19651. have_ibus_ibus_h_hdr=no
  19652. fi
  19653. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19654. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19655. have_inotify_inotify_h_hdr=yes
  19656. else
  19657. have_inotify_inotify_h_hdr=no
  19658. fi
  19659. CFLAGS="$save_CFLAGS"
  19660. if test x$have_ibus_ibus_h_hdr = xyes; then
  19661. if test x$enable_ime != xyes; then
  19662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19663. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19664. have_ibus_ibus_h_hdr=no
  19665. elif test x$enable_dbus != xyes; then
  19666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19667. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19668. have_ibus_ibus_h_hdr=no
  19669. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19670. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19671. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19672. have_ibus_ibus_h_hdr=no
  19673. else
  19674. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19675. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19676. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19677. fi
  19678. fi
  19679. fi
  19680. }
  19681. CheckFcitx()
  19682. {
  19683. # Check whether --enable-fcitx was given.
  19684. if test "${enable_fcitx+set}" = set; then :
  19685. enableval=$enable_fcitx;
  19686. else
  19687. enable_fcitx=yes
  19688. fi
  19689. if test x$enable_fcitx = xyes; then
  19690. pkg_failed=no
  19691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCITX" >&5
  19692. $as_echo_n "checking for FCITX... " >&6; }
  19693. if test -n "$FCITX_CFLAGS"; then
  19694. pkg_cv_FCITX_CFLAGS="$FCITX_CFLAGS"
  19695. elif test -n "$PKG_CONFIG"; then
  19696. if test -n "$PKG_CONFIG" && \
  19697. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19698. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19699. ac_status=$?
  19700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19701. test $ac_status = 0; }; then
  19702. pkg_cv_FCITX_CFLAGS=`$PKG_CONFIG --cflags "fcitx" 2>/dev/null`
  19703. else
  19704. pkg_failed=yes
  19705. fi
  19706. else
  19707. pkg_failed=untried
  19708. fi
  19709. if test -n "$FCITX_LIBS"; then
  19710. pkg_cv_FCITX_LIBS="$FCITX_LIBS"
  19711. elif test -n "$PKG_CONFIG"; then
  19712. if test -n "$PKG_CONFIG" && \
  19713. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
  19714. ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
  19715. ac_status=$?
  19716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19717. test $ac_status = 0; }; then
  19718. pkg_cv_FCITX_LIBS=`$PKG_CONFIG --libs "fcitx" 2>/dev/null`
  19719. else
  19720. pkg_failed=yes
  19721. fi
  19722. else
  19723. pkg_failed=untried
  19724. fi
  19725. if test $pkg_failed = yes; then
  19726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19727. $as_echo "no" >&6; }
  19728. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19729. _pkg_short_errors_supported=yes
  19730. else
  19731. _pkg_short_errors_supported=no
  19732. fi
  19733. if test $_pkg_short_errors_supported = yes; then
  19734. FCITX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fcitx" 2>&1`
  19735. else
  19736. FCITX_PKG_ERRORS=`$PKG_CONFIG --print-errors "fcitx" 2>&1`
  19737. fi
  19738. # Put the nasty error message in config.log where it belongs
  19739. echo "$FCITX_PKG_ERRORS" >&5
  19740. have_fcitx=no
  19741. elif test $pkg_failed = untried; then
  19742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19743. $as_echo "no" >&6; }
  19744. have_fcitx=no
  19745. else
  19746. FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
  19747. FCITX_LIBS=$pkg_cv_FCITX_LIBS
  19748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19749. $as_echo "yes" >&6; }
  19750. have_fcitx=yes
  19751. fi
  19752. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19753. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19754. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19755. have_fcitx_frontend_h_hdr=yes
  19756. else
  19757. have_fcitx_frontend_h_hdr=no
  19758. fi
  19759. CFLAGS="$save_CFLAGS"
  19760. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19761. if test x$enable_ime != xyes; then
  19762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19763. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19764. have_fcitx_frontend_h_hdr=no
  19765. elif test x$enable_dbus != xyes; then
  19766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19767. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19768. have_fcitx_frontend_h_hdr=no
  19769. else
  19770. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19771. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19772. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19773. fi
  19774. fi
  19775. fi
  19776. }
  19777. CheckTslib()
  19778. {
  19779. # Check whether --enable-input-tslib was given.
  19780. if test "${enable_input_tslib+set}" = set; then :
  19781. enableval=$enable_input_tslib;
  19782. else
  19783. enable_input_tslib=yes
  19784. fi
  19785. if test x$enable_input_tslib = xyes; then
  19786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19787. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19788. enable_input_tslib=no
  19789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19790. /* end confdefs.h. */
  19791. #include "tslib.h"
  19792. int
  19793. main ()
  19794. {
  19795. ;
  19796. return 0;
  19797. }
  19798. _ACEOF
  19799. if ac_fn_c_try_compile "$LINENO"; then :
  19800. enable_input_tslib=yes
  19801. fi
  19802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19804. $as_echo "$enable_input_tslib" >&6; }
  19805. if test x$enable_input_tslib = xyes; then
  19806. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19807. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19808. SUMMARY_input="${SUMMARY_input} ts"
  19809. fi
  19810. fi
  19811. }
  19812. CheckPTHREAD()
  19813. {
  19814. # Check whether --enable-pthreads was given.
  19815. if test "${enable_pthreads+set}" = set; then :
  19816. enableval=$enable_pthreads;
  19817. else
  19818. enable_pthreads=yes
  19819. fi
  19820. # Check whether --enable-pthread-sem was given.
  19821. if test "${enable_pthread_sem+set}" = set; then :
  19822. enableval=$enable_pthread_sem;
  19823. else
  19824. enable_pthread_sem=yes
  19825. fi
  19826. case "$host" in
  19827. *-*-android*)
  19828. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19829. pthread_lib=""
  19830. ;;
  19831. *-*-linux*|*-*-uclinux*)
  19832. pthread_cflags="-D_REENTRANT"
  19833. pthread_lib="-lpthread"
  19834. ;;
  19835. *-*-bsdi*)
  19836. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19837. pthread_lib=""
  19838. ;;
  19839. *-*-darwin*)
  19840. pthread_cflags="-D_THREAD_SAFE"
  19841. # causes Carbon.p complaints?
  19842. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19843. ;;
  19844. *-*-freebsd*|*-*-dragonfly*)
  19845. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19846. pthread_lib="-pthread"
  19847. ;;
  19848. *-*-netbsd*)
  19849. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19850. pthread_lib="-lpthread"
  19851. ;;
  19852. *-*-openbsd*)
  19853. pthread_cflags="-D_REENTRANT"
  19854. pthread_lib="-pthread"
  19855. ;;
  19856. *-*-solaris2.9)
  19857. # From Solaris 9+, posix4's preferred name is rt.
  19858. pthread_cflags="-D_REENTRANT"
  19859. pthread_lib="-lpthread -lrt"
  19860. ;;
  19861. *-*-solaris2.10)
  19862. # Solaris 10+ merged pthread into libc.
  19863. pthread_cflags="-D_REENTRANT"
  19864. pthread_lib="-lrt"
  19865. ;;
  19866. *-*-solaris*)
  19867. # Solaris 11+ merged rt into libc.
  19868. pthread_cflags="-D_REENTRANT"
  19869. pthread_lib=""
  19870. ;;
  19871. *-*-sysv5*)
  19872. pthread_cflags="-D_REENTRANT -Kthread"
  19873. pthread_lib=""
  19874. ;;
  19875. *-*-aix*)
  19876. pthread_cflags="-D_REENTRANT -mthreads"
  19877. pthread_lib="-lpthread"
  19878. ;;
  19879. *-*-hpux11*)
  19880. pthread_cflags="-D_REENTRANT"
  19881. pthread_lib="-L/usr/lib -lpthread"
  19882. ;;
  19883. *-*-haiku*)
  19884. pthread_cflags="-D_REENTRANT"
  19885. pthread_lib=""
  19886. ;;
  19887. *-*-nto*)
  19888. pthread_cflags="-D_REENTRANT"
  19889. pthread_lib=""
  19890. ;;
  19891. *)
  19892. pthread_cflags="-D_REENTRANT"
  19893. pthread_lib="-lpthread"
  19894. ;;
  19895. esac
  19896. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19897. # Save the original compiler flags and libraries
  19898. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19899. # Add the pthread compiler flags and libraries
  19900. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19901. # Check to see if we have pthread support on this system
  19902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19903. $as_echo_n "checking for pthreads... " >&6; }
  19904. use_pthreads=no
  19905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19906. /* end confdefs.h. */
  19907. #include <pthread.h>
  19908. int
  19909. main ()
  19910. {
  19911. pthread_attr_t type;
  19912. pthread_attr_init(&type);
  19913. ;
  19914. return 0;
  19915. }
  19916. _ACEOF
  19917. if ac_fn_c_try_link "$LINENO"; then :
  19918. use_pthreads=yes
  19919. fi
  19920. rm -f core conftest.err conftest.$ac_objext \
  19921. conftest$ac_exeext conftest.$ac_ext
  19922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19923. $as_echo "$use_pthreads" >&6; }
  19924. # Restore the compiler flags and libraries
  19925. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19926. # Do futher testing if we have pthread support...
  19927. if test x$use_pthreads = xyes; then
  19928. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19929. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19930. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19931. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19932. # Save the original compiler flags and libraries
  19933. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19934. # Add the pthread compiler flags and libraries
  19935. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19936. # Check to see if recursive mutexes are available
  19937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19938. $as_echo_n "checking for recursive mutexes... " >&6; }
  19939. has_recursive_mutexes=no
  19940. if test x$has_recursive_mutexes = xno; then
  19941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19942. /* end confdefs.h. */
  19943. #define _GNU_SOURCE 1
  19944. #include <pthread.h>
  19945. int
  19946. main ()
  19947. {
  19948. pthread_mutexattr_t attr;
  19949. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19950. ;
  19951. return 0;
  19952. }
  19953. _ACEOF
  19954. if ac_fn_c_try_link "$LINENO"; then :
  19955. has_recursive_mutexes=yes
  19956. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19957. fi
  19958. rm -f core conftest.err conftest.$ac_objext \
  19959. conftest$ac_exeext conftest.$ac_ext
  19960. fi
  19961. if test x$has_recursive_mutexes = xno; then
  19962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19963. /* end confdefs.h. */
  19964. #define _GNU_SOURCE 1
  19965. #include <pthread.h>
  19966. int
  19967. main ()
  19968. {
  19969. pthread_mutexattr_t attr;
  19970. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19971. ;
  19972. return 0;
  19973. }
  19974. _ACEOF
  19975. if ac_fn_c_try_link "$LINENO"; then :
  19976. has_recursive_mutexes=yes
  19977. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19978. fi
  19979. rm -f core conftest.err conftest.$ac_objext \
  19980. conftest$ac_exeext conftest.$ac_ext
  19981. fi
  19982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19983. $as_echo "$has_recursive_mutexes" >&6; }
  19984. # Check to see if pthread semaphore support is missing
  19985. if test x$enable_pthread_sem = xyes; then
  19986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19987. $as_echo_n "checking for pthread semaphores... " >&6; }
  19988. have_pthread_sem=no
  19989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19990. /* end confdefs.h. */
  19991. #include <pthread.h>
  19992. #include <semaphore.h>
  19993. int
  19994. main ()
  19995. {
  19996. ;
  19997. return 0;
  19998. }
  19999. _ACEOF
  20000. if ac_fn_c_try_compile "$LINENO"; then :
  20001. have_pthread_sem=yes
  20002. fi
  20003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  20005. $as_echo "$have_pthread_sem" >&6; }
  20006. fi
  20007. if test x$have_pthread_sem = xyes; then
  20008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  20009. $as_echo_n "checking for sem_timedwait... " >&6; }
  20010. have_sem_timedwait=no
  20011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20012. /* end confdefs.h. */
  20013. #include <pthread.h>
  20014. #include <semaphore.h>
  20015. int
  20016. main ()
  20017. {
  20018. sem_timedwait(NULL, NULL);
  20019. ;
  20020. return 0;
  20021. }
  20022. _ACEOF
  20023. if ac_fn_c_try_link "$LINENO"; then :
  20024. have_sem_timedwait=yes
  20025. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  20026. fi
  20027. rm -f core conftest.err conftest.$ac_objext \
  20028. conftest$ac_exeext conftest.$ac_ext
  20029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  20030. $as_echo "$have_sem_timedwait" >&6; }
  20031. fi
  20032. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  20033. "
  20034. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  20035. have_pthread_np_h=yes
  20036. else
  20037. have_pthread_np_h=no
  20038. fi
  20039. if test x$have_pthread_np_h = xyes; then
  20040. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  20041. fi
  20042. # Check to see if pthread naming is available
  20043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  20044. $as_echo_n "checking for pthread_setname_np... " >&6; }
  20045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20046. /* end confdefs.h. */
  20047. /* Override any GCC internal prototype to avoid an error.
  20048. Use char because int might match the return type of a GCC
  20049. builtin and then its argument prototype would still apply. */
  20050. #ifdef __cplusplus
  20051. extern "C"
  20052. #endif
  20053. char pthread_setname_np ();
  20054. int
  20055. main ()
  20056. {
  20057. return pthread_setname_np ();
  20058. ;
  20059. return 0;
  20060. }
  20061. _ACEOF
  20062. if ac_fn_c_try_link "$LINENO"; then :
  20063. has_pthread_setname_np=yes
  20064. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  20065. else
  20066. has_pthread_setname_np=no
  20067. fi
  20068. rm -f core conftest.err conftest.$ac_objext \
  20069. conftest$ac_exeext conftest.$ac_ext
  20070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  20071. $as_echo "$has_pthread_setname_np" >&6; }
  20072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  20073. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  20074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20075. /* end confdefs.h. */
  20076. /* Override any GCC internal prototype to avoid an error.
  20077. Use char because int might match the return type of a GCC
  20078. builtin and then its argument prototype would still apply. */
  20079. #ifdef __cplusplus
  20080. extern "C"
  20081. #endif
  20082. char pthread_set_name_np ();
  20083. int
  20084. main ()
  20085. {
  20086. return pthread_set_name_np ();
  20087. ;
  20088. return 0;
  20089. }
  20090. _ACEOF
  20091. if ac_fn_c_try_link "$LINENO"; then :
  20092. has_pthread_set_name_np=yes
  20093. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  20094. else
  20095. has_pthread_set_name_np=no
  20096. fi
  20097. rm -f core conftest.err conftest.$ac_objext \
  20098. conftest$ac_exeext conftest.$ac_ext
  20099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  20100. $as_echo "$has_pthread_set_name_np" >&6; }
  20101. # Restore the compiler flags and libraries
  20102. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  20103. # Basic thread creation functions
  20104. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  20105. # Semaphores
  20106. # We can fake these with mutexes and condition variables if necessary
  20107. if test x$have_pthread_sem = xyes; then
  20108. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  20109. else
  20110. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  20111. fi
  20112. # Mutexes
  20113. # We can fake these with semaphores if necessary
  20114. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  20115. # Condition variables
  20116. # We can fake these with semaphores and mutexes if necessary
  20117. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  20118. # Thread local storage
  20119. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  20120. have_threads=yes
  20121. fi
  20122. fi
  20123. }
  20124. CheckWINDOWS()
  20125. {
  20126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  20127. $as_echo_n "checking Windows compiler... " >&6; }
  20128. have_win32_gcc=no
  20129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20130. /* end confdefs.h. */
  20131. #include <windows.h>
  20132. int
  20133. main ()
  20134. {
  20135. ;
  20136. return 0;
  20137. }
  20138. _ACEOF
  20139. if ac_fn_c_try_compile "$LINENO"; then :
  20140. have_win32_gcc=yes
  20141. fi
  20142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  20144. $as_echo "$have_win32_gcc" >&6; }
  20145. if test x$have_win32_gcc != xyes; then
  20146. as_fn_error $? "
  20147. *** Your compiler ($CC) does not produce Windows executables!
  20148. " "$LINENO" 5
  20149. fi
  20150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  20151. $as_echo_n "checking Windows CE... " >&6; }
  20152. have_wince=no
  20153. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20154. /* end confdefs.h. */
  20155. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  20156. #error This is not Windows CE
  20157. #endif
  20158. int
  20159. main ()
  20160. {
  20161. ;
  20162. return 0;
  20163. }
  20164. _ACEOF
  20165. if ac_fn_c_try_compile "$LINENO"; then :
  20166. have_wince=yes
  20167. as_fn_error $? "
  20168. *** Sorry, Windows CE is no longer supported.
  20169. " "$LINENO" 5
  20170. fi
  20171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  20173. $as_echo "$have_wince" >&6; }
  20174. # This fixes Windows stack alignment with newer GCC
  20175. CheckStackBoundary
  20176. }
  20177. CheckDIRECTX()
  20178. {
  20179. # Check whether --enable-directx was given.
  20180. if test "${enable_directx+set}" = set; then :
  20181. enableval=$enable_directx;
  20182. else
  20183. enable_directx=yes
  20184. fi
  20185. if test x$enable_directx = xyes; then
  20186. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  20187. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  20188. have_d3d=yes
  20189. fi
  20190. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  20191. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  20192. have_d3d11=yes
  20193. fi
  20194. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  20195. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  20196. have_ddraw=yes
  20197. fi
  20198. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  20199. if test "x$ac_cv_header_dsound_h" = xyes; then :
  20200. have_dsound=yes
  20201. fi
  20202. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  20203. if test "x$ac_cv_header_dinput_h" = xyes; then :
  20204. have_dinput=yes
  20205. fi
  20206. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  20207. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  20208. have_dxgi=yes
  20209. fi
  20210. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  20211. if test "x$ac_cv_header_xinput_h" = xyes; then :
  20212. have_xinput=yes
  20213. fi
  20214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20215. /* end confdefs.h. */
  20216. #include <windows.h>
  20217. #include <xinput.h>
  20218. XINPUT_GAMEPAD_EX x1;
  20219. int
  20220. main ()
  20221. {
  20222. ;
  20223. return 0;
  20224. }
  20225. _ACEOF
  20226. if ac_fn_c_try_compile "$LINENO"; then :
  20227. have_xinput_gamepadex=yes
  20228. fi
  20229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20231. /* end confdefs.h. */
  20232. #include <windows.h>
  20233. #include <xinput.h>
  20234. XINPUT_STATE_EX s1;
  20235. int
  20236. main ()
  20237. {
  20238. ;
  20239. return 0;
  20240. }
  20241. _ACEOF
  20242. if ac_fn_c_try_compile "$LINENO"; then :
  20243. have_xinput_stateex=yes
  20244. fi
  20245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20246. if test x$have_ddraw = xyes; then
  20247. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  20248. fi
  20249. if test x$have_dinput = xyes; then
  20250. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  20251. fi
  20252. if test x$have_dsound = xyes; then
  20253. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  20254. fi
  20255. if test x$have_dxgi = xyes; then
  20256. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  20257. fi
  20258. if test x$have_xinput = xyes; then
  20259. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  20260. fi
  20261. if test x$have_xinput_gamepadex = xyes; then
  20262. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  20263. fi
  20264. if test x$have_xinput_stateex = xyes; then
  20265. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  20266. fi
  20267. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  20268. # FIXME: ...so force it off for now.
  20269. case "$host" in
  20270. *-*-cygwin*)
  20271. have_dinput=false
  20272. ;;
  20273. esac
  20274. fi
  20275. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  20276. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  20277. have_wasapi=yes
  20278. fi
  20279. if test x$have_wasapi = xyes; then
  20280. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  20281. fi
  20282. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  20283. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  20284. else
  20285. have_wasapi=no
  20286. fi
  20287. if test x$have_wasapi = xyes; then
  20288. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  20289. fi
  20290. # Check whether --enable-wasapi was given.
  20291. if test "${enable_wasapi+set}" = set; then :
  20292. enableval=$enable_wasapi;
  20293. else
  20294. enable_wasapi=yes
  20295. fi
  20296. }
  20297. CheckDLOPEN()
  20298. {
  20299. # Check whether --enable-sdl-dlopen was given.
  20300. if test "${enable_sdl_dlopen+set}" = set; then :
  20301. enableval=$enable_sdl_dlopen;
  20302. else
  20303. enable_sdl_dlopen=yes
  20304. fi
  20305. if test x$enable_sdl_dlopen = xyes; then
  20306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  20307. $as_echo_n "checking for dlopen... " >&6; }
  20308. have_dlopen=no
  20309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20310. /* end confdefs.h. */
  20311. #include <dlfcn.h>
  20312. int
  20313. main ()
  20314. {
  20315. void *handle = dlopen("", RTLD_NOW);
  20316. const char *loaderror = (char *) dlerror();
  20317. ;
  20318. return 0;
  20319. }
  20320. _ACEOF
  20321. if ac_fn_c_try_compile "$LINENO"; then :
  20322. have_dlopen=yes
  20323. fi
  20324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  20326. $as_echo "$have_dlopen" >&6; }
  20327. if test x$have_dlopen = xyes; then
  20328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  20329. $as_echo_n "checking for dlopen in -lc... " >&6; }
  20330. if ${ac_cv_lib_c_dlopen+:} false; then :
  20331. $as_echo_n "(cached) " >&6
  20332. else
  20333. ac_check_lib_save_LIBS=$LIBS
  20334. LIBS="-lc $LIBS"
  20335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20336. /* end confdefs.h. */
  20337. /* Override any GCC internal prototype to avoid an error.
  20338. Use char because int might match the return type of a GCC
  20339. builtin and then its argument prototype would still apply. */
  20340. #ifdef __cplusplus
  20341. extern "C"
  20342. #endif
  20343. char dlopen ();
  20344. int
  20345. main ()
  20346. {
  20347. return dlopen ();
  20348. ;
  20349. return 0;
  20350. }
  20351. _ACEOF
  20352. if ac_fn_c_try_link "$LINENO"; then :
  20353. ac_cv_lib_c_dlopen=yes
  20354. else
  20355. ac_cv_lib_c_dlopen=no
  20356. fi
  20357. rm -f core conftest.err conftest.$ac_objext \
  20358. conftest$ac_exeext conftest.$ac_ext
  20359. LIBS=$ac_check_lib_save_LIBS
  20360. fi
  20361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  20362. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  20363. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  20364. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20365. else
  20366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  20367. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  20368. if ${ac_cv_lib_dl_dlopen+:} false; then :
  20369. $as_echo_n "(cached) " >&6
  20370. else
  20371. ac_check_lib_save_LIBS=$LIBS
  20372. LIBS="-ldl $LIBS"
  20373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20374. /* end confdefs.h. */
  20375. /* Override any GCC internal prototype to avoid an error.
  20376. Use char because int might match the return type of a GCC
  20377. builtin and then its argument prototype would still apply. */
  20378. #ifdef __cplusplus
  20379. extern "C"
  20380. #endif
  20381. char dlopen ();
  20382. int
  20383. main ()
  20384. {
  20385. return dlopen ();
  20386. ;
  20387. return 0;
  20388. }
  20389. _ACEOF
  20390. if ac_fn_c_try_link "$LINENO"; then :
  20391. ac_cv_lib_dl_dlopen=yes
  20392. else
  20393. ac_cv_lib_dl_dlopen=no
  20394. fi
  20395. rm -f core conftest.err conftest.$ac_objext \
  20396. conftest$ac_exeext conftest.$ac_ext
  20397. LIBS=$ac_check_lib_save_LIBS
  20398. fi
  20399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  20400. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  20401. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  20402. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  20403. else
  20404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  20405. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  20406. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  20407. $as_echo_n "(cached) " >&6
  20408. else
  20409. ac_check_lib_save_LIBS=$LIBS
  20410. LIBS="-lltdl $LIBS"
  20411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20412. /* end confdefs.h. */
  20413. /* Override any GCC internal prototype to avoid an error.
  20414. Use char because int might match the return type of a GCC
  20415. builtin and then its argument prototype would still apply. */
  20416. #ifdef __cplusplus
  20417. extern "C"
  20418. #endif
  20419. char dlopen ();
  20420. int
  20421. main ()
  20422. {
  20423. return dlopen ();
  20424. ;
  20425. return 0;
  20426. }
  20427. _ACEOF
  20428. if ac_fn_c_try_link "$LINENO"; then :
  20429. ac_cv_lib_ltdl_dlopen=yes
  20430. else
  20431. ac_cv_lib_ltdl_dlopen=no
  20432. fi
  20433. rm -f core conftest.err conftest.$ac_objext \
  20434. conftest$ac_exeext conftest.$ac_ext
  20435. LIBS=$ac_check_lib_save_LIBS
  20436. fi
  20437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  20438. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  20439. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  20440. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  20441. fi
  20442. fi
  20443. fi
  20444. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  20445. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  20446. have_loadso=yes
  20447. fi
  20448. fi
  20449. }
  20450. CheckUSBHID()
  20451. {
  20452. case "$host" in
  20453. *-*-*bsd*)
  20454. if test x$enable_joystick = xyes; then
  20455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  20456. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  20457. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  20458. $as_echo_n "(cached) " >&6
  20459. else
  20460. ac_check_lib_save_LIBS=$LIBS
  20461. LIBS="-lusbhid $LIBS"
  20462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20463. /* end confdefs.h. */
  20464. /* Override any GCC internal prototype to avoid an error.
  20465. Use char because int might match the return type of a GCC
  20466. builtin and then its argument prototype would still apply. */
  20467. #ifdef __cplusplus
  20468. extern "C"
  20469. #endif
  20470. char hid_init ();
  20471. int
  20472. main ()
  20473. {
  20474. return hid_init ();
  20475. ;
  20476. return 0;
  20477. }
  20478. _ACEOF
  20479. if ac_fn_c_try_link "$LINENO"; then :
  20480. ac_cv_lib_usbhid_hid_init=yes
  20481. else
  20482. ac_cv_lib_usbhid_hid_init=no
  20483. fi
  20484. rm -f core conftest.err conftest.$ac_objext \
  20485. conftest$ac_exeext conftest.$ac_ext
  20486. LIBS=$ac_check_lib_save_LIBS
  20487. fi
  20488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20489. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20490. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20491. have_libusbhid=yes
  20492. fi
  20493. if test x$have_libusbhid = xyes; then
  20494. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20495. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20496. USB_CFLAGS="-DHAVE_USBHID_H"
  20497. fi
  20498. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20499. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20500. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20501. fi
  20502. USB_LIBS="$USB_LIBS -lusbhid"
  20503. else
  20504. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20505. if test "x$ac_cv_header_usb_h" = xyes; then :
  20506. USB_CFLAGS="-DHAVE_USB_H"
  20507. fi
  20508. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20509. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20510. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20511. fi
  20512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20513. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20514. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20515. $as_echo_n "(cached) " >&6
  20516. else
  20517. ac_check_lib_save_LIBS=$LIBS
  20518. LIBS="-lusb $LIBS"
  20519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20520. /* end confdefs.h. */
  20521. /* Override any GCC internal prototype to avoid an error.
  20522. Use char because int might match the return type of a GCC
  20523. builtin and then its argument prototype would still apply. */
  20524. #ifdef __cplusplus
  20525. extern "C"
  20526. #endif
  20527. char hid_init ();
  20528. int
  20529. main ()
  20530. {
  20531. return hid_init ();
  20532. ;
  20533. return 0;
  20534. }
  20535. _ACEOF
  20536. if ac_fn_c_try_link "$LINENO"; then :
  20537. ac_cv_lib_usb_hid_init=yes
  20538. else
  20539. ac_cv_lib_usb_hid_init=no
  20540. fi
  20541. rm -f core conftest.err conftest.$ac_objext \
  20542. conftest$ac_exeext conftest.$ac_ext
  20543. LIBS=$ac_check_lib_save_LIBS
  20544. fi
  20545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20546. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20547. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20548. USB_LIBS="$USB_LIBS -lusb"
  20549. fi
  20550. fi
  20551. save_CFLAGS="$CFLAGS"
  20552. CFLAGS="$CFLAGS $USB_CFLAGS"
  20553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20554. $as_echo_n "checking for usbhid... " >&6; }
  20555. have_usbhid=no
  20556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20557. /* end confdefs.h. */
  20558. #include <sys/types.h>
  20559. #if defined(HAVE_USB_H)
  20560. #include <usb.h>
  20561. #endif
  20562. #ifdef __DragonFly__
  20563. # include <bus/usb/usb.h>
  20564. # include <bus/usb/usbhid.h>
  20565. #else
  20566. # include <dev/usb/usb.h>
  20567. # include <dev/usb/usbhid.h>
  20568. #endif
  20569. #if defined(HAVE_USBHID_H)
  20570. #include <usbhid.h>
  20571. #elif defined(HAVE_LIBUSB_H)
  20572. #include <libusb.h>
  20573. #elif defined(HAVE_LIBUSBHID_H)
  20574. #include <libusbhid.h>
  20575. #endif
  20576. int
  20577. main ()
  20578. {
  20579. struct report_desc *repdesc;
  20580. struct usb_ctl_report *repbuf;
  20581. hid_kind_t hidkind;
  20582. ;
  20583. return 0;
  20584. }
  20585. _ACEOF
  20586. if ac_fn_c_try_compile "$LINENO"; then :
  20587. have_usbhid=yes
  20588. fi
  20589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20591. $as_echo "$have_usbhid" >&6; }
  20592. if test x$have_usbhid = xyes; then
  20593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20594. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20595. have_usbhid_ucr_data=no
  20596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20597. /* end confdefs.h. */
  20598. #include <sys/types.h>
  20599. #if defined(HAVE_USB_H)
  20600. #include <usb.h>
  20601. #endif
  20602. #ifdef __DragonFly__
  20603. # include <bus/usb/usb.h>
  20604. # include <bus/usb/usbhid.h>
  20605. #else
  20606. # include <dev/usb/usb.h>
  20607. # include <dev/usb/usbhid.h>
  20608. #endif
  20609. #if defined(HAVE_USBHID_H)
  20610. #include <usbhid.h>
  20611. #elif defined(HAVE_LIBUSB_H)
  20612. #include <libusb.h>
  20613. #elif defined(HAVE_LIBUSBHID_H)
  20614. #include <libusbhid.h>
  20615. #endif
  20616. int
  20617. main ()
  20618. {
  20619. struct usb_ctl_report buf;
  20620. if (buf.ucr_data) { }
  20621. ;
  20622. return 0;
  20623. }
  20624. _ACEOF
  20625. if ac_fn_c_try_compile "$LINENO"; then :
  20626. have_usbhid_ucr_data=yes
  20627. fi
  20628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20629. if test x$have_usbhid_ucr_data = xyes; then
  20630. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20631. fi
  20632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20633. $as_echo "$have_usbhid_ucr_data" >&6; }
  20634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20635. $as_echo_n "checking for new usbhid API... " >&6; }
  20636. have_usbhid_new=no
  20637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20638. /* end confdefs.h. */
  20639. #include <sys/types.h>
  20640. #if defined(HAVE_USB_H)
  20641. #include <usb.h>
  20642. #endif
  20643. #ifdef __DragonFly__
  20644. #include <bus/usb/usb.h>
  20645. #include <bus/usb/usbhid.h>
  20646. #else
  20647. #include <dev/usb/usb.h>
  20648. #include <dev/usb/usbhid.h>
  20649. #endif
  20650. #if defined(HAVE_USBHID_H)
  20651. #include <usbhid.h>
  20652. #elif defined(HAVE_LIBUSB_H)
  20653. #include <libusb.h>
  20654. #elif defined(HAVE_LIBUSBHID_H)
  20655. #include <libusbhid.h>
  20656. #endif
  20657. int
  20658. main ()
  20659. {
  20660. report_desc_t d;
  20661. hid_start_parse(d, 1, 1);
  20662. ;
  20663. return 0;
  20664. }
  20665. _ACEOF
  20666. if ac_fn_c_try_compile "$LINENO"; then :
  20667. have_usbhid_new=yes
  20668. fi
  20669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20670. if test x$have_usbhid_new = xyes; then
  20671. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20672. fi
  20673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20674. $as_echo "$have_usbhid_new" >&6; }
  20675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20676. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20677. have_machine_joystick=no
  20678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20679. /* end confdefs.h. */
  20680. #include <machine/joystick.h>
  20681. int
  20682. main ()
  20683. {
  20684. struct joystick t;
  20685. ;
  20686. return 0;
  20687. }
  20688. _ACEOF
  20689. if ac_fn_c_try_compile "$LINENO"; then :
  20690. have_machine_joystick=yes
  20691. fi
  20692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20693. if test x$have_machine_joystick = xyes; then
  20694. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20695. fi
  20696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20697. $as_echo "$have_machine_joystick" >&6; }
  20698. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20699. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20700. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20701. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20702. have_joystick=yes
  20703. fi
  20704. CFLAGS="$save_CFLAGS"
  20705. fi
  20706. ;;
  20707. esac
  20708. }
  20709. CheckHIDAPI()
  20710. {
  20711. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20712. # so we'll just use libusb when it's available.
  20713. case "$host" in
  20714. # libusb does not support iOS
  20715. arm*-apple-darwin* | *-ios-* )
  20716. skiplibusb=yes
  20717. ;;
  20718. # On the other hand, *BSD specifically uses libusb only
  20719. *-*-*bsd* )
  20720. onlylibusb=yes
  20721. ;;
  20722. # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
  20723. *-*-cygwin* | *-*-mingw32*)
  20724. userawinput=yes
  20725. ;;
  20726. esac
  20727. # Check whether --enable-hidapi was given.
  20728. if test "${enable_hidapi+set}" = set; then :
  20729. enableval=$enable_hidapi;
  20730. else
  20731. enable_hidapi=no
  20732. fi
  20733. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20734. if test x$skiplibusb = xyes; then
  20735. hidapi_support=yes
  20736. else
  20737. pkg_failed=no
  20738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
  20739. $as_echo_n "checking for LIBUSB... " >&6; }
  20740. if test -n "$LIBUSB_CFLAGS"; then
  20741. pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
  20742. elif test -n "$PKG_CONFIG"; then
  20743. if test -n "$PKG_CONFIG" && \
  20744. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20745. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20746. ac_status=$?
  20747. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20748. test $ac_status = 0; }; then
  20749. pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
  20750. else
  20751. pkg_failed=yes
  20752. fi
  20753. else
  20754. pkg_failed=untried
  20755. fi
  20756. if test -n "$LIBUSB_LIBS"; then
  20757. pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
  20758. elif test -n "$PKG_CONFIG"; then
  20759. if test -n "$PKG_CONFIG" && \
  20760. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
  20761. ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
  20762. ac_status=$?
  20763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20764. test $ac_status = 0; }; then
  20765. pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
  20766. else
  20767. pkg_failed=yes
  20768. fi
  20769. else
  20770. pkg_failed=untried
  20771. fi
  20772. if test $pkg_failed = yes; then
  20773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20774. $as_echo "no" >&6; }
  20775. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20776. _pkg_short_errors_supported=yes
  20777. else
  20778. _pkg_short_errors_supported=no
  20779. fi
  20780. if test $_pkg_short_errors_supported = yes; then
  20781. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
  20782. else
  20783. LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
  20784. fi
  20785. # Put the nasty error message in config.log where it belongs
  20786. echo "$LIBUSB_PKG_ERRORS" >&5
  20787. have_libusb=no
  20788. elif test $pkg_failed = untried; then
  20789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20790. $as_echo "no" >&6; }
  20791. have_libusb=no
  20792. else
  20793. LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
  20794. LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
  20795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20796. $as_echo "yes" >&6; }
  20797. have_libusb=yes
  20798. fi
  20799. save_CFLAGS="$CFLAGS"
  20800. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20801. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20802. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20803. have_libusb_h=yes
  20804. fi
  20805. CFLAGS="$save_CFLAGS"
  20806. if test x$have_libusb_h = xyes; then
  20807. hidapi_support=yes
  20808. elif test x$onlylibusb = xyes; then
  20809. hidapi_support=no
  20810. else
  20811. hidapi_support=yes
  20812. fi
  20813. fi
  20814. if test x$hidapi_support = xyes; then
  20815. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20816. if test x$userawinput = xyes; then
  20817. $as_echo "#define SDL_JOYSTICK_RAWINPUT 1" >>confdefs.h
  20818. fi
  20819. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20820. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20821. SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"
  20822. if test x$have_libusb_h = xyes; then
  20823. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20824. if test x$onlylibusb = xyes; then
  20825. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20826. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
  20827. else
  20828. if test x$have_loadso != xyes; then
  20829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&5
  20830. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libusb loading" >&2;}
  20831. fi
  20832. # libusb is loaded dynamically, so don't add it to LDFLAGS
  20833. libusb_lib=""
  20834. case "$host" in
  20835. *-*-darwin* )
  20836. libusb_lib="libusb-1.0.0.dylib"
  20837. ;;
  20838. *-*-cygwin* | *-*-mingw32* )
  20839. libusb_lib="libusb-1.0.dll"
  20840. ;;
  20841. esac
  20842. if test x$libusb_lib = x; then
  20843. libusb_lib=`find_lib "libusb-1.0.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  20844. fi
  20845. cat >>confdefs.h <<_ACEOF
  20846. #define SDL_LIBUSB_DYNAMIC "$libusb_lib"
  20847. _ACEOF
  20848. fi
  20849. fi
  20850. fi
  20851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20852. $as_echo_n "checking for hidapi support... " >&6; }
  20853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20854. $as_echo "$hidapi_support" >&6; }
  20855. fi
  20856. }
  20857. CheckClockGettime()
  20858. {
  20859. # Check whether --enable-clock_gettime was given.
  20860. if test "${enable_clock_gettime+set}" = set; then :
  20861. enableval=$enable_clock_gettime;
  20862. else
  20863. enable_clock_gettime=yes
  20864. fi
  20865. if test x$enable_clock_gettime = xyes; then
  20866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20867. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20868. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20869. $as_echo_n "(cached) " >&6
  20870. else
  20871. ac_check_lib_save_LIBS=$LIBS
  20872. LIBS="-lrt $LIBS"
  20873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20874. /* end confdefs.h. */
  20875. /* Override any GCC internal prototype to avoid an error.
  20876. Use char because int might match the return type of a GCC
  20877. builtin and then its argument prototype would still apply. */
  20878. #ifdef __cplusplus
  20879. extern "C"
  20880. #endif
  20881. char clock_gettime ();
  20882. int
  20883. main ()
  20884. {
  20885. return clock_gettime ();
  20886. ;
  20887. return 0;
  20888. }
  20889. _ACEOF
  20890. if ac_fn_c_try_link "$LINENO"; then :
  20891. ac_cv_lib_rt_clock_gettime=yes
  20892. else
  20893. ac_cv_lib_rt_clock_gettime=no
  20894. fi
  20895. rm -f core conftest.err conftest.$ac_objext \
  20896. conftest$ac_exeext conftest.$ac_ext
  20897. LIBS=$ac_check_lib_save_LIBS
  20898. fi
  20899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20900. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20901. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20902. have_clock_gettime=yes
  20903. fi
  20904. if test x$have_clock_gettime = xyes; then
  20905. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20906. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20907. else
  20908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20909. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20910. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20911. $as_echo_n "(cached) " >&6
  20912. else
  20913. ac_check_lib_save_LIBS=$LIBS
  20914. LIBS="-lc $LIBS"
  20915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20916. /* end confdefs.h. */
  20917. /* Override any GCC internal prototype to avoid an error.
  20918. Use char because int might match the return type of a GCC
  20919. builtin and then its argument prototype would still apply. */
  20920. #ifdef __cplusplus
  20921. extern "C"
  20922. #endif
  20923. char clock_gettime ();
  20924. int
  20925. main ()
  20926. {
  20927. return clock_gettime ();
  20928. ;
  20929. return 0;
  20930. }
  20931. _ACEOF
  20932. if ac_fn_c_try_link "$LINENO"; then :
  20933. ac_cv_lib_c_clock_gettime=yes
  20934. else
  20935. ac_cv_lib_c_clock_gettime=no
  20936. fi
  20937. rm -f core conftest.err conftest.$ac_objext \
  20938. conftest$ac_exeext conftest.$ac_ext
  20939. LIBS=$ac_check_lib_save_LIBS
  20940. fi
  20941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20942. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20943. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20944. have_clock_gettime=yes
  20945. fi
  20946. if test x$have_clock_gettime = xyes; then
  20947. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20948. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20949. fi
  20950. fi
  20951. fi
  20952. }
  20953. CheckLinuxVersion()
  20954. {
  20955. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20956. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20957. have_linux_version_h=yes
  20958. fi
  20959. if test x$have_linux_version_h = xyes; then
  20960. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20961. fi
  20962. }
  20963. CheckRPATH()
  20964. {
  20965. # Check whether --enable-rpath was given.
  20966. if test "${enable_rpath+set}" = set; then :
  20967. enableval=$enable_rpath;
  20968. else
  20969. enable_rpath=yes
  20970. fi
  20971. }
  20972. CheckEventSignals()
  20973. {
  20974. # Check whether --enable-backgrounding-signal was given.
  20975. if test "${enable_backgrounding_signal+set}" = set; then :
  20976. enableval=$enable_backgrounding_signal;
  20977. else
  20978. enable_backgrounding_signal=no
  20979. fi
  20980. if test x$enable_backgrounding_signal != xno; then
  20981. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_BACKGROUNDING_SIGNAL=$enable_backgrounding_signal"
  20982. fi
  20983. # Check whether --enable-foregrounding-signal was given.
  20984. if test "${enable_foregrounding_signal+set}" = set; then :
  20985. enableval=$enable_foregrounding_signal;
  20986. else
  20987. enable_foregrounding_signal=no
  20988. fi
  20989. if test x$enable_foregrounding_signal != xno; then
  20990. EXTRA_CFLAGS="$EXTRA_CFLAGS -DSDL_FOREGROUNDING_SIGNAL=$enable_foregrounding_signal"
  20991. fi
  20992. }
  20993. CheckVirtualJoystick()
  20994. {
  20995. # Check whether --enable-joystick-virtual was given.
  20996. if test "${enable_joystick_virtual+set}" = set; then :
  20997. enableval=$enable_joystick_virtual;
  20998. else
  20999. enable_joystick_virtual=yes
  21000. fi
  21001. if test x$enable_joystick = xyes -a x$enable_joystick_virtual = xyes; then
  21002. $as_echo "#define SDL_JOYSTICK_VIRTUAL 1" >>confdefs.h
  21003. SOURCES="$SOURCES $srcdir/src/joystick/virtual/*.c"
  21004. have_joystick_virtual=yes
  21005. fi
  21006. }
  21007. CheckWarnAll
  21008. CheckNoStrictAliasing
  21009. CheckEventSignals
  21010. case "$host" in
  21011. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  21012. case "$host" in
  21013. *-*-android*)
  21014. # Android
  21015. ARCH=android
  21016. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  21017. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  21018. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  21019. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  21020. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  21021. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  21022. if test x$enable_video = xyes; then
  21023. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  21024. # FIXME: confdefs? Not AC_DEFINE?
  21025. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  21026. SUMMARY_video="${SUMMARY_video} android"
  21027. fi
  21028. ;;
  21029. *-*-linux*) ARCH=linux ;;
  21030. *-*-uclinux*) ARCH=linux ;;
  21031. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  21032. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  21033. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  21034. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  21035. *-*-bsdi*) ARCH=bsdi ;;
  21036. *-*-freebsd*) ARCH=freebsd ;;
  21037. *-*-dragonfly*) ARCH=freebsd ;;
  21038. *-*-netbsd*) ARCH=netbsd ;;
  21039. *-*-openbsd*) ARCH=openbsd ;;
  21040. *-*-sysv5*) ARCH=sysv5 ;;
  21041. *-*-solaris*) ARCH=solaris ;;
  21042. *-*-hpux*) ARCH=hpux ;;
  21043. *-*-aix*) ARCH=aix ;;
  21044. *-*-minix*) ARCH=minix ;;
  21045. *-*-nto*) ARCH=nto
  21046. CheckQNXVideo
  21047. ;;
  21048. esac
  21049. CheckVisibilityHidden
  21050. CheckDeclarationAfterStatement
  21051. CheckDummyVideo
  21052. CheckDiskAudio
  21053. CheckDummyAudio
  21054. CheckDLOPEN
  21055. CheckARM
  21056. CheckNEON
  21057. CheckOSS
  21058. CheckALSA
  21059. CheckPulseAudio
  21060. CheckJACK
  21061. CheckARTSC
  21062. CheckESD
  21063. CheckNAS
  21064. CheckSNDIO
  21065. CheckFusionSound
  21066. CheckLibSampleRate
  21067. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  21068. CheckRPI
  21069. CheckX11
  21070. CheckDirectFB
  21071. CheckKMSDRM
  21072. CheckOpenGLX11
  21073. CheckOpenGLESX11
  21074. CheckVulkan
  21075. CheckWayland
  21076. CheckInputEvents
  21077. CheckLibUDev
  21078. CheckDBus
  21079. CheckIME
  21080. CheckIBus
  21081. CheckFcitx
  21082. case $ARCH in
  21083. linux)
  21084. CheckInputKD
  21085. ;;
  21086. esac
  21087. CheckTslib
  21088. CheckUSBHID
  21089. CheckHIDAPI
  21090. CheckPTHREAD
  21091. CheckClockGettime
  21092. CheckLinuxVersion
  21093. CheckRPATH
  21094. CheckVivanteVideo
  21095. # Set up files for the audio library
  21096. if test x$enable_audio = xyes; then
  21097. case $ARCH in
  21098. sysv5|solaris|hpux)
  21099. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  21100. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  21101. SUMMARY_audio="${SUMMARY_audio} sun"
  21102. have_audio=yes
  21103. ;;
  21104. netbsd) # Don't use this on OpenBSD, it's busted.
  21105. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  21106. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  21107. SUMMARY_audio="${SUMMARY_audio} netbsd"
  21108. have_audio=yes
  21109. ;;
  21110. aix)
  21111. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  21112. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  21113. SUMMARY_audio="${SUMMARY_audio} paudio"
  21114. have_audio=yes
  21115. ;;
  21116. android)
  21117. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  21118. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  21119. SUMMARY_audio="${SUMMARY_audio} android"
  21120. have_audio=yes
  21121. ;;
  21122. nto)
  21123. CheckQNXAudio
  21124. ;;
  21125. esac
  21126. fi
  21127. # Set up files for the joystick library
  21128. if test x$enable_joystick = xyes; then
  21129. case $ARCH in
  21130. linux)
  21131. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  21132. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  21133. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21134. have_joystick=yes
  21135. ;;
  21136. android)
  21137. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  21138. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  21139. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21140. have_joystick=yes
  21141. ;;
  21142. esac
  21143. fi
  21144. # Set up files for the haptic library
  21145. if test x$enable_haptic = xyes; then
  21146. case $ARCH in
  21147. linux)
  21148. if test x$use_input_events = xyes; then
  21149. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  21150. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  21151. have_haptic=yes
  21152. fi
  21153. ;;
  21154. android)
  21155. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  21156. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  21157. have_haptic=yes
  21158. ;;
  21159. esac
  21160. fi
  21161. # Set up files for the sensor library
  21162. if test x$enable_sensor = xyes; then
  21163. case $ARCH in
  21164. android)
  21165. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  21166. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  21167. have_sensor=yes
  21168. ;;
  21169. esac
  21170. fi
  21171. # Set up files for the power library
  21172. if test x$enable_power = xyes; then
  21173. case $ARCH in
  21174. linux)
  21175. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  21176. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  21177. have_power=yes
  21178. ;;
  21179. android)
  21180. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  21181. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  21182. have_power=yes
  21183. ;;
  21184. esac
  21185. fi
  21186. # Set up files for the filesystem library
  21187. if test x$enable_filesystem = xyes; then
  21188. case $ARCH in
  21189. android)
  21190. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  21191. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  21192. have_filesystem=yes
  21193. ;;
  21194. *)
  21195. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  21196. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  21197. have_filesystem=yes
  21198. ;;
  21199. esac
  21200. fi
  21201. # Set up files for the timer library
  21202. if test x$enable_timers = xyes; then
  21203. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21204. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21205. have_timers=yes
  21206. fi
  21207. # Set up files for udev hotplugging support
  21208. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  21209. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  21210. fi
  21211. # Set up files for evdev input
  21212. if test x$use_input_events = xyes; then
  21213. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  21214. fi
  21215. # Set up other core UNIX files
  21216. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  21217. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21218. ;;
  21219. *-*-cygwin* | *-*-mingw32*)
  21220. ARCH=win32
  21221. if test "$build" != "$host"; then # cross-compiling
  21222. # Default cross-compile location
  21223. ac_default_prefix=/usr/local/cross-tools/$host
  21224. else
  21225. # Look for the location of the tools and install there
  21226. if test "$BUILD_PREFIX" != ""; then
  21227. ac_default_prefix=$BUILD_PREFIX
  21228. fi
  21229. fi
  21230. CheckDeclarationAfterStatement
  21231. CheckDummyVideo
  21232. CheckDiskAudio
  21233. CheckDummyAudio
  21234. CheckWINDOWS
  21235. CheckWINDOWSGL
  21236. CheckWINDOWSGLES
  21237. CheckVulkan
  21238. CheckDIRECTX
  21239. CheckHIDAPI
  21240. # Set up the core platform files
  21241. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  21242. # Set up files for the video library
  21243. if test x$enable_video = xyes; then
  21244. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  21245. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  21246. have_video=yes
  21247. # Check whether --enable-render-d3d was given.
  21248. if test "${enable_render_d3d+set}" = set; then :
  21249. enableval=$enable_render_d3d;
  21250. else
  21251. enable_render_d3d=yes
  21252. fi
  21253. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  21254. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  21255. SUMMARY_video="${SUMMARY_video} d3d9"
  21256. fi
  21257. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  21258. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  21259. SUMMARY_video="${SUMMARY_video} d3d11"
  21260. fi
  21261. fi
  21262. # Set up files for the audio library
  21263. if test x$enable_audio = xyes; then
  21264. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  21265. SUMMARY_audio="${SUMMARY_audio} winmm"
  21266. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  21267. if test x$have_dsound = xyes; then
  21268. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  21269. SUMMARY_audio="${SUMMARY_audio} directsound"
  21270. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  21271. fi
  21272. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  21273. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  21274. SUMMARY_audio="${SUMMARY_audio} wasapi"
  21275. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  21276. fi
  21277. have_audio=yes
  21278. fi
  21279. # Set up files for the joystick library
  21280. if test x$enable_joystick = xyes; then
  21281. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21282. if test x$have_xinput = xyes; then
  21283. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  21284. fi
  21285. if test x$have_dinput = xyes; then
  21286. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  21287. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  21288. fi
  21289. else
  21290. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  21291. fi
  21292. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  21293. have_joystick=yes
  21294. fi
  21295. if test x$enable_haptic = xyes; then
  21296. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  21297. if test x$have_xinput = xyes; then
  21298. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  21299. fi
  21300. if test x$have_dinput = xyes; then
  21301. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  21302. fi
  21303. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  21304. have_haptic=yes
  21305. fi
  21306. fi
  21307. # Set up files for the sensor library
  21308. if test x$enable_sensor = xyes; then
  21309. $as_echo "#define SDL_SENSOR_WINDOWS 1" >>confdefs.h
  21310. SOURCES="$SOURCES $srcdir/src/sensor/windows/*.c"
  21311. have_sensor=yes
  21312. fi
  21313. # Set up files for the power library
  21314. if test x$enable_power = xyes; then
  21315. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  21316. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  21317. have_power=yes
  21318. fi
  21319. # Set up files for the filesystem library
  21320. if test x$enable_filesystem = xyes; then
  21321. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  21322. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  21323. have_filesystem=yes
  21324. fi
  21325. # Set up files for the thread library
  21326. if test x$enable_threads = xyes; then
  21327. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  21328. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  21329. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  21330. have_threads=yes
  21331. fi
  21332. # Set up files for the timer library
  21333. if test x$enable_timers = xyes; then
  21334. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  21335. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  21336. have_timers=yes
  21337. fi
  21338. # Set up files for the shared object loading library
  21339. if test x$enable_loadso = xyes; then
  21340. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  21341. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  21342. have_loadso=yes
  21343. fi
  21344. # Set up the system libraries we need
  21345. if test -f /lib/w32api/libuuid.a; then
  21346. LIBUUID=/lib/w32api/libuuid.a
  21347. else
  21348. LIBUUID=-luuid
  21349. fi
  21350. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  21351. # The Windows platform requires special setup
  21352. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  21353. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  21354. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  21355. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  21356. # Check to see if this is a mingw or cygwin build
  21357. have_mingw32=
  21358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  21359. $as_echo_n "checking for main in -lmingw32... " >&6; }
  21360. if ${ac_cv_lib_mingw32_main+:} false; then :
  21361. $as_echo_n "(cached) " >&6
  21362. else
  21363. ac_check_lib_save_LIBS=$LIBS
  21364. LIBS="-lmingw32 $LIBS"
  21365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21366. /* end confdefs.h. */
  21367. int
  21368. main ()
  21369. {
  21370. return main ();
  21371. ;
  21372. return 0;
  21373. }
  21374. _ACEOF
  21375. if ac_fn_c_try_link "$LINENO"; then :
  21376. ac_cv_lib_mingw32_main=yes
  21377. else
  21378. ac_cv_lib_mingw32_main=no
  21379. fi
  21380. rm -f core conftest.err conftest.$ac_objext \
  21381. conftest$ac_exeext conftest.$ac_ext
  21382. LIBS=$ac_check_lib_save_LIBS
  21383. fi
  21384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  21385. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  21386. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  21387. have_mingw32=yes
  21388. fi
  21389. if test x$have_mingw32 = xyes; then
  21390. SDL_LIBS="-lmingw32 $SDL_LIBS"
  21391. else
  21392. SDL_LIBS="-lcygwin $SDL_LIBS"
  21393. fi
  21394. ;;
  21395. *-*-beos*)
  21396. as_fn_error $? "
  21397. *** BeOS support has been removed as of SDL 2.0.2.
  21398. " "$LINENO" 5
  21399. ;;
  21400. *-*-haiku*)
  21401. ARCH=haiku
  21402. ac_default_prefix=/boot/system
  21403. CheckDummyVideo
  21404. CheckDiskAudio
  21405. CheckDummyAudio
  21406. CheckDLOPEN
  21407. CheckHaikuVideo
  21408. CheckHaikuGL
  21409. CheckPTHREAD
  21410. # Set up files for the audio library
  21411. if test x$enable_audio = xyes; then
  21412. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  21413. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  21414. SUMMARY_audio="${SUMMARY_audio} haiku"
  21415. have_audio=yes
  21416. fi
  21417. # Set up files for the joystick library
  21418. if test x$enable_joystick = xyes; then
  21419. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  21420. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  21421. have_joystick=yes
  21422. fi
  21423. # Set up files for the timer library
  21424. if test x$enable_timers = xyes; then
  21425. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  21426. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  21427. have_timers=yes
  21428. fi
  21429. # Set up files for the system power library
  21430. if test x$enable_power = xyes; then
  21431. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  21432. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  21433. have_power=yes
  21434. fi
  21435. # Set up files for the system filesystem library
  21436. if test x$enable_filesystem = xyes; then
  21437. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  21438. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  21439. have_filesystem=yes
  21440. fi
  21441. # The Haiku platform requires special setup.
  21442. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  21443. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  21444. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  21445. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  21446. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  21447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  21448. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  21449. if eval \${$as_ac_File+:} false; then :
  21450. $as_echo_n "(cached) " >&6
  21451. else
  21452. test "$cross_compiling" = yes &&
  21453. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  21454. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  21455. eval "$as_ac_File=yes"
  21456. else
  21457. eval "$as_ac_File=no"
  21458. fi
  21459. fi
  21460. eval ac_res=\$$as_ac_File
  21461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21462. $as_echo "$ac_res" >&6; }
  21463. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  21464. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  21465. else
  21466. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  21467. fi
  21468. ;;
  21469. arm*-apple-darwin*|*-ios-*)
  21470. ARCH=ios
  21471. CheckVisibilityHidden
  21472. CheckDeclarationAfterStatement
  21473. CheckDummyVideo
  21474. CheckDiskAudio
  21475. CheckDummyAudio
  21476. CheckDLOPEN
  21477. CheckMETAL
  21478. CheckVulkan
  21479. CheckPTHREAD
  21480. # Set up files for the audio library
  21481. if test x$enable_audio = xyes; then
  21482. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21483. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21484. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21485. have_audio=yes
  21486. fi
  21487. # Set up files for the joystick library
  21488. if test x$enable_joystick = xyes; then
  21489. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  21490. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  21491. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  21492. have_joystick=yes
  21493. fi
  21494. # Set up files for the haptic library
  21495. #if test x$enable_haptic = xyes; then
  21496. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21497. # have_haptic=yes
  21498. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21499. #fi
  21500. # Set up files for the sensor library
  21501. if test x$enable_sensor = xyes; then
  21502. $as_echo "#define SDL_SENSOR_COREMOTION 1" >>confdefs.h
  21503. SOURCES="$SOURCES $srcdir/src/sensor/coremotion/*.m"
  21504. have_sensor=yes
  21505. fi
  21506. # Set up files for the power library
  21507. if test x$enable_power = xyes; then
  21508. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  21509. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  21510. have_power=yes
  21511. fi
  21512. # Set up files for the filesystem library
  21513. if test x$enable_filesystem = xyes; then
  21514. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21515. have_filesystem=yes
  21516. fi
  21517. # Set up additional files for the file library
  21518. if test x$enable_file = xyes; then
  21519. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21520. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21521. fi
  21522. # Set up files for the timer library
  21523. if test x$enable_timers = xyes; then
  21524. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21525. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21526. have_timers=yes
  21527. fi
  21528. # Set up other core UNIX files
  21529. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21530. # The iOS platform requires special setup.
  21531. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  21532. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  21533. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  21534. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  21535. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  21536. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  21537. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  21538. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  21539. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  21540. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  21541. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  21542. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  21543. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  21544. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  21545. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  21546. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  21547. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  21548. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21549. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  21550. fi
  21551. ;;
  21552. *-*-darwin* )
  21553. # This could be either full "Mac OS X", or plain "Darwin" which is
  21554. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  21555. # Next line is broken, and a few files below require Mac OS X (full)
  21556. ARCH=macosx
  21557. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  21558. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  21559. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  21560. CheckVisibilityHidden
  21561. CheckDeclarationAfterStatement
  21562. CheckDummyVideo
  21563. CheckDiskAudio
  21564. CheckDummyAudio
  21565. CheckDLOPEN
  21566. CheckCOCOA
  21567. CheckMETAL
  21568. CheckX11
  21569. CheckMacGL
  21570. CheckMacGLES
  21571. CheckOpenGLX11
  21572. CheckVulkan
  21573. CheckPTHREAD
  21574. CheckHIDAPI
  21575. # Set up files for the audio library
  21576. if test x$enable_audio = xyes; then
  21577. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  21578. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  21579. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  21580. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  21581. have_audio=yes
  21582. fi
  21583. # Set up files for the joystick library
  21584. if test x$enable_joystick = xyes; then
  21585. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  21586. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  21587. have_joystick=yes
  21588. fi
  21589. # Set up files for the haptic library
  21590. if test x$enable_haptic = xyes; then
  21591. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  21592. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  21593. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  21594. have_haptic=yes
  21595. fi
  21596. # Set up files for the power library
  21597. if test x$enable_power = xyes; then
  21598. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  21599. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  21600. have_power=yes
  21601. fi
  21602. # Set up files for the filesystem library
  21603. if test x$enable_filesystem = xyes; then
  21604. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21605. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21606. have_filesystem=yes
  21607. fi
  21608. # Set up files for the timer library
  21609. if test x$enable_timers = xyes; then
  21610. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21611. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21612. have_timers=yes
  21613. fi
  21614. # Set up additional files for the file library
  21615. if test x$enable_file = xyes; then
  21616. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21617. fi
  21618. # Set up other core UNIX files
  21619. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21620. # The Mac OS X platform requires special setup.
  21621. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21622. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21623. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21624. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21625. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21626. if test x$enable_video_metal = xyes -o x$enable_video_vulkan = xyes; then
  21627. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21628. fi
  21629. ;;
  21630. *-nacl|*-pnacl)
  21631. ARCH=nacl
  21632. CheckNativeClient
  21633. CheckDummyAudio
  21634. CheckDummyVideo
  21635. CheckInputEvents
  21636. CheckPTHREAD
  21637. # Set up files for the timer library
  21638. if test x$enable_timers = xyes; then
  21639. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21640. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21641. have_timers=yes
  21642. fi
  21643. if test x$enable_filesystem = xyes; then
  21644. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21645. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21646. have_filesystem=yes
  21647. fi
  21648. ;;
  21649. *-*-emscripten* )
  21650. if test x$enable_video = xyes; then
  21651. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21652. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21653. have_video=yes
  21654. SUMMARY_video="${SUMMARY_video} emscripten"
  21655. fi
  21656. if test x$enable_audio = xyes; then
  21657. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21658. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21659. have_audio=yes
  21660. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21661. fi
  21662. CheckVisibilityHidden
  21663. CheckDeclarationAfterStatement
  21664. CheckDummyVideo
  21665. CheckDiskAudio
  21666. CheckDummyAudio
  21667. CheckDLOPEN
  21668. CheckClockGettime
  21669. CheckEmscriptenGLES
  21670. # Set up files for the power library
  21671. if test x$enable_power = xyes; then
  21672. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21673. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21674. have_power=yes
  21675. fi
  21676. # Set up files for the power library
  21677. if test x$enable_joystick = xyes; then
  21678. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21679. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21680. have_joystick=yes
  21681. fi
  21682. # Set up files for the filesystem library
  21683. if test x$enable_filesystem = xyes; then
  21684. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21685. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21686. have_filesystem=yes
  21687. fi
  21688. # Set up files for the timer library
  21689. if test x$enable_timers = xyes; then
  21690. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21691. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21692. have_timers=yes
  21693. fi
  21694. ;;
  21695. *-*-riscos*)
  21696. ARCH=riscos
  21697. CheckVisibilityHidden
  21698. CheckDeclarationAfterStatement
  21699. CheckDummyVideo
  21700. CheckDiskAudio
  21701. CheckDummyAudio
  21702. CheckDLOPEN
  21703. CheckOSS
  21704. CheckPTHREAD
  21705. CheckClockGettime
  21706. # Set up files for the timer library
  21707. if test x$enable_timers = xyes; then
  21708. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21709. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21710. have_timers=yes
  21711. fi
  21712. ;;
  21713. *)
  21714. as_fn_error $? "
  21715. *** Unsupported host: Please add to configure.ac
  21716. " "$LINENO" 5
  21717. ;;
  21718. esac
  21719. CheckVirtualJoystick
  21720. # Check whether to install sdl2-config
  21721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install sdl2-config" >&5
  21722. $as_echo_n "checking whether to install sdl2-config... " >&6; }
  21723. # Check whether --enable-sdl2-config was given.
  21724. if test "${enable_sdl2_config+set}" = set; then :
  21725. enableval=$enable_sdl2_config; case "${enableval}" in
  21726. yes) enable_sdl2_config="TRUE" ;;
  21727. no) enable_sdl2_config="FALSE" ;;
  21728. *) as_fn_error $? "bad value '${enableval}' for --enable-sdl2-config" "$LINENO" 5 ;;
  21729. esac
  21730. else
  21731. enable_sdl2_config="TRUE"
  21732. fi
  21733. if test "$enable_sdl2_config" = "TRUE"; then
  21734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21735. $as_echo "yes" >&6; }
  21736. else
  21737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21738. $as_echo "no" >&6; }
  21739. fi
  21740. INSTALL_SDL2_CONFIG=$enable_sdl2_config
  21741. # Verify that we have all the platform specific files we need
  21742. if test x$have_joystick != xyes; then
  21743. if test x$enable_joystick = xyes; then
  21744. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21745. fi
  21746. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21747. fi
  21748. if test x$have_haptic != xyes; then
  21749. if test x$enable_haptic = xyes; then
  21750. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21751. fi
  21752. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21753. fi
  21754. if test x$have_sensor != xyes; then
  21755. if test x$enable_sensor = xyes; then
  21756. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21757. fi
  21758. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21759. fi
  21760. if test x$have_threads != xyes; then
  21761. if test x$enable_threads = xyes; then
  21762. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21763. fi
  21764. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21765. fi
  21766. if test x$have_timers != xyes; then
  21767. if test x$enable_timers = xyes; then
  21768. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21769. fi
  21770. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21771. fi
  21772. if test x$have_filesystem != xyes; then
  21773. if test x$enable_filesystem = xyes; then
  21774. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21775. fi
  21776. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21777. fi
  21778. if test x$have_loadso != xyes; then
  21779. if test x$enable_loadso = xyes; then
  21780. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21781. fi
  21782. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21783. fi
  21784. if test x$SDLMAIN_SOURCES = x; then
  21785. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21786. fi
  21787. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21788. if test x$video_wayland = xyes; then
  21789. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21790. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21791. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21792. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21793. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21794. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21795. echo ;\
  21796. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21797. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21798. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21799. echo ;\
  21800. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21801. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21802. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21803. echo ;\
  21804. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21805. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21806. done ;\
  21807. echo ;\
  21808. 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`
  21809. fi
  21810. OBJECTS=`echo $SOURCES`
  21811. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21812. for EXT in asm cc m c S; do
  21813. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21814. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21815. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21816. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21817. done
  21818. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21819. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21820. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21821. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
  21822. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21823. \\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
  21824. \\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
  21825. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21826. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21827. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21828. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21829. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21830. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21831. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21832. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21833. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21834. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21835. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21836. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21837. # Set runtime shared library paths as needed
  21838. if test "x$enable_rpath" = "xyes" -a "x$enable_shared" = "xyes"; then
  21839. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21840. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21842. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21843. have_enable_new_dtags=no
  21844. save_LDFLAGS="$LDFLAGS"
  21845. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21847. /* end confdefs.h. */
  21848. int
  21849. main ()
  21850. {
  21851. ;
  21852. return 0;
  21853. }
  21854. _ACEOF
  21855. if ac_fn_c_try_link "$LINENO"; then :
  21856. have_enable_new_dtags=yes
  21857. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21858. fi
  21859. rm -f core conftest.err conftest.$ac_objext \
  21860. conftest$ac_exeext conftest.$ac_ext
  21861. LDFLAGS="$save_LDFLAGS"
  21862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21863. $as_echo "$have_enable_new_dtags" >&6; }
  21864. fi
  21865. if test $ARCH = solaris; then
  21866. SDL_RLD_FLAGS="-R\${libdir}"
  21867. fi
  21868. else
  21869. SDL_RLD_FLAGS=""
  21870. fi
  21871. SDL_STATIC_LIBS="$EXTRA_LDFLAGS"
  21872. if test x$enable_shared = xyes; then
  21873. PKG_CONFIG_LIBS_PRIV="
  21874. Libs.private:"
  21875. ENABLE_SHARED_TRUE=
  21876. ENABLE_SHARED_FALSE="#"
  21877. else
  21878. PKG_CONFIG_LIBS_PRIV=
  21879. ENABLE_SHARED_TRUE="#"
  21880. ENABLE_SHARED_FALSE=
  21881. fi
  21882. if test x$enable_static = xyes; then
  21883. ENABLE_STATIC_TRUE=
  21884. ENABLE_STATIC_FALSE="#"
  21885. else
  21886. ENABLE_STATIC_TRUE="#"
  21887. ENABLE_STATIC_FALSE=
  21888. fi
  21889. cat >Makefile.rules <<__EOF__
  21890. # Build rules for objects
  21891. -include \$(OBJECTS:.lo=.d)
  21892. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21893. $srcdir/src/SDL.c: update-revision
  21894. $DEPENDS
  21895. $VERSION_DEPENDS
  21896. $SDLMAIN_DEPENDS
  21897. $SDLTEST_DEPENDS
  21898. $WAYLAND_PROTOCOLS_DEPENDS
  21899. __EOF__
  21900. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake sdl2-config-version.cmake SDL2.spec sdl2.pc"
  21901. ac_config_commands="$ac_config_commands sdl2_config"
  21902. SUMMARY="SDL2 Configure Summary:\n"
  21903. if test x$enable_shared = xyes; then
  21904. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21905. fi
  21906. if test x$enable_static = xyes; then
  21907. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21908. fi
  21909. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21910. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21911. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21912. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21913. if test x$have_x = xyes; then
  21914. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21915. fi
  21916. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21917. if test x$have_joystick_virtual = xyes; then
  21918. SUMMARY="${SUMMARY}Enable virtual joystick APIs : YES\n"
  21919. else
  21920. SUMMARY="${SUMMARY}Enable virtual joystick APIs : NO\n"
  21921. fi
  21922. if test x$have_samplerate_h_hdr = xyes; then
  21923. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21924. else
  21925. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21926. fi
  21927. if test x$have_libudev_h_hdr = xyes; then
  21928. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21929. else
  21930. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21931. fi
  21932. if test x$have_dbus_dbus_h_hdr = xyes; then
  21933. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21934. else
  21935. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21936. fi
  21937. if test x$enable_ime = xyes; then
  21938. SUMMARY="${SUMMARY}Using ime : YES\n"
  21939. else
  21940. SUMMARY="${SUMMARY}Using ime : NO\n"
  21941. fi
  21942. if test x$have_ibus_ibus_h_hdr = xyes; then
  21943. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21944. else
  21945. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21946. fi
  21947. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21948. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21949. else
  21950. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21951. fi
  21952. if test x$WARN_ABOUT_ARM_SIMD_ASM_MIT = xyes; then
  21953. SUMMARY="${SUMMARY}\nSDL is being built with ARM SIMD optimizations, which\n"
  21954. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21955. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21956. SUMMARY="${SUMMARY}configure script with:\n"
  21957. SUMMARY="${SUMMARY}\n --disable-arm-simd\n"
  21958. fi
  21959. if test x$WARN_ABOUT_ARM_NEON_ASM_MIT = xyes; then
  21960. SUMMARY="${SUMMARY}\nSDL is being built with ARM NEON optimizations, which\n"
  21961. SUMMARY="${SUMMARY}uses code licensed under the MIT license. If this is a\n"
  21962. SUMMARY="${SUMMARY}problem, please disable that code by rerunning the\n"
  21963. SUMMARY="${SUMMARY}configure script with:\n"
  21964. SUMMARY="${SUMMARY}\n --disable-arm-neon\n"
  21965. fi
  21966. ac_config_commands="$ac_config_commands summary"
  21967. cat >confcache <<\_ACEOF
  21968. # This file is a shell script that caches the results of configure
  21969. # tests run on this system so they can be shared between configure
  21970. # scripts and configure runs, see configure's option --config-cache.
  21971. # It is not useful on other systems. If it contains results you don't
  21972. # want to keep, you may remove or edit it.
  21973. #
  21974. # config.status only pays attention to the cache file if you give it
  21975. # the --recheck option to rerun configure.
  21976. #
  21977. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21978. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21979. # following values.
  21980. _ACEOF
  21981. # The following way of writing the cache mishandles newlines in values,
  21982. # but we know of no workaround that is simple, portable, and efficient.
  21983. # So, we kill variables containing newlines.
  21984. # Ultrix sh set writes to stderr and can't be redirected directly,
  21985. # and sets the high bit in the cache file unless we assign to the vars.
  21986. (
  21987. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21988. eval ac_val=\$$ac_var
  21989. case $ac_val in #(
  21990. *${as_nl}*)
  21991. case $ac_var in #(
  21992. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21993. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21994. esac
  21995. case $ac_var in #(
  21996. _ | IFS | as_nl) ;; #(
  21997. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21998. *) { eval $ac_var=; unset $ac_var;} ;;
  21999. esac ;;
  22000. esac
  22001. done
  22002. (set) 2>&1 |
  22003. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22004. *${as_nl}ac_space=\ *)
  22005. # `set' does not quote correctly, so add quotes: double-quote
  22006. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22007. sed -n \
  22008. "s/'/'\\\\''/g;
  22009. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22010. ;; #(
  22011. *)
  22012. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22013. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22014. ;;
  22015. esac |
  22016. sort
  22017. ) |
  22018. sed '
  22019. /^ac_cv_env_/b end
  22020. t clear
  22021. :clear
  22022. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22023. t end
  22024. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22025. :end' >>confcache
  22026. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22027. if test -w "$cache_file"; then
  22028. if test "x$cache_file" != "x/dev/null"; then
  22029. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22030. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22031. if test ! -f "$cache_file" || test -h "$cache_file"; then
  22032. cat confcache >"$cache_file"
  22033. else
  22034. case $cache_file in #(
  22035. */* | ?:*)
  22036. mv -f confcache "$cache_file"$$ &&
  22037. mv -f "$cache_file"$$ "$cache_file" ;; #(
  22038. *)
  22039. mv -f confcache "$cache_file" ;;
  22040. esac
  22041. fi
  22042. fi
  22043. else
  22044. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22045. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22046. fi
  22047. fi
  22048. rm -f confcache
  22049. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22050. # Let make expand exec_prefix.
  22051. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22052. DEFS=-DHAVE_CONFIG_H
  22053. ac_libobjs=
  22054. ac_ltlibobjs=
  22055. U=
  22056. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22057. # 1. Remove the extension, and $U if already installed.
  22058. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22059. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22060. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22061. # will be set to the directory where LIBOBJS objects are built.
  22062. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22063. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22064. done
  22065. LIBOBJS=$ac_libobjs
  22066. LTLIBOBJS=$ac_ltlibobjs
  22067. : "${CONFIG_STATUS=./config.status}"
  22068. ac_write_fail=0
  22069. ac_clean_files_save=$ac_clean_files
  22070. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22071. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22072. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22073. as_write_fail=0
  22074. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22075. #! $SHELL
  22076. # Generated by $as_me.
  22077. # Run this file to recreate the current configuration.
  22078. # Compiler output produced by configure, useful for debugging
  22079. # configure, is in config.log if it exists.
  22080. debug=false
  22081. ac_cs_recheck=false
  22082. ac_cs_silent=false
  22083. SHELL=\${CONFIG_SHELL-$SHELL}
  22084. export SHELL
  22085. _ASEOF
  22086. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22087. ## -------------------- ##
  22088. ## M4sh Initialization. ##
  22089. ## -------------------- ##
  22090. # Be more Bourne compatible
  22091. DUALCASE=1; export DUALCASE # for MKS sh
  22092. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22093. emulate sh
  22094. NULLCMD=:
  22095. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22096. # is contrary to our usage. Disable this feature.
  22097. alias -g '${1+"$@"}'='"$@"'
  22098. setopt NO_GLOB_SUBST
  22099. else
  22100. case `(set -o) 2>/dev/null` in #(
  22101. *posix*) :
  22102. set -o posix ;; #(
  22103. *) :
  22104. ;;
  22105. esac
  22106. fi
  22107. as_nl='
  22108. '
  22109. export as_nl
  22110. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22111. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22112. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22113. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22114. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22115. # but without wasting forks for bash or zsh.
  22116. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22117. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22118. as_echo='print -r --'
  22119. as_echo_n='print -rn --'
  22120. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22121. as_echo='printf %s\n'
  22122. as_echo_n='printf %s'
  22123. else
  22124. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22125. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22126. as_echo_n='/usr/ucb/echo -n'
  22127. else
  22128. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22129. as_echo_n_body='eval
  22130. arg=$1;
  22131. case $arg in #(
  22132. *"$as_nl"*)
  22133. expr "X$arg" : "X\\(.*\\)$as_nl";
  22134. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22135. esac;
  22136. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22137. '
  22138. export as_echo_n_body
  22139. as_echo_n='sh -c $as_echo_n_body as_echo'
  22140. fi
  22141. export as_echo_body
  22142. as_echo='sh -c $as_echo_body as_echo'
  22143. fi
  22144. # The user is always right.
  22145. if test "${PATH_SEPARATOR+set}" != set; then
  22146. PATH_SEPARATOR=:
  22147. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22148. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22149. PATH_SEPARATOR=';'
  22150. }
  22151. fi
  22152. # IFS
  22153. # We need space, tab and new line, in precisely that order. Quoting is
  22154. # there to prevent editors from complaining about space-tab.
  22155. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22156. # splitting by setting IFS to empty value.)
  22157. IFS=" "" $as_nl"
  22158. # Find who we are. Look in the path if we contain no directory separator.
  22159. as_myself=
  22160. case $0 in #((
  22161. *[\\/]* ) as_myself=$0 ;;
  22162. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22163. for as_dir in $PATH
  22164. do
  22165. IFS=$as_save_IFS
  22166. test -z "$as_dir" && as_dir=.
  22167. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22168. done
  22169. IFS=$as_save_IFS
  22170. ;;
  22171. esac
  22172. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22173. # in which case we are not to be found in the path.
  22174. if test "x$as_myself" = x; then
  22175. as_myself=$0
  22176. fi
  22177. if test ! -f "$as_myself"; then
  22178. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22179. exit 1
  22180. fi
  22181. # Unset variables that we do not need and which cause bugs (e.g. in
  22182. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22183. # suppresses any "Segmentation fault" message there. '((' could
  22184. # trigger a bug in pdksh 5.2.14.
  22185. for as_var in BASH_ENV ENV MAIL MAILPATH
  22186. do eval test x\${$as_var+set} = xset \
  22187. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22188. done
  22189. PS1='$ '
  22190. PS2='> '
  22191. PS4='+ '
  22192. # NLS nuisances.
  22193. LC_ALL=C
  22194. export LC_ALL
  22195. LANGUAGE=C
  22196. export LANGUAGE
  22197. # CDPATH.
  22198. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22199. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  22200. # ----------------------------------------
  22201. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22202. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22203. # script with STATUS, using 1 if that was 0.
  22204. as_fn_error ()
  22205. {
  22206. as_status=$1; test $as_status -eq 0 && as_status=1
  22207. if test "$4"; then
  22208. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22209. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  22210. fi
  22211. $as_echo "$as_me: error: $2" >&2
  22212. as_fn_exit $as_status
  22213. } # as_fn_error
  22214. # as_fn_set_status STATUS
  22215. # -----------------------
  22216. # Set $? to STATUS, without forking.
  22217. as_fn_set_status ()
  22218. {
  22219. return $1
  22220. } # as_fn_set_status
  22221. # as_fn_exit STATUS
  22222. # -----------------
  22223. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22224. as_fn_exit ()
  22225. {
  22226. set +e
  22227. as_fn_set_status $1
  22228. exit $1
  22229. } # as_fn_exit
  22230. # as_fn_unset VAR
  22231. # ---------------
  22232. # Portably unset VAR.
  22233. as_fn_unset ()
  22234. {
  22235. { eval $1=; unset $1;}
  22236. }
  22237. as_unset=as_fn_unset
  22238. # as_fn_append VAR VALUE
  22239. # ----------------------
  22240. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22241. # advantage of any shell optimizations that allow amortized linear growth over
  22242. # repeated appends, instead of the typical quadratic growth present in naive
  22243. # implementations.
  22244. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22245. eval 'as_fn_append ()
  22246. {
  22247. eval $1+=\$2
  22248. }'
  22249. else
  22250. as_fn_append ()
  22251. {
  22252. eval $1=\$$1\$2
  22253. }
  22254. fi # as_fn_append
  22255. # as_fn_arith ARG...
  22256. # ------------------
  22257. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22258. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22259. # must be portable across $(()) and expr.
  22260. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22261. eval 'as_fn_arith ()
  22262. {
  22263. as_val=$(( $* ))
  22264. }'
  22265. else
  22266. as_fn_arith ()
  22267. {
  22268. as_val=`expr "$@" || test $? -eq 1`
  22269. }
  22270. fi # as_fn_arith
  22271. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22272. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22273. as_expr=expr
  22274. else
  22275. as_expr=false
  22276. fi
  22277. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22278. as_basename=basename
  22279. else
  22280. as_basename=false
  22281. fi
  22282. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22283. as_dirname=dirname
  22284. else
  22285. as_dirname=false
  22286. fi
  22287. as_me=`$as_basename -- "$0" ||
  22288. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22289. X"$0" : 'X\(//\)$' \| \
  22290. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22291. $as_echo X/"$0" |
  22292. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22293. s//\1/
  22294. q
  22295. }
  22296. /^X\/\(\/\/\)$/{
  22297. s//\1/
  22298. q
  22299. }
  22300. /^X\/\(\/\).*/{
  22301. s//\1/
  22302. q
  22303. }
  22304. s/.*/./; q'`
  22305. # Avoid depending upon Character Ranges.
  22306. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22307. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22308. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22309. as_cr_digits='0123456789'
  22310. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22311. ECHO_C= ECHO_N= ECHO_T=
  22312. case `echo -n x` in #(((((
  22313. -n*)
  22314. case `echo 'xy\c'` in
  22315. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22316. xy) ECHO_C='\c';;
  22317. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22318. ECHO_T=' ';;
  22319. esac;;
  22320. *)
  22321. ECHO_N='-n';;
  22322. esac
  22323. rm -f conf$$ conf$$.exe conf$$.file
  22324. if test -d conf$$.dir; then
  22325. rm -f conf$$.dir/conf$$.file
  22326. else
  22327. rm -f conf$$.dir
  22328. mkdir conf$$.dir 2>/dev/null
  22329. fi
  22330. if (echo >conf$$.file) 2>/dev/null; then
  22331. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22332. as_ln_s='ln -s'
  22333. # ... but there are two gotchas:
  22334. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22335. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22336. # In both cases, we have to default to `cp -pR'.
  22337. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22338. as_ln_s='cp -pR'
  22339. elif ln conf$$.file conf$$ 2>/dev/null; then
  22340. as_ln_s=ln
  22341. else
  22342. as_ln_s='cp -pR'
  22343. fi
  22344. else
  22345. as_ln_s='cp -pR'
  22346. fi
  22347. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22348. rmdir conf$$.dir 2>/dev/null
  22349. # as_fn_mkdir_p
  22350. # -------------
  22351. # Create "$as_dir" as a directory, including parents if necessary.
  22352. as_fn_mkdir_p ()
  22353. {
  22354. case $as_dir in #(
  22355. -*) as_dir=./$as_dir;;
  22356. esac
  22357. test -d "$as_dir" || eval $as_mkdir_p || {
  22358. as_dirs=
  22359. while :; do
  22360. case $as_dir in #(
  22361. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22362. *) as_qdir=$as_dir;;
  22363. esac
  22364. as_dirs="'$as_qdir' $as_dirs"
  22365. as_dir=`$as_dirname -- "$as_dir" ||
  22366. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22367. X"$as_dir" : 'X\(//\)[^/]' \| \
  22368. X"$as_dir" : 'X\(//\)$' \| \
  22369. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22370. $as_echo X"$as_dir" |
  22371. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22372. s//\1/
  22373. q
  22374. }
  22375. /^X\(\/\/\)[^/].*/{
  22376. s//\1/
  22377. q
  22378. }
  22379. /^X\(\/\/\)$/{
  22380. s//\1/
  22381. q
  22382. }
  22383. /^X\(\/\).*/{
  22384. s//\1/
  22385. q
  22386. }
  22387. s/.*/./; q'`
  22388. test -d "$as_dir" && break
  22389. done
  22390. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22391. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  22392. } # as_fn_mkdir_p
  22393. if mkdir -p . 2>/dev/null; then
  22394. as_mkdir_p='mkdir -p "$as_dir"'
  22395. else
  22396. test -d ./-p && rmdir ./-p
  22397. as_mkdir_p=false
  22398. fi
  22399. # as_fn_executable_p FILE
  22400. # -----------------------
  22401. # Test if FILE is an executable regular file.
  22402. as_fn_executable_p ()
  22403. {
  22404. test -f "$1" && test -x "$1"
  22405. } # as_fn_executable_p
  22406. as_test_x='test -x'
  22407. as_executable_p=as_fn_executable_p
  22408. # Sed expression to map a string onto a valid CPP name.
  22409. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22410. # Sed expression to map a string onto a valid variable name.
  22411. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22412. exec 6>&1
  22413. ## ----------------------------------- ##
  22414. ## Main body of $CONFIG_STATUS script. ##
  22415. ## ----------------------------------- ##
  22416. _ASEOF
  22417. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22418. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22419. # Save the log message, to keep $0 and so on meaningful, and to
  22420. # report actual input values of CONFIG_FILES etc. instead of their
  22421. # values after options handling.
  22422. ac_log="
  22423. This file was extended by $as_me, which was
  22424. generated by GNU Autoconf 2.69. Invocation command line was
  22425. CONFIG_FILES = $CONFIG_FILES
  22426. CONFIG_HEADERS = $CONFIG_HEADERS
  22427. CONFIG_LINKS = $CONFIG_LINKS
  22428. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22429. $ $0 $@
  22430. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22431. "
  22432. _ACEOF
  22433. case $ac_config_files in *"
  22434. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22435. esac
  22436. case $ac_config_headers in *"
  22437. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22438. esac
  22439. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22440. # Files that config.status was made for.
  22441. config_files="$ac_config_files"
  22442. config_headers="$ac_config_headers"
  22443. config_commands="$ac_config_commands"
  22444. _ACEOF
  22445. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22446. ac_cs_usage="\
  22447. \`$as_me' instantiates files and other configuration actions
  22448. from templates according to the current configuration. Unless the files
  22449. and actions are specified as TAGs, all are instantiated by default.
  22450. Usage: $0 [OPTION]... [TAG]...
  22451. -h, --help print this help, then exit
  22452. -V, --version print version number and configuration settings, then exit
  22453. --config print configuration, then exit
  22454. -q, --quiet, --silent
  22455. do not print progress messages
  22456. -d, --debug don't remove temporary files
  22457. --recheck update $as_me by reconfiguring in the same conditions
  22458. --file=FILE[:TEMPLATE]
  22459. instantiate the configuration file FILE
  22460. --header=FILE[:TEMPLATE]
  22461. instantiate the configuration header FILE
  22462. Configuration files:
  22463. $config_files
  22464. Configuration headers:
  22465. $config_headers
  22466. Configuration commands:
  22467. $config_commands
  22468. Report bugs to the package provider."
  22469. _ACEOF
  22470. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22471. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22472. ac_cs_version="\\
  22473. config.status
  22474. configured by $0, generated by GNU Autoconf 2.69,
  22475. with options \\"\$ac_cs_config\\"
  22476. Copyright (C) 2012 Free Software Foundation, Inc.
  22477. This config.status script is free software; the Free Software Foundation
  22478. gives unlimited permission to copy, distribute and modify it."
  22479. ac_pwd='$ac_pwd'
  22480. srcdir='$srcdir'
  22481. INSTALL='$INSTALL'
  22482. AWK='$AWK'
  22483. test -n "\$AWK" || AWK=awk
  22484. _ACEOF
  22485. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22486. # The default lists apply if the user does not specify any file.
  22487. ac_need_defaults=:
  22488. while test $# != 0
  22489. do
  22490. case $1 in
  22491. --*=?*)
  22492. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22493. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22494. ac_shift=:
  22495. ;;
  22496. --*=)
  22497. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22498. ac_optarg=
  22499. ac_shift=:
  22500. ;;
  22501. *)
  22502. ac_option=$1
  22503. ac_optarg=$2
  22504. ac_shift=shift
  22505. ;;
  22506. esac
  22507. case $ac_option in
  22508. # Handling of the options.
  22509. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22510. ac_cs_recheck=: ;;
  22511. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22512. $as_echo "$ac_cs_version"; exit ;;
  22513. --config | --confi | --conf | --con | --co | --c )
  22514. $as_echo "$ac_cs_config"; exit ;;
  22515. --debug | --debu | --deb | --de | --d | -d )
  22516. debug=: ;;
  22517. --file | --fil | --fi | --f )
  22518. $ac_shift
  22519. case $ac_optarg in
  22520. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22521. '') as_fn_error $? "missing file argument" ;;
  22522. esac
  22523. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22524. ac_need_defaults=false;;
  22525. --header | --heade | --head | --hea )
  22526. $ac_shift
  22527. case $ac_optarg in
  22528. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22529. esac
  22530. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22531. ac_need_defaults=false;;
  22532. --he | --h)
  22533. # Conflict between --help and --header
  22534. as_fn_error $? "ambiguous option: \`$1'
  22535. Try \`$0 --help' for more information.";;
  22536. --help | --hel | -h )
  22537. $as_echo "$ac_cs_usage"; exit ;;
  22538. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22539. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22540. ac_cs_silent=: ;;
  22541. # This is an error.
  22542. -*) as_fn_error $? "unrecognized option: \`$1'
  22543. Try \`$0 --help' for more information." ;;
  22544. *) as_fn_append ac_config_targets " $1"
  22545. ac_need_defaults=false ;;
  22546. esac
  22547. shift
  22548. done
  22549. ac_configure_extra_args=
  22550. if $ac_cs_silent; then
  22551. exec 6>/dev/null
  22552. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22553. fi
  22554. _ACEOF
  22555. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22556. if \$ac_cs_recheck; then
  22557. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22558. shift
  22559. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22560. CONFIG_SHELL='$SHELL'
  22561. export CONFIG_SHELL
  22562. exec "\$@"
  22563. fi
  22564. _ACEOF
  22565. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22566. exec 5>>config.log
  22567. {
  22568. echo
  22569. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22570. ## Running $as_me. ##
  22571. _ASBOX
  22572. $as_echo "$ac_log"
  22573. } >&5
  22574. _ACEOF
  22575. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22576. #
  22577. # INIT-COMMANDS
  22578. #
  22579. # The HP-UX ksh and POSIX shell print the target directory to stdout
  22580. # if CDPATH is set.
  22581. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22582. sed_quote_subst='$sed_quote_subst'
  22583. double_quote_subst='$double_quote_subst'
  22584. delay_variable_subst='$delay_variable_subst'
  22585. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  22586. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  22587. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  22588. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  22589. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  22590. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  22591. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  22592. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  22593. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  22594. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  22595. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  22596. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  22597. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  22598. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  22599. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  22600. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  22601. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  22602. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  22603. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  22604. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  22605. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  22606. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  22607. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  22608. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  22609. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  22610. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  22611. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  22612. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  22613. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  22614. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  22615. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  22616. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  22617. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  22618. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  22619. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  22620. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  22621. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  22622. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  22623. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  22624. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  22625. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  22626. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  22627. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  22628. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  22629. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  22630. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  22631. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22632. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22633. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  22634. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  22635. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  22636. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  22637. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  22638. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  22639. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  22640. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  22641. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  22642. 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"`'
  22643. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  22644. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  22645. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  22646. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  22647. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  22648. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  22649. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  22650. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  22651. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  22652. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  22653. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  22654. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  22655. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  22656. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  22657. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  22658. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  22659. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  22660. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  22661. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22662. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  22663. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  22664. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22665. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22666. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22667. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22668. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22669. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22670. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22671. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22672. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22673. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22674. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22675. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22676. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22677. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22678. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22679. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22680. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22681. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22682. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22683. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22684. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22685. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22686. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22687. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22688. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22689. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22690. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22691. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22692. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22693. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22694. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22695. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22696. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22697. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22698. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22699. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22700. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22701. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22702. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22703. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22704. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22705. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22706. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22707. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22708. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22709. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22710. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22711. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22712. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22713. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22714. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22715. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22716. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22717. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22718. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22719. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22720. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22721. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22722. LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
  22723. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22724. reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
  22725. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22726. reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22727. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22728. old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22729. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22730. compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
  22731. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22732. GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
  22733. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22734. lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
  22735. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22736. lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
  22737. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22738. lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
  22739. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22740. lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
  22741. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22742. lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
  22743. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22744. archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
  22745. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22746. enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
  22747. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22748. export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22749. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22750. whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22751. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22752. compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
  22753. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22754. old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22755. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22756. old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22757. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22758. archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22759. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22760. archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22761. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22762. module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22763. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22764. module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22765. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22766. with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
  22767. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22768. allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22769. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22770. no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
  22771. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22772. hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
  22773. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22774. hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
  22775. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22776. hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
  22777. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22778. hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
  22779. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22780. hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
  22781. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22782. hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
  22783. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22784. hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
  22785. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22786. inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
  22787. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22788. link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
  22789. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22790. always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
  22791. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22792. export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22793. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22794. exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22795. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22796. include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
  22797. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22798. prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22799. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22800. postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
  22801. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22802. file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
  22803. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22804. hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
  22805. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22806. compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
  22807. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22808. predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22809. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22810. postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
  22811. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22812. predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
  22813. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22814. postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
  22815. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22816. compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
  22817. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22818. LTCC='$LTCC'
  22819. LTCFLAGS='$LTCFLAGS'
  22820. compiler='$compiler_DEFAULT'
  22821. # A function that is used when there is no print builtin or printf.
  22822. func_fallback_echo ()
  22823. {
  22824. eval 'cat <<_LTECHO_EOF
  22825. \$1
  22826. _LTECHO_EOF'
  22827. }
  22828. # Quote evaled strings.
  22829. for var in AS \
  22830. DLLTOOL \
  22831. OBJDUMP \
  22832. SHELL \
  22833. ECHO \
  22834. PATH_SEPARATOR \
  22835. SED \
  22836. GREP \
  22837. EGREP \
  22838. FGREP \
  22839. LD \
  22840. NM \
  22841. LN_S \
  22842. lt_SP2NL \
  22843. lt_NL2SP \
  22844. reload_flag \
  22845. deplibs_check_method \
  22846. file_magic_cmd \
  22847. file_magic_glob \
  22848. want_nocaseglob \
  22849. sharedlib_from_linklib_cmd \
  22850. AR \
  22851. AR_FLAGS \
  22852. archiver_list_spec \
  22853. STRIP \
  22854. RANLIB \
  22855. CC \
  22856. CFLAGS \
  22857. compiler \
  22858. lt_cv_sys_global_symbol_pipe \
  22859. lt_cv_sys_global_symbol_to_cdecl \
  22860. lt_cv_sys_global_symbol_to_c_name_address \
  22861. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22862. nm_file_list_spec \
  22863. lt_prog_compiler_no_builtin_flag \
  22864. lt_prog_compiler_pic \
  22865. lt_prog_compiler_wl \
  22866. lt_prog_compiler_static \
  22867. lt_cv_prog_compiler_c_o \
  22868. need_locks \
  22869. MANIFEST_TOOL \
  22870. DSYMUTIL \
  22871. NMEDIT \
  22872. LIPO \
  22873. OTOOL \
  22874. OTOOL64 \
  22875. shrext_cmds \
  22876. export_dynamic_flag_spec \
  22877. whole_archive_flag_spec \
  22878. compiler_needs_object \
  22879. with_gnu_ld \
  22880. allow_undefined_flag \
  22881. no_undefined_flag \
  22882. hardcode_libdir_flag_spec \
  22883. hardcode_libdir_separator \
  22884. exclude_expsyms \
  22885. include_expsyms \
  22886. file_list_spec \
  22887. variables_saved_for_relink \
  22888. libname_spec \
  22889. library_names_spec \
  22890. soname_spec \
  22891. install_override_mode \
  22892. finish_eval \
  22893. old_striplib \
  22894. striplib \
  22895. compiler_lib_search_dirs \
  22896. predep_objects \
  22897. postdep_objects \
  22898. predeps \
  22899. postdeps \
  22900. compiler_lib_search_path \
  22901. LD_RC \
  22902. LD_CXX \
  22903. reload_flag_RC \
  22904. reload_flag_CXX \
  22905. compiler_RC \
  22906. compiler_CXX \
  22907. lt_prog_compiler_no_builtin_flag_RC \
  22908. lt_prog_compiler_no_builtin_flag_CXX \
  22909. lt_prog_compiler_pic_RC \
  22910. lt_prog_compiler_pic_CXX \
  22911. lt_prog_compiler_wl_RC \
  22912. lt_prog_compiler_wl_CXX \
  22913. lt_prog_compiler_static_RC \
  22914. lt_prog_compiler_static_CXX \
  22915. lt_cv_prog_compiler_c_o_RC \
  22916. lt_cv_prog_compiler_c_o_CXX \
  22917. export_dynamic_flag_spec_RC \
  22918. export_dynamic_flag_spec_CXX \
  22919. whole_archive_flag_spec_RC \
  22920. whole_archive_flag_spec_CXX \
  22921. compiler_needs_object_RC \
  22922. compiler_needs_object_CXX \
  22923. with_gnu_ld_RC \
  22924. with_gnu_ld_CXX \
  22925. allow_undefined_flag_RC \
  22926. allow_undefined_flag_CXX \
  22927. no_undefined_flag_RC \
  22928. no_undefined_flag_CXX \
  22929. hardcode_libdir_flag_spec_RC \
  22930. hardcode_libdir_flag_spec_CXX \
  22931. hardcode_libdir_separator_RC \
  22932. hardcode_libdir_separator_CXX \
  22933. exclude_expsyms_RC \
  22934. exclude_expsyms_CXX \
  22935. include_expsyms_RC \
  22936. include_expsyms_CXX \
  22937. file_list_spec_RC \
  22938. file_list_spec_CXX \
  22939. compiler_lib_search_dirs_RC \
  22940. compiler_lib_search_dirs_CXX \
  22941. predep_objects_RC \
  22942. predep_objects_CXX \
  22943. postdep_objects_RC \
  22944. postdep_objects_CXX \
  22945. predeps_RC \
  22946. predeps_CXX \
  22947. postdeps_RC \
  22948. postdeps_CXX \
  22949. compiler_lib_search_path_RC \
  22950. compiler_lib_search_path_CXX; do
  22951. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22952. *[\\\\\\\`\\"\\\$]*)
  22953. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22954. ;;
  22955. *)
  22956. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22957. ;;
  22958. esac
  22959. done
  22960. # Double-quote double-evaled strings.
  22961. for var in reload_cmds \
  22962. old_postinstall_cmds \
  22963. old_postuninstall_cmds \
  22964. old_archive_cmds \
  22965. extract_expsyms_cmds \
  22966. old_archive_from_new_cmds \
  22967. old_archive_from_expsyms_cmds \
  22968. archive_cmds \
  22969. archive_expsym_cmds \
  22970. module_cmds \
  22971. module_expsym_cmds \
  22972. export_symbols_cmds \
  22973. prelink_cmds \
  22974. postlink_cmds \
  22975. postinstall_cmds \
  22976. postuninstall_cmds \
  22977. finish_cmds \
  22978. sys_lib_search_path_spec \
  22979. sys_lib_dlsearch_path_spec \
  22980. reload_cmds_RC \
  22981. reload_cmds_CXX \
  22982. old_archive_cmds_RC \
  22983. old_archive_cmds_CXX \
  22984. old_archive_from_new_cmds_RC \
  22985. old_archive_from_new_cmds_CXX \
  22986. old_archive_from_expsyms_cmds_RC \
  22987. old_archive_from_expsyms_cmds_CXX \
  22988. archive_cmds_RC \
  22989. archive_cmds_CXX \
  22990. archive_expsym_cmds_RC \
  22991. archive_expsym_cmds_CXX \
  22992. module_cmds_RC \
  22993. module_cmds_CXX \
  22994. module_expsym_cmds_RC \
  22995. module_expsym_cmds_CXX \
  22996. export_symbols_cmds_RC \
  22997. export_symbols_cmds_CXX \
  22998. prelink_cmds_RC \
  22999. prelink_cmds_CXX \
  23000. postlink_cmds_RC \
  23001. postlink_cmds_CXX; do
  23002. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  23003. *[\\\\\\\`\\"\\\$]*)
  23004. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  23005. ;;
  23006. *)
  23007. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  23008. ;;
  23009. esac
  23010. done
  23011. ac_aux_dir='$ac_aux_dir'
  23012. xsi_shell='$xsi_shell'
  23013. lt_shell_append='$lt_shell_append'
  23014. # See if we are running on zsh, and set the options which allow our
  23015. # commands through without removal of \ escapes INIT.
  23016. if test -n "\${ZSH_VERSION+set}" ; then
  23017. setopt NO_GLOB_SUBST
  23018. fi
  23019. PACKAGE='$PACKAGE'
  23020. VERSION='$VERSION'
  23021. TIMESTAMP='$TIMESTAMP'
  23022. RM='$RM'
  23023. ofile='$ofile'
  23024. SUMMARY="$SUMMARY"
  23025. _ACEOF
  23026. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23027. # Handling of arguments.
  23028. for ac_config_target in $ac_config_targets
  23029. do
  23030. case $ac_config_target in
  23031. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  23032. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  23033. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  23034. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  23035. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  23036. "sdl2-config-version.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config-version.cmake" ;;
  23037. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  23038. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  23039. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  23040. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  23041. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  23042. esac
  23043. done
  23044. # If the user did not use the arguments to specify the items to instantiate,
  23045. # then the envvar interface is used. Set only those that are not.
  23046. # We use the long form for the default assignment because of an extremely
  23047. # bizarre bug on SunOS 4.1.3.
  23048. if $ac_need_defaults; then
  23049. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  23050. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  23051. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  23052. fi
  23053. # Have a temporary directory for convenience. Make it in the build tree
  23054. # simply because there is no reason against having it here, and in addition,
  23055. # creating and moving files from /tmp can sometimes cause problems.
  23056. # Hook for its removal unless debugging.
  23057. # Note that there is a small window in which the directory will not be cleaned:
  23058. # after its creation but before its name has been assigned to `$tmp'.
  23059. $debug ||
  23060. {
  23061. tmp= ac_tmp=
  23062. trap 'exit_status=$?
  23063. : "${ac_tmp:=$tmp}"
  23064. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  23065. ' 0
  23066. trap 'as_fn_exit 1' 1 2 13 15
  23067. }
  23068. # Create a (secure) tmp directory for tmp files.
  23069. {
  23070. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  23071. test -d "$tmp"
  23072. } ||
  23073. {
  23074. tmp=./conf$$-$RANDOM
  23075. (umask 077 && mkdir "$tmp")
  23076. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  23077. ac_tmp=$tmp
  23078. # Set up the scripts for CONFIG_FILES section.
  23079. # No need to generate them if there are no CONFIG_FILES.
  23080. # This happens for instance with `./config.status config.h'.
  23081. if test -n "$CONFIG_FILES"; then
  23082. ac_cr=`echo X | tr X '\015'`
  23083. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  23084. # But we know of no other shell where ac_cr would be empty at this
  23085. # point, so we can use a bashism as a fallback.
  23086. if test "x$ac_cr" = x; then
  23087. eval ac_cr=\$\'\\r\'
  23088. fi
  23089. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  23090. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  23091. ac_cs_awk_cr='\\r'
  23092. else
  23093. ac_cs_awk_cr=$ac_cr
  23094. fi
  23095. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  23096. _ACEOF
  23097. {
  23098. echo "cat >conf$$subs.awk <<_ACEOF" &&
  23099. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  23100. echo "_ACEOF"
  23101. } >conf$$subs.sh ||
  23102. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23103. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  23104. ac_delim='%!_!# '
  23105. for ac_last_try in false false false false false :; do
  23106. . ./conf$$subs.sh ||
  23107. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23108. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  23109. if test $ac_delim_n = $ac_delim_num; then
  23110. break
  23111. elif $ac_last_try; then
  23112. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  23113. else
  23114. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23115. fi
  23116. done
  23117. rm -f conf$$subs.sh
  23118. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23119. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  23120. _ACEOF
  23121. sed -n '
  23122. h
  23123. s/^/S["/; s/!.*/"]=/
  23124. p
  23125. g
  23126. s/^[^!]*!//
  23127. :repl
  23128. t repl
  23129. s/'"$ac_delim"'$//
  23130. t delim
  23131. :nl
  23132. h
  23133. s/\(.\{148\}\)..*/\1/
  23134. t more1
  23135. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23136. p
  23137. n
  23138. b repl
  23139. :more1
  23140. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23141. p
  23142. g
  23143. s/.\{148\}//
  23144. t nl
  23145. :delim
  23146. h
  23147. s/\(.\{148\}\)..*/\1/
  23148. t more2
  23149. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23150. p
  23151. b
  23152. :more2
  23153. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23154. p
  23155. g
  23156. s/.\{148\}//
  23157. t delim
  23158. ' <conf$$subs.awk | sed '
  23159. /^[^""]/{
  23160. N
  23161. s/\n//
  23162. }
  23163. ' >>$CONFIG_STATUS || ac_write_fail=1
  23164. rm -f conf$$subs.awk
  23165. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23166. _ACAWK
  23167. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  23168. for (key in S) S_is_set[key] = 1
  23169. FS = ""
  23170. }
  23171. {
  23172. line = $ 0
  23173. nfields = split(line, field, "@")
  23174. substed = 0
  23175. len = length(field[1])
  23176. for (i = 2; i < nfields; i++) {
  23177. key = field[i]
  23178. keylen = length(key)
  23179. if (S_is_set[key]) {
  23180. value = S[key]
  23181. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23182. len += length(value) + length(field[++i])
  23183. substed = 1
  23184. } else
  23185. len += 1 + keylen
  23186. }
  23187. print line
  23188. }
  23189. _ACAWK
  23190. _ACEOF
  23191. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23192. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23193. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23194. else
  23195. cat
  23196. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  23197. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  23198. _ACEOF
  23199. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  23200. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  23201. # trailing colons and then remove the whole line if VPATH becomes empty
  23202. # (actually we leave an empty line to preserve line numbers).
  23203. if test "x$srcdir" = x.; then
  23204. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  23205. h
  23206. s///
  23207. s/^/:/
  23208. s/[ ]*$/:/
  23209. s/:\$(srcdir):/:/g
  23210. s/:\${srcdir}:/:/g
  23211. s/:@srcdir@:/:/g
  23212. s/^:*//
  23213. s/:*$//
  23214. x
  23215. s/\(=[ ]*\).*/\1/
  23216. G
  23217. s/\n//
  23218. s/^[^=]*=[ ]*$//
  23219. }'
  23220. fi
  23221. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23222. fi # test -n "$CONFIG_FILES"
  23223. # Set up the scripts for CONFIG_HEADERS section.
  23224. # No need to generate them if there are no CONFIG_HEADERS.
  23225. # This happens for instance with `./config.status Makefile'.
  23226. if test -n "$CONFIG_HEADERS"; then
  23227. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  23228. BEGIN {
  23229. _ACEOF
  23230. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23231. # here-document in config.status, that substitutes the proper values into
  23232. # config.h.in to produce config.h.
  23233. # Create a delimiter string that does not exist in confdefs.h, to ease
  23234. # handling of long lines.
  23235. ac_delim='%!_!# '
  23236. for ac_last_try in false false :; do
  23237. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  23238. if test -z "$ac_tt"; then
  23239. break
  23240. elif $ac_last_try; then
  23241. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  23242. else
  23243. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23244. fi
  23245. done
  23246. # For the awk script, D is an array of macro values keyed by name,
  23247. # likewise P contains macro parameters if any. Preserve backslash
  23248. # newline sequences.
  23249. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23250. sed -n '
  23251. s/.\{148\}/&'"$ac_delim"'/g
  23252. t rset
  23253. :rset
  23254. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23255. t def
  23256. d
  23257. :def
  23258. s/\\$//
  23259. t bsnl
  23260. s/["\\]/\\&/g
  23261. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23262. D["\1"]=" \3"/p
  23263. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23264. d
  23265. :bsnl
  23266. s/["\\]/\\&/g
  23267. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23268. D["\1"]=" \3\\\\\\n"\\/p
  23269. t cont
  23270. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23271. t cont
  23272. d
  23273. :cont
  23274. n
  23275. s/.\{148\}/&'"$ac_delim"'/g
  23276. t clear
  23277. :clear
  23278. s/\\$//
  23279. t bsnlc
  23280. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23281. d
  23282. :bsnlc
  23283. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23284. b cont
  23285. ' <confdefs.h | sed '
  23286. s/'"$ac_delim"'/"\\\
  23287. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23288. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23289. for (key in D) D_is_set[key] = 1
  23290. FS = ""
  23291. }
  23292. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23293. line = \$ 0
  23294. split(line, arg, " ")
  23295. if (arg[1] == "#") {
  23296. defundef = arg[2]
  23297. mac1 = arg[3]
  23298. } else {
  23299. defundef = substr(arg[1], 2)
  23300. mac1 = arg[2]
  23301. }
  23302. split(mac1, mac2, "(") #)
  23303. macro = mac2[1]
  23304. prefix = substr(line, 1, index(line, defundef) - 1)
  23305. if (D_is_set[macro]) {
  23306. # Preserve the white space surrounding the "#".
  23307. print prefix "define", macro P[macro] D[macro]
  23308. next
  23309. } else {
  23310. # Replace #undef with comments. This is necessary, for example,
  23311. # in the case of _POSIX_SOURCE, which is predefined and required
  23312. # on some systems where configure will not decide to define it.
  23313. if (defundef == "undef") {
  23314. print "/*", prefix defundef, macro, "*/"
  23315. next
  23316. }
  23317. }
  23318. }
  23319. { print }
  23320. _ACAWK
  23321. _ACEOF
  23322. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23323. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  23324. fi # test -n "$CONFIG_HEADERS"
  23325. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23326. shift
  23327. for ac_tag
  23328. do
  23329. case $ac_tag in
  23330. :[FHLC]) ac_mode=$ac_tag; continue;;
  23331. esac
  23332. case $ac_mode$ac_tag in
  23333. :[FHL]*:*);;
  23334. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23335. :[FH]-) ac_tag=-:-;;
  23336. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23337. esac
  23338. ac_save_IFS=$IFS
  23339. IFS=:
  23340. set x $ac_tag
  23341. IFS=$ac_save_IFS
  23342. shift
  23343. ac_file=$1
  23344. shift
  23345. case $ac_mode in
  23346. :L) ac_source=$1;;
  23347. :[FH])
  23348. ac_file_inputs=
  23349. for ac_f
  23350. do
  23351. case $ac_f in
  23352. -) ac_f="$ac_tmp/stdin";;
  23353. *) # Look for the file first in the build tree, then in the source tree
  23354. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23355. # because $ac_f cannot contain `:'.
  23356. test -f "$ac_f" ||
  23357. case $ac_f in
  23358. [\\/$]*) false;;
  23359. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23360. esac ||
  23361. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23362. esac
  23363. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23364. as_fn_append ac_file_inputs " '$ac_f'"
  23365. done
  23366. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23367. # use $as_me), people would be surprised to read:
  23368. # /* config.h. Generated by config.status. */
  23369. configure_input='Generated from '`
  23370. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23371. `' by configure.'
  23372. if test x"$ac_file" != x-; then
  23373. configure_input="$ac_file. $configure_input"
  23374. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23375. $as_echo "$as_me: creating $ac_file" >&6;}
  23376. fi
  23377. # Neutralize special characters interpreted by sed in replacement strings.
  23378. case $configure_input in #(
  23379. *\&* | *\|* | *\\* )
  23380. ac_sed_conf_input=`$as_echo "$configure_input" |
  23381. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23382. *) ac_sed_conf_input=$configure_input;;
  23383. esac
  23384. case $ac_tag in
  23385. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  23386. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  23387. esac
  23388. ;;
  23389. esac
  23390. ac_dir=`$as_dirname -- "$ac_file" ||
  23391. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23392. X"$ac_file" : 'X\(//\)[^/]' \| \
  23393. X"$ac_file" : 'X\(//\)$' \| \
  23394. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23395. $as_echo X"$ac_file" |
  23396. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23397. s//\1/
  23398. q
  23399. }
  23400. /^X\(\/\/\)[^/].*/{
  23401. s//\1/
  23402. q
  23403. }
  23404. /^X\(\/\/\)$/{
  23405. s//\1/
  23406. q
  23407. }
  23408. /^X\(\/\).*/{
  23409. s//\1/
  23410. q
  23411. }
  23412. s/.*/./; q'`
  23413. as_dir="$ac_dir"; as_fn_mkdir_p
  23414. ac_builddir=.
  23415. case "$ac_dir" in
  23416. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23417. *)
  23418. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23419. # A ".." for each directory in $ac_dir_suffix.
  23420. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23421. case $ac_top_builddir_sub in
  23422. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23423. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23424. esac ;;
  23425. esac
  23426. ac_abs_top_builddir=$ac_pwd
  23427. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23428. # for backward compatibility:
  23429. ac_top_builddir=$ac_top_build_prefix
  23430. case $srcdir in
  23431. .) # We are building in place.
  23432. ac_srcdir=.
  23433. ac_top_srcdir=$ac_top_builddir_sub
  23434. ac_abs_top_srcdir=$ac_pwd ;;
  23435. [\\/]* | ?:[\\/]* ) # Absolute name.
  23436. ac_srcdir=$srcdir$ac_dir_suffix;
  23437. ac_top_srcdir=$srcdir
  23438. ac_abs_top_srcdir=$srcdir ;;
  23439. *) # Relative name.
  23440. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23441. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23442. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23443. esac
  23444. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23445. case $ac_mode in
  23446. :F)
  23447. #
  23448. # CONFIG_FILE
  23449. #
  23450. case $INSTALL in
  23451. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23452. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23453. esac
  23454. _ACEOF
  23455. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23456. # If the template does not know about datarootdir, expand it.
  23457. # FIXME: This hack should be removed a few years after 2.60.
  23458. ac_datarootdir_hack=; ac_datarootdir_seen=
  23459. ac_sed_dataroot='
  23460. /datarootdir/ {
  23461. p
  23462. q
  23463. }
  23464. /@datadir@/p
  23465. /@docdir@/p
  23466. /@infodir@/p
  23467. /@localedir@/p
  23468. /@mandir@/p'
  23469. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23470. *datarootdir*) ac_datarootdir_seen=yes;;
  23471. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23473. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23474. _ACEOF
  23475. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23476. ac_datarootdir_hack='
  23477. s&@datadir@&$datadir&g
  23478. s&@docdir@&$docdir&g
  23479. s&@infodir@&$infodir&g
  23480. s&@localedir@&$localedir&g
  23481. s&@mandir@&$mandir&g
  23482. s&\\\${datarootdir}&$datarootdir&g' ;;
  23483. esac
  23484. _ACEOF
  23485. # Neutralize VPATH when `$srcdir' = `.'.
  23486. # Shell code in configure.ac might set extrasub.
  23487. # FIXME: do we really want to maintain this feature?
  23488. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23489. ac_sed_extra="$ac_vpsub
  23490. $extrasub
  23491. _ACEOF
  23492. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23493. :t
  23494. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23495. s|@configure_input@|$ac_sed_conf_input|;t t
  23496. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23497. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23498. s&@srcdir@&$ac_srcdir&;t t
  23499. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23500. s&@top_srcdir@&$ac_top_srcdir&;t t
  23501. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23502. s&@builddir@&$ac_builddir&;t t
  23503. s&@abs_builddir@&$ac_abs_builddir&;t t
  23504. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23505. s&@INSTALL@&$ac_INSTALL&;t t
  23506. $ac_datarootdir_hack
  23507. "
  23508. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  23509. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23510. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23511. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  23512. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  23513. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  23514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23515. which seems to be undefined. Please make sure it is defined" >&5
  23516. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23517. which seems to be undefined. Please make sure it is defined" >&2;}
  23518. rm -f "$ac_tmp/stdin"
  23519. case $ac_file in
  23520. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  23521. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  23522. esac \
  23523. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23524. ;;
  23525. :H)
  23526. #
  23527. # CONFIG_HEADER
  23528. #
  23529. if test x"$ac_file" != x-; then
  23530. {
  23531. $as_echo "/* $configure_input */" \
  23532. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  23533. } >"$ac_tmp/config.h" \
  23534. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23535. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  23536. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23537. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23538. else
  23539. rm -f "$ac_file"
  23540. mv "$ac_tmp/config.h" "$ac_file" \
  23541. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  23542. fi
  23543. else
  23544. $as_echo "/* $configure_input */" \
  23545. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  23546. || as_fn_error $? "could not create -" "$LINENO" 5
  23547. fi
  23548. ;;
  23549. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23550. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23551. ;;
  23552. esac
  23553. case $ac_file$ac_mode in
  23554. "libtool":C)
  23555. # See if we are running on zsh, and set the options which allow our
  23556. # commands through without removal of \ escapes.
  23557. if test -n "${ZSH_VERSION+set}" ; then
  23558. setopt NO_GLOB_SUBST
  23559. fi
  23560. cfgfile="${ofile}T"
  23561. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  23562. $RM "$cfgfile"
  23563. cat <<_LT_EOF >> "$cfgfile"
  23564. #! $SHELL
  23565. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  23566. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  23567. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  23568. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  23569. #
  23570. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  23571. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23572. # Foundation, Inc.
  23573. # Written by Gordon Matzigkeit, 1996
  23574. #
  23575. # This file is part of GNU Libtool.
  23576. #
  23577. # GNU Libtool is free software; you can redistribute it and/or
  23578. # modify it under the terms of the GNU General Public License as
  23579. # published by the Free Software Foundation; either version 2 of
  23580. # the License, or (at your option) any later version.
  23581. #
  23582. # As a special exception to the GNU General Public License,
  23583. # if you distribute this file as part of a program or library that
  23584. # is built using GNU Libtool, you may include this file under the
  23585. # same distribution terms that you use for the rest of that program.
  23586. #
  23587. # GNU Libtool is distributed in the hope that it will be useful,
  23588. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  23589. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23590. # GNU General Public License for more details.
  23591. #
  23592. # You should have received a copy of the GNU General Public License
  23593. # along with GNU Libtool; see the file COPYING. If not, a copy
  23594. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  23595. # obtained by writing to the Free Software Foundation, Inc.,
  23596. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  23597. # The names of the tagged configurations supported by this script.
  23598. available_tags="RC CXX "
  23599. # ### BEGIN LIBTOOL CONFIG
  23600. # Which release of libtool.m4 was used?
  23601. macro_version=$macro_version
  23602. macro_revision=$macro_revision
  23603. # Assembler program.
  23604. AS=$lt_AS
  23605. # DLL creation program.
  23606. DLLTOOL=$lt_DLLTOOL
  23607. # Object dumper program.
  23608. OBJDUMP=$lt_OBJDUMP
  23609. # Whether or not to build shared libraries.
  23610. build_libtool_libs=$enable_shared
  23611. # Whether or not to build static libraries.
  23612. build_old_libs=$enable_static
  23613. # What type of objects to build.
  23614. pic_mode=$pic_mode
  23615. # Whether or not to optimize for fast installation.
  23616. fast_install=$enable_fast_install
  23617. # Shell to use when invoking shell scripts.
  23618. SHELL=$lt_SHELL
  23619. # An echo program that protects backslashes.
  23620. ECHO=$lt_ECHO
  23621. # The PATH separator for the build system.
  23622. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  23623. # The host system.
  23624. host_alias=$host_alias
  23625. host=$host
  23626. host_os=$host_os
  23627. # The build system.
  23628. build_alias=$build_alias
  23629. build=$build
  23630. build_os=$build_os
  23631. # A sed program that does not truncate output.
  23632. SED=$lt_SED
  23633. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  23634. Xsed="\$SED -e 1s/^X//"
  23635. # A grep program that handles long lines.
  23636. GREP=$lt_GREP
  23637. # An ERE matcher.
  23638. EGREP=$lt_EGREP
  23639. # A literal string matcher.
  23640. FGREP=$lt_FGREP
  23641. # A BSD- or MS-compatible name lister.
  23642. NM=$lt_NM
  23643. # Whether we need soft or hard links.
  23644. LN_S=$lt_LN_S
  23645. # What is the maximum length of a command?
  23646. max_cmd_len=$max_cmd_len
  23647. # Object file suffix (normally "o").
  23648. objext=$ac_objext
  23649. # Executable file suffix (normally "").
  23650. exeext=$exeext
  23651. # whether the shell understands "unset".
  23652. lt_unset=$lt_unset
  23653. # turn spaces into newlines.
  23654. SP2NL=$lt_lt_SP2NL
  23655. # turn newlines into spaces.
  23656. NL2SP=$lt_lt_NL2SP
  23657. # convert \$build file names to \$host format.
  23658. to_host_file_cmd=$lt_cv_to_host_file_cmd
  23659. # convert \$build files to toolchain format.
  23660. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  23661. # Method to check whether dependent libraries are shared objects.
  23662. deplibs_check_method=$lt_deplibs_check_method
  23663. # Command to use when deplibs_check_method = "file_magic".
  23664. file_magic_cmd=$lt_file_magic_cmd
  23665. # How to find potential files when deplibs_check_method = "file_magic".
  23666. file_magic_glob=$lt_file_magic_glob
  23667. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  23668. want_nocaseglob=$lt_want_nocaseglob
  23669. # Command to associate shared and link libraries.
  23670. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  23671. # The archiver.
  23672. AR=$lt_AR
  23673. # Flags to create an archive.
  23674. AR_FLAGS=$lt_AR_FLAGS
  23675. # How to feed a file listing to the archiver.
  23676. archiver_list_spec=$lt_archiver_list_spec
  23677. # A symbol stripping program.
  23678. STRIP=$lt_STRIP
  23679. # Commands used to install an old-style archive.
  23680. RANLIB=$lt_RANLIB
  23681. old_postinstall_cmds=$lt_old_postinstall_cmds
  23682. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  23683. # Whether to use a lock for old archive extraction.
  23684. lock_old_archive_extraction=$lock_old_archive_extraction
  23685. # A C compiler.
  23686. LTCC=$lt_CC
  23687. # LTCC compiler flags.
  23688. LTCFLAGS=$lt_CFLAGS
  23689. # Take the output of nm and produce a listing of raw symbols and C names.
  23690. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  23691. # Transform the output of nm in a proper C declaration.
  23692. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  23693. # Transform the output of nm in a C name address pair.
  23694. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  23695. # Transform the output of nm in a C name address pair when lib prefix is needed.
  23696. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  23697. # Specify filename containing input files for \$NM.
  23698. nm_file_list_spec=$lt_nm_file_list_spec
  23699. # The root where to search for dependent libraries,and in which our libraries should be installed.
  23700. lt_sysroot=$lt_sysroot
  23701. # The name of the directory that contains temporary libtool files.
  23702. objdir=$objdir
  23703. # Used to examine libraries when file_magic_cmd begins with "file".
  23704. MAGIC_CMD=$MAGIC_CMD
  23705. # Must we lock files when doing compilation?
  23706. need_locks=$lt_need_locks
  23707. # Manifest tool.
  23708. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  23709. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  23710. DSYMUTIL=$lt_DSYMUTIL
  23711. # Tool to change global to local symbols on Mac OS X.
  23712. NMEDIT=$lt_NMEDIT
  23713. # Tool to manipulate fat objects and archives on Mac OS X.
  23714. LIPO=$lt_LIPO
  23715. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  23716. OTOOL=$lt_OTOOL
  23717. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  23718. OTOOL64=$lt_OTOOL64
  23719. # Old archive suffix (normally "a").
  23720. libext=$libext
  23721. # Shared library suffix (normally ".so").
  23722. shrext_cmds=$lt_shrext_cmds
  23723. # The commands to extract the exported symbol list from a shared archive.
  23724. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  23725. # Variables whose values should be saved in libtool wrapper scripts and
  23726. # restored at link time.
  23727. variables_saved_for_relink=$lt_variables_saved_for_relink
  23728. # Do we need the "lib" prefix for modules?
  23729. need_lib_prefix=$need_lib_prefix
  23730. # Do we need a version for libraries?
  23731. need_version=$need_version
  23732. # Library versioning type.
  23733. version_type=$version_type
  23734. # Shared library runtime path variable.
  23735. runpath_var=$runpath_var
  23736. # Shared library path variable.
  23737. shlibpath_var=$shlibpath_var
  23738. # Is shlibpath searched before the hard-coded library search path?
  23739. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  23740. # Format of library name prefix.
  23741. libname_spec=$lt_libname_spec
  23742. # List of archive names. First name is the real one, the rest are links.
  23743. # The last name is the one that the linker finds with -lNAME
  23744. library_names_spec=$lt_library_names_spec
  23745. # The coded name of the library, if different from the real name.
  23746. soname_spec=$lt_soname_spec
  23747. # Permission mode override for installation of shared libraries.
  23748. install_override_mode=$lt_install_override_mode
  23749. # Command to use after installation of a shared archive.
  23750. postinstall_cmds=$lt_postinstall_cmds
  23751. # Command to use after uninstallation of a shared archive.
  23752. postuninstall_cmds=$lt_postuninstall_cmds
  23753. # Commands used to finish a libtool library installation in a directory.
  23754. finish_cmds=$lt_finish_cmds
  23755. # As "finish_cmds", except a single script fragment to be evaled but
  23756. # not shown.
  23757. finish_eval=$lt_finish_eval
  23758. # Whether we should hardcode library paths into libraries.
  23759. hardcode_into_libs=$hardcode_into_libs
  23760. # Compile-time system search path for libraries.
  23761. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23762. # Run-time system search path for libraries.
  23763. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23764. # Whether dlopen is supported.
  23765. dlopen_support=$enable_dlopen
  23766. # Whether dlopen of programs is supported.
  23767. dlopen_self=$enable_dlopen_self
  23768. # Whether dlopen of statically linked programs is supported.
  23769. dlopen_self_static=$enable_dlopen_self_static
  23770. # Commands to strip libraries.
  23771. old_striplib=$lt_old_striplib
  23772. striplib=$lt_striplib
  23773. # The linker used to build libraries.
  23774. LD=$lt_LD
  23775. # How to create reloadable object files.
  23776. reload_flag=$lt_reload_flag
  23777. reload_cmds=$lt_reload_cmds
  23778. # Commands used to build an old-style archive.
  23779. old_archive_cmds=$lt_old_archive_cmds
  23780. # A language specific compiler.
  23781. CC=$lt_compiler
  23782. # Is the compiler the GNU compiler?
  23783. with_gcc=$GCC
  23784. # Compiler flag to turn off builtin functions.
  23785. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23786. # Additional compiler flags for building library objects.
  23787. pic_flag=$lt_lt_prog_compiler_pic
  23788. # How to pass a linker flag through the compiler.
  23789. wl=$lt_lt_prog_compiler_wl
  23790. # Compiler flag to prevent dynamic linking.
  23791. link_static_flag=$lt_lt_prog_compiler_static
  23792. # Does compiler simultaneously support -c and -o options?
  23793. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23794. # Whether or not to add -lc for building shared libraries.
  23795. build_libtool_need_lc=$archive_cmds_need_lc
  23796. # Whether or not to disallow shared libs when runtime libs are static.
  23797. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23798. # Compiler flag to allow reflexive dlopens.
  23799. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23800. # Compiler flag to generate shared objects directly from archives.
  23801. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23802. # Whether the compiler copes with passing no objects directly.
  23803. compiler_needs_object=$lt_compiler_needs_object
  23804. # Create an old-style archive from a shared archive.
  23805. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23806. # Create a temporary old-style archive to link instead of a shared archive.
  23807. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23808. # Commands used to build a shared archive.
  23809. archive_cmds=$lt_archive_cmds
  23810. archive_expsym_cmds=$lt_archive_expsym_cmds
  23811. # Commands used to build a loadable module if different from building
  23812. # a shared archive.
  23813. module_cmds=$lt_module_cmds
  23814. module_expsym_cmds=$lt_module_expsym_cmds
  23815. # Whether we are building with GNU ld or not.
  23816. with_gnu_ld=$lt_with_gnu_ld
  23817. # Flag that allows shared libraries with undefined symbols to be built.
  23818. allow_undefined_flag=$lt_allow_undefined_flag
  23819. # Flag that enforces no undefined symbols.
  23820. no_undefined_flag=$lt_no_undefined_flag
  23821. # Flag to hardcode \$libdir into a binary during linking.
  23822. # This must work even if \$libdir does not exist
  23823. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23824. # Whether we need a single "-rpath" flag with a separated argument.
  23825. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23826. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23827. # DIR into the resulting binary.
  23828. hardcode_direct=$hardcode_direct
  23829. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23830. # DIR into the resulting binary and the resulting library dependency is
  23831. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23832. # library is relocated.
  23833. hardcode_direct_absolute=$hardcode_direct_absolute
  23834. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23835. # into the resulting binary.
  23836. hardcode_minus_L=$hardcode_minus_L
  23837. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23838. # into the resulting binary.
  23839. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23840. # Set to "yes" if building a shared library automatically hardcodes DIR
  23841. # into the library and all subsequent libraries and executables linked
  23842. # against it.
  23843. hardcode_automatic=$hardcode_automatic
  23844. # Set to yes if linker adds runtime paths of dependent libraries
  23845. # to runtime path list.
  23846. inherit_rpath=$inherit_rpath
  23847. # Whether libtool must link a program against all its dependency libraries.
  23848. link_all_deplibs=$link_all_deplibs
  23849. # Set to "yes" if exported symbols are required.
  23850. always_export_symbols=$always_export_symbols
  23851. # The commands to list exported symbols.
  23852. export_symbols_cmds=$lt_export_symbols_cmds
  23853. # Symbols that should not be listed in the preloaded symbols.
  23854. exclude_expsyms=$lt_exclude_expsyms
  23855. # Symbols that must always be exported.
  23856. include_expsyms=$lt_include_expsyms
  23857. # Commands necessary for linking programs (against libraries) with templates.
  23858. prelink_cmds=$lt_prelink_cmds
  23859. # Commands necessary for finishing linking programs.
  23860. postlink_cmds=$lt_postlink_cmds
  23861. # Specify filename containing input files.
  23862. file_list_spec=$lt_file_list_spec
  23863. # How to hardcode a shared library path into an executable.
  23864. hardcode_action=$hardcode_action
  23865. # The directories searched by this compiler when creating a shared library.
  23866. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23867. # Dependencies to place before and after the objects being linked to
  23868. # create a shared library.
  23869. predep_objects=$lt_predep_objects
  23870. postdep_objects=$lt_postdep_objects
  23871. predeps=$lt_predeps
  23872. postdeps=$lt_postdeps
  23873. # The library search path used internally by the compiler when linking
  23874. # a shared library.
  23875. compiler_lib_search_path=$lt_compiler_lib_search_path
  23876. # ### END LIBTOOL CONFIG
  23877. _LT_EOF
  23878. case $host_os in
  23879. aix3*)
  23880. cat <<\_LT_EOF >> "$cfgfile"
  23881. # AIX sometimes has problems with the GCC collect2 program. For some
  23882. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23883. # vanish in a puff of smoke.
  23884. if test "X${COLLECT_NAMES+set}" != Xset; then
  23885. COLLECT_NAMES=
  23886. export COLLECT_NAMES
  23887. fi
  23888. _LT_EOF
  23889. ;;
  23890. esac
  23891. ltmain="$ac_aux_dir/ltmain.sh"
  23892. # We use sed instead of cat because bash on DJGPP gets confused if
  23893. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23894. # text mode, it properly converts lines to CR/LF. This bash problem
  23895. # is reportedly fixed, but why not run on old versions too?
  23896. sed '$q' "$ltmain" >> "$cfgfile" \
  23897. || (rm -f "$cfgfile"; exit 1)
  23898. if test x"$xsi_shell" = xyes; then
  23899. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23900. func_dirname ()\
  23901. {\
  23902. \ case ${1} in\
  23903. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23904. \ * ) func_dirname_result="${3}" ;;\
  23905. \ esac\
  23906. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23907. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23908. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23909. test 0 -eq $? || _lt_function_replace_fail=:
  23910. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23911. func_basename ()\
  23912. {\
  23913. \ func_basename_result="${1##*/}"\
  23914. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23915. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23916. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23917. test 0 -eq $? || _lt_function_replace_fail=:
  23918. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23919. func_dirname_and_basename ()\
  23920. {\
  23921. \ case ${1} in\
  23922. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23923. \ * ) func_dirname_result="${3}" ;;\
  23924. \ esac\
  23925. \ func_basename_result="${1##*/}"\
  23926. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23927. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23928. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23929. test 0 -eq $? || _lt_function_replace_fail=:
  23930. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23931. func_stripname ()\
  23932. {\
  23933. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23934. \ # positional parameters, so assign one to ordinary parameter first.\
  23935. \ func_stripname_result=${3}\
  23936. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23937. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23938. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23939. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23940. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23941. test 0 -eq $? || _lt_function_replace_fail=:
  23942. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23943. func_split_long_opt ()\
  23944. {\
  23945. \ func_split_long_opt_name=${1%%=*}\
  23946. \ func_split_long_opt_arg=${1#*=}\
  23947. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23948. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23949. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23950. test 0 -eq $? || _lt_function_replace_fail=:
  23951. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23952. func_split_short_opt ()\
  23953. {\
  23954. \ func_split_short_opt_arg=${1#??}\
  23955. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23956. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23957. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23958. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23959. test 0 -eq $? || _lt_function_replace_fail=:
  23960. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23961. func_lo2o ()\
  23962. {\
  23963. \ case ${1} in\
  23964. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23965. \ *) func_lo2o_result=${1} ;;\
  23966. \ esac\
  23967. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23968. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23969. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23970. test 0 -eq $? || _lt_function_replace_fail=:
  23971. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23972. func_xform ()\
  23973. {\
  23974. func_xform_result=${1%.*}.lo\
  23975. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23976. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23977. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23978. test 0 -eq $? || _lt_function_replace_fail=:
  23979. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23980. func_arith ()\
  23981. {\
  23982. func_arith_result=$(( $* ))\
  23983. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23984. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23985. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23986. test 0 -eq $? || _lt_function_replace_fail=:
  23987. sed -e '/^func_len ()$/,/^} # func_len /c\
  23988. func_len ()\
  23989. {\
  23990. func_len_result=${#1}\
  23991. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23992. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23993. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23994. test 0 -eq $? || _lt_function_replace_fail=:
  23995. fi
  23996. if test x"$lt_shell_append" = xyes; then
  23997. sed -e '/^func_append ()$/,/^} # func_append /c\
  23998. func_append ()\
  23999. {\
  24000. eval "${1}+=\\${2}"\
  24001. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  24002. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24003. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24004. test 0 -eq $? || _lt_function_replace_fail=:
  24005. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  24006. func_append_quoted ()\
  24007. {\
  24008. \ func_quote_for_eval "${2}"\
  24009. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  24010. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  24011. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24012. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24013. test 0 -eq $? || _lt_function_replace_fail=:
  24014. # Save a `func_append' function call where possible by direct use of '+='
  24015. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  24016. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24017. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24018. test 0 -eq $? || _lt_function_replace_fail=:
  24019. else
  24020. # Save a `func_append' function call even when '+=' is not available
  24021. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  24022. && mv -f "$cfgfile.tmp" "$cfgfile" \
  24023. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  24024. test 0 -eq $? || _lt_function_replace_fail=:
  24025. fi
  24026. if test x"$_lt_function_replace_fail" = x":"; then
  24027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  24028. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  24029. fi
  24030. mv -f "$cfgfile" "$ofile" ||
  24031. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  24032. chmod +x "$ofile"
  24033. cat <<_LT_EOF >> "$ofile"
  24034. # ### BEGIN LIBTOOL TAG CONFIG: RC
  24035. # The linker used to build libraries.
  24036. LD=$lt_LD_RC
  24037. # How to create reloadable object files.
  24038. reload_flag=$lt_reload_flag_RC
  24039. reload_cmds=$lt_reload_cmds_RC
  24040. # Commands used to build an old-style archive.
  24041. old_archive_cmds=$lt_old_archive_cmds_RC
  24042. # A language specific compiler.
  24043. CC=$lt_compiler_RC
  24044. # Is the compiler the GNU compiler?
  24045. with_gcc=$GCC_RC
  24046. # Compiler flag to turn off builtin functions.
  24047. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  24048. # Additional compiler flags for building library objects.
  24049. pic_flag=$lt_lt_prog_compiler_pic_RC
  24050. # How to pass a linker flag through the compiler.
  24051. wl=$lt_lt_prog_compiler_wl_RC
  24052. # Compiler flag to prevent dynamic linking.
  24053. link_static_flag=$lt_lt_prog_compiler_static_RC
  24054. # Does compiler simultaneously support -c and -o options?
  24055. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  24056. # Whether or not to add -lc for building shared libraries.
  24057. build_libtool_need_lc=$archive_cmds_need_lc_RC
  24058. # Whether or not to disallow shared libs when runtime libs are static.
  24059. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  24060. # Compiler flag to allow reflexive dlopens.
  24061. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  24062. # Compiler flag to generate shared objects directly from archives.
  24063. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  24064. # Whether the compiler copes with passing no objects directly.
  24065. compiler_needs_object=$lt_compiler_needs_object_RC
  24066. # Create an old-style archive from a shared archive.
  24067. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  24068. # Create a temporary old-style archive to link instead of a shared archive.
  24069. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  24070. # Commands used to build a shared archive.
  24071. archive_cmds=$lt_archive_cmds_RC
  24072. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  24073. # Commands used to build a loadable module if different from building
  24074. # a shared archive.
  24075. module_cmds=$lt_module_cmds_RC
  24076. module_expsym_cmds=$lt_module_expsym_cmds_RC
  24077. # Whether we are building with GNU ld or not.
  24078. with_gnu_ld=$lt_with_gnu_ld_RC
  24079. # Flag that allows shared libraries with undefined symbols to be built.
  24080. allow_undefined_flag=$lt_allow_undefined_flag_RC
  24081. # Flag that enforces no undefined symbols.
  24082. no_undefined_flag=$lt_no_undefined_flag_RC
  24083. # Flag to hardcode \$libdir into a binary during linking.
  24084. # This must work even if \$libdir does not exist
  24085. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  24086. # Whether we need a single "-rpath" flag with a separated argument.
  24087. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  24088. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24089. # DIR into the resulting binary.
  24090. hardcode_direct=$hardcode_direct_RC
  24091. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24092. # DIR into the resulting binary and the resulting library dependency is
  24093. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24094. # library is relocated.
  24095. hardcode_direct_absolute=$hardcode_direct_absolute_RC
  24096. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24097. # into the resulting binary.
  24098. hardcode_minus_L=$hardcode_minus_L_RC
  24099. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24100. # into the resulting binary.
  24101. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  24102. # Set to "yes" if building a shared library automatically hardcodes DIR
  24103. # into the library and all subsequent libraries and executables linked
  24104. # against it.
  24105. hardcode_automatic=$hardcode_automatic_RC
  24106. # Set to yes if linker adds runtime paths of dependent libraries
  24107. # to runtime path list.
  24108. inherit_rpath=$inherit_rpath_RC
  24109. # Whether libtool must link a program against all its dependency libraries.
  24110. link_all_deplibs=$link_all_deplibs_RC
  24111. # Set to "yes" if exported symbols are required.
  24112. always_export_symbols=$always_export_symbols_RC
  24113. # The commands to list exported symbols.
  24114. export_symbols_cmds=$lt_export_symbols_cmds_RC
  24115. # Symbols that should not be listed in the preloaded symbols.
  24116. exclude_expsyms=$lt_exclude_expsyms_RC
  24117. # Symbols that must always be exported.
  24118. include_expsyms=$lt_include_expsyms_RC
  24119. # Commands necessary for linking programs (against libraries) with templates.
  24120. prelink_cmds=$lt_prelink_cmds_RC
  24121. # Commands necessary for finishing linking programs.
  24122. postlink_cmds=$lt_postlink_cmds_RC
  24123. # Specify filename containing input files.
  24124. file_list_spec=$lt_file_list_spec_RC
  24125. # How to hardcode a shared library path into an executable.
  24126. hardcode_action=$hardcode_action_RC
  24127. # The directories searched by this compiler when creating a shared library.
  24128. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
  24129. # Dependencies to place before and after the objects being linked to
  24130. # create a shared library.
  24131. predep_objects=$lt_predep_objects_RC
  24132. postdep_objects=$lt_postdep_objects_RC
  24133. predeps=$lt_predeps_RC
  24134. postdeps=$lt_postdeps_RC
  24135. # The library search path used internally by the compiler when linking
  24136. # a shared library.
  24137. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  24138. # ### END LIBTOOL TAG CONFIG: RC
  24139. _LT_EOF
  24140. cat <<_LT_EOF >> "$ofile"
  24141. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  24142. # The linker used to build libraries.
  24143. LD=$lt_LD_CXX
  24144. # How to create reloadable object files.
  24145. reload_flag=$lt_reload_flag_CXX
  24146. reload_cmds=$lt_reload_cmds_CXX
  24147. # Commands used to build an old-style archive.
  24148. old_archive_cmds=$lt_old_archive_cmds_CXX
  24149. # A language specific compiler.
  24150. CC=$lt_compiler_CXX
  24151. # Is the compiler the GNU compiler?
  24152. with_gcc=$GCC_CXX
  24153. # Compiler flag to turn off builtin functions.
  24154. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  24155. # Additional compiler flags for building library objects.
  24156. pic_flag=$lt_lt_prog_compiler_pic_CXX
  24157. # How to pass a linker flag through the compiler.
  24158. wl=$lt_lt_prog_compiler_wl_CXX
  24159. # Compiler flag to prevent dynamic linking.
  24160. link_static_flag=$lt_lt_prog_compiler_static_CXX
  24161. # Does compiler simultaneously support -c and -o options?
  24162. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  24163. # Whether or not to add -lc for building shared libraries.
  24164. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  24165. # Whether or not to disallow shared libs when runtime libs are static.
  24166. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  24167. # Compiler flag to allow reflexive dlopens.
  24168. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  24169. # Compiler flag to generate shared objects directly from archives.
  24170. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  24171. # Whether the compiler copes with passing no objects directly.
  24172. compiler_needs_object=$lt_compiler_needs_object_CXX
  24173. # Create an old-style archive from a shared archive.
  24174. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  24175. # Create a temporary old-style archive to link instead of a shared archive.
  24176. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  24177. # Commands used to build a shared archive.
  24178. archive_cmds=$lt_archive_cmds_CXX
  24179. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  24180. # Commands used to build a loadable module if different from building
  24181. # a shared archive.
  24182. module_cmds=$lt_module_cmds_CXX
  24183. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  24184. # Whether we are building with GNU ld or not.
  24185. with_gnu_ld=$lt_with_gnu_ld_CXX
  24186. # Flag that allows shared libraries with undefined symbols to be built.
  24187. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  24188. # Flag that enforces no undefined symbols.
  24189. no_undefined_flag=$lt_no_undefined_flag_CXX
  24190. # Flag to hardcode \$libdir into a binary during linking.
  24191. # This must work even if \$libdir does not exist
  24192. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  24193. # Whether we need a single "-rpath" flag with a separated argument.
  24194. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  24195. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24196. # DIR into the resulting binary.
  24197. hardcode_direct=$hardcode_direct_CXX
  24198. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  24199. # DIR into the resulting binary and the resulting library dependency is
  24200. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  24201. # library is relocated.
  24202. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  24203. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  24204. # into the resulting binary.
  24205. hardcode_minus_L=$hardcode_minus_L_CXX
  24206. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  24207. # into the resulting binary.
  24208. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  24209. # Set to "yes" if building a shared library automatically hardcodes DIR
  24210. # into the library and all subsequent libraries and executables linked
  24211. # against it.
  24212. hardcode_automatic=$hardcode_automatic_CXX
  24213. # Set to yes if linker adds runtime paths of dependent libraries
  24214. # to runtime path list.
  24215. inherit_rpath=$inherit_rpath_CXX
  24216. # Whether libtool must link a program against all its dependency libraries.
  24217. link_all_deplibs=$link_all_deplibs_CXX
  24218. # Set to "yes" if exported symbols are required.
  24219. always_export_symbols=$always_export_symbols_CXX
  24220. # The commands to list exported symbols.
  24221. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  24222. # Symbols that should not be listed in the preloaded symbols.
  24223. exclude_expsyms=$lt_exclude_expsyms_CXX
  24224. # Symbols that must always be exported.
  24225. include_expsyms=$lt_include_expsyms_CXX
  24226. # Commands necessary for linking programs (against libraries) with templates.
  24227. prelink_cmds=$lt_prelink_cmds_CXX
  24228. # Commands necessary for finishing linking programs.
  24229. postlink_cmds=$lt_postlink_cmds_CXX
  24230. # Specify filename containing input files.
  24231. file_list_spec=$lt_file_list_spec_CXX
  24232. # How to hardcode a shared library path into an executable.
  24233. hardcode_action=$hardcode_action_CXX
  24234. # The directories searched by this compiler when creating a shared library.
  24235. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  24236. # Dependencies to place before and after the objects being linked to
  24237. # create a shared library.
  24238. predep_objects=$lt_predep_objects_CXX
  24239. postdep_objects=$lt_postdep_objects_CXX
  24240. predeps=$lt_predeps_CXX
  24241. postdeps=$lt_postdeps_CXX
  24242. # The library search path used internally by the compiler when linking
  24243. # a shared library.
  24244. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  24245. # ### END LIBTOOL TAG CONFIG: CXX
  24246. _LT_EOF
  24247. ;;
  24248. "sdl2_config":C) chmod a+x sdl2-config ;;
  24249. "summary":C) echo -en "$SUMMARY" ;;
  24250. esac
  24251. done # for ac_tag
  24252. as_fn_exit 0
  24253. _ACEOF
  24254. ac_clean_files=$ac_clean_files_save
  24255. test $ac_write_fail = 0 ||
  24256. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  24257. # configure is writing to config.log, and then calls config.status.
  24258. # config.status does its own redirection, appending to config.log.
  24259. # Unfortunately, on DOS this fails, as config.log is still kept open
  24260. # by configure, so config.status won't be able to write to it; its
  24261. # output is simply discarded. So we exec the FD to /dev/null,
  24262. # effectively closing config.log, so it can be properly (re)opened and
  24263. # appended to by config.status. When coming back to configure, we
  24264. # need to make the FD available again.
  24265. if test "$no_create" != yes; then
  24266. ac_cs_success=:
  24267. ac_config_status_args=
  24268. test "$silent" = yes &&
  24269. ac_config_status_args="$ac_config_status_args --quiet"
  24270. exec 5>/dev/null
  24271. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  24272. exec 5>>config.log
  24273. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  24274. # would make configure fail if this is the last instruction.
  24275. $ac_cs_success || as_fn_exit 1
  24276. fi
  24277. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  24278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  24279. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  24280. fi