configure 799 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. runstatedir
  697. localstatedir
  698. sharedstatedir
  699. sysconfdir
  700. datadir
  701. datarootdir
  702. libexecdir
  703. sbindir
  704. bindir
  705. program_transform_name
  706. prefix
  707. exec_prefix
  708. PACKAGE_URL
  709. PACKAGE_BUGREPORT
  710. PACKAGE_STRING
  711. PACKAGE_VERSION
  712. PACKAGE_TARNAME
  713. PACKAGE_NAME
  714. PATH_SEPARATOR
  715. SHELL'
  716. ac_subst_files=''
  717. ac_user_opts='
  718. enable_option_checking
  719. enable_shared
  720. enable_static
  721. with_pic
  722. enable_fast_install
  723. with_gnu_ld
  724. with_sysroot
  725. enable_libtool_lock
  726. enable_assertions
  727. enable_dependency_tracking
  728. enable_libc
  729. enable_gcc_atomics
  730. enable_atomic
  731. enable_audio
  732. enable_video
  733. enable_render
  734. enable_events
  735. enable_joystick
  736. enable_haptic
  737. enable_power
  738. enable_filesystem
  739. enable_threads
  740. enable_timers
  741. enable_file
  742. enable_loadso
  743. enable_cpuinfo
  744. enable_assembly
  745. enable_ssemath
  746. enable_mmx
  747. enable_3dnow
  748. enable_sse
  749. enable_sse2
  750. enable_sse3
  751. enable_altivec
  752. enable_oss
  753. enable_alsa
  754. with_alsa_prefix
  755. with_alsa_inc_prefix
  756. enable_alsatest
  757. enable_alsa_shared
  758. enable_jack
  759. enable_jack_shared
  760. enable_esd
  761. with_esd_prefix
  762. with_esd_exec_prefix
  763. enable_esdtest
  764. enable_esd_shared
  765. enable_pulseaudio
  766. enable_pulseaudio_shared
  767. enable_arts
  768. enable_arts_shared
  769. enable_nas
  770. enable_nas_shared
  771. enable_sndio
  772. enable_sndio_shared
  773. enable_fusionsound
  774. enable_fusionsound_shared
  775. enable_diskaudio
  776. enable_dummyaudio
  777. enable_libsamplerate
  778. enable_libsamplerate_shared
  779. enable_video_wayland
  780. enable_video_wayland_qt_touch
  781. enable_wayland_shared
  782. enable_video_mir
  783. enable_mir_shared
  784. enable_video_rpi
  785. enable_video_x11
  786. with_x
  787. enable_x11_shared
  788. enable_video_x11_xcursor
  789. enable_video_x11_xdbe
  790. enable_video_x11_xinerama
  791. enable_video_x11_xinput
  792. enable_video_x11_xrandr
  793. enable_video_x11_scrnsaver
  794. enable_video_x11_xshape
  795. enable_video_x11_vm
  796. enable_video_vivante
  797. enable_video_cocoa
  798. enable_video_directfb
  799. enable_directfb_shared
  800. enable_video_kmsdrm
  801. enable_kmsdrm_shared
  802. enable_video_dummy
  803. enable_video_opengl
  804. enable_video_opengles
  805. enable_video_opengles1
  806. enable_video_opengles2
  807. enable_video_vulkan
  808. enable_libudev
  809. enable_dbus
  810. enable_ime
  811. enable_ibus
  812. enable_fcitx
  813. enable_input_tslib
  814. enable_pthreads
  815. enable_pthread_sem
  816. enable_directx
  817. enable_sdl_dlopen
  818. enable_clock_gettime
  819. enable_rpath
  820. enable_render_d3d
  821. '
  822. ac_precious_vars='build_alias
  823. host_alias
  824. target_alias
  825. CC
  826. CFLAGS
  827. LDFLAGS
  828. LIBS
  829. CPPFLAGS
  830. CPP
  831. CXX
  832. CXXFLAGS
  833. CCC
  834. CXXCPP
  835. XMKMF'
  836. # Initialize some variables set by options.
  837. ac_init_help=
  838. ac_init_version=false
  839. ac_unrecognized_opts=
  840. ac_unrecognized_sep=
  841. # The variables have the same names as the options, with
  842. # dashes changed to underlines.
  843. cache_file=/dev/null
  844. exec_prefix=NONE
  845. no_create=
  846. no_recursion=
  847. prefix=NONE
  848. program_prefix=NONE
  849. program_suffix=NONE
  850. program_transform_name=s,x,x,
  851. silent=
  852. site=
  853. srcdir=
  854. verbose=
  855. x_includes=NONE
  856. x_libraries=NONE
  857. # Installation directory options.
  858. # These are left unexpanded so users can "make install exec_prefix=/foo"
  859. # and all the variables that are supposed to be based on exec_prefix
  860. # by default will actually change.
  861. # Use braces instead of parens because sh, perl, etc. also accept them.
  862. # (The list follows the same order as the GNU Coding Standards.)
  863. bindir='${exec_prefix}/bin'
  864. sbindir='${exec_prefix}/sbin'
  865. libexecdir='${exec_prefix}/libexec'
  866. datarootdir='${prefix}/share'
  867. datadir='${datarootdir}'
  868. sysconfdir='${prefix}/etc'
  869. sharedstatedir='${prefix}/com'
  870. localstatedir='${prefix}/var'
  871. runstatedir='${localstatedir}/run'
  872. includedir='${prefix}/include'
  873. oldincludedir='/usr/include'
  874. docdir='${datarootdir}/doc/${PACKAGE}'
  875. infodir='${datarootdir}/info'
  876. htmldir='${docdir}'
  877. dvidir='${docdir}'
  878. pdfdir='${docdir}'
  879. psdir='${docdir}'
  880. libdir='${exec_prefix}/lib'
  881. localedir='${datarootdir}/locale'
  882. mandir='${datarootdir}/man'
  883. ac_prev=
  884. ac_dashdash=
  885. for ac_option
  886. do
  887. # If the previous option needs an argument, assign it.
  888. if test -n "$ac_prev"; then
  889. eval $ac_prev=\$ac_option
  890. ac_prev=
  891. continue
  892. fi
  893. case $ac_option in
  894. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  895. *=) ac_optarg= ;;
  896. *) ac_optarg=yes ;;
  897. esac
  898. # Accept the important Cygnus configure options, so we can diagnose typos.
  899. case $ac_dashdash$ac_option in
  900. --)
  901. ac_dashdash=yes ;;
  902. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  903. ac_prev=bindir ;;
  904. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  905. bindir=$ac_optarg ;;
  906. -build | --build | --buil | --bui | --bu)
  907. ac_prev=build_alias ;;
  908. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  909. build_alias=$ac_optarg ;;
  910. -cache-file | --cache-file | --cache-fil | --cache-fi \
  911. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  912. ac_prev=cache_file ;;
  913. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  914. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  915. cache_file=$ac_optarg ;;
  916. --config-cache | -C)
  917. cache_file=config.cache ;;
  918. -datadir | --datadir | --datadi | --datad)
  919. ac_prev=datadir ;;
  920. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  921. datadir=$ac_optarg ;;
  922. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  923. | --dataroo | --dataro | --datar)
  924. ac_prev=datarootdir ;;
  925. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  926. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  927. datarootdir=$ac_optarg ;;
  928. -disable-* | --disable-*)
  929. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  932. as_fn_error $? "invalid feature name: $ac_useropt"
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "enable_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval enable_$ac_useropt=no ;;
  943. -docdir | --docdir | --docdi | --doc | --do)
  944. ac_prev=docdir ;;
  945. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  946. docdir=$ac_optarg ;;
  947. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  948. ac_prev=dvidir ;;
  949. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  950. dvidir=$ac_optarg ;;
  951. -enable-* | --enable-*)
  952. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  953. # Reject names that are not valid shell variable names.
  954. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  955. as_fn_error $? "invalid feature name: $ac_useropt"
  956. ac_useropt_orig=$ac_useropt
  957. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  958. case $ac_user_opts in
  959. *"
  960. "enable_$ac_useropt"
  961. "*) ;;
  962. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  963. ac_unrecognized_sep=', ';;
  964. esac
  965. eval enable_$ac_useropt=\$ac_optarg ;;
  966. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  967. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  968. | --exec | --exe | --ex)
  969. ac_prev=exec_prefix ;;
  970. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  971. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  972. | --exec=* | --exe=* | --ex=*)
  973. exec_prefix=$ac_optarg ;;
  974. -gas | --gas | --ga | --g)
  975. # Obsolete; use --with-gas.
  976. with_gas=yes ;;
  977. -help | --help | --hel | --he | -h)
  978. ac_init_help=long ;;
  979. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  980. ac_init_help=recursive ;;
  981. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  982. ac_init_help=short ;;
  983. -host | --host | --hos | --ho)
  984. ac_prev=host_alias ;;
  985. -host=* | --host=* | --hos=* | --ho=*)
  986. host_alias=$ac_optarg ;;
  987. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  988. ac_prev=htmldir ;;
  989. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  990. | --ht=*)
  991. htmldir=$ac_optarg ;;
  992. -includedir | --includedir | --includedi | --included | --include \
  993. | --includ | --inclu | --incl | --inc)
  994. ac_prev=includedir ;;
  995. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  996. | --includ=* | --inclu=* | --incl=* | --inc=*)
  997. includedir=$ac_optarg ;;
  998. -infodir | --infodir | --infodi | --infod | --info | --inf)
  999. ac_prev=infodir ;;
  1000. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1001. infodir=$ac_optarg ;;
  1002. -libdir | --libdir | --libdi | --libd)
  1003. ac_prev=libdir ;;
  1004. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1005. libdir=$ac_optarg ;;
  1006. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1007. | --libexe | --libex | --libe)
  1008. ac_prev=libexecdir ;;
  1009. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1010. | --libexe=* | --libex=* | --libe=*)
  1011. libexecdir=$ac_optarg ;;
  1012. -localedir | --localedir | --localedi | --localed | --locale)
  1013. ac_prev=localedir ;;
  1014. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1015. localedir=$ac_optarg ;;
  1016. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1017. | --localstate | --localstat | --localsta | --localst | --locals)
  1018. ac_prev=localstatedir ;;
  1019. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1020. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1021. localstatedir=$ac_optarg ;;
  1022. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1023. ac_prev=mandir ;;
  1024. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1025. mandir=$ac_optarg ;;
  1026. -nfp | --nfp | --nf)
  1027. # Obsolete; use --without-fp.
  1028. with_fp=no ;;
  1029. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1030. | --no-cr | --no-c | -n)
  1031. no_create=yes ;;
  1032. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1033. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1034. no_recursion=yes ;;
  1035. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1036. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1037. | --oldin | --oldi | --old | --ol | --o)
  1038. ac_prev=oldincludedir ;;
  1039. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1040. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1041. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1042. oldincludedir=$ac_optarg ;;
  1043. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1044. ac_prev=prefix ;;
  1045. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1046. prefix=$ac_optarg ;;
  1047. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1048. | --program-pre | --program-pr | --program-p)
  1049. ac_prev=program_prefix ;;
  1050. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1051. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1052. program_prefix=$ac_optarg ;;
  1053. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1054. | --program-suf | --program-su | --program-s)
  1055. ac_prev=program_suffix ;;
  1056. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1057. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1058. program_suffix=$ac_optarg ;;
  1059. -program-transform-name | --program-transform-name \
  1060. | --program-transform-nam | --program-transform-na \
  1061. | --program-transform-n | --program-transform- \
  1062. | --program-transform | --program-transfor \
  1063. | --program-transfo | --program-transf \
  1064. | --program-trans | --program-tran \
  1065. | --progr-tra | --program-tr | --program-t)
  1066. ac_prev=program_transform_name ;;
  1067. -program-transform-name=* | --program-transform-name=* \
  1068. | --program-transform-nam=* | --program-transform-na=* \
  1069. | --program-transform-n=* | --program-transform-=* \
  1070. | --program-transform=* | --program-transfor=* \
  1071. | --program-transfo=* | --program-transf=* \
  1072. | --program-trans=* | --program-tran=* \
  1073. | --progr-tra=* | --program-tr=* | --program-t=*)
  1074. program_transform_name=$ac_optarg ;;
  1075. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1076. ac_prev=pdfdir ;;
  1077. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1078. pdfdir=$ac_optarg ;;
  1079. -psdir | --psdir | --psdi | --psd | --ps)
  1080. ac_prev=psdir ;;
  1081. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1082. psdir=$ac_optarg ;;
  1083. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1084. | -silent | --silent | --silen | --sile | --sil)
  1085. silent=yes ;;
  1086. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1087. | --runstate | --runstat | --runsta | --runst | --runs \
  1088. | --run | --ru | --r)
  1089. ac_prev=runstatedir ;;
  1090. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1091. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1092. | --run=* | --ru=* | --r=*)
  1093. runstatedir=$ac_optarg ;;
  1094. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1095. ac_prev=sbindir ;;
  1096. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1097. | --sbi=* | --sb=*)
  1098. sbindir=$ac_optarg ;;
  1099. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1100. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1101. | --sharedst | --shareds | --shared | --share | --shar \
  1102. | --sha | --sh)
  1103. ac_prev=sharedstatedir ;;
  1104. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1105. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1106. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1107. | --sha=* | --sh=*)
  1108. sharedstatedir=$ac_optarg ;;
  1109. -site | --site | --sit)
  1110. ac_prev=site ;;
  1111. -site=* | --site=* | --sit=*)
  1112. site=$ac_optarg ;;
  1113. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1114. ac_prev=srcdir ;;
  1115. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1116. srcdir=$ac_optarg ;;
  1117. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1118. | --syscon | --sysco | --sysc | --sys | --sy)
  1119. ac_prev=sysconfdir ;;
  1120. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1121. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1122. sysconfdir=$ac_optarg ;;
  1123. -target | --target | --targe | --targ | --tar | --ta | --t)
  1124. ac_prev=target_alias ;;
  1125. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1126. target_alias=$ac_optarg ;;
  1127. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1128. verbose=yes ;;
  1129. -version | --version | --versio | --versi | --vers | -V)
  1130. ac_init_version=: ;;
  1131. -with-* | --with-*)
  1132. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1133. # Reject names that are not valid shell variable names.
  1134. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1135. as_fn_error $? "invalid package name: $ac_useropt"
  1136. ac_useropt_orig=$ac_useropt
  1137. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1138. case $ac_user_opts in
  1139. *"
  1140. "with_$ac_useropt"
  1141. "*) ;;
  1142. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1143. ac_unrecognized_sep=', ';;
  1144. esac
  1145. eval with_$ac_useropt=\$ac_optarg ;;
  1146. -without-* | --without-*)
  1147. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1148. # Reject names that are not valid shell variable names.
  1149. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1150. as_fn_error $? "invalid package name: $ac_useropt"
  1151. ac_useropt_orig=$ac_useropt
  1152. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1153. case $ac_user_opts in
  1154. *"
  1155. "with_$ac_useropt"
  1156. "*) ;;
  1157. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1158. ac_unrecognized_sep=', ';;
  1159. esac
  1160. eval with_$ac_useropt=no ;;
  1161. --x)
  1162. # Obsolete; use --with-x.
  1163. with_x=yes ;;
  1164. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1165. | --x-incl | --x-inc | --x-in | --x-i)
  1166. ac_prev=x_includes ;;
  1167. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1168. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1169. x_includes=$ac_optarg ;;
  1170. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1171. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1172. ac_prev=x_libraries ;;
  1173. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1174. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1175. x_libraries=$ac_optarg ;;
  1176. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1177. Try \`$0 --help' for more information"
  1178. ;;
  1179. *=*)
  1180. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1181. # Reject names that are not valid shell variable names.
  1182. case $ac_envvar in #(
  1183. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1184. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1185. esac
  1186. eval $ac_envvar=\$ac_optarg
  1187. export $ac_envvar ;;
  1188. *)
  1189. # FIXME: should be removed in autoconf 3.0.
  1190. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1191. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1192. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1193. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1194. ;;
  1195. esac
  1196. done
  1197. if test -n "$ac_prev"; then
  1198. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1199. as_fn_error $? "missing argument to $ac_option"
  1200. fi
  1201. if test -n "$ac_unrecognized_opts"; then
  1202. case $enable_option_checking in
  1203. no) ;;
  1204. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1205. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1206. esac
  1207. fi
  1208. # Check all directory arguments for consistency.
  1209. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1210. datadir sysconfdir sharedstatedir localstatedir includedir \
  1211. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1212. libdir localedir mandir runstatedir
  1213. do
  1214. eval ac_val=\$$ac_var
  1215. # Remove trailing slashes.
  1216. case $ac_val in
  1217. */ )
  1218. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1219. eval $ac_var=\$ac_val;;
  1220. esac
  1221. # Be sure to have absolute directory names.
  1222. case $ac_val in
  1223. [\\/$]* | ?:[\\/]* ) continue;;
  1224. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1225. esac
  1226. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1227. done
  1228. # There might be people who depend on the old broken behavior: `$host'
  1229. # used to hold the argument of --host etc.
  1230. # FIXME: To remove some day.
  1231. build=$build_alias
  1232. host=$host_alias
  1233. target=$target_alias
  1234. # FIXME: To remove some day.
  1235. if test "x$host_alias" != x; then
  1236. if test "x$build_alias" = x; then
  1237. cross_compiling=maybe
  1238. elif test "x$build_alias" != "x$host_alias"; then
  1239. cross_compiling=yes
  1240. fi
  1241. fi
  1242. ac_tool_prefix=
  1243. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1244. test "$silent" = yes && exec 6>/dev/null
  1245. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1246. ac_ls_di=`ls -di .` &&
  1247. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1248. as_fn_error $? "working directory cannot be determined"
  1249. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1250. as_fn_error $? "pwd does not report name of working directory"
  1251. # Find the source files, if location was not specified.
  1252. if test -z "$srcdir"; then
  1253. ac_srcdir_defaulted=yes
  1254. # Try the directory containing this script, then the parent directory.
  1255. ac_confdir=`$as_dirname -- "$as_myself" ||
  1256. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1257. X"$as_myself" : 'X\(//\)[^/]' \| \
  1258. X"$as_myself" : 'X\(//\)$' \| \
  1259. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1260. $as_echo X"$as_myself" |
  1261. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\/\)[^/].*/{
  1266. s//\1/
  1267. q
  1268. }
  1269. /^X\(\/\/\)$/{
  1270. s//\1/
  1271. q
  1272. }
  1273. /^X\(\/\).*/{
  1274. s//\1/
  1275. q
  1276. }
  1277. s/.*/./; q'`
  1278. srcdir=$ac_confdir
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. srcdir=..
  1281. fi
  1282. else
  1283. ac_srcdir_defaulted=no
  1284. fi
  1285. if test ! -r "$srcdir/$ac_unique_file"; then
  1286. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1287. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1288. fi
  1289. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1290. ac_abs_confdir=`(
  1291. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1292. pwd)`
  1293. # When building in place, set srcdir=.
  1294. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1295. srcdir=.
  1296. fi
  1297. # Remove unnecessary trailing slashes from srcdir.
  1298. # Double slashes in file names in object file debugging info
  1299. # mess up M-x gdb in Emacs.
  1300. case $srcdir in
  1301. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1302. esac
  1303. for ac_var in $ac_precious_vars; do
  1304. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1305. eval ac_env_${ac_var}_value=\$${ac_var}
  1306. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1307. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1308. done
  1309. #
  1310. # Report the --help message.
  1311. #
  1312. if test "$ac_init_help" = "long"; then
  1313. # Omit some internal or obsolete options to make the list less imposing.
  1314. # This message is too long to be a string in the A/UX 3.1 sh.
  1315. cat <<_ACEOF
  1316. \`configure' configures this package to adapt to many kinds of systems.
  1317. Usage: $0 [OPTION]... [VAR=VALUE]...
  1318. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1319. VAR=VALUE. See below for descriptions of some of the useful variables.
  1320. Defaults for the options are specified in brackets.
  1321. Configuration:
  1322. -h, --help display this help and exit
  1323. --help=short display options specific to this package
  1324. --help=recursive display the short help of all the included packages
  1325. -V, --version display version information and exit
  1326. -q, --quiet, --silent do not print \`checking ...' messages
  1327. --cache-file=FILE cache test results in FILE [disabled]
  1328. -C, --config-cache alias for \`--cache-file=config.cache'
  1329. -n, --no-create do not create output files
  1330. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1331. Installation directories:
  1332. --prefix=PREFIX install architecture-independent files in PREFIX
  1333. [$ac_default_prefix]
  1334. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1335. [PREFIX]
  1336. By default, \`make install' will install all the files in
  1337. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1338. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1339. for instance \`--prefix=\$HOME'.
  1340. For better control, use the options below.
  1341. Fine tuning of the installation directories:
  1342. --bindir=DIR user executables [EPREFIX/bin]
  1343. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1344. --libexecdir=DIR program executables [EPREFIX/libexec]
  1345. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1346. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1347. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1348. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1349. --libdir=DIR object code libraries [EPREFIX/lib]
  1350. --includedir=DIR C header files [PREFIX/include]
  1351. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1352. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1353. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1354. --infodir=DIR info documentation [DATAROOTDIR/info]
  1355. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1356. --mandir=DIR man documentation [DATAROOTDIR/man]
  1357. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1358. --htmldir=DIR html documentation [DOCDIR]
  1359. --dvidir=DIR dvi documentation [DOCDIR]
  1360. --pdfdir=DIR pdf documentation [DOCDIR]
  1361. --psdir=DIR ps documentation [DOCDIR]
  1362. _ACEOF
  1363. cat <<\_ACEOF
  1364. X features:
  1365. --x-includes=DIR X include files are in DIR
  1366. --x-libraries=DIR X library files are in DIR
  1367. System types:
  1368. --build=BUILD configure for building on BUILD [guessed]
  1369. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1370. _ACEOF
  1371. fi
  1372. if test -n "$ac_init_help"; then
  1373. cat <<\_ACEOF
  1374. Optional Features:
  1375. --disable-option-checking ignore unrecognized --enable/--with options
  1376. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1377. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1378. --enable-shared[=PKGS] build shared libraries [default=yes]
  1379. --enable-static[=PKGS] build static libraries [default=yes]
  1380. --enable-fast-install[=PKGS]
  1381. optimize for fast installation [default=yes]
  1382. --disable-libtool-lock avoid locking (might break parallel builds)
  1383. --enable-assertions Enable internal sanity checks
  1384. (auto/disabled/release/enabled/paranoid)
  1385. [[default=auto]]
  1386. --enable-dependency-tracking
  1387. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1388. --enable-libc Use the system C library [[default=yes]]
  1389. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1390. --enable-atomic Enable the atomic operations subsystem
  1391. [[default=yes]]
  1392. --enable-audio Enable the audio subsystem [[default=yes]]
  1393. --enable-video Enable the video subsystem [[default=yes]]
  1394. --enable-render Enable the render subsystem [[default=yes]]
  1395. --enable-events Enable the events subsystem [[default=yes]]
  1396. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1397. --enable-haptic Enable the haptic (force feedback) subsystem
  1398. [[default=yes]]
  1399. --enable-power Enable the power subsystem [[default=yes]]
  1400. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1401. --enable-threads Enable the threading subsystem [[default=yes]]
  1402. --enable-timers Enable the timer subsystem [[default=yes]]
  1403. --enable-file Enable the file subsystem [[default=yes]]
  1404. --enable-loadso Enable the shared object loading subsystem
  1405. [[default=yes]]
  1406. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1407. --enable-assembly Enable assembly routines [[default=yes]]
  1408. --enable-ssemath Allow GCC to use SSE floating point math
  1409. [[default=maybe]]
  1410. --enable-mmx use MMX assembly routines [[default=yes]]
  1411. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1412. --enable-sse use SSE assembly routines [[default=yes]]
  1413. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1414. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1415. --enable-altivec use Altivec assembly routines [[default=yes]]
  1416. --enable-oss support the OSS audio API [[default=maybe]]
  1417. --enable-alsa support the ALSA audio API [[default=yes]]
  1418. --disable-alsatest Do not try to compile and run a test Alsa program
  1419. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1420. --enable-jack use JACK audio [[default=yes]]
  1421. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1422. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1423. --disable-esdtest Do not try to compile and run a test ESD program
  1424. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1425. --enable-pulseaudio use PulseAudio [[default=yes]]
  1426. --enable-pulseaudio-shared
  1427. dynamically load PulseAudio support [[default=yes]]
  1428. --enable-arts support the Analog Real Time Synthesizer
  1429. [[default=yes]]
  1430. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1431. --enable-nas support the NAS audio API [[default=yes]]
  1432. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1433. --enable-sndio support the sndio audio API [[default=yes]]
  1434. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1435. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1436. --enable-fusionsound-shared
  1437. dynamically load fusionsound audio support
  1438. [[default=yes]]
  1439. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1440. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1441. --enable-libsamplerate use libsamplerate for audio rate conversion
  1442. [[default=yes]]
  1443. --enable-libsamplerate-shared
  1444. dynamically load libsamplerate [[default=yes]]
  1445. --enable-video-wayland use Wayland video driver [[default=yes]]
  1446. --enable-video-wayland-qt-touch
  1447. QtWayland server support for Wayland video driver
  1448. [[default=yes]]
  1449. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1450. --enable-video-mir use Mir video driver [[default=yes]]
  1451. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1452. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1453. --enable-video-x11 use X11 video driver [[default=yes]]
  1454. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1455. --enable-video-x11-xcursor
  1456. enable X11 Xcursor support [[default=yes]]
  1457. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1458. --enable-video-x11-xinerama
  1459. enable X11 Xinerama support [[default=yes]]
  1460. --enable-video-x11-xinput
  1461. enable X11 XInput extension for manymouse, tablets,
  1462. etc [[default=yes]]
  1463. --enable-video-x11-xrandr
  1464. enable X11 Xrandr extension for fullscreen
  1465. [[default=yes]]
  1466. --enable-video-x11-scrnsaver
  1467. enable X11 screensaver extension [[default=yes]]
  1468. --enable-video-x11-xshape
  1469. enable X11 XShape support [[default=yes]]
  1470. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1471. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1472. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1473. --enable-video-directfb use DirectFB video driver [[default=no]]
  1474. --enable-directfb-shared
  1475. dynamically load directfb support [[default=yes]]
  1476. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1477. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1478. --enable-video-dummy use dummy video driver [[default=yes]]
  1479. --enable-video-opengl include OpenGL support [[default=yes]]
  1480. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1481. --enable-video-opengles1
  1482. include OpenGL ES 1.1 support [[default=yes]]
  1483. --enable-video-opengles2
  1484. include OpenGL ES 2.0 support [[default=yes]]
  1485. --enable-video-vulkan include Vulkan support [[default=yes]]
  1486. --enable-libudev enable libudev support [[default=yes]]
  1487. --enable-dbus enable D-Bus support [[default=yes]]
  1488. --enable-ime enable IME support [[default=yes]]
  1489. --enable-ibus enable IBus support [[default=yes]]
  1490. --enable-fcitx enable fcitx support [[default=yes]]
  1491. --enable-input-tslib use the Touchscreen library for input
  1492. [[default=yes]]
  1493. --enable-pthreads use POSIX threads for multi-threading
  1494. [[default=yes]]
  1495. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1496. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1497. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1498. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1499. UNIX [[default=yes]]
  1500. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1501. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1502. Optional Packages:
  1503. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1504. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1505. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1506. both]
  1507. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1508. --with-sysroot=DIR Search for dependent libraries within DIR
  1509. (or the compiler's sysroot if not specified).
  1510. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1511. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1512. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1513. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1514. --with-x use the X Window System
  1515. Some influential environment variables:
  1516. CC C compiler command
  1517. CFLAGS C compiler flags
  1518. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1519. nonstandard directory <lib dir>
  1520. LIBS libraries to pass to the linker, e.g. -l<library>
  1521. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1522. you have headers in a nonstandard directory <include dir>
  1523. CPP C preprocessor
  1524. CXX C++ compiler command
  1525. CXXFLAGS C++ compiler flags
  1526. CXXCPP C++ preprocessor
  1527. XMKMF Path to xmkmf, Makefile generator for X Window System
  1528. Use these variables to override the choices made by `configure' or to help
  1529. it to find libraries and programs with nonstandard names/locations.
  1530. Report bugs to the package provider.
  1531. _ACEOF
  1532. ac_status=$?
  1533. fi
  1534. if test "$ac_init_help" = "recursive"; then
  1535. # If there are subdirs, report their specific --help.
  1536. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1537. test -d "$ac_dir" ||
  1538. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1539. continue
  1540. ac_builddir=.
  1541. case "$ac_dir" in
  1542. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1543. *)
  1544. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1545. # A ".." for each directory in $ac_dir_suffix.
  1546. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1547. case $ac_top_builddir_sub in
  1548. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1549. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1550. esac ;;
  1551. esac
  1552. ac_abs_top_builddir=$ac_pwd
  1553. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1554. # for backward compatibility:
  1555. ac_top_builddir=$ac_top_build_prefix
  1556. case $srcdir in
  1557. .) # We are building in place.
  1558. ac_srcdir=.
  1559. ac_top_srcdir=$ac_top_builddir_sub
  1560. ac_abs_top_srcdir=$ac_pwd ;;
  1561. [\\/]* | ?:[\\/]* ) # Absolute name.
  1562. ac_srcdir=$srcdir$ac_dir_suffix;
  1563. ac_top_srcdir=$srcdir
  1564. ac_abs_top_srcdir=$srcdir ;;
  1565. *) # Relative name.
  1566. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1567. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1568. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1569. esac
  1570. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1571. cd "$ac_dir" || { ac_status=$?; continue; }
  1572. # Check for guested configure.
  1573. if test -f "$ac_srcdir/configure.gnu"; then
  1574. echo &&
  1575. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1576. elif test -f "$ac_srcdir/configure"; then
  1577. echo &&
  1578. $SHELL "$ac_srcdir/configure" --help=recursive
  1579. else
  1580. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1581. fi || ac_status=$?
  1582. cd "$ac_pwd" || { ac_status=$?; break; }
  1583. done
  1584. fi
  1585. test -n "$ac_init_help" && exit $ac_status
  1586. if $ac_init_version; then
  1587. cat <<\_ACEOF
  1588. configure
  1589. generated by GNU Autoconf 2.69
  1590. Copyright (C) 2012 Free Software Foundation, Inc.
  1591. This configure script is free software; the Free Software Foundation
  1592. gives unlimited permission to copy, distribute and modify it.
  1593. _ACEOF
  1594. exit
  1595. fi
  1596. ## ------------------------ ##
  1597. ## Autoconf initialization. ##
  1598. ## ------------------------ ##
  1599. # ac_fn_c_try_compile LINENO
  1600. # --------------------------
  1601. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1602. ac_fn_c_try_compile ()
  1603. {
  1604. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1605. rm -f conftest.$ac_objext
  1606. if { { ac_try="$ac_compile"
  1607. case "(($ac_try" in
  1608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1609. *) ac_try_echo=$ac_try;;
  1610. esac
  1611. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1612. $as_echo "$ac_try_echo"; } >&5
  1613. (eval "$ac_compile") 2>conftest.err
  1614. ac_status=$?
  1615. if test -s conftest.err; then
  1616. grep -v '^ *+' conftest.err >conftest.er1
  1617. cat conftest.er1 >&5
  1618. mv -f conftest.er1 conftest.err
  1619. fi
  1620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1621. test $ac_status = 0; } && {
  1622. test -z "$ac_c_werror_flag" ||
  1623. test ! -s conftest.err
  1624. } && test -s conftest.$ac_objext; then :
  1625. ac_retval=0
  1626. else
  1627. $as_echo "$as_me: failed program was:" >&5
  1628. sed 's/^/| /' conftest.$ac_ext >&5
  1629. ac_retval=1
  1630. fi
  1631. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1632. as_fn_set_status $ac_retval
  1633. } # ac_fn_c_try_compile
  1634. # ac_fn_c_try_link LINENO
  1635. # -----------------------
  1636. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1637. ac_fn_c_try_link ()
  1638. {
  1639. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1640. rm -f conftest.$ac_objext conftest$ac_exeext
  1641. if { { ac_try="$ac_link"
  1642. case "(($ac_try" in
  1643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1644. *) ac_try_echo=$ac_try;;
  1645. esac
  1646. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1647. $as_echo "$ac_try_echo"; } >&5
  1648. (eval "$ac_link") 2>conftest.err
  1649. ac_status=$?
  1650. if test -s conftest.err; then
  1651. grep -v '^ *+' conftest.err >conftest.er1
  1652. cat conftest.er1 >&5
  1653. mv -f conftest.er1 conftest.err
  1654. fi
  1655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1656. test $ac_status = 0; } && {
  1657. test -z "$ac_c_werror_flag" ||
  1658. test ! -s conftest.err
  1659. } && test -s conftest$ac_exeext && {
  1660. test "$cross_compiling" = yes ||
  1661. test -x conftest$ac_exeext
  1662. }; then :
  1663. ac_retval=0
  1664. else
  1665. $as_echo "$as_me: failed program was:" >&5
  1666. sed 's/^/| /' conftest.$ac_ext >&5
  1667. ac_retval=1
  1668. fi
  1669. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1670. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1671. # interfere with the next link command; also delete a directory that is
  1672. # left behind by Apple's compiler. We do this before executing the actions.
  1673. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1674. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1675. as_fn_set_status $ac_retval
  1676. } # ac_fn_c_try_link
  1677. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1678. # -------------------------------------------------------
  1679. # Tests whether HEADER exists and can be compiled using the include files in
  1680. # INCLUDES, setting the cache variable VAR accordingly.
  1681. ac_fn_c_check_header_compile ()
  1682. {
  1683. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1685. $as_echo_n "checking for $2... " >&6; }
  1686. if eval \${$3+:} false; then :
  1687. $as_echo_n "(cached) " >&6
  1688. else
  1689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1690. /* end confdefs.h. */
  1691. $4
  1692. #include <$2>
  1693. _ACEOF
  1694. if ac_fn_c_try_compile "$LINENO"; then :
  1695. eval "$3=yes"
  1696. else
  1697. eval "$3=no"
  1698. fi
  1699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1700. fi
  1701. eval ac_res=\$$3
  1702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1703. $as_echo "$ac_res" >&6; }
  1704. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1705. } # ac_fn_c_check_header_compile
  1706. # ac_fn_c_try_cpp LINENO
  1707. # ----------------------
  1708. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1709. ac_fn_c_try_cpp ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1713. case "(($ac_try" in
  1714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1715. *) ac_try_echo=$ac_try;;
  1716. esac
  1717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1718. $as_echo "$ac_try_echo"; } >&5
  1719. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1720. ac_status=$?
  1721. if test -s conftest.err; then
  1722. grep -v '^ *+' conftest.err >conftest.er1
  1723. cat conftest.er1 >&5
  1724. mv -f conftest.er1 conftest.err
  1725. fi
  1726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1727. test $ac_status = 0; } > conftest.i && {
  1728. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1729. test ! -s conftest.err
  1730. }; then :
  1731. ac_retval=0
  1732. else
  1733. $as_echo "$as_me: failed program was:" >&5
  1734. sed 's/^/| /' conftest.$ac_ext >&5
  1735. ac_retval=1
  1736. fi
  1737. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1738. as_fn_set_status $ac_retval
  1739. } # ac_fn_c_try_cpp
  1740. # ac_fn_c_try_run LINENO
  1741. # ----------------------
  1742. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1743. # that executables *can* be run.
  1744. ac_fn_c_try_run ()
  1745. {
  1746. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1747. if { { ac_try="$ac_link"
  1748. case "(($ac_try" in
  1749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1750. *) ac_try_echo=$ac_try;;
  1751. esac
  1752. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1753. $as_echo "$ac_try_echo"; } >&5
  1754. (eval "$ac_link") 2>&5
  1755. ac_status=$?
  1756. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1757. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1758. { { case "(($ac_try" in
  1759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1760. *) ac_try_echo=$ac_try;;
  1761. esac
  1762. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1763. $as_echo "$ac_try_echo"; } >&5
  1764. (eval "$ac_try") 2>&5
  1765. ac_status=$?
  1766. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1767. test $ac_status = 0; }; }; then :
  1768. ac_retval=0
  1769. else
  1770. $as_echo "$as_me: program exited with status $ac_status" >&5
  1771. $as_echo "$as_me: failed program was:" >&5
  1772. sed 's/^/| /' conftest.$ac_ext >&5
  1773. ac_retval=$ac_status
  1774. fi
  1775. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1776. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1777. as_fn_set_status $ac_retval
  1778. } # ac_fn_c_try_run
  1779. # ac_fn_c_check_func LINENO FUNC VAR
  1780. # ----------------------------------
  1781. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1782. ac_fn_c_check_func ()
  1783. {
  1784. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1786. $as_echo_n "checking for $2... " >&6; }
  1787. if eval \${$3+:} false; then :
  1788. $as_echo_n "(cached) " >&6
  1789. else
  1790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1791. /* end confdefs.h. */
  1792. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1793. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1794. #define $2 innocuous_$2
  1795. /* System header to define __stub macros and hopefully few prototypes,
  1796. which can conflict with char $2 (); below.
  1797. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1798. <limits.h> exists even on freestanding compilers. */
  1799. #ifdef __STDC__
  1800. # include <limits.h>
  1801. #else
  1802. # include <assert.h>
  1803. #endif
  1804. #undef $2
  1805. /* Override any GCC internal prototype to avoid an error.
  1806. Use char because int might match the return type of a GCC
  1807. builtin and then its argument prototype would still apply. */
  1808. #ifdef __cplusplus
  1809. extern "C"
  1810. #endif
  1811. char $2 ();
  1812. /* The GNU C library defines this for functions which it implements
  1813. to always fail with ENOSYS. Some functions are actually named
  1814. something starting with __ and the normal name is an alias. */
  1815. #if defined __stub_$2 || defined __stub___$2
  1816. choke me
  1817. #endif
  1818. int
  1819. main ()
  1820. {
  1821. return $2 ();
  1822. ;
  1823. return 0;
  1824. }
  1825. _ACEOF
  1826. if ac_fn_c_try_link "$LINENO"; then :
  1827. eval "$3=yes"
  1828. else
  1829. eval "$3=no"
  1830. fi
  1831. rm -f core conftest.err conftest.$ac_objext \
  1832. conftest$ac_exeext conftest.$ac_ext
  1833. fi
  1834. eval ac_res=\$$3
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1836. $as_echo "$ac_res" >&6; }
  1837. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1838. } # ac_fn_c_check_func
  1839. # ac_fn_cxx_try_compile LINENO
  1840. # ----------------------------
  1841. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1842. ac_fn_cxx_try_compile ()
  1843. {
  1844. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1845. rm -f conftest.$ac_objext
  1846. if { { ac_try="$ac_compile"
  1847. case "(($ac_try" in
  1848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1849. *) ac_try_echo=$ac_try;;
  1850. esac
  1851. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1852. $as_echo "$ac_try_echo"; } >&5
  1853. (eval "$ac_compile") 2>conftest.err
  1854. ac_status=$?
  1855. if test -s conftest.err; then
  1856. grep -v '^ *+' conftest.err >conftest.er1
  1857. cat conftest.er1 >&5
  1858. mv -f conftest.er1 conftest.err
  1859. fi
  1860. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1861. test $ac_status = 0; } && {
  1862. test -z "$ac_cxx_werror_flag" ||
  1863. test ! -s conftest.err
  1864. } && test -s conftest.$ac_objext; then :
  1865. ac_retval=0
  1866. else
  1867. $as_echo "$as_me: failed program was:" >&5
  1868. sed 's/^/| /' conftest.$ac_ext >&5
  1869. ac_retval=1
  1870. fi
  1871. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1872. as_fn_set_status $ac_retval
  1873. } # ac_fn_cxx_try_compile
  1874. # ac_fn_cxx_try_cpp LINENO
  1875. # ------------------------
  1876. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1877. ac_fn_cxx_try_cpp ()
  1878. {
  1879. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1880. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1881. case "(($ac_try" in
  1882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1883. *) ac_try_echo=$ac_try;;
  1884. esac
  1885. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1886. $as_echo "$ac_try_echo"; } >&5
  1887. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1888. ac_status=$?
  1889. if test -s conftest.err; then
  1890. grep -v '^ *+' conftest.err >conftest.er1
  1891. cat conftest.er1 >&5
  1892. mv -f conftest.er1 conftest.err
  1893. fi
  1894. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1895. test $ac_status = 0; } > conftest.i && {
  1896. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1897. test ! -s conftest.err
  1898. }; then :
  1899. ac_retval=0
  1900. else
  1901. $as_echo "$as_me: failed program was:" >&5
  1902. sed 's/^/| /' conftest.$ac_ext >&5
  1903. ac_retval=1
  1904. fi
  1905. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1906. as_fn_set_status $ac_retval
  1907. } # ac_fn_cxx_try_cpp
  1908. # ac_fn_cxx_try_link LINENO
  1909. # -------------------------
  1910. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1911. ac_fn_cxx_try_link ()
  1912. {
  1913. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1914. rm -f conftest.$ac_objext conftest$ac_exeext
  1915. if { { ac_try="$ac_link"
  1916. case "(($ac_try" in
  1917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1918. *) ac_try_echo=$ac_try;;
  1919. esac
  1920. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1921. $as_echo "$ac_try_echo"; } >&5
  1922. (eval "$ac_link") 2>conftest.err
  1923. ac_status=$?
  1924. if test -s conftest.err; then
  1925. grep -v '^ *+' conftest.err >conftest.er1
  1926. cat conftest.er1 >&5
  1927. mv -f conftest.er1 conftest.err
  1928. fi
  1929. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1930. test $ac_status = 0; } && {
  1931. test -z "$ac_cxx_werror_flag" ||
  1932. test ! -s conftest.err
  1933. } && test -s conftest$ac_exeext && {
  1934. test "$cross_compiling" = yes ||
  1935. test -x conftest$ac_exeext
  1936. }; then :
  1937. ac_retval=0
  1938. else
  1939. $as_echo "$as_me: failed program was:" >&5
  1940. sed 's/^/| /' conftest.$ac_ext >&5
  1941. ac_retval=1
  1942. fi
  1943. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1944. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1945. # interfere with the next link command; also delete a directory that is
  1946. # left behind by Apple's compiler. We do this before executing the actions.
  1947. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1948. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1949. as_fn_set_status $ac_retval
  1950. } # ac_fn_cxx_try_link
  1951. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1952. # -------------------------------------------------------
  1953. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1954. # the include files in INCLUDES and setting the cache variable VAR
  1955. # accordingly.
  1956. ac_fn_c_check_header_mongrel ()
  1957. {
  1958. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1959. if eval \${$3+:} false; then :
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1961. $as_echo_n "checking for $2... " >&6; }
  1962. if eval \${$3+:} false; then :
  1963. $as_echo_n "(cached) " >&6
  1964. fi
  1965. eval ac_res=\$$3
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1967. $as_echo "$ac_res" >&6; }
  1968. else
  1969. # Is the header compilable?
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1971. $as_echo_n "checking $2 usability... " >&6; }
  1972. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1973. /* end confdefs.h. */
  1974. $4
  1975. #include <$2>
  1976. _ACEOF
  1977. if ac_fn_c_try_compile "$LINENO"; then :
  1978. ac_header_compiler=yes
  1979. else
  1980. ac_header_compiler=no
  1981. fi
  1982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1984. $as_echo "$ac_header_compiler" >&6; }
  1985. # Is the header present?
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1987. $as_echo_n "checking $2 presence... " >&6; }
  1988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1989. /* end confdefs.h. */
  1990. #include <$2>
  1991. _ACEOF
  1992. if ac_fn_c_try_cpp "$LINENO"; then :
  1993. ac_header_preproc=yes
  1994. else
  1995. ac_header_preproc=no
  1996. fi
  1997. rm -f conftest.err conftest.i conftest.$ac_ext
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1999. $as_echo "$ac_header_preproc" >&6; }
  2000. # So? What about this header?
  2001. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2002. yes:no: )
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2004. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2006. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2007. ;;
  2008. no:yes:* )
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2010. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2012. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2014. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2016. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2018. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2019. ;;
  2020. esac
  2021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2022. $as_echo_n "checking for $2... " >&6; }
  2023. if eval \${$3+:} false; then :
  2024. $as_echo_n "(cached) " >&6
  2025. else
  2026. eval "$3=\$ac_header_compiler"
  2027. fi
  2028. eval ac_res=\$$3
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2030. $as_echo "$ac_res" >&6; }
  2031. fi
  2032. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2033. } # ac_fn_c_check_header_mongrel
  2034. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2035. # -------------------------------------------
  2036. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2037. # variable VAR accordingly.
  2038. ac_fn_c_check_type ()
  2039. {
  2040. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2042. $as_echo_n "checking for $2... " >&6; }
  2043. if eval \${$3+:} false; then :
  2044. $as_echo_n "(cached) " >&6
  2045. else
  2046. eval "$3=no"
  2047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2048. /* end confdefs.h. */
  2049. $4
  2050. int
  2051. main ()
  2052. {
  2053. if (sizeof ($2))
  2054. return 0;
  2055. ;
  2056. return 0;
  2057. }
  2058. _ACEOF
  2059. if ac_fn_c_try_compile "$LINENO"; then :
  2060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2061. /* end confdefs.h. */
  2062. $4
  2063. int
  2064. main ()
  2065. {
  2066. if (sizeof (($2)))
  2067. return 0;
  2068. ;
  2069. return 0;
  2070. }
  2071. _ACEOF
  2072. if ac_fn_c_try_compile "$LINENO"; then :
  2073. else
  2074. eval "$3=yes"
  2075. fi
  2076. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2077. fi
  2078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2079. fi
  2080. eval ac_res=\$$3
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2082. $as_echo "$ac_res" >&6; }
  2083. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2084. } # ac_fn_c_check_type
  2085. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2086. # ----------------------------------------------------
  2087. # Tries to find if the field MEMBER exists in type AGGR, after including
  2088. # INCLUDES, setting cache variable VAR accordingly.
  2089. ac_fn_c_check_member ()
  2090. {
  2091. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2093. $as_echo_n "checking for $2.$3... " >&6; }
  2094. if eval \${$4+:} false; then :
  2095. $as_echo_n "(cached) " >&6
  2096. else
  2097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2098. /* end confdefs.h. */
  2099. $5
  2100. int
  2101. main ()
  2102. {
  2103. static $2 ac_aggr;
  2104. if (ac_aggr.$3)
  2105. return 0;
  2106. ;
  2107. return 0;
  2108. }
  2109. _ACEOF
  2110. if ac_fn_c_try_compile "$LINENO"; then :
  2111. eval "$4=yes"
  2112. else
  2113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2114. /* end confdefs.h. */
  2115. $5
  2116. int
  2117. main ()
  2118. {
  2119. static $2 ac_aggr;
  2120. if (sizeof ac_aggr.$3)
  2121. return 0;
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_compile "$LINENO"; then :
  2127. eval "$4=yes"
  2128. else
  2129. eval "$4=no"
  2130. fi
  2131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2132. fi
  2133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2134. fi
  2135. eval ac_res=\$$4
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2137. $as_echo "$ac_res" >&6; }
  2138. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2139. } # ac_fn_c_check_member
  2140. cat >config.log <<_ACEOF
  2141. This file contains any messages produced by compilers while
  2142. running configure, to aid debugging if configure makes a mistake.
  2143. It was created by $as_me, which was
  2144. generated by GNU Autoconf 2.69. Invocation command line was
  2145. $ $0 $@
  2146. _ACEOF
  2147. exec 5>>config.log
  2148. {
  2149. cat <<_ASUNAME
  2150. ## --------- ##
  2151. ## Platform. ##
  2152. ## --------- ##
  2153. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2154. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2155. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2156. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2157. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2158. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2159. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2160. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2161. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2162. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2163. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2164. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2165. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2166. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2167. _ASUNAME
  2168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2169. for as_dir in $PATH
  2170. do
  2171. IFS=$as_save_IFS
  2172. test -z "$as_dir" && as_dir=.
  2173. $as_echo "PATH: $as_dir"
  2174. done
  2175. IFS=$as_save_IFS
  2176. } >&5
  2177. cat >&5 <<_ACEOF
  2178. ## ----------- ##
  2179. ## Core tests. ##
  2180. ## ----------- ##
  2181. _ACEOF
  2182. # Keep a trace of the command line.
  2183. # Strip out --no-create and --no-recursion so they do not pile up.
  2184. # Strip out --silent because we don't want to record it for future runs.
  2185. # Also quote any args containing shell meta-characters.
  2186. # Make two passes to allow for proper duplicate-argument suppression.
  2187. ac_configure_args=
  2188. ac_configure_args0=
  2189. ac_configure_args1=
  2190. ac_must_keep_next=false
  2191. for ac_pass in 1 2
  2192. do
  2193. for ac_arg
  2194. do
  2195. case $ac_arg in
  2196. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2197. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2198. | -silent | --silent | --silen | --sile | --sil)
  2199. continue ;;
  2200. *\'*)
  2201. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2202. esac
  2203. case $ac_pass in
  2204. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2205. 2)
  2206. as_fn_append ac_configure_args1 " '$ac_arg'"
  2207. if test $ac_must_keep_next = true; then
  2208. ac_must_keep_next=false # Got value, back to normal.
  2209. else
  2210. case $ac_arg in
  2211. *=* | --config-cache | -C | -disable-* | --disable-* \
  2212. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2213. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2214. | -with-* | --with-* | -without-* | --without-* | --x)
  2215. case "$ac_configure_args0 " in
  2216. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2217. esac
  2218. ;;
  2219. -* ) ac_must_keep_next=true ;;
  2220. esac
  2221. fi
  2222. as_fn_append ac_configure_args " '$ac_arg'"
  2223. ;;
  2224. esac
  2225. done
  2226. done
  2227. { ac_configure_args0=; unset ac_configure_args0;}
  2228. { ac_configure_args1=; unset ac_configure_args1;}
  2229. # When interrupted or exit'd, cleanup temporary files, and complete
  2230. # config.log. We remove comments because anyway the quotes in there
  2231. # would cause problems or look ugly.
  2232. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2233. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2234. trap 'exit_status=$?
  2235. # Save into config.log some information that might help in debugging.
  2236. {
  2237. echo
  2238. $as_echo "## ---------------- ##
  2239. ## Cache variables. ##
  2240. ## ---------------- ##"
  2241. echo
  2242. # The following way of writing the cache mishandles newlines in values,
  2243. (
  2244. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2245. eval ac_val=\$$ac_var
  2246. case $ac_val in #(
  2247. *${as_nl}*)
  2248. case $ac_var in #(
  2249. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2250. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2251. esac
  2252. case $ac_var in #(
  2253. _ | IFS | as_nl) ;; #(
  2254. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2255. *) { eval $ac_var=; unset $ac_var;} ;;
  2256. esac ;;
  2257. esac
  2258. done
  2259. (set) 2>&1 |
  2260. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2261. *${as_nl}ac_space=\ *)
  2262. sed -n \
  2263. "s/'\''/'\''\\\\'\'''\''/g;
  2264. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2265. ;; #(
  2266. *)
  2267. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2268. ;;
  2269. esac |
  2270. sort
  2271. )
  2272. echo
  2273. $as_echo "## ----------------- ##
  2274. ## Output variables. ##
  2275. ## ----------------- ##"
  2276. echo
  2277. for ac_var in $ac_subst_vars
  2278. do
  2279. eval ac_val=\$$ac_var
  2280. case $ac_val in
  2281. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2282. esac
  2283. $as_echo "$ac_var='\''$ac_val'\''"
  2284. done | sort
  2285. echo
  2286. if test -n "$ac_subst_files"; then
  2287. $as_echo "## ------------------- ##
  2288. ## File substitutions. ##
  2289. ## ------------------- ##"
  2290. echo
  2291. for ac_var in $ac_subst_files
  2292. do
  2293. eval ac_val=\$$ac_var
  2294. case $ac_val in
  2295. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2296. esac
  2297. $as_echo "$ac_var='\''$ac_val'\''"
  2298. done | sort
  2299. echo
  2300. fi
  2301. if test -s confdefs.h; then
  2302. $as_echo "## ----------- ##
  2303. ## confdefs.h. ##
  2304. ## ----------- ##"
  2305. echo
  2306. cat confdefs.h
  2307. echo
  2308. fi
  2309. test "$ac_signal" != 0 &&
  2310. $as_echo "$as_me: caught signal $ac_signal"
  2311. $as_echo "$as_me: exit $exit_status"
  2312. } >&5
  2313. rm -f core *.core core.conftest.* &&
  2314. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2315. exit $exit_status
  2316. ' 0
  2317. for ac_signal in 1 2 13 15; do
  2318. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2319. done
  2320. ac_signal=0
  2321. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2322. rm -f -r conftest* confdefs.h
  2323. $as_echo "/* confdefs.h */" > confdefs.h
  2324. # Predefined preprocessor variables.
  2325. cat >>confdefs.h <<_ACEOF
  2326. #define PACKAGE_NAME "$PACKAGE_NAME"
  2327. _ACEOF
  2328. cat >>confdefs.h <<_ACEOF
  2329. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2330. _ACEOF
  2331. cat >>confdefs.h <<_ACEOF
  2332. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2333. _ACEOF
  2334. cat >>confdefs.h <<_ACEOF
  2335. #define PACKAGE_STRING "$PACKAGE_STRING"
  2336. _ACEOF
  2337. cat >>confdefs.h <<_ACEOF
  2338. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2339. _ACEOF
  2340. cat >>confdefs.h <<_ACEOF
  2341. #define PACKAGE_URL "$PACKAGE_URL"
  2342. _ACEOF
  2343. # Let the site file select an alternate cache file if it wants to.
  2344. # Prefer an explicitly selected file to automatically selected ones.
  2345. ac_site_file1=NONE
  2346. ac_site_file2=NONE
  2347. if test -n "$CONFIG_SITE"; then
  2348. # We do not want a PATH search for config.site.
  2349. case $CONFIG_SITE in #((
  2350. -*) ac_site_file1=./$CONFIG_SITE;;
  2351. */*) ac_site_file1=$CONFIG_SITE;;
  2352. *) ac_site_file1=./$CONFIG_SITE;;
  2353. esac
  2354. elif test "x$prefix" != xNONE; then
  2355. ac_site_file1=$prefix/share/config.site
  2356. ac_site_file2=$prefix/etc/config.site
  2357. else
  2358. ac_site_file1=$ac_default_prefix/share/config.site
  2359. ac_site_file2=$ac_default_prefix/etc/config.site
  2360. fi
  2361. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2362. do
  2363. test "x$ac_site_file" = xNONE && continue
  2364. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2366. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2367. sed 's/^/| /' "$ac_site_file" >&5
  2368. . "$ac_site_file" \
  2369. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2370. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2371. as_fn_error $? "failed to load site script $ac_site_file
  2372. See \`config.log' for more details" "$LINENO" 5; }
  2373. fi
  2374. done
  2375. if test -r "$cache_file"; then
  2376. # Some versions of bash will fail to source /dev/null (special files
  2377. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2378. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2380. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2381. case $cache_file in
  2382. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2383. *) . "./$cache_file";;
  2384. esac
  2385. fi
  2386. else
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2388. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2389. >$cache_file
  2390. fi
  2391. # Check that the precious variables saved in the cache have kept the same
  2392. # value.
  2393. ac_cache_corrupted=false
  2394. for ac_var in $ac_precious_vars; do
  2395. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2396. eval ac_new_set=\$ac_env_${ac_var}_set
  2397. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2398. eval ac_new_val=\$ac_env_${ac_var}_value
  2399. case $ac_old_set,$ac_new_set in
  2400. set,)
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2402. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2403. ac_cache_corrupted=: ;;
  2404. ,set)
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2406. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2407. ac_cache_corrupted=: ;;
  2408. ,);;
  2409. *)
  2410. if test "x$ac_old_val" != "x$ac_new_val"; then
  2411. # differences in whitespace do not lead to failure.
  2412. ac_old_val_w=`echo x $ac_old_val`
  2413. ac_new_val_w=`echo x $ac_new_val`
  2414. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2416. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2417. ac_cache_corrupted=:
  2418. else
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2420. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2421. eval $ac_var=\$ac_old_val
  2422. fi
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2424. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2426. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2427. fi;;
  2428. esac
  2429. # Pass precious variables to config.status.
  2430. if test "$ac_new_set" = set; then
  2431. case $ac_new_val in
  2432. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2433. *) ac_arg=$ac_var=$ac_new_val ;;
  2434. esac
  2435. case " $ac_configure_args " in
  2436. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2437. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2438. esac
  2439. fi
  2440. done
  2441. if $ac_cache_corrupted; then
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2443. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2445. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2446. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2447. fi
  2448. ## -------------------- ##
  2449. ## Main body of script. ##
  2450. ## -------------------- ##
  2451. ac_ext=c
  2452. ac_cpp='$CPP $CPPFLAGS'
  2453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2456. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2457. ac_aux_dir=
  2458. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2459. if test -f "$ac_dir/install-sh"; then
  2460. ac_aux_dir=$ac_dir
  2461. ac_install_sh="$ac_aux_dir/install-sh -c"
  2462. break
  2463. elif test -f "$ac_dir/install.sh"; then
  2464. ac_aux_dir=$ac_dir
  2465. ac_install_sh="$ac_aux_dir/install.sh -c"
  2466. break
  2467. elif test -f "$ac_dir/shtool"; then
  2468. ac_aux_dir=$ac_dir
  2469. ac_install_sh="$ac_aux_dir/shtool install -c"
  2470. break
  2471. fi
  2472. done
  2473. if test -z "$ac_aux_dir"; then
  2474. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2475. fi
  2476. # These three variables are undocumented and unsupported,
  2477. # and are intended to be withdrawn in a future Autoconf release.
  2478. # They can cause serious problems if a builder's source tree is in a directory
  2479. # whose full name contains unusual characters.
  2480. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2481. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2482. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2483. orig_CFLAGS="$CFLAGS"
  2484. #
  2485. # Making releases:
  2486. # Edit include/SDL_version.h and change the version, then:
  2487. # SDL_MICRO_VERSION += 1;
  2488. # SDL_INTERFACE_AGE += 1;
  2489. # SDL_BINARY_AGE += 1;
  2490. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2491. # if backwards compatibility has been broken,
  2492. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2493. #
  2494. SDL_MAJOR_VERSION=2
  2495. SDL_MINOR_VERSION=0
  2496. SDL_MICRO_VERSION=6
  2497. SDL_INTERFACE_AGE=0
  2498. SDL_BINARY_AGE=6
  2499. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2500. # libtool versioning
  2501. case `pwd` in
  2502. *\ * | *\ *)
  2503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2504. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2505. esac
  2506. macro_version='2.4.2'
  2507. macro_revision='1.3337'
  2508. ltmain="$ac_aux_dir/ltmain.sh"
  2509. # Make sure we can run config.sub.
  2510. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2511. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2513. $as_echo_n "checking build system type... " >&6; }
  2514. if ${ac_cv_build+:} false; then :
  2515. $as_echo_n "(cached) " >&6
  2516. else
  2517. ac_build_alias=$build_alias
  2518. test "x$ac_build_alias" = x &&
  2519. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2520. test "x$ac_build_alias" = x &&
  2521. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2522. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2523. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2524. fi
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2526. $as_echo "$ac_cv_build" >&6; }
  2527. case $ac_cv_build in
  2528. *-*-*) ;;
  2529. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2530. esac
  2531. build=$ac_cv_build
  2532. ac_save_IFS=$IFS; IFS='-'
  2533. set x $ac_cv_build
  2534. shift
  2535. build_cpu=$1
  2536. build_vendor=$2
  2537. shift; shift
  2538. # Remember, the first character of IFS is used to create $*,
  2539. # except with old shells:
  2540. build_os=$*
  2541. IFS=$ac_save_IFS
  2542. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2544. $as_echo_n "checking host system type... " >&6; }
  2545. if ${ac_cv_host+:} false; then :
  2546. $as_echo_n "(cached) " >&6
  2547. else
  2548. if test "x$host_alias" = x; then
  2549. ac_cv_host=$ac_cv_build
  2550. else
  2551. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2552. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2553. fi
  2554. fi
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2556. $as_echo "$ac_cv_host" >&6; }
  2557. case $ac_cv_host in
  2558. *-*-*) ;;
  2559. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2560. esac
  2561. host=$ac_cv_host
  2562. ac_save_IFS=$IFS; IFS='-'
  2563. set x $ac_cv_host
  2564. shift
  2565. host_cpu=$1
  2566. host_vendor=$2
  2567. shift; shift
  2568. # Remember, the first character of IFS is used to create $*,
  2569. # except with old shells:
  2570. host_os=$*
  2571. IFS=$ac_save_IFS
  2572. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2573. # Backslashify metacharacters that are still active within
  2574. # double-quoted strings.
  2575. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2576. # Same as above, but do not quote variable references.
  2577. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2578. # Sed substitution to delay expansion of an escaped shell variable in a
  2579. # double_quote_subst'ed string.
  2580. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2581. # Sed substitution to delay expansion of an escaped single quote.
  2582. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2583. # Sed substitution to avoid accidental globbing in evaled expressions
  2584. no_glob_subst='s/\*/\\\*/g'
  2585. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2586. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2587. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2589. $as_echo_n "checking how to print strings... " >&6; }
  2590. # Test print first, because it will be a builtin if present.
  2591. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2592. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2593. ECHO='print -r --'
  2594. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2595. ECHO='printf %s\n'
  2596. else
  2597. # Use this function as a fallback that always works.
  2598. func_fallback_echo ()
  2599. {
  2600. eval 'cat <<_LTECHO_EOF
  2601. $1
  2602. _LTECHO_EOF'
  2603. }
  2604. ECHO='func_fallback_echo'
  2605. fi
  2606. # func_echo_all arg...
  2607. # Invoke $ECHO with all args, space-separated.
  2608. func_echo_all ()
  2609. {
  2610. $ECHO ""
  2611. }
  2612. case "$ECHO" in
  2613. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2614. $as_echo "printf" >&6; } ;;
  2615. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2616. $as_echo "print -r" >&6; } ;;
  2617. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2618. $as_echo "cat" >&6; } ;;
  2619. esac
  2620. ac_ext=c
  2621. ac_cpp='$CPP $CPPFLAGS'
  2622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2625. if test -n "$ac_tool_prefix"; then
  2626. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2627. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2629. $as_echo_n "checking for $ac_word... " >&6; }
  2630. if ${ac_cv_prog_CC+:} false; then :
  2631. $as_echo_n "(cached) " >&6
  2632. else
  2633. if test -n "$CC"; then
  2634. ac_cv_prog_CC="$CC" # Let the user override the test.
  2635. else
  2636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2637. for as_dir in $PATH
  2638. do
  2639. IFS=$as_save_IFS
  2640. test -z "$as_dir" && as_dir=.
  2641. for ac_exec_ext in '' $ac_executable_extensions; do
  2642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2643. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2645. break 2
  2646. fi
  2647. done
  2648. done
  2649. IFS=$as_save_IFS
  2650. fi
  2651. fi
  2652. CC=$ac_cv_prog_CC
  2653. if test -n "$CC"; then
  2654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2655. $as_echo "$CC" >&6; }
  2656. else
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2658. $as_echo "no" >&6; }
  2659. fi
  2660. fi
  2661. if test -z "$ac_cv_prog_CC"; then
  2662. ac_ct_CC=$CC
  2663. # Extract the first word of "gcc", so it can be a program name with args.
  2664. set dummy gcc; ac_word=$2
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2666. $as_echo_n "checking for $ac_word... " >&6; }
  2667. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2668. $as_echo_n "(cached) " >&6
  2669. else
  2670. if test -n "$ac_ct_CC"; then
  2671. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2672. else
  2673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2674. for as_dir in $PATH
  2675. do
  2676. IFS=$as_save_IFS
  2677. test -z "$as_dir" && as_dir=.
  2678. for ac_exec_ext in '' $ac_executable_extensions; do
  2679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2680. ac_cv_prog_ac_ct_CC="gcc"
  2681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2682. break 2
  2683. fi
  2684. done
  2685. done
  2686. IFS=$as_save_IFS
  2687. fi
  2688. fi
  2689. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2690. if test -n "$ac_ct_CC"; then
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2692. $as_echo "$ac_ct_CC" >&6; }
  2693. else
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2695. $as_echo "no" >&6; }
  2696. fi
  2697. if test "x$ac_ct_CC" = x; then
  2698. CC=""
  2699. else
  2700. case $cross_compiling:$ac_tool_warned in
  2701. yes:)
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2703. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2704. ac_tool_warned=yes ;;
  2705. esac
  2706. CC=$ac_ct_CC
  2707. fi
  2708. else
  2709. CC="$ac_cv_prog_CC"
  2710. fi
  2711. if test -z "$CC"; then
  2712. if test -n "$ac_tool_prefix"; then
  2713. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2714. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2716. $as_echo_n "checking for $ac_word... " >&6; }
  2717. if ${ac_cv_prog_CC+:} false; then :
  2718. $as_echo_n "(cached) " >&6
  2719. else
  2720. if test -n "$CC"; then
  2721. ac_cv_prog_CC="$CC" # Let the user override the test.
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. for ac_exec_ext in '' $ac_executable_extensions; do
  2729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2730. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2732. break 2
  2733. fi
  2734. done
  2735. done
  2736. IFS=$as_save_IFS
  2737. fi
  2738. fi
  2739. CC=$ac_cv_prog_CC
  2740. if test -n "$CC"; then
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2742. $as_echo "$CC" >&6; }
  2743. else
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2745. $as_echo "no" >&6; }
  2746. fi
  2747. fi
  2748. fi
  2749. if test -z "$CC"; then
  2750. # Extract the first word of "cc", so it can be a program name with args.
  2751. set dummy cc; ac_word=$2
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2753. $as_echo_n "checking for $ac_word... " >&6; }
  2754. if ${ac_cv_prog_CC+:} false; then :
  2755. $as_echo_n "(cached) " >&6
  2756. else
  2757. if test -n "$CC"; then
  2758. ac_cv_prog_CC="$CC" # Let the user override the test.
  2759. else
  2760. ac_prog_rejected=no
  2761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2762. for as_dir in $PATH
  2763. do
  2764. IFS=$as_save_IFS
  2765. test -z "$as_dir" && as_dir=.
  2766. for ac_exec_ext in '' $ac_executable_extensions; do
  2767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2768. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2769. ac_prog_rejected=yes
  2770. continue
  2771. fi
  2772. ac_cv_prog_CC="cc"
  2773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2774. break 2
  2775. fi
  2776. done
  2777. done
  2778. IFS=$as_save_IFS
  2779. if test $ac_prog_rejected = yes; then
  2780. # We found a bogon in the path, so make sure we never use it.
  2781. set dummy $ac_cv_prog_CC
  2782. shift
  2783. if test $# != 0; then
  2784. # We chose a different compiler from the bogus one.
  2785. # However, it has the same basename, so the bogon will be chosen
  2786. # first if we set CC to just the basename; use the full file name.
  2787. shift
  2788. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2789. fi
  2790. fi
  2791. fi
  2792. fi
  2793. CC=$ac_cv_prog_CC
  2794. if test -n "$CC"; then
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2796. $as_echo "$CC" >&6; }
  2797. else
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2799. $as_echo "no" >&6; }
  2800. fi
  2801. fi
  2802. if test -z "$CC"; then
  2803. if test -n "$ac_tool_prefix"; then
  2804. for ac_prog in cl.exe
  2805. do
  2806. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2807. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2809. $as_echo_n "checking for $ac_word... " >&6; }
  2810. if ${ac_cv_prog_CC+:} false; then :
  2811. $as_echo_n "(cached) " >&6
  2812. else
  2813. if test -n "$CC"; then
  2814. ac_cv_prog_CC="$CC" # Let the user override the test.
  2815. else
  2816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2817. for as_dir in $PATH
  2818. do
  2819. IFS=$as_save_IFS
  2820. test -z "$as_dir" && as_dir=.
  2821. for ac_exec_ext in '' $ac_executable_extensions; do
  2822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2823. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2825. break 2
  2826. fi
  2827. done
  2828. done
  2829. IFS=$as_save_IFS
  2830. fi
  2831. fi
  2832. CC=$ac_cv_prog_CC
  2833. if test -n "$CC"; then
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2835. $as_echo "$CC" >&6; }
  2836. else
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2838. $as_echo "no" >&6; }
  2839. fi
  2840. test -n "$CC" && break
  2841. done
  2842. fi
  2843. if test -z "$CC"; then
  2844. ac_ct_CC=$CC
  2845. for ac_prog in cl.exe
  2846. do
  2847. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2848. set dummy $ac_prog; ac_word=$2
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2850. $as_echo_n "checking for $ac_word... " >&6; }
  2851. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2852. $as_echo_n "(cached) " >&6
  2853. else
  2854. if test -n "$ac_ct_CC"; then
  2855. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2856. else
  2857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2858. for as_dir in $PATH
  2859. do
  2860. IFS=$as_save_IFS
  2861. test -z "$as_dir" && as_dir=.
  2862. for ac_exec_ext in '' $ac_executable_extensions; do
  2863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2864. ac_cv_prog_ac_ct_CC="$ac_prog"
  2865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2866. break 2
  2867. fi
  2868. done
  2869. done
  2870. IFS=$as_save_IFS
  2871. fi
  2872. fi
  2873. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2874. if test -n "$ac_ct_CC"; then
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2876. $as_echo "$ac_ct_CC" >&6; }
  2877. else
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2879. $as_echo "no" >&6; }
  2880. fi
  2881. test -n "$ac_ct_CC" && break
  2882. done
  2883. if test "x$ac_ct_CC" = x; then
  2884. CC=""
  2885. else
  2886. case $cross_compiling:$ac_tool_warned in
  2887. yes:)
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2889. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2890. ac_tool_warned=yes ;;
  2891. esac
  2892. CC=$ac_ct_CC
  2893. fi
  2894. fi
  2895. fi
  2896. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2897. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2898. as_fn_error $? "no acceptable C compiler found in \$PATH
  2899. See \`config.log' for more details" "$LINENO" 5; }
  2900. # Provide some information about the compiler.
  2901. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2902. set X $ac_compile
  2903. ac_compiler=$2
  2904. for ac_option in --version -v -V -qversion; do
  2905. { { ac_try="$ac_compiler $ac_option >&5"
  2906. case "(($ac_try" in
  2907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2908. *) ac_try_echo=$ac_try;;
  2909. esac
  2910. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2911. $as_echo "$ac_try_echo"; } >&5
  2912. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2913. ac_status=$?
  2914. if test -s conftest.err; then
  2915. sed '10a\
  2916. ... rest of stderr output deleted ...
  2917. 10q' conftest.err >conftest.er1
  2918. cat conftest.er1 >&5
  2919. fi
  2920. rm -f conftest.er1 conftest.err
  2921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2922. test $ac_status = 0; }
  2923. done
  2924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2925. /* end confdefs.h. */
  2926. int
  2927. main ()
  2928. {
  2929. ;
  2930. return 0;
  2931. }
  2932. _ACEOF
  2933. ac_clean_files_save=$ac_clean_files
  2934. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2935. # Try to create an executable without -o first, disregard a.out.
  2936. # It will help us diagnose broken compilers, and finding out an intuition
  2937. # of exeext.
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2939. $as_echo_n "checking whether the C compiler works... " >&6; }
  2940. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2941. # The possible output files:
  2942. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2943. ac_rmfiles=
  2944. for ac_file in $ac_files
  2945. do
  2946. case $ac_file in
  2947. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2948. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2949. esac
  2950. done
  2951. rm -f $ac_rmfiles
  2952. if { { ac_try="$ac_link_default"
  2953. case "(($ac_try" in
  2954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2955. *) ac_try_echo=$ac_try;;
  2956. esac
  2957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2958. $as_echo "$ac_try_echo"; } >&5
  2959. (eval "$ac_link_default") 2>&5
  2960. ac_status=$?
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2962. test $ac_status = 0; }; then :
  2963. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2964. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2965. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2966. # so that the user can short-circuit this test for compilers unknown to
  2967. # Autoconf.
  2968. for ac_file in $ac_files ''
  2969. do
  2970. test -f "$ac_file" || continue
  2971. case $ac_file in
  2972. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2973. ;;
  2974. [ab].out )
  2975. # We found the default executable, but exeext='' is most
  2976. # certainly right.
  2977. break;;
  2978. *.* )
  2979. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2980. then :; else
  2981. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2982. fi
  2983. # We set ac_cv_exeext here because the later test for it is not
  2984. # safe: cross compilers may not add the suffix if given an `-o'
  2985. # argument, so we may need to know it at that point already.
  2986. # Even if this section looks crufty: it has the advantage of
  2987. # actually working.
  2988. break;;
  2989. * )
  2990. break;;
  2991. esac
  2992. done
  2993. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2994. else
  2995. ac_file=''
  2996. fi
  2997. if test -z "$ac_file"; then :
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2999. $as_echo "no" >&6; }
  3000. $as_echo "$as_me: failed program was:" >&5
  3001. sed 's/^/| /' conftest.$ac_ext >&5
  3002. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3003. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3004. as_fn_error 77 "C compiler cannot create executables
  3005. See \`config.log' for more details" "$LINENO" 5; }
  3006. else
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3008. $as_echo "yes" >&6; }
  3009. fi
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3011. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3013. $as_echo "$ac_file" >&6; }
  3014. ac_exeext=$ac_cv_exeext
  3015. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3016. ac_clean_files=$ac_clean_files_save
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3018. $as_echo_n "checking for suffix of executables... " >&6; }
  3019. if { { ac_try="$ac_link"
  3020. case "(($ac_try" in
  3021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3022. *) ac_try_echo=$ac_try;;
  3023. esac
  3024. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3025. $as_echo "$ac_try_echo"; } >&5
  3026. (eval "$ac_link") 2>&5
  3027. ac_status=$?
  3028. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3029. test $ac_status = 0; }; then :
  3030. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3031. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3032. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3033. # `rm'.
  3034. for ac_file in conftest.exe conftest conftest.*; do
  3035. test -f "$ac_file" || continue
  3036. case $ac_file in
  3037. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3038. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3039. break;;
  3040. * ) break;;
  3041. esac
  3042. done
  3043. else
  3044. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3045. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3046. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3047. See \`config.log' for more details" "$LINENO" 5; }
  3048. fi
  3049. rm -f conftest conftest$ac_cv_exeext
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3051. $as_echo "$ac_cv_exeext" >&6; }
  3052. rm -f conftest.$ac_ext
  3053. EXEEXT=$ac_cv_exeext
  3054. ac_exeext=$EXEEXT
  3055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3056. /* end confdefs.h. */
  3057. #include <stdio.h>
  3058. int
  3059. main ()
  3060. {
  3061. FILE *f = fopen ("conftest.out", "w");
  3062. return ferror (f) || fclose (f) != 0;
  3063. ;
  3064. return 0;
  3065. }
  3066. _ACEOF
  3067. ac_clean_files="$ac_clean_files conftest.out"
  3068. # Check that the compiler produces executables we can run. If not, either
  3069. # the compiler is broken, or we cross compile.
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3071. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3072. if test "$cross_compiling" != yes; then
  3073. { { ac_try="$ac_link"
  3074. case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo"; } >&5
  3080. (eval "$ac_link") 2>&5
  3081. ac_status=$?
  3082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3083. test $ac_status = 0; }
  3084. if { ac_try='./conftest$ac_cv_exeext'
  3085. { { case "(($ac_try" in
  3086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3087. *) ac_try_echo=$ac_try;;
  3088. esac
  3089. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3090. $as_echo "$ac_try_echo"; } >&5
  3091. (eval "$ac_try") 2>&5
  3092. ac_status=$?
  3093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3094. test $ac_status = 0; }; }; then
  3095. cross_compiling=no
  3096. else
  3097. if test "$cross_compiling" = maybe; then
  3098. cross_compiling=yes
  3099. else
  3100. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3102. as_fn_error $? "cannot run C compiled programs.
  3103. If you meant to cross compile, use \`--host'.
  3104. See \`config.log' for more details" "$LINENO" 5; }
  3105. fi
  3106. fi
  3107. fi
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3109. $as_echo "$cross_compiling" >&6; }
  3110. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3111. ac_clean_files=$ac_clean_files_save
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3113. $as_echo_n "checking for suffix of object files... " >&6; }
  3114. if ${ac_cv_objext+:} false; then :
  3115. $as_echo_n "(cached) " >&6
  3116. else
  3117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3118. /* end confdefs.h. */
  3119. int
  3120. main ()
  3121. {
  3122. ;
  3123. return 0;
  3124. }
  3125. _ACEOF
  3126. rm -f conftest.o conftest.obj
  3127. if { { ac_try="$ac_compile"
  3128. case "(($ac_try" in
  3129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3130. *) ac_try_echo=$ac_try;;
  3131. esac
  3132. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3133. $as_echo "$ac_try_echo"; } >&5
  3134. (eval "$ac_compile") 2>&5
  3135. ac_status=$?
  3136. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3137. test $ac_status = 0; }; then :
  3138. for ac_file in conftest.o conftest.obj conftest.*; do
  3139. test -f "$ac_file" || continue;
  3140. case $ac_file in
  3141. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3142. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3143. break;;
  3144. esac
  3145. done
  3146. else
  3147. $as_echo "$as_me: failed program was:" >&5
  3148. sed 's/^/| /' conftest.$ac_ext >&5
  3149. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3150. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3151. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3152. See \`config.log' for more details" "$LINENO" 5; }
  3153. fi
  3154. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3155. fi
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3157. $as_echo "$ac_cv_objext" >&6; }
  3158. OBJEXT=$ac_cv_objext
  3159. ac_objext=$OBJEXT
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3161. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3162. if ${ac_cv_c_compiler_gnu+:} false; then :
  3163. $as_echo_n "(cached) " >&6
  3164. else
  3165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3166. /* end confdefs.h. */
  3167. int
  3168. main ()
  3169. {
  3170. #ifndef __GNUC__
  3171. choke me
  3172. #endif
  3173. ;
  3174. return 0;
  3175. }
  3176. _ACEOF
  3177. if ac_fn_c_try_compile "$LINENO"; then :
  3178. ac_compiler_gnu=yes
  3179. else
  3180. ac_compiler_gnu=no
  3181. fi
  3182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3183. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3184. fi
  3185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3186. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3187. if test $ac_compiler_gnu = yes; then
  3188. GCC=yes
  3189. else
  3190. GCC=
  3191. fi
  3192. ac_test_CFLAGS=${CFLAGS+set}
  3193. ac_save_CFLAGS=$CFLAGS
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3195. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3196. if ${ac_cv_prog_cc_g+:} false; then :
  3197. $as_echo_n "(cached) " >&6
  3198. else
  3199. ac_save_c_werror_flag=$ac_c_werror_flag
  3200. ac_c_werror_flag=yes
  3201. ac_cv_prog_cc_g=no
  3202. CFLAGS="-g"
  3203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3204. /* end confdefs.h. */
  3205. int
  3206. main ()
  3207. {
  3208. ;
  3209. return 0;
  3210. }
  3211. _ACEOF
  3212. if ac_fn_c_try_compile "$LINENO"; then :
  3213. ac_cv_prog_cc_g=yes
  3214. else
  3215. CFLAGS=""
  3216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3217. /* end confdefs.h. */
  3218. int
  3219. main ()
  3220. {
  3221. ;
  3222. return 0;
  3223. }
  3224. _ACEOF
  3225. if ac_fn_c_try_compile "$LINENO"; then :
  3226. else
  3227. ac_c_werror_flag=$ac_save_c_werror_flag
  3228. CFLAGS="-g"
  3229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3230. /* end confdefs.h. */
  3231. int
  3232. main ()
  3233. {
  3234. ;
  3235. return 0;
  3236. }
  3237. _ACEOF
  3238. if ac_fn_c_try_compile "$LINENO"; then :
  3239. ac_cv_prog_cc_g=yes
  3240. fi
  3241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. fi
  3245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3246. ac_c_werror_flag=$ac_save_c_werror_flag
  3247. fi
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3249. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3250. if test "$ac_test_CFLAGS" = set; then
  3251. CFLAGS=$ac_save_CFLAGS
  3252. elif test $ac_cv_prog_cc_g = yes; then
  3253. if test "$GCC" = yes; then
  3254. CFLAGS="-g -O2"
  3255. else
  3256. CFLAGS="-g"
  3257. fi
  3258. else
  3259. if test "$GCC" = yes; then
  3260. CFLAGS="-O2"
  3261. else
  3262. CFLAGS=
  3263. fi
  3264. fi
  3265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3266. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3267. if ${ac_cv_prog_cc_c89+:} false; then :
  3268. $as_echo_n "(cached) " >&6
  3269. else
  3270. ac_cv_prog_cc_c89=no
  3271. ac_save_CC=$CC
  3272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3273. /* end confdefs.h. */
  3274. #include <stdarg.h>
  3275. #include <stdio.h>
  3276. struct stat;
  3277. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3278. struct buf { int x; };
  3279. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3280. static char *e (p, i)
  3281. char **p;
  3282. int i;
  3283. {
  3284. return p[i];
  3285. }
  3286. static char *f (char * (*g) (char **, int), char **p, ...)
  3287. {
  3288. char *s;
  3289. va_list v;
  3290. va_start (v,p);
  3291. s = g (p, va_arg (v,int));
  3292. va_end (v);
  3293. return s;
  3294. }
  3295. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3296. function prototypes and stuff, but not '\xHH' hex character constants.
  3297. These don't provoke an error unfortunately, instead are silently treated
  3298. as 'x'. The following induces an error, until -std is added to get
  3299. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3300. array size at least. It's necessary to write '\x00'==0 to get something
  3301. that's true only with -std. */
  3302. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3303. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3304. inside strings and character constants. */
  3305. #define FOO(x) 'x'
  3306. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3307. int test (int i, double x);
  3308. struct s1 {int (*f) (int a);};
  3309. struct s2 {int (*f) (double a);};
  3310. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3311. int argc;
  3312. char **argv;
  3313. int
  3314. main ()
  3315. {
  3316. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3317. ;
  3318. return 0;
  3319. }
  3320. _ACEOF
  3321. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3322. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3323. do
  3324. CC="$ac_save_CC $ac_arg"
  3325. if ac_fn_c_try_compile "$LINENO"; then :
  3326. ac_cv_prog_cc_c89=$ac_arg
  3327. fi
  3328. rm -f core conftest.err conftest.$ac_objext
  3329. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3330. done
  3331. rm -f conftest.$ac_ext
  3332. CC=$ac_save_CC
  3333. fi
  3334. # AC_CACHE_VAL
  3335. case "x$ac_cv_prog_cc_c89" in
  3336. x)
  3337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3338. $as_echo "none needed" >&6; } ;;
  3339. xno)
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3341. $as_echo "unsupported" >&6; } ;;
  3342. *)
  3343. CC="$CC $ac_cv_prog_cc_c89"
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3345. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3346. esac
  3347. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3348. fi
  3349. ac_ext=c
  3350. ac_cpp='$CPP $CPPFLAGS'
  3351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3355. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3356. if ${ac_cv_path_SED+:} false; then :
  3357. $as_echo_n "(cached) " >&6
  3358. else
  3359. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3360. for ac_i in 1 2 3 4 5 6 7; do
  3361. ac_script="$ac_script$as_nl$ac_script"
  3362. done
  3363. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3364. { ac_script=; unset ac_script;}
  3365. if test -z "$SED"; then
  3366. ac_path_SED_found=false
  3367. # Loop through the user's path and test for each of PROGNAME-LIST
  3368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3369. for as_dir in $PATH
  3370. do
  3371. IFS=$as_save_IFS
  3372. test -z "$as_dir" && as_dir=.
  3373. for ac_prog in sed gsed; do
  3374. for ac_exec_ext in '' $ac_executable_extensions; do
  3375. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3376. as_fn_executable_p "$ac_path_SED" || continue
  3377. # Check for GNU ac_path_SED and select it if it is found.
  3378. # Check for GNU $ac_path_SED
  3379. case `"$ac_path_SED" --version 2>&1` in
  3380. *GNU*)
  3381. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3382. *)
  3383. ac_count=0
  3384. $as_echo_n 0123456789 >"conftest.in"
  3385. while :
  3386. do
  3387. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3388. mv "conftest.tmp" "conftest.in"
  3389. cp "conftest.in" "conftest.nl"
  3390. $as_echo '' >> "conftest.nl"
  3391. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3392. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3393. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3394. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3395. # Best one so far, save it but keep looking for a better one
  3396. ac_cv_path_SED="$ac_path_SED"
  3397. ac_path_SED_max=$ac_count
  3398. fi
  3399. # 10*(2^10) chars as input seems more than enough
  3400. test $ac_count -gt 10 && break
  3401. done
  3402. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3403. esac
  3404. $ac_path_SED_found && break 3
  3405. done
  3406. done
  3407. done
  3408. IFS=$as_save_IFS
  3409. if test -z "$ac_cv_path_SED"; then
  3410. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3411. fi
  3412. else
  3413. ac_cv_path_SED=$SED
  3414. fi
  3415. fi
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3417. $as_echo "$ac_cv_path_SED" >&6; }
  3418. SED="$ac_cv_path_SED"
  3419. rm -f conftest.sed
  3420. test -z "$SED" && SED=sed
  3421. Xsed="$SED -e 1s/^X//"
  3422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3423. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3424. if ${ac_cv_path_GREP+:} false; then :
  3425. $as_echo_n "(cached) " >&6
  3426. else
  3427. if test -z "$GREP"; then
  3428. ac_path_GREP_found=false
  3429. # Loop through the user's path and test for each of PROGNAME-LIST
  3430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3431. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3432. do
  3433. IFS=$as_save_IFS
  3434. test -z "$as_dir" && as_dir=.
  3435. for ac_prog in grep ggrep; do
  3436. for ac_exec_ext in '' $ac_executable_extensions; do
  3437. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3438. as_fn_executable_p "$ac_path_GREP" || continue
  3439. # Check for GNU ac_path_GREP and select it if it is found.
  3440. # Check for GNU $ac_path_GREP
  3441. case `"$ac_path_GREP" --version 2>&1` in
  3442. *GNU*)
  3443. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3444. *)
  3445. ac_count=0
  3446. $as_echo_n 0123456789 >"conftest.in"
  3447. while :
  3448. do
  3449. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3450. mv "conftest.tmp" "conftest.in"
  3451. cp "conftest.in" "conftest.nl"
  3452. $as_echo 'GREP' >> "conftest.nl"
  3453. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3454. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3455. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3456. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3457. # Best one so far, save it but keep looking for a better one
  3458. ac_cv_path_GREP="$ac_path_GREP"
  3459. ac_path_GREP_max=$ac_count
  3460. fi
  3461. # 10*(2^10) chars as input seems more than enough
  3462. test $ac_count -gt 10 && break
  3463. done
  3464. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3465. esac
  3466. $ac_path_GREP_found && break 3
  3467. done
  3468. done
  3469. done
  3470. IFS=$as_save_IFS
  3471. if test -z "$ac_cv_path_GREP"; then
  3472. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3473. fi
  3474. else
  3475. ac_cv_path_GREP=$GREP
  3476. fi
  3477. fi
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3479. $as_echo "$ac_cv_path_GREP" >&6; }
  3480. GREP="$ac_cv_path_GREP"
  3481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3482. $as_echo_n "checking for egrep... " >&6; }
  3483. if ${ac_cv_path_EGREP+:} false; then :
  3484. $as_echo_n "(cached) " >&6
  3485. else
  3486. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3487. then ac_cv_path_EGREP="$GREP -E"
  3488. else
  3489. if test -z "$EGREP"; then
  3490. ac_path_EGREP_found=false
  3491. # Loop through the user's path and test for each of PROGNAME-LIST
  3492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3493. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3494. do
  3495. IFS=$as_save_IFS
  3496. test -z "$as_dir" && as_dir=.
  3497. for ac_prog in egrep; do
  3498. for ac_exec_ext in '' $ac_executable_extensions; do
  3499. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3500. as_fn_executable_p "$ac_path_EGREP" || continue
  3501. # Check for GNU ac_path_EGREP and select it if it is found.
  3502. # Check for GNU $ac_path_EGREP
  3503. case `"$ac_path_EGREP" --version 2>&1` in
  3504. *GNU*)
  3505. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3506. *)
  3507. ac_count=0
  3508. $as_echo_n 0123456789 >"conftest.in"
  3509. while :
  3510. do
  3511. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3512. mv "conftest.tmp" "conftest.in"
  3513. cp "conftest.in" "conftest.nl"
  3514. $as_echo 'EGREP' >> "conftest.nl"
  3515. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3516. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3517. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3518. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3519. # Best one so far, save it but keep looking for a better one
  3520. ac_cv_path_EGREP="$ac_path_EGREP"
  3521. ac_path_EGREP_max=$ac_count
  3522. fi
  3523. # 10*(2^10) chars as input seems more than enough
  3524. test $ac_count -gt 10 && break
  3525. done
  3526. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3527. esac
  3528. $ac_path_EGREP_found && break 3
  3529. done
  3530. done
  3531. done
  3532. IFS=$as_save_IFS
  3533. if test -z "$ac_cv_path_EGREP"; then
  3534. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3535. fi
  3536. else
  3537. ac_cv_path_EGREP=$EGREP
  3538. fi
  3539. fi
  3540. fi
  3541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3542. $as_echo "$ac_cv_path_EGREP" >&6; }
  3543. EGREP="$ac_cv_path_EGREP"
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3545. $as_echo_n "checking for fgrep... " >&6; }
  3546. if ${ac_cv_path_FGREP+:} false; then :
  3547. $as_echo_n "(cached) " >&6
  3548. else
  3549. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3550. then ac_cv_path_FGREP="$GREP -F"
  3551. else
  3552. if test -z "$FGREP"; then
  3553. ac_path_FGREP_found=false
  3554. # Loop through the user's path and test for each of PROGNAME-LIST
  3555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3556. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3557. do
  3558. IFS=$as_save_IFS
  3559. test -z "$as_dir" && as_dir=.
  3560. for ac_prog in fgrep; do
  3561. for ac_exec_ext in '' $ac_executable_extensions; do
  3562. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3563. as_fn_executable_p "$ac_path_FGREP" || continue
  3564. # Check for GNU ac_path_FGREP and select it if it is found.
  3565. # Check for GNU $ac_path_FGREP
  3566. case `"$ac_path_FGREP" --version 2>&1` in
  3567. *GNU*)
  3568. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3569. *)
  3570. ac_count=0
  3571. $as_echo_n 0123456789 >"conftest.in"
  3572. while :
  3573. do
  3574. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3575. mv "conftest.tmp" "conftest.in"
  3576. cp "conftest.in" "conftest.nl"
  3577. $as_echo 'FGREP' >> "conftest.nl"
  3578. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3579. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3580. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3581. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3582. # Best one so far, save it but keep looking for a better one
  3583. ac_cv_path_FGREP="$ac_path_FGREP"
  3584. ac_path_FGREP_max=$ac_count
  3585. fi
  3586. # 10*(2^10) chars as input seems more than enough
  3587. test $ac_count -gt 10 && break
  3588. done
  3589. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3590. esac
  3591. $ac_path_FGREP_found && break 3
  3592. done
  3593. done
  3594. done
  3595. IFS=$as_save_IFS
  3596. if test -z "$ac_cv_path_FGREP"; then
  3597. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3598. fi
  3599. else
  3600. ac_cv_path_FGREP=$FGREP
  3601. fi
  3602. fi
  3603. fi
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3605. $as_echo "$ac_cv_path_FGREP" >&6; }
  3606. FGREP="$ac_cv_path_FGREP"
  3607. test -z "$GREP" && GREP=grep
  3608. # Check whether --with-gnu-ld was given.
  3609. if test "${with_gnu_ld+set}" = set; then :
  3610. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3611. else
  3612. with_gnu_ld=no
  3613. fi
  3614. ac_prog=ld
  3615. if test "$GCC" = yes; then
  3616. # Check if gcc -print-prog-name=ld gives a path.
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3618. $as_echo_n "checking for ld used by $CC... " >&6; }
  3619. case $host in
  3620. *-*-mingw*)
  3621. # gcc leaves a trailing carriage return which upsets mingw
  3622. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3623. *)
  3624. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3625. esac
  3626. case $ac_prog in
  3627. # Accept absolute paths.
  3628. [\\/]* | ?:[\\/]*)
  3629. re_direlt='/[^/][^/]*/\.\./'
  3630. # Canonicalize the pathname of ld
  3631. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3632. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3633. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3634. done
  3635. test -z "$LD" && LD="$ac_prog"
  3636. ;;
  3637. "")
  3638. # If it fails, then pretend we aren't using GCC.
  3639. ac_prog=ld
  3640. ;;
  3641. *)
  3642. # If it is relative, then search for the first ld in PATH.
  3643. with_gnu_ld=unknown
  3644. ;;
  3645. esac
  3646. elif test "$with_gnu_ld" = yes; then
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3648. $as_echo_n "checking for GNU ld... " >&6; }
  3649. else
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3651. $as_echo_n "checking for non-GNU ld... " >&6; }
  3652. fi
  3653. if ${lt_cv_path_LD+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. if test -z "$LD"; then
  3657. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3658. for ac_dir in $PATH; do
  3659. IFS="$lt_save_ifs"
  3660. test -z "$ac_dir" && ac_dir=.
  3661. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3662. lt_cv_path_LD="$ac_dir/$ac_prog"
  3663. # Check to see if the program is GNU ld. I'd rather use --version,
  3664. # but apparently some variants of GNU ld only accept -v.
  3665. # Break only if it was the GNU/non-GNU ld that we prefer.
  3666. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3667. *GNU* | *'with BFD'*)
  3668. test "$with_gnu_ld" != no && break
  3669. ;;
  3670. *)
  3671. test "$with_gnu_ld" != yes && break
  3672. ;;
  3673. esac
  3674. fi
  3675. done
  3676. IFS="$lt_save_ifs"
  3677. else
  3678. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3679. fi
  3680. fi
  3681. LD="$lt_cv_path_LD"
  3682. if test -n "$LD"; then
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3684. $as_echo "$LD" >&6; }
  3685. else
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3687. $as_echo "no" >&6; }
  3688. fi
  3689. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3691. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3692. if ${lt_cv_prog_gnu_ld+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3696. case `$LD -v 2>&1 </dev/null` in
  3697. *GNU* | *'with BFD'*)
  3698. lt_cv_prog_gnu_ld=yes
  3699. ;;
  3700. *)
  3701. lt_cv_prog_gnu_ld=no
  3702. ;;
  3703. esac
  3704. fi
  3705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3706. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3707. with_gnu_ld=$lt_cv_prog_gnu_ld
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3709. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3710. if ${lt_cv_path_NM+:} false; then :
  3711. $as_echo_n "(cached) " >&6
  3712. else
  3713. if test -n "$NM"; then
  3714. # Let the user override the test.
  3715. lt_cv_path_NM="$NM"
  3716. else
  3717. lt_nm_to_check="${ac_tool_prefix}nm"
  3718. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3719. lt_nm_to_check="$lt_nm_to_check nm"
  3720. fi
  3721. for lt_tmp_nm in $lt_nm_to_check; do
  3722. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3723. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3724. IFS="$lt_save_ifs"
  3725. test -z "$ac_dir" && ac_dir=.
  3726. tmp_nm="$ac_dir/$lt_tmp_nm"
  3727. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3728. # Check to see if the nm accepts a BSD-compat flag.
  3729. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3730. # nm: unknown option "B" ignored
  3731. # Tru64's nm complains that /dev/null is an invalid object file
  3732. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3733. */dev/null* | *'Invalid file or object type'*)
  3734. lt_cv_path_NM="$tmp_nm -B"
  3735. break
  3736. ;;
  3737. *)
  3738. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3739. */dev/null*)
  3740. lt_cv_path_NM="$tmp_nm -p"
  3741. break
  3742. ;;
  3743. *)
  3744. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3745. continue # so that we can try to find one that supports BSD flags
  3746. ;;
  3747. esac
  3748. ;;
  3749. esac
  3750. fi
  3751. done
  3752. IFS="$lt_save_ifs"
  3753. done
  3754. : ${lt_cv_path_NM=no}
  3755. fi
  3756. fi
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3758. $as_echo "$lt_cv_path_NM" >&6; }
  3759. if test "$lt_cv_path_NM" != "no"; then
  3760. NM="$lt_cv_path_NM"
  3761. else
  3762. # Didn't find any BSD compatible name lister, look for dumpbin.
  3763. if test -n "$DUMPBIN"; then :
  3764. # Let the user override the test.
  3765. else
  3766. if test -n "$ac_tool_prefix"; then
  3767. for ac_prog in dumpbin "link -dump"
  3768. do
  3769. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3770. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3772. $as_echo_n "checking for $ac_word... " >&6; }
  3773. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3774. $as_echo_n "(cached) " >&6
  3775. else
  3776. if test -n "$DUMPBIN"; then
  3777. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3778. else
  3779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3780. for as_dir in $PATH
  3781. do
  3782. IFS=$as_save_IFS
  3783. test -z "$as_dir" && as_dir=.
  3784. for ac_exec_ext in '' $ac_executable_extensions; do
  3785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3786. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3788. break 2
  3789. fi
  3790. done
  3791. done
  3792. IFS=$as_save_IFS
  3793. fi
  3794. fi
  3795. DUMPBIN=$ac_cv_prog_DUMPBIN
  3796. if test -n "$DUMPBIN"; then
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3798. $as_echo "$DUMPBIN" >&6; }
  3799. else
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3801. $as_echo "no" >&6; }
  3802. fi
  3803. test -n "$DUMPBIN" && break
  3804. done
  3805. fi
  3806. if test -z "$DUMPBIN"; then
  3807. ac_ct_DUMPBIN=$DUMPBIN
  3808. for ac_prog in dumpbin "link -dump"
  3809. do
  3810. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3811. set dummy $ac_prog; ac_word=$2
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3813. $as_echo_n "checking for $ac_word... " >&6; }
  3814. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. if test -n "$ac_ct_DUMPBIN"; then
  3818. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3819. else
  3820. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3821. for as_dir in $PATH
  3822. do
  3823. IFS=$as_save_IFS
  3824. test -z "$as_dir" && as_dir=.
  3825. for ac_exec_ext in '' $ac_executable_extensions; do
  3826. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3827. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3828. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3829. break 2
  3830. fi
  3831. done
  3832. done
  3833. IFS=$as_save_IFS
  3834. fi
  3835. fi
  3836. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3837. if test -n "$ac_ct_DUMPBIN"; then
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3839. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3840. else
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3842. $as_echo "no" >&6; }
  3843. fi
  3844. test -n "$ac_ct_DUMPBIN" && break
  3845. done
  3846. if test "x$ac_ct_DUMPBIN" = x; then
  3847. DUMPBIN=":"
  3848. else
  3849. case $cross_compiling:$ac_tool_warned in
  3850. yes:)
  3851. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3852. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3853. ac_tool_warned=yes ;;
  3854. esac
  3855. DUMPBIN=$ac_ct_DUMPBIN
  3856. fi
  3857. fi
  3858. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3859. *COFF*)
  3860. DUMPBIN="$DUMPBIN -symbols"
  3861. ;;
  3862. *)
  3863. DUMPBIN=:
  3864. ;;
  3865. esac
  3866. fi
  3867. if test "$DUMPBIN" != ":"; then
  3868. NM="$DUMPBIN"
  3869. fi
  3870. fi
  3871. test -z "$NM" && NM=nm
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3873. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3874. if ${lt_cv_nm_interface+:} false; then :
  3875. $as_echo_n "(cached) " >&6
  3876. else
  3877. lt_cv_nm_interface="BSD nm"
  3878. echo "int some_variable = 0;" > conftest.$ac_ext
  3879. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3880. (eval "$ac_compile" 2>conftest.err)
  3881. cat conftest.err >&5
  3882. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3883. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3884. cat conftest.err >&5
  3885. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3886. cat conftest.out >&5
  3887. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3888. lt_cv_nm_interface="MS dumpbin"
  3889. fi
  3890. rm -f conftest*
  3891. fi
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3893. $as_echo "$lt_cv_nm_interface" >&6; }
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3895. $as_echo_n "checking whether ln -s works... " >&6; }
  3896. LN_S=$as_ln_s
  3897. if test "$LN_S" = "ln -s"; then
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3899. $as_echo "yes" >&6; }
  3900. else
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3902. $as_echo "no, using $LN_S" >&6; }
  3903. fi
  3904. # find the maximum length of command line arguments
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3906. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3907. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3908. $as_echo_n "(cached) " >&6
  3909. else
  3910. i=0
  3911. teststring="ABCD"
  3912. case $build_os in
  3913. msdosdjgpp*)
  3914. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3915. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3916. # during glob expansion). Even if it were fixed, the result of this
  3917. # check would be larger than it should be.
  3918. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3919. ;;
  3920. gnu*)
  3921. # Under GNU Hurd, this test is not required because there is
  3922. # no limit to the length of command line arguments.
  3923. # Libtool will interpret -1 as no limit whatsoever
  3924. lt_cv_sys_max_cmd_len=-1;
  3925. ;;
  3926. cygwin* | mingw* | cegcc*)
  3927. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3928. # about 5 minutes as the teststring grows exponentially.
  3929. # Worse, since 9x/ME are not pre-emptively multitasking,
  3930. # you end up with a "frozen" computer, even though with patience
  3931. # the test eventually succeeds (with a max line length of 256k).
  3932. # Instead, let's just punt: use the minimum linelength reported by
  3933. # all of the supported platforms: 8192 (on NT/2K/XP).
  3934. lt_cv_sys_max_cmd_len=8192;
  3935. ;;
  3936. mint*)
  3937. # On MiNT this can take a long time and run out of memory.
  3938. lt_cv_sys_max_cmd_len=8192;
  3939. ;;
  3940. amigaos*)
  3941. # On AmigaOS with pdksh, this test takes hours, literally.
  3942. # So we just punt and use a minimum line length of 8192.
  3943. lt_cv_sys_max_cmd_len=8192;
  3944. ;;
  3945. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3946. # This has been around since 386BSD, at least. Likely further.
  3947. if test -x /sbin/sysctl; then
  3948. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3949. elif test -x /usr/sbin/sysctl; then
  3950. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3951. else
  3952. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3953. fi
  3954. # And add a safety zone
  3955. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3956. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3957. ;;
  3958. interix*)
  3959. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3960. lt_cv_sys_max_cmd_len=196608
  3961. ;;
  3962. os2*)
  3963. # The test takes a long time on OS/2.
  3964. lt_cv_sys_max_cmd_len=8192
  3965. ;;
  3966. osf*)
  3967. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3968. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3969. # nice to cause kernel panics so lets avoid the loop below.
  3970. # First set a reasonable default.
  3971. lt_cv_sys_max_cmd_len=16384
  3972. #
  3973. if test -x /sbin/sysconfig; then
  3974. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3975. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3976. esac
  3977. fi
  3978. ;;
  3979. sco3.2v5*)
  3980. lt_cv_sys_max_cmd_len=102400
  3981. ;;
  3982. sysv5* | sco5v6* | sysv4.2uw2*)
  3983. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3984. if test -n "$kargmax"; then
  3985. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3986. else
  3987. lt_cv_sys_max_cmd_len=32768
  3988. fi
  3989. ;;
  3990. *)
  3991. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3992. if test -n "$lt_cv_sys_max_cmd_len"; then
  3993. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3994. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3995. else
  3996. # Make teststring a little bigger before we do anything with it.
  3997. # a 1K string should be a reasonable start.
  3998. for i in 1 2 3 4 5 6 7 8 ; do
  3999. teststring=$teststring$teststring
  4000. done
  4001. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4002. # If test is not a shell built-in, we'll probably end up computing a
  4003. # maximum length that is only half of the actual maximum length, but
  4004. # we can't tell.
  4005. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4006. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4007. test $i != 17 # 1/2 MB should be enough
  4008. do
  4009. i=`expr $i + 1`
  4010. teststring=$teststring$teststring
  4011. done
  4012. # Only check the string length outside the loop.
  4013. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4014. teststring=
  4015. # Add a significant safety factor because C++ compilers can tack on
  4016. # massive amounts of additional arguments before passing them to the
  4017. # linker. It appears as though 1/2 is a usable value.
  4018. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4019. fi
  4020. ;;
  4021. esac
  4022. fi
  4023. if test -n $lt_cv_sys_max_cmd_len ; then
  4024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4025. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4026. else
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4028. $as_echo "none" >&6; }
  4029. fi
  4030. max_cmd_len=$lt_cv_sys_max_cmd_len
  4031. : ${CP="cp -f"}
  4032. : ${MV="mv -f"}
  4033. : ${RM="rm -f"}
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4035. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4036. # Try some XSI features
  4037. xsi_shell=no
  4038. ( _lt_dummy="a/b/c"
  4039. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4040. = c,a/b,b/c, \
  4041. && eval 'test $(( 1 + 1 )) -eq 2 \
  4042. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4043. && xsi_shell=yes
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4045. $as_echo "$xsi_shell" >&6; }
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4047. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4048. lt_shell_append=no
  4049. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4050. >/dev/null 2>&1 \
  4051. && lt_shell_append=yes
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4053. $as_echo "$lt_shell_append" >&6; }
  4054. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4055. lt_unset=unset
  4056. else
  4057. lt_unset=false
  4058. fi
  4059. # test EBCDIC or ASCII
  4060. case `echo X|tr X '\101'` in
  4061. A) # ASCII based system
  4062. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4063. lt_SP2NL='tr \040 \012'
  4064. lt_NL2SP='tr \015\012 \040\040'
  4065. ;;
  4066. *) # EBCDIC based system
  4067. lt_SP2NL='tr \100 \n'
  4068. lt_NL2SP='tr \r\n \100\100'
  4069. ;;
  4070. esac
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4072. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4073. if ${lt_cv_to_host_file_cmd+:} false; then :
  4074. $as_echo_n "(cached) " >&6
  4075. else
  4076. case $host in
  4077. *-*-mingw* )
  4078. case $build in
  4079. *-*-mingw* ) # actually msys
  4080. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4081. ;;
  4082. *-*-cygwin* )
  4083. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4084. ;;
  4085. * ) # otherwise, assume *nix
  4086. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4087. ;;
  4088. esac
  4089. ;;
  4090. *-*-cygwin* )
  4091. case $build in
  4092. *-*-mingw* ) # actually msys
  4093. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4094. ;;
  4095. *-*-cygwin* )
  4096. lt_cv_to_host_file_cmd=func_convert_file_noop
  4097. ;;
  4098. * ) # otherwise, assume *nix
  4099. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4100. ;;
  4101. esac
  4102. ;;
  4103. * ) # unhandled hosts (and "normal" native builds)
  4104. lt_cv_to_host_file_cmd=func_convert_file_noop
  4105. ;;
  4106. esac
  4107. fi
  4108. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4110. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4112. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4113. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4114. $as_echo_n "(cached) " >&6
  4115. else
  4116. #assume ordinary cross tools, or native build.
  4117. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4118. case $host in
  4119. *-*-mingw* )
  4120. case $build in
  4121. *-*-mingw* ) # actually msys
  4122. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4123. ;;
  4124. esac
  4125. ;;
  4126. esac
  4127. fi
  4128. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4130. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4132. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4133. if ${lt_cv_ld_reload_flag+:} false; then :
  4134. $as_echo_n "(cached) " >&6
  4135. else
  4136. lt_cv_ld_reload_flag='-r'
  4137. fi
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4139. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4140. reload_flag=$lt_cv_ld_reload_flag
  4141. case $reload_flag in
  4142. "" | " "*) ;;
  4143. *) reload_flag=" $reload_flag" ;;
  4144. esac
  4145. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4146. case $host_os in
  4147. cygwin* | mingw* | pw32* | cegcc*)
  4148. if test "$GCC" != yes; then
  4149. reload_cmds=false
  4150. fi
  4151. ;;
  4152. darwin*)
  4153. if test "$GCC" = yes; then
  4154. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4155. else
  4156. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4157. fi
  4158. ;;
  4159. esac
  4160. if test -n "$ac_tool_prefix"; then
  4161. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4162. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4164. $as_echo_n "checking for $ac_word... " >&6; }
  4165. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4166. $as_echo_n "(cached) " >&6
  4167. else
  4168. if test -n "$OBJDUMP"; then
  4169. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4170. else
  4171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4172. for as_dir in $PATH
  4173. do
  4174. IFS=$as_save_IFS
  4175. test -z "$as_dir" && as_dir=.
  4176. for ac_exec_ext in '' $ac_executable_extensions; do
  4177. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4178. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4180. break 2
  4181. fi
  4182. done
  4183. done
  4184. IFS=$as_save_IFS
  4185. fi
  4186. fi
  4187. OBJDUMP=$ac_cv_prog_OBJDUMP
  4188. if test -n "$OBJDUMP"; then
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4190. $as_echo "$OBJDUMP" >&6; }
  4191. else
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4193. $as_echo "no" >&6; }
  4194. fi
  4195. fi
  4196. if test -z "$ac_cv_prog_OBJDUMP"; then
  4197. ac_ct_OBJDUMP=$OBJDUMP
  4198. # Extract the first word of "objdump", so it can be a program name with args.
  4199. set dummy objdump; ac_word=$2
  4200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4201. $as_echo_n "checking for $ac_word... " >&6; }
  4202. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4203. $as_echo_n "(cached) " >&6
  4204. else
  4205. if test -n "$ac_ct_OBJDUMP"; then
  4206. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4207. else
  4208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4209. for as_dir in $PATH
  4210. do
  4211. IFS=$as_save_IFS
  4212. test -z "$as_dir" && as_dir=.
  4213. for ac_exec_ext in '' $ac_executable_extensions; do
  4214. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4215. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4217. break 2
  4218. fi
  4219. done
  4220. done
  4221. IFS=$as_save_IFS
  4222. fi
  4223. fi
  4224. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4225. if test -n "$ac_ct_OBJDUMP"; then
  4226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4227. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4228. else
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4230. $as_echo "no" >&6; }
  4231. fi
  4232. if test "x$ac_ct_OBJDUMP" = x; then
  4233. OBJDUMP="false"
  4234. else
  4235. case $cross_compiling:$ac_tool_warned in
  4236. yes:)
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4238. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4239. ac_tool_warned=yes ;;
  4240. esac
  4241. OBJDUMP=$ac_ct_OBJDUMP
  4242. fi
  4243. else
  4244. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4245. fi
  4246. test -z "$OBJDUMP" && OBJDUMP=objdump
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4248. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4249. if ${lt_cv_deplibs_check_method+:} false; then :
  4250. $as_echo_n "(cached) " >&6
  4251. else
  4252. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4253. lt_cv_file_magic_test_file=
  4254. lt_cv_deplibs_check_method='unknown'
  4255. # Need to set the preceding variable on all platforms that support
  4256. # interlibrary dependencies.
  4257. # 'none' -- dependencies not supported.
  4258. # `unknown' -- same as none, but documents that we really don't know.
  4259. # 'pass_all' -- all dependencies passed with no checks.
  4260. # 'test_compile' -- check by making test program.
  4261. # 'file_magic [[regex]]' -- check by looking for files in library path
  4262. # which responds to the $file_magic_cmd with a given extended regex.
  4263. # If you have `file' or equivalent on your system and you're not sure
  4264. # whether `pass_all' will *always* work, you probably want this one.
  4265. case $host_os in
  4266. aix[4-9]*)
  4267. lt_cv_deplibs_check_method=pass_all
  4268. ;;
  4269. beos*)
  4270. lt_cv_deplibs_check_method=pass_all
  4271. ;;
  4272. bsdi[45]*)
  4273. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4274. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4275. lt_cv_file_magic_test_file=/shlib/libc.so
  4276. ;;
  4277. cygwin*)
  4278. # func_win32_libid is a shell function defined in ltmain.sh
  4279. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4280. lt_cv_file_magic_cmd='func_win32_libid'
  4281. lt_cv_deplibs_check_method=pass_all
  4282. ;;
  4283. mingw* | pw32*)
  4284. # Base MSYS/MinGW do not provide the 'file' command needed by
  4285. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4286. # unless we find 'file', for example because we are cross-compiling.
  4287. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4288. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4289. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4290. lt_cv_file_magic_cmd='func_win32_libid'
  4291. else
  4292. # Keep this pattern in sync with the one in func_win32_libid.
  4293. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4294. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4295. fi
  4296. lt_cv_deplibs_check_method=pass_all
  4297. ;;
  4298. cegcc*)
  4299. # use the weaker test based on 'objdump'. See mingw*.
  4300. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4301. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4302. ;;
  4303. darwin* | rhapsody*)
  4304. lt_cv_deplibs_check_method=pass_all
  4305. ;;
  4306. freebsd* | dragonfly*)
  4307. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4308. case $host_cpu in
  4309. i*86 )
  4310. # Not sure whether the presence of OpenBSD here was a mistake.
  4311. # Let's accept both of them until this is cleared up.
  4312. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4313. lt_cv_file_magic_cmd=/usr/bin/file
  4314. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4315. ;;
  4316. esac
  4317. else
  4318. lt_cv_deplibs_check_method=pass_all
  4319. fi
  4320. ;;
  4321. gnu*)
  4322. lt_cv_deplibs_check_method=pass_all
  4323. ;;
  4324. haiku*)
  4325. lt_cv_deplibs_check_method=pass_all
  4326. ;;
  4327. hpux10.20* | hpux11*)
  4328. lt_cv_file_magic_cmd=/usr/bin/file
  4329. case $host_cpu in
  4330. ia64*)
  4331. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4332. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4333. ;;
  4334. hppa*64*)
  4335. 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]'
  4336. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4337. ;;
  4338. *)
  4339. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4340. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4341. ;;
  4342. esac
  4343. ;;
  4344. interix[3-9]*)
  4345. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4346. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4347. ;;
  4348. irix5* | irix6* | nonstopux*)
  4349. case $LD in
  4350. *-32|*"-32 ") libmagic=32-bit;;
  4351. *-n32|*"-n32 ") libmagic=N32;;
  4352. *-64|*"-64 ") libmagic=64-bit;;
  4353. *) libmagic=never-match;;
  4354. esac
  4355. lt_cv_deplibs_check_method=pass_all
  4356. ;;
  4357. # This must be glibc/ELF.
  4358. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4359. lt_cv_deplibs_check_method=pass_all
  4360. ;;
  4361. netbsd*)
  4362. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4363. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4364. else
  4365. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4366. fi
  4367. ;;
  4368. newos6*)
  4369. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4370. lt_cv_file_magic_cmd=/usr/bin/file
  4371. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4372. ;;
  4373. *nto* | *qnx*)
  4374. lt_cv_deplibs_check_method=pass_all
  4375. ;;
  4376. openbsd*)
  4377. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4378. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4379. else
  4380. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4381. fi
  4382. ;;
  4383. osf3* | osf4* | osf5*)
  4384. lt_cv_deplibs_check_method=pass_all
  4385. ;;
  4386. rdos*)
  4387. lt_cv_deplibs_check_method=pass_all
  4388. ;;
  4389. solaris*)
  4390. lt_cv_deplibs_check_method=pass_all
  4391. ;;
  4392. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4393. lt_cv_deplibs_check_method=pass_all
  4394. ;;
  4395. sysv4 | sysv4.3*)
  4396. case $host_vendor in
  4397. motorola)
  4398. 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]'
  4399. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4400. ;;
  4401. ncr)
  4402. lt_cv_deplibs_check_method=pass_all
  4403. ;;
  4404. sequent)
  4405. lt_cv_file_magic_cmd='/bin/file'
  4406. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4407. ;;
  4408. sni)
  4409. lt_cv_file_magic_cmd='/bin/file'
  4410. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4411. lt_cv_file_magic_test_file=/lib/libc.so
  4412. ;;
  4413. siemens)
  4414. lt_cv_deplibs_check_method=pass_all
  4415. ;;
  4416. pc)
  4417. lt_cv_deplibs_check_method=pass_all
  4418. ;;
  4419. esac
  4420. ;;
  4421. tpf*)
  4422. lt_cv_deplibs_check_method=pass_all
  4423. ;;
  4424. esac
  4425. fi
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4427. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4428. file_magic_glob=
  4429. want_nocaseglob=no
  4430. if test "$build" = "$host"; then
  4431. case $host_os in
  4432. mingw* | pw32*)
  4433. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4434. want_nocaseglob=yes
  4435. else
  4436. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4437. fi
  4438. ;;
  4439. esac
  4440. fi
  4441. file_magic_cmd=$lt_cv_file_magic_cmd
  4442. deplibs_check_method=$lt_cv_deplibs_check_method
  4443. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4444. if test -n "$ac_tool_prefix"; then
  4445. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4446. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4448. $as_echo_n "checking for $ac_word... " >&6; }
  4449. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4450. $as_echo_n "(cached) " >&6
  4451. else
  4452. if test -n "$DLLTOOL"; then
  4453. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4454. else
  4455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4456. for as_dir in $PATH
  4457. do
  4458. IFS=$as_save_IFS
  4459. test -z "$as_dir" && as_dir=.
  4460. for ac_exec_ext in '' $ac_executable_extensions; do
  4461. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4462. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4464. break 2
  4465. fi
  4466. done
  4467. done
  4468. IFS=$as_save_IFS
  4469. fi
  4470. fi
  4471. DLLTOOL=$ac_cv_prog_DLLTOOL
  4472. if test -n "$DLLTOOL"; then
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4474. $as_echo "$DLLTOOL" >&6; }
  4475. else
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4477. $as_echo "no" >&6; }
  4478. fi
  4479. fi
  4480. if test -z "$ac_cv_prog_DLLTOOL"; then
  4481. ac_ct_DLLTOOL=$DLLTOOL
  4482. # Extract the first word of "dlltool", so it can be a program name with args.
  4483. set dummy dlltool; ac_word=$2
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4485. $as_echo_n "checking for $ac_word... " >&6; }
  4486. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4487. $as_echo_n "(cached) " >&6
  4488. else
  4489. if test -n "$ac_ct_DLLTOOL"; then
  4490. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4491. else
  4492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4493. for as_dir in $PATH
  4494. do
  4495. IFS=$as_save_IFS
  4496. test -z "$as_dir" && as_dir=.
  4497. for ac_exec_ext in '' $ac_executable_extensions; do
  4498. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4499. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4501. break 2
  4502. fi
  4503. done
  4504. done
  4505. IFS=$as_save_IFS
  4506. fi
  4507. fi
  4508. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4509. if test -n "$ac_ct_DLLTOOL"; then
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4511. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4512. else
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4514. $as_echo "no" >&6; }
  4515. fi
  4516. if test "x$ac_ct_DLLTOOL" = x; then
  4517. DLLTOOL="false"
  4518. else
  4519. case $cross_compiling:$ac_tool_warned in
  4520. yes:)
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4522. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4523. ac_tool_warned=yes ;;
  4524. esac
  4525. DLLTOOL=$ac_ct_DLLTOOL
  4526. fi
  4527. else
  4528. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4529. fi
  4530. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4532. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4533. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4534. $as_echo_n "(cached) " >&6
  4535. else
  4536. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4537. case $host_os in
  4538. cygwin* | mingw* | pw32* | cegcc*)
  4539. # two different shell functions defined in ltmain.sh
  4540. # decide which to use based on capabilities of $DLLTOOL
  4541. case `$DLLTOOL --help 2>&1` in
  4542. *--identify-strict*)
  4543. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4544. ;;
  4545. *)
  4546. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4547. ;;
  4548. esac
  4549. ;;
  4550. *)
  4551. # fallback: assume linklib IS sharedlib
  4552. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4553. ;;
  4554. esac
  4555. fi
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4557. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4558. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4559. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4560. if test -n "$ac_tool_prefix"; then
  4561. for ac_prog in ar
  4562. do
  4563. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4564. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4566. $as_echo_n "checking for $ac_word... " >&6; }
  4567. if ${ac_cv_prog_AR+:} false; then :
  4568. $as_echo_n "(cached) " >&6
  4569. else
  4570. if test -n "$AR"; then
  4571. ac_cv_prog_AR="$AR" # Let the user override the test.
  4572. else
  4573. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4574. for as_dir in $PATH
  4575. do
  4576. IFS=$as_save_IFS
  4577. test -z "$as_dir" && as_dir=.
  4578. for ac_exec_ext in '' $ac_executable_extensions; do
  4579. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4580. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4581. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4582. break 2
  4583. fi
  4584. done
  4585. done
  4586. IFS=$as_save_IFS
  4587. fi
  4588. fi
  4589. AR=$ac_cv_prog_AR
  4590. if test -n "$AR"; then
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4592. $as_echo "$AR" >&6; }
  4593. else
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4595. $as_echo "no" >&6; }
  4596. fi
  4597. test -n "$AR" && break
  4598. done
  4599. fi
  4600. if test -z "$AR"; then
  4601. ac_ct_AR=$AR
  4602. for ac_prog in ar
  4603. do
  4604. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4605. set dummy $ac_prog; ac_word=$2
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4607. $as_echo_n "checking for $ac_word... " >&6; }
  4608. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4609. $as_echo_n "(cached) " >&6
  4610. else
  4611. if test -n "$ac_ct_AR"; then
  4612. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4613. else
  4614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4615. for as_dir in $PATH
  4616. do
  4617. IFS=$as_save_IFS
  4618. test -z "$as_dir" && as_dir=.
  4619. for ac_exec_ext in '' $ac_executable_extensions; do
  4620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4621. ac_cv_prog_ac_ct_AR="$ac_prog"
  4622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4623. break 2
  4624. fi
  4625. done
  4626. done
  4627. IFS=$as_save_IFS
  4628. fi
  4629. fi
  4630. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4631. if test -n "$ac_ct_AR"; then
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4633. $as_echo "$ac_ct_AR" >&6; }
  4634. else
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4636. $as_echo "no" >&6; }
  4637. fi
  4638. test -n "$ac_ct_AR" && break
  4639. done
  4640. if test "x$ac_ct_AR" = x; then
  4641. AR="false"
  4642. else
  4643. case $cross_compiling:$ac_tool_warned in
  4644. yes:)
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4647. ac_tool_warned=yes ;;
  4648. esac
  4649. AR=$ac_ct_AR
  4650. fi
  4651. fi
  4652. : ${AR=ar}
  4653. : ${AR_FLAGS=cru}
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4655. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4656. if ${lt_cv_ar_at_file+:} false; then :
  4657. $as_echo_n "(cached) " >&6
  4658. else
  4659. lt_cv_ar_at_file=no
  4660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4661. /* end confdefs.h. */
  4662. int
  4663. main ()
  4664. {
  4665. ;
  4666. return 0;
  4667. }
  4668. _ACEOF
  4669. if ac_fn_c_try_compile "$LINENO"; then :
  4670. echo conftest.$ac_objext > conftest.lst
  4671. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4672. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4673. (eval $lt_ar_try) 2>&5
  4674. ac_status=$?
  4675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4676. test $ac_status = 0; }
  4677. if test "$ac_status" -eq 0; then
  4678. # Ensure the archiver fails upon bogus file names.
  4679. rm -f conftest.$ac_objext libconftest.a
  4680. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4681. (eval $lt_ar_try) 2>&5
  4682. ac_status=$?
  4683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4684. test $ac_status = 0; }
  4685. if test "$ac_status" -ne 0; then
  4686. lt_cv_ar_at_file=@
  4687. fi
  4688. fi
  4689. rm -f conftest.* libconftest.a
  4690. fi
  4691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4692. fi
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4694. $as_echo "$lt_cv_ar_at_file" >&6; }
  4695. if test "x$lt_cv_ar_at_file" = xno; then
  4696. archiver_list_spec=
  4697. else
  4698. archiver_list_spec=$lt_cv_ar_at_file
  4699. fi
  4700. if test -n "$ac_tool_prefix"; then
  4701. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4702. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4704. $as_echo_n "checking for $ac_word... " >&6; }
  4705. if ${ac_cv_prog_STRIP+:} false; then :
  4706. $as_echo_n "(cached) " >&6
  4707. else
  4708. if test -n "$STRIP"; then
  4709. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4710. else
  4711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4712. for as_dir in $PATH
  4713. do
  4714. IFS=$as_save_IFS
  4715. test -z "$as_dir" && as_dir=.
  4716. for ac_exec_ext in '' $ac_executable_extensions; do
  4717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4718. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4720. break 2
  4721. fi
  4722. done
  4723. done
  4724. IFS=$as_save_IFS
  4725. fi
  4726. fi
  4727. STRIP=$ac_cv_prog_STRIP
  4728. if test -n "$STRIP"; then
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4730. $as_echo "$STRIP" >&6; }
  4731. else
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4733. $as_echo "no" >&6; }
  4734. fi
  4735. fi
  4736. if test -z "$ac_cv_prog_STRIP"; then
  4737. ac_ct_STRIP=$STRIP
  4738. # Extract the first word of "strip", so it can be a program name with args.
  4739. set dummy strip; ac_word=$2
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4741. $as_echo_n "checking for $ac_word... " >&6; }
  4742. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4743. $as_echo_n "(cached) " >&6
  4744. else
  4745. if test -n "$ac_ct_STRIP"; then
  4746. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4747. else
  4748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4749. for as_dir in $PATH
  4750. do
  4751. IFS=$as_save_IFS
  4752. test -z "$as_dir" && as_dir=.
  4753. for ac_exec_ext in '' $ac_executable_extensions; do
  4754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4755. ac_cv_prog_ac_ct_STRIP="strip"
  4756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4757. break 2
  4758. fi
  4759. done
  4760. done
  4761. IFS=$as_save_IFS
  4762. fi
  4763. fi
  4764. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4765. if test -n "$ac_ct_STRIP"; then
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4767. $as_echo "$ac_ct_STRIP" >&6; }
  4768. else
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4770. $as_echo "no" >&6; }
  4771. fi
  4772. if test "x$ac_ct_STRIP" = x; then
  4773. STRIP=":"
  4774. else
  4775. case $cross_compiling:$ac_tool_warned in
  4776. yes:)
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4778. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4779. ac_tool_warned=yes ;;
  4780. esac
  4781. STRIP=$ac_ct_STRIP
  4782. fi
  4783. else
  4784. STRIP="$ac_cv_prog_STRIP"
  4785. fi
  4786. test -z "$STRIP" && STRIP=:
  4787. if test -n "$ac_tool_prefix"; then
  4788. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4789. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4791. $as_echo_n "checking for $ac_word... " >&6; }
  4792. if ${ac_cv_prog_RANLIB+:} false; then :
  4793. $as_echo_n "(cached) " >&6
  4794. else
  4795. if test -n "$RANLIB"; then
  4796. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4797. else
  4798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4799. for as_dir in $PATH
  4800. do
  4801. IFS=$as_save_IFS
  4802. test -z "$as_dir" && as_dir=.
  4803. for ac_exec_ext in '' $ac_executable_extensions; do
  4804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4805. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4807. break 2
  4808. fi
  4809. done
  4810. done
  4811. IFS=$as_save_IFS
  4812. fi
  4813. fi
  4814. RANLIB=$ac_cv_prog_RANLIB
  4815. if test -n "$RANLIB"; then
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4817. $as_echo "$RANLIB" >&6; }
  4818. else
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4820. $as_echo "no" >&6; }
  4821. fi
  4822. fi
  4823. if test -z "$ac_cv_prog_RANLIB"; then
  4824. ac_ct_RANLIB=$RANLIB
  4825. # Extract the first word of "ranlib", so it can be a program name with args.
  4826. set dummy ranlib; ac_word=$2
  4827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4828. $as_echo_n "checking for $ac_word... " >&6; }
  4829. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4830. $as_echo_n "(cached) " >&6
  4831. else
  4832. if test -n "$ac_ct_RANLIB"; then
  4833. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4834. else
  4835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4836. for as_dir in $PATH
  4837. do
  4838. IFS=$as_save_IFS
  4839. test -z "$as_dir" && as_dir=.
  4840. for ac_exec_ext in '' $ac_executable_extensions; do
  4841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4842. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4844. break 2
  4845. fi
  4846. done
  4847. done
  4848. IFS=$as_save_IFS
  4849. fi
  4850. fi
  4851. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4852. if test -n "$ac_ct_RANLIB"; then
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4854. $as_echo "$ac_ct_RANLIB" >&6; }
  4855. else
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4857. $as_echo "no" >&6; }
  4858. fi
  4859. if test "x$ac_ct_RANLIB" = x; then
  4860. RANLIB=":"
  4861. else
  4862. case $cross_compiling:$ac_tool_warned in
  4863. yes:)
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4866. ac_tool_warned=yes ;;
  4867. esac
  4868. RANLIB=$ac_ct_RANLIB
  4869. fi
  4870. else
  4871. RANLIB="$ac_cv_prog_RANLIB"
  4872. fi
  4873. test -z "$RANLIB" && RANLIB=:
  4874. # Determine commands to create old-style static archives.
  4875. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4876. old_postinstall_cmds='chmod 644 $oldlib'
  4877. old_postuninstall_cmds=
  4878. if test -n "$RANLIB"; then
  4879. case $host_os in
  4880. openbsd*)
  4881. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4882. ;;
  4883. *)
  4884. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4885. ;;
  4886. esac
  4887. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4888. fi
  4889. case $host_os in
  4890. darwin*)
  4891. lock_old_archive_extraction=yes ;;
  4892. *)
  4893. lock_old_archive_extraction=no ;;
  4894. esac
  4895. for ac_prog in gawk mawk nawk awk
  4896. do
  4897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4898. set dummy $ac_prog; ac_word=$2
  4899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4900. $as_echo_n "checking for $ac_word... " >&6; }
  4901. if ${ac_cv_prog_AWK+:} false; then :
  4902. $as_echo_n "(cached) " >&6
  4903. else
  4904. if test -n "$AWK"; then
  4905. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4906. else
  4907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4908. for as_dir in $PATH
  4909. do
  4910. IFS=$as_save_IFS
  4911. test -z "$as_dir" && as_dir=.
  4912. for ac_exec_ext in '' $ac_executable_extensions; do
  4913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4914. ac_cv_prog_AWK="$ac_prog"
  4915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4916. break 2
  4917. fi
  4918. done
  4919. done
  4920. IFS=$as_save_IFS
  4921. fi
  4922. fi
  4923. AWK=$ac_cv_prog_AWK
  4924. if test -n "$AWK"; then
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4926. $as_echo "$AWK" >&6; }
  4927. else
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4929. $as_echo "no" >&6; }
  4930. fi
  4931. test -n "$AWK" && break
  4932. done
  4933. # If no C compiler was specified, use CC.
  4934. LTCC=${LTCC-"$CC"}
  4935. # If no C compiler flags were specified, use CFLAGS.
  4936. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4937. # Allow CC to be a program name with arguments.
  4938. compiler=$CC
  4939. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4941. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4942. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4943. $as_echo_n "(cached) " >&6
  4944. else
  4945. # These are sane defaults that work on at least a few old systems.
  4946. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4947. # Character class describing NM global symbol codes.
  4948. symcode='[BCDEGRST]'
  4949. # Regexp to match symbols that can be accessed directly from C.
  4950. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4951. # Define system-specific variables.
  4952. case $host_os in
  4953. aix*)
  4954. symcode='[BCDT]'
  4955. ;;
  4956. cygwin* | mingw* | pw32* | cegcc*)
  4957. symcode='[ABCDGISTW]'
  4958. ;;
  4959. hpux*)
  4960. if test "$host_cpu" = ia64; then
  4961. symcode='[ABCDEGRST]'
  4962. fi
  4963. ;;
  4964. irix* | nonstopux*)
  4965. symcode='[BCDEGRST]'
  4966. ;;
  4967. osf*)
  4968. symcode='[BCDEGQRST]'
  4969. ;;
  4970. solaris*)
  4971. symcode='[BDRT]'
  4972. ;;
  4973. sco3.2v5*)
  4974. symcode='[DT]'
  4975. ;;
  4976. sysv4.2uw2*)
  4977. symcode='[DT]'
  4978. ;;
  4979. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4980. symcode='[ABDT]'
  4981. ;;
  4982. sysv4)
  4983. symcode='[DFNSTU]'
  4984. ;;
  4985. esac
  4986. # If we're using GNU nm, then use its standard symbol codes.
  4987. case `$NM -V 2>&1` in
  4988. *GNU* | *'with BFD'*)
  4989. symcode='[ABCDGIRSTW]' ;;
  4990. esac
  4991. # Transform an extracted symbol line into a proper C declaration.
  4992. # Some systems (esp. on ia64) link data and code symbols differently,
  4993. # so use this general approach.
  4994. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4995. # Transform an extracted symbol line into symbol name and symbol address
  4996. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4997. 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'"
  4998. # Handle CRLF in mingw tool chain
  4999. opt_cr=
  5000. case $build_os in
  5001. mingw*)
  5002. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5003. ;;
  5004. esac
  5005. # Try without a prefix underscore, then with it.
  5006. for ac_symprfx in "" "_"; do
  5007. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5008. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5009. # Write the raw and C identifiers.
  5010. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5011. # Fake it for dumpbin and say T for any non-static function
  5012. # and D for any global variable.
  5013. # Also find C++ and __fastcall symbols from MSVC++,
  5014. # which start with @ or ?.
  5015. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5016. " {last_section=section; section=\$ 3};"\
  5017. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5018. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5019. " \$ 0!~/External *\|/{next};"\
  5020. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5021. " {if(hide[section]) next};"\
  5022. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5023. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5024. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5025. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5026. " ' prfx=^$ac_symprfx"
  5027. else
  5028. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5029. fi
  5030. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5031. # Check to see that the pipe works correctly.
  5032. pipe_works=no
  5033. rm -f conftest*
  5034. cat > conftest.$ac_ext <<_LT_EOF
  5035. #ifdef __cplusplus
  5036. extern "C" {
  5037. #endif
  5038. char nm_test_var;
  5039. void nm_test_func(void);
  5040. void nm_test_func(void){}
  5041. #ifdef __cplusplus
  5042. }
  5043. #endif
  5044. int main(){nm_test_var='a';nm_test_func();return(0);}
  5045. _LT_EOF
  5046. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5047. (eval $ac_compile) 2>&5
  5048. ac_status=$?
  5049. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5050. test $ac_status = 0; }; then
  5051. # Now try to grab the symbols.
  5052. nlist=conftest.nm
  5053. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5054. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5055. ac_status=$?
  5056. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5057. test $ac_status = 0; } && test -s "$nlist"; then
  5058. # Try sorting and uniquifying the output.
  5059. if sort "$nlist" | uniq > "$nlist"T; then
  5060. mv -f "$nlist"T "$nlist"
  5061. else
  5062. rm -f "$nlist"T
  5063. fi
  5064. # Make sure that we snagged all the symbols we need.
  5065. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5066. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5067. cat <<_LT_EOF > conftest.$ac_ext
  5068. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5069. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5070. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5071. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5072. # define LT_DLSYM_CONST
  5073. #elif defined(__osf__)
  5074. /* This system does not cope well with relocations in const data. */
  5075. # define LT_DLSYM_CONST
  5076. #else
  5077. # define LT_DLSYM_CONST const
  5078. #endif
  5079. #ifdef __cplusplus
  5080. extern "C" {
  5081. #endif
  5082. _LT_EOF
  5083. # Now generate the symbol file.
  5084. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5085. cat <<_LT_EOF >> conftest.$ac_ext
  5086. /* The mapping between symbol names and symbols. */
  5087. LT_DLSYM_CONST struct {
  5088. const char *name;
  5089. void *address;
  5090. }
  5091. lt__PROGRAM__LTX_preloaded_symbols[] =
  5092. {
  5093. { "@PROGRAM@", (void *) 0 },
  5094. _LT_EOF
  5095. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5096. cat <<\_LT_EOF >> conftest.$ac_ext
  5097. {0, (void *) 0}
  5098. };
  5099. /* This works around a problem in FreeBSD linker */
  5100. #ifdef FREEBSD_WORKAROUND
  5101. static const void *lt_preloaded_setup() {
  5102. return lt__PROGRAM__LTX_preloaded_symbols;
  5103. }
  5104. #endif
  5105. #ifdef __cplusplus
  5106. }
  5107. #endif
  5108. _LT_EOF
  5109. # Now try linking the two files.
  5110. mv conftest.$ac_objext conftstm.$ac_objext
  5111. lt_globsym_save_LIBS=$LIBS
  5112. lt_globsym_save_CFLAGS=$CFLAGS
  5113. LIBS="conftstm.$ac_objext"
  5114. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5115. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5116. (eval $ac_link) 2>&5
  5117. ac_status=$?
  5118. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5119. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5120. pipe_works=yes
  5121. fi
  5122. LIBS=$lt_globsym_save_LIBS
  5123. CFLAGS=$lt_globsym_save_CFLAGS
  5124. else
  5125. echo "cannot find nm_test_func in $nlist" >&5
  5126. fi
  5127. else
  5128. echo "cannot find nm_test_var in $nlist" >&5
  5129. fi
  5130. else
  5131. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5132. fi
  5133. else
  5134. echo "$progname: failed program was:" >&5
  5135. cat conftest.$ac_ext >&5
  5136. fi
  5137. rm -rf conftest* conftst*
  5138. # Do not use the global_symbol_pipe unless it works.
  5139. if test "$pipe_works" = yes; then
  5140. break
  5141. else
  5142. lt_cv_sys_global_symbol_pipe=
  5143. fi
  5144. done
  5145. fi
  5146. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5147. lt_cv_sys_global_symbol_to_cdecl=
  5148. fi
  5149. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5151. $as_echo "failed" >&6; }
  5152. else
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5154. $as_echo "ok" >&6; }
  5155. fi
  5156. # Response file support.
  5157. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5158. nm_file_list_spec='@'
  5159. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5160. nm_file_list_spec='@'
  5161. fi
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5163. $as_echo_n "checking for sysroot... " >&6; }
  5164. # Check whether --with-sysroot was given.
  5165. if test "${with_sysroot+set}" = set; then :
  5166. withval=$with_sysroot;
  5167. else
  5168. with_sysroot=no
  5169. fi
  5170. lt_sysroot=
  5171. case ${with_sysroot} in #(
  5172. yes)
  5173. if test "$GCC" = yes; then
  5174. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5175. fi
  5176. ;; #(
  5177. /*)
  5178. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5179. ;; #(
  5180. no|'')
  5181. ;; #(
  5182. *)
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5184. $as_echo "${with_sysroot}" >&6; }
  5185. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5186. ;;
  5187. esac
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5189. $as_echo "${lt_sysroot:-no}" >&6; }
  5190. # Check whether --enable-libtool-lock was given.
  5191. if test "${enable_libtool_lock+set}" = set; then :
  5192. enableval=$enable_libtool_lock;
  5193. fi
  5194. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5195. # Some flags need to be propagated to the compiler or linker for good
  5196. # libtool support.
  5197. case $host in
  5198. ia64-*-hpux*)
  5199. # Find out which ABI we are using.
  5200. echo 'int i;' > conftest.$ac_ext
  5201. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5202. (eval $ac_compile) 2>&5
  5203. ac_status=$?
  5204. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5205. test $ac_status = 0; }; then
  5206. case `/usr/bin/file conftest.$ac_objext` in
  5207. *ELF-32*)
  5208. HPUX_IA64_MODE="32"
  5209. ;;
  5210. *ELF-64*)
  5211. HPUX_IA64_MODE="64"
  5212. ;;
  5213. esac
  5214. fi
  5215. rm -rf conftest*
  5216. ;;
  5217. *-*-irix6*)
  5218. # Find out which ABI we are using.
  5219. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5220. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5221. (eval $ac_compile) 2>&5
  5222. ac_status=$?
  5223. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5224. test $ac_status = 0; }; then
  5225. if test "$lt_cv_prog_gnu_ld" = yes; then
  5226. case `/usr/bin/file conftest.$ac_objext` in
  5227. *32-bit*)
  5228. LD="${LD-ld} -melf32bsmip"
  5229. ;;
  5230. *N32*)
  5231. LD="${LD-ld} -melf32bmipn32"
  5232. ;;
  5233. *64-bit*)
  5234. LD="${LD-ld} -melf64bmip"
  5235. ;;
  5236. esac
  5237. else
  5238. case `/usr/bin/file conftest.$ac_objext` in
  5239. *32-bit*)
  5240. LD="${LD-ld} -32"
  5241. ;;
  5242. *N32*)
  5243. LD="${LD-ld} -n32"
  5244. ;;
  5245. *64-bit*)
  5246. LD="${LD-ld} -64"
  5247. ;;
  5248. esac
  5249. fi
  5250. fi
  5251. rm -rf conftest*
  5252. ;;
  5253. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5254. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5255. # Find out which ABI we are using.
  5256. echo 'int i;' > conftest.$ac_ext
  5257. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5258. (eval $ac_compile) 2>&5
  5259. ac_status=$?
  5260. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5261. test $ac_status = 0; }; then
  5262. case `/usr/bin/file conftest.o` in
  5263. *32-bit*)
  5264. case $host in
  5265. x86_64-*kfreebsd*-gnu)
  5266. LD="${LD-ld} -m elf_i386_fbsd"
  5267. ;;
  5268. x86_64-*linux*)
  5269. LD="${LD-ld} -m elf_i386"
  5270. ;;
  5271. ppc64-*linux*|powerpc64-*linux*)
  5272. LD="${LD-ld} -m elf32ppclinux"
  5273. ;;
  5274. s390x-*linux*)
  5275. LD="${LD-ld} -m elf_s390"
  5276. ;;
  5277. sparc64-*linux*)
  5278. LD="${LD-ld} -m elf32_sparc"
  5279. ;;
  5280. esac
  5281. ;;
  5282. *64-bit*)
  5283. case $host in
  5284. x86_64-*kfreebsd*-gnu)
  5285. LD="${LD-ld} -m elf_x86_64_fbsd"
  5286. ;;
  5287. x86_64-*linux*)
  5288. LD="${LD-ld} -m elf_x86_64"
  5289. ;;
  5290. powerpc64le-*linux*)
  5291. LD="${LD-ld} -m elf64lppc"
  5292. ;;
  5293. powerpc64-*linux*)
  5294. LD="${LD-ld} -m elf64ppc"
  5295. ;;
  5296. s390*-*linux*|s390*-*tpf*)
  5297. LD="${LD-ld} -m elf64_s390"
  5298. ;;
  5299. sparc*-*linux*)
  5300. LD="${LD-ld} -m elf64_sparc"
  5301. ;;
  5302. esac
  5303. ;;
  5304. esac
  5305. fi
  5306. rm -rf conftest*
  5307. ;;
  5308. *-*-sco3.2v5*)
  5309. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5310. SAVE_CFLAGS="$CFLAGS"
  5311. CFLAGS="$CFLAGS -belf"
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5313. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5314. if ${lt_cv_cc_needs_belf+:} false; then :
  5315. $as_echo_n "(cached) " >&6
  5316. else
  5317. ac_ext=c
  5318. ac_cpp='$CPP $CPPFLAGS'
  5319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5323. /* end confdefs.h. */
  5324. int
  5325. main ()
  5326. {
  5327. ;
  5328. return 0;
  5329. }
  5330. _ACEOF
  5331. if ac_fn_c_try_link "$LINENO"; then :
  5332. lt_cv_cc_needs_belf=yes
  5333. else
  5334. lt_cv_cc_needs_belf=no
  5335. fi
  5336. rm -f core conftest.err conftest.$ac_objext \
  5337. conftest$ac_exeext conftest.$ac_ext
  5338. ac_ext=c
  5339. ac_cpp='$CPP $CPPFLAGS'
  5340. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5341. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5342. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5343. fi
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5345. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5346. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5347. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5348. CFLAGS="$SAVE_CFLAGS"
  5349. fi
  5350. ;;
  5351. *-*solaris*)
  5352. # Find out which ABI we are using.
  5353. echo 'int i;' > conftest.$ac_ext
  5354. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5355. (eval $ac_compile) 2>&5
  5356. ac_status=$?
  5357. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5358. test $ac_status = 0; }; then
  5359. case `/usr/bin/file conftest.o` in
  5360. *64-bit*)
  5361. case $lt_cv_prog_gnu_ld in
  5362. yes*)
  5363. case $host in
  5364. i?86-*-solaris*)
  5365. LD="${LD-ld} -m elf_x86_64"
  5366. ;;
  5367. sparc*-*-solaris*)
  5368. LD="${LD-ld} -m elf64_sparc"
  5369. ;;
  5370. esac
  5371. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5372. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5373. LD="${LD-ld}_sol2"
  5374. fi
  5375. ;;
  5376. *)
  5377. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5378. LD="${LD-ld} -64"
  5379. fi
  5380. ;;
  5381. esac
  5382. ;;
  5383. esac
  5384. fi
  5385. rm -rf conftest*
  5386. ;;
  5387. esac
  5388. need_locks="$enable_libtool_lock"
  5389. if test -n "$ac_tool_prefix"; then
  5390. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5391. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5393. $as_echo_n "checking for $ac_word... " >&6; }
  5394. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5395. $as_echo_n "(cached) " >&6
  5396. else
  5397. if test -n "$MANIFEST_TOOL"; then
  5398. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5399. else
  5400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5401. for as_dir in $PATH
  5402. do
  5403. IFS=$as_save_IFS
  5404. test -z "$as_dir" && as_dir=.
  5405. for ac_exec_ext in '' $ac_executable_extensions; do
  5406. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5407. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5409. break 2
  5410. fi
  5411. done
  5412. done
  5413. IFS=$as_save_IFS
  5414. fi
  5415. fi
  5416. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5417. if test -n "$MANIFEST_TOOL"; then
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5419. $as_echo "$MANIFEST_TOOL" >&6; }
  5420. else
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5422. $as_echo "no" >&6; }
  5423. fi
  5424. fi
  5425. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5426. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5427. # Extract the first word of "mt", so it can be a program name with args.
  5428. set dummy mt; ac_word=$2
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5430. $as_echo_n "checking for $ac_word... " >&6; }
  5431. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5432. $as_echo_n "(cached) " >&6
  5433. else
  5434. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5435. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5436. else
  5437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5438. for as_dir in $PATH
  5439. do
  5440. IFS=$as_save_IFS
  5441. test -z "$as_dir" && as_dir=.
  5442. for ac_exec_ext in '' $ac_executable_extensions; do
  5443. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5444. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5446. break 2
  5447. fi
  5448. done
  5449. done
  5450. IFS=$as_save_IFS
  5451. fi
  5452. fi
  5453. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5454. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5456. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5457. else
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5459. $as_echo "no" >&6; }
  5460. fi
  5461. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5462. MANIFEST_TOOL=":"
  5463. else
  5464. case $cross_compiling:$ac_tool_warned in
  5465. yes:)
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5467. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5468. ac_tool_warned=yes ;;
  5469. esac
  5470. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5471. fi
  5472. else
  5473. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5474. fi
  5475. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5477. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5478. if ${lt_cv_path_mainfest_tool+:} false; then :
  5479. $as_echo_n "(cached) " >&6
  5480. else
  5481. lt_cv_path_mainfest_tool=no
  5482. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5483. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5484. cat conftest.err >&5
  5485. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5486. lt_cv_path_mainfest_tool=yes
  5487. fi
  5488. rm -f conftest*
  5489. fi
  5490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5491. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5492. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5493. MANIFEST_TOOL=:
  5494. fi
  5495. case $host_os in
  5496. rhapsody* | darwin*)
  5497. if test -n "$ac_tool_prefix"; then
  5498. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5499. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5501. $as_echo_n "checking for $ac_word... " >&6; }
  5502. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5503. $as_echo_n "(cached) " >&6
  5504. else
  5505. if test -n "$DSYMUTIL"; then
  5506. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5507. else
  5508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5509. for as_dir in $PATH
  5510. do
  5511. IFS=$as_save_IFS
  5512. test -z "$as_dir" && as_dir=.
  5513. for ac_exec_ext in '' $ac_executable_extensions; do
  5514. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5515. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5516. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5517. break 2
  5518. fi
  5519. done
  5520. done
  5521. IFS=$as_save_IFS
  5522. fi
  5523. fi
  5524. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5525. if test -n "$DSYMUTIL"; then
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5527. $as_echo "$DSYMUTIL" >&6; }
  5528. else
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5530. $as_echo "no" >&6; }
  5531. fi
  5532. fi
  5533. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5534. ac_ct_DSYMUTIL=$DSYMUTIL
  5535. # Extract the first word of "dsymutil", so it can be a program name with args.
  5536. set dummy dsymutil; ac_word=$2
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5538. $as_echo_n "checking for $ac_word... " >&6; }
  5539. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5540. $as_echo_n "(cached) " >&6
  5541. else
  5542. if test -n "$ac_ct_DSYMUTIL"; then
  5543. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5544. else
  5545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5546. for as_dir in $PATH
  5547. do
  5548. IFS=$as_save_IFS
  5549. test -z "$as_dir" && as_dir=.
  5550. for ac_exec_ext in '' $ac_executable_extensions; do
  5551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5552. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5554. break 2
  5555. fi
  5556. done
  5557. done
  5558. IFS=$as_save_IFS
  5559. fi
  5560. fi
  5561. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5562. if test -n "$ac_ct_DSYMUTIL"; then
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5564. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5565. else
  5566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5567. $as_echo "no" >&6; }
  5568. fi
  5569. if test "x$ac_ct_DSYMUTIL" = x; then
  5570. DSYMUTIL=":"
  5571. else
  5572. case $cross_compiling:$ac_tool_warned in
  5573. yes:)
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5576. ac_tool_warned=yes ;;
  5577. esac
  5578. DSYMUTIL=$ac_ct_DSYMUTIL
  5579. fi
  5580. else
  5581. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5582. fi
  5583. if test -n "$ac_tool_prefix"; then
  5584. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5585. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5587. $as_echo_n "checking for $ac_word... " >&6; }
  5588. if ${ac_cv_prog_NMEDIT+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. if test -n "$NMEDIT"; then
  5592. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5593. else
  5594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5595. for as_dir in $PATH
  5596. do
  5597. IFS=$as_save_IFS
  5598. test -z "$as_dir" && as_dir=.
  5599. for ac_exec_ext in '' $ac_executable_extensions; do
  5600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5601. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5603. break 2
  5604. fi
  5605. done
  5606. done
  5607. IFS=$as_save_IFS
  5608. fi
  5609. fi
  5610. NMEDIT=$ac_cv_prog_NMEDIT
  5611. if test -n "$NMEDIT"; then
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5613. $as_echo "$NMEDIT" >&6; }
  5614. else
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5616. $as_echo "no" >&6; }
  5617. fi
  5618. fi
  5619. if test -z "$ac_cv_prog_NMEDIT"; then
  5620. ac_ct_NMEDIT=$NMEDIT
  5621. # Extract the first word of "nmedit", so it can be a program name with args.
  5622. set dummy nmedit; ac_word=$2
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5624. $as_echo_n "checking for $ac_word... " >&6; }
  5625. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5626. $as_echo_n "(cached) " >&6
  5627. else
  5628. if test -n "$ac_ct_NMEDIT"; then
  5629. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5630. else
  5631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5632. for as_dir in $PATH
  5633. do
  5634. IFS=$as_save_IFS
  5635. test -z "$as_dir" && as_dir=.
  5636. for ac_exec_ext in '' $ac_executable_extensions; do
  5637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5638. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5640. break 2
  5641. fi
  5642. done
  5643. done
  5644. IFS=$as_save_IFS
  5645. fi
  5646. fi
  5647. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5648. if test -n "$ac_ct_NMEDIT"; then
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5650. $as_echo "$ac_ct_NMEDIT" >&6; }
  5651. else
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5653. $as_echo "no" >&6; }
  5654. fi
  5655. if test "x$ac_ct_NMEDIT" = x; then
  5656. NMEDIT=":"
  5657. else
  5658. case $cross_compiling:$ac_tool_warned in
  5659. yes:)
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5661. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5662. ac_tool_warned=yes ;;
  5663. esac
  5664. NMEDIT=$ac_ct_NMEDIT
  5665. fi
  5666. else
  5667. NMEDIT="$ac_cv_prog_NMEDIT"
  5668. fi
  5669. if test -n "$ac_tool_prefix"; then
  5670. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5671. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5673. $as_echo_n "checking for $ac_word... " >&6; }
  5674. if ${ac_cv_prog_LIPO+:} false; then :
  5675. $as_echo_n "(cached) " >&6
  5676. else
  5677. if test -n "$LIPO"; then
  5678. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5679. else
  5680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5681. for as_dir in $PATH
  5682. do
  5683. IFS=$as_save_IFS
  5684. test -z "$as_dir" && as_dir=.
  5685. for ac_exec_ext in '' $ac_executable_extensions; do
  5686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5687. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5689. break 2
  5690. fi
  5691. done
  5692. done
  5693. IFS=$as_save_IFS
  5694. fi
  5695. fi
  5696. LIPO=$ac_cv_prog_LIPO
  5697. if test -n "$LIPO"; then
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5699. $as_echo "$LIPO" >&6; }
  5700. else
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5702. $as_echo "no" >&6; }
  5703. fi
  5704. fi
  5705. if test -z "$ac_cv_prog_LIPO"; then
  5706. ac_ct_LIPO=$LIPO
  5707. # Extract the first word of "lipo", so it can be a program name with args.
  5708. set dummy lipo; ac_word=$2
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5710. $as_echo_n "checking for $ac_word... " >&6; }
  5711. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5712. $as_echo_n "(cached) " >&6
  5713. else
  5714. if test -n "$ac_ct_LIPO"; then
  5715. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5716. else
  5717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5718. for as_dir in $PATH
  5719. do
  5720. IFS=$as_save_IFS
  5721. test -z "$as_dir" && as_dir=.
  5722. for ac_exec_ext in '' $ac_executable_extensions; do
  5723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5724. ac_cv_prog_ac_ct_LIPO="lipo"
  5725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5726. break 2
  5727. fi
  5728. done
  5729. done
  5730. IFS=$as_save_IFS
  5731. fi
  5732. fi
  5733. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5734. if test -n "$ac_ct_LIPO"; then
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5736. $as_echo "$ac_ct_LIPO" >&6; }
  5737. else
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5739. $as_echo "no" >&6; }
  5740. fi
  5741. if test "x$ac_ct_LIPO" = x; then
  5742. LIPO=":"
  5743. else
  5744. case $cross_compiling:$ac_tool_warned in
  5745. yes:)
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5747. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5748. ac_tool_warned=yes ;;
  5749. esac
  5750. LIPO=$ac_ct_LIPO
  5751. fi
  5752. else
  5753. LIPO="$ac_cv_prog_LIPO"
  5754. fi
  5755. if test -n "$ac_tool_prefix"; then
  5756. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5757. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5759. $as_echo_n "checking for $ac_word... " >&6; }
  5760. if ${ac_cv_prog_OTOOL+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. if test -n "$OTOOL"; then
  5764. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5765. else
  5766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5767. for as_dir in $PATH
  5768. do
  5769. IFS=$as_save_IFS
  5770. test -z "$as_dir" && as_dir=.
  5771. for ac_exec_ext in '' $ac_executable_extensions; do
  5772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5773. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5775. break 2
  5776. fi
  5777. done
  5778. done
  5779. IFS=$as_save_IFS
  5780. fi
  5781. fi
  5782. OTOOL=$ac_cv_prog_OTOOL
  5783. if test -n "$OTOOL"; then
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5785. $as_echo "$OTOOL" >&6; }
  5786. else
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5788. $as_echo "no" >&6; }
  5789. fi
  5790. fi
  5791. if test -z "$ac_cv_prog_OTOOL"; then
  5792. ac_ct_OTOOL=$OTOOL
  5793. # Extract the first word of "otool", so it can be a program name with args.
  5794. set dummy otool; ac_word=$2
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5796. $as_echo_n "checking for $ac_word... " >&6; }
  5797. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. if test -n "$ac_ct_OTOOL"; then
  5801. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5802. else
  5803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5804. for as_dir in $PATH
  5805. do
  5806. IFS=$as_save_IFS
  5807. test -z "$as_dir" && as_dir=.
  5808. for ac_exec_ext in '' $ac_executable_extensions; do
  5809. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5810. ac_cv_prog_ac_ct_OTOOL="otool"
  5811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5812. break 2
  5813. fi
  5814. done
  5815. done
  5816. IFS=$as_save_IFS
  5817. fi
  5818. fi
  5819. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5820. if test -n "$ac_ct_OTOOL"; then
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5822. $as_echo "$ac_ct_OTOOL" >&6; }
  5823. else
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5825. $as_echo "no" >&6; }
  5826. fi
  5827. if test "x$ac_ct_OTOOL" = x; then
  5828. OTOOL=":"
  5829. else
  5830. case $cross_compiling:$ac_tool_warned in
  5831. yes:)
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5833. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5834. ac_tool_warned=yes ;;
  5835. esac
  5836. OTOOL=$ac_ct_OTOOL
  5837. fi
  5838. else
  5839. OTOOL="$ac_cv_prog_OTOOL"
  5840. fi
  5841. if test -n "$ac_tool_prefix"; then
  5842. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5843. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5845. $as_echo_n "checking for $ac_word... " >&6; }
  5846. if ${ac_cv_prog_OTOOL64+:} false; then :
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. if test -n "$OTOOL64"; then
  5850. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5851. else
  5852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5853. for as_dir in $PATH
  5854. do
  5855. IFS=$as_save_IFS
  5856. test -z "$as_dir" && as_dir=.
  5857. for ac_exec_ext in '' $ac_executable_extensions; do
  5858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5859. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5861. break 2
  5862. fi
  5863. done
  5864. done
  5865. IFS=$as_save_IFS
  5866. fi
  5867. fi
  5868. OTOOL64=$ac_cv_prog_OTOOL64
  5869. if test -n "$OTOOL64"; then
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5871. $as_echo "$OTOOL64" >&6; }
  5872. else
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5874. $as_echo "no" >&6; }
  5875. fi
  5876. fi
  5877. if test -z "$ac_cv_prog_OTOOL64"; then
  5878. ac_ct_OTOOL64=$OTOOL64
  5879. # Extract the first word of "otool64", so it can be a program name with args.
  5880. set dummy otool64; ac_word=$2
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5882. $as_echo_n "checking for $ac_word... " >&6; }
  5883. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5884. $as_echo_n "(cached) " >&6
  5885. else
  5886. if test -n "$ac_ct_OTOOL64"; then
  5887. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5888. else
  5889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5890. for as_dir in $PATH
  5891. do
  5892. IFS=$as_save_IFS
  5893. test -z "$as_dir" && as_dir=.
  5894. for ac_exec_ext in '' $ac_executable_extensions; do
  5895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5896. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5898. break 2
  5899. fi
  5900. done
  5901. done
  5902. IFS=$as_save_IFS
  5903. fi
  5904. fi
  5905. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5906. if test -n "$ac_ct_OTOOL64"; then
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5908. $as_echo "$ac_ct_OTOOL64" >&6; }
  5909. else
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5911. $as_echo "no" >&6; }
  5912. fi
  5913. if test "x$ac_ct_OTOOL64" = x; then
  5914. OTOOL64=":"
  5915. else
  5916. case $cross_compiling:$ac_tool_warned in
  5917. yes:)
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5920. ac_tool_warned=yes ;;
  5921. esac
  5922. OTOOL64=$ac_ct_OTOOL64
  5923. fi
  5924. else
  5925. OTOOL64="$ac_cv_prog_OTOOL64"
  5926. fi
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5928. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5929. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5930. $as_echo_n "(cached) " >&6
  5931. else
  5932. lt_cv_apple_cc_single_mod=no
  5933. if test -z "${LT_MULTI_MODULE}"; then
  5934. # By default we will add the -single_module flag. You can override
  5935. # by either setting the environment variable LT_MULTI_MODULE
  5936. # non-empty at configure time, or by adding -multi_module to the
  5937. # link flags.
  5938. rm -rf libconftest.dylib*
  5939. echo "int foo(void){return 1;}" > conftest.c
  5940. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5941. -dynamiclib -Wl,-single_module conftest.c" >&5
  5942. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5943. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5944. _lt_result=$?
  5945. # If there is a non-empty error log, and "single_module"
  5946. # appears in it, assume the flag caused a linker warning
  5947. if test -s conftest.err && $GREP single_module conftest.err; then
  5948. cat conftest.err >&5
  5949. # Otherwise, if the output was created with a 0 exit code from
  5950. # the compiler, it worked.
  5951. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5952. lt_cv_apple_cc_single_mod=yes
  5953. else
  5954. cat conftest.err >&5
  5955. fi
  5956. rm -rf libconftest.dylib*
  5957. rm -f conftest.*
  5958. fi
  5959. fi
  5960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5961. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5963. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5964. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5965. $as_echo_n "(cached) " >&6
  5966. else
  5967. lt_cv_ld_exported_symbols_list=no
  5968. save_LDFLAGS=$LDFLAGS
  5969. echo "_main" > conftest.sym
  5970. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5972. /* end confdefs.h. */
  5973. int
  5974. main ()
  5975. {
  5976. ;
  5977. return 0;
  5978. }
  5979. _ACEOF
  5980. if ac_fn_c_try_link "$LINENO"; then :
  5981. lt_cv_ld_exported_symbols_list=yes
  5982. else
  5983. lt_cv_ld_exported_symbols_list=no
  5984. fi
  5985. rm -f core conftest.err conftest.$ac_objext \
  5986. conftest$ac_exeext conftest.$ac_ext
  5987. LDFLAGS="$save_LDFLAGS"
  5988. fi
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5990. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5992. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5993. if ${lt_cv_ld_force_load+:} false; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. lt_cv_ld_force_load=no
  5997. cat > conftest.c << _LT_EOF
  5998. int forced_loaded() { return 2;}
  5999. _LT_EOF
  6000. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6001. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6002. echo "$AR cru libconftest.a conftest.o" >&5
  6003. $AR cru libconftest.a conftest.o 2>&5
  6004. echo "$RANLIB libconftest.a" >&5
  6005. $RANLIB libconftest.a 2>&5
  6006. cat > conftest.c << _LT_EOF
  6007. int main() { return 0;}
  6008. _LT_EOF
  6009. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6010. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6011. _lt_result=$?
  6012. if test -s conftest.err && $GREP force_load conftest.err; then
  6013. cat conftest.err >&5
  6014. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6015. lt_cv_ld_force_load=yes
  6016. else
  6017. cat conftest.err >&5
  6018. fi
  6019. rm -f conftest.err libconftest.a conftest conftest.c
  6020. rm -rf conftest.dSYM
  6021. fi
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6023. $as_echo "$lt_cv_ld_force_load" >&6; }
  6024. case $host_os in
  6025. rhapsody* | darwin1.[012])
  6026. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6027. darwin1.*)
  6028. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6029. darwin*) # darwin 5.x on
  6030. # if running on 10.5 or later, the deployment target defaults
  6031. # to the OS version, if on x86, and 10.4, the deployment
  6032. # target defaults to 10.4. Don't you love it?
  6033. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6034. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6035. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6036. 10.[012]*)
  6037. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6038. 10.*)
  6039. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6040. esac
  6041. ;;
  6042. esac
  6043. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6044. _lt_dar_single_mod='$single_module'
  6045. fi
  6046. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6047. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6048. else
  6049. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6050. fi
  6051. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6052. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6053. else
  6054. _lt_dsymutil=
  6055. fi
  6056. ;;
  6057. esac
  6058. ac_ext=c
  6059. ac_cpp='$CPP $CPPFLAGS'
  6060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6064. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6065. # On Suns, sometimes $CPP names a directory.
  6066. if test -n "$CPP" && test -d "$CPP"; then
  6067. CPP=
  6068. fi
  6069. if test -z "$CPP"; then
  6070. if ${ac_cv_prog_CPP+:} false; then :
  6071. $as_echo_n "(cached) " >&6
  6072. else
  6073. # Double quotes because CPP needs to be expanded
  6074. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6075. do
  6076. ac_preproc_ok=false
  6077. for ac_c_preproc_warn_flag in '' yes
  6078. do
  6079. # Use a header file that comes with gcc, so configuring glibc
  6080. # with a fresh cross-compiler works.
  6081. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6082. # <limits.h> exists even on freestanding compilers.
  6083. # On the NeXT, cc -E runs the code through the compiler's parser,
  6084. # not just through cpp. "Syntax error" is here to catch this case.
  6085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6086. /* end confdefs.h. */
  6087. #ifdef __STDC__
  6088. # include <limits.h>
  6089. #else
  6090. # include <assert.h>
  6091. #endif
  6092. Syntax error
  6093. _ACEOF
  6094. if ac_fn_c_try_cpp "$LINENO"; then :
  6095. else
  6096. # Broken: fails on valid input.
  6097. continue
  6098. fi
  6099. rm -f conftest.err conftest.i conftest.$ac_ext
  6100. # OK, works on sane cases. Now check whether nonexistent headers
  6101. # can be detected and how.
  6102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6103. /* end confdefs.h. */
  6104. #include <ac_nonexistent.h>
  6105. _ACEOF
  6106. if ac_fn_c_try_cpp "$LINENO"; then :
  6107. # Broken: success on invalid input.
  6108. continue
  6109. else
  6110. # Passes both tests.
  6111. ac_preproc_ok=:
  6112. break
  6113. fi
  6114. rm -f conftest.err conftest.i conftest.$ac_ext
  6115. done
  6116. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6117. rm -f conftest.i conftest.err conftest.$ac_ext
  6118. if $ac_preproc_ok; then :
  6119. break
  6120. fi
  6121. done
  6122. ac_cv_prog_CPP=$CPP
  6123. fi
  6124. CPP=$ac_cv_prog_CPP
  6125. else
  6126. ac_cv_prog_CPP=$CPP
  6127. fi
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6129. $as_echo "$CPP" >&6; }
  6130. ac_preproc_ok=false
  6131. for ac_c_preproc_warn_flag in '' yes
  6132. do
  6133. # Use a header file that comes with gcc, so configuring glibc
  6134. # with a fresh cross-compiler works.
  6135. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6136. # <limits.h> exists even on freestanding compilers.
  6137. # On the NeXT, cc -E runs the code through the compiler's parser,
  6138. # not just through cpp. "Syntax error" is here to catch this case.
  6139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6140. /* end confdefs.h. */
  6141. #ifdef __STDC__
  6142. # include <limits.h>
  6143. #else
  6144. # include <assert.h>
  6145. #endif
  6146. Syntax error
  6147. _ACEOF
  6148. if ac_fn_c_try_cpp "$LINENO"; then :
  6149. else
  6150. # Broken: fails on valid input.
  6151. continue
  6152. fi
  6153. rm -f conftest.err conftest.i conftest.$ac_ext
  6154. # OK, works on sane cases. Now check whether nonexistent headers
  6155. # can be detected and how.
  6156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6157. /* end confdefs.h. */
  6158. #include <ac_nonexistent.h>
  6159. _ACEOF
  6160. if ac_fn_c_try_cpp "$LINENO"; then :
  6161. # Broken: success on invalid input.
  6162. continue
  6163. else
  6164. # Passes both tests.
  6165. ac_preproc_ok=:
  6166. break
  6167. fi
  6168. rm -f conftest.err conftest.i conftest.$ac_ext
  6169. done
  6170. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6171. rm -f conftest.i conftest.err conftest.$ac_ext
  6172. if $ac_preproc_ok; then :
  6173. else
  6174. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6175. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6176. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6177. See \`config.log' for more details" "$LINENO" 5; }
  6178. fi
  6179. ac_ext=c
  6180. ac_cpp='$CPP $CPPFLAGS'
  6181. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6182. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6183. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6185. $as_echo_n "checking for ANSI C header files... " >&6; }
  6186. if ${ac_cv_header_stdc+:} false; then :
  6187. $as_echo_n "(cached) " >&6
  6188. else
  6189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h. */
  6191. #include <stdlib.h>
  6192. #include <stdarg.h>
  6193. #include <string.h>
  6194. #include <float.h>
  6195. int
  6196. main ()
  6197. {
  6198. ;
  6199. return 0;
  6200. }
  6201. _ACEOF
  6202. if ac_fn_c_try_compile "$LINENO"; then :
  6203. ac_cv_header_stdc=yes
  6204. else
  6205. ac_cv_header_stdc=no
  6206. fi
  6207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6208. if test $ac_cv_header_stdc = yes; then
  6209. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6211. /* end confdefs.h. */
  6212. #include <string.h>
  6213. _ACEOF
  6214. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6215. $EGREP "memchr" >/dev/null 2>&1; then :
  6216. else
  6217. ac_cv_header_stdc=no
  6218. fi
  6219. rm -f conftest*
  6220. fi
  6221. if test $ac_cv_header_stdc = yes; then
  6222. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6224. /* end confdefs.h. */
  6225. #include <stdlib.h>
  6226. _ACEOF
  6227. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6228. $EGREP "free" >/dev/null 2>&1; then :
  6229. else
  6230. ac_cv_header_stdc=no
  6231. fi
  6232. rm -f conftest*
  6233. fi
  6234. if test $ac_cv_header_stdc = yes; then
  6235. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6236. if test "$cross_compiling" = yes; then :
  6237. :
  6238. else
  6239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6240. /* end confdefs.h. */
  6241. #include <ctype.h>
  6242. #include <stdlib.h>
  6243. #if ((' ' & 0x0FF) == 0x020)
  6244. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6245. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6246. #else
  6247. # define ISLOWER(c) \
  6248. (('a' <= (c) && (c) <= 'i') \
  6249. || ('j' <= (c) && (c) <= 'r') \
  6250. || ('s' <= (c) && (c) <= 'z'))
  6251. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6252. #endif
  6253. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6254. int
  6255. main ()
  6256. {
  6257. int i;
  6258. for (i = 0; i < 256; i++)
  6259. if (XOR (islower (i), ISLOWER (i))
  6260. || toupper (i) != TOUPPER (i))
  6261. return 2;
  6262. return 0;
  6263. }
  6264. _ACEOF
  6265. if ac_fn_c_try_run "$LINENO"; then :
  6266. else
  6267. ac_cv_header_stdc=no
  6268. fi
  6269. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6270. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6271. fi
  6272. fi
  6273. fi
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6275. $as_echo "$ac_cv_header_stdc" >&6; }
  6276. if test $ac_cv_header_stdc = yes; then
  6277. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6278. fi
  6279. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6280. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6281. inttypes.h stdint.h unistd.h
  6282. do :
  6283. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6284. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6285. "
  6286. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6287. cat >>confdefs.h <<_ACEOF
  6288. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6289. _ACEOF
  6290. fi
  6291. done
  6292. for ac_header in dlfcn.h
  6293. do :
  6294. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6295. "
  6296. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6297. cat >>confdefs.h <<_ACEOF
  6298. #define HAVE_DLFCN_H 1
  6299. _ACEOF
  6300. fi
  6301. done
  6302. # Set options
  6303. enable_win32_dll=yes
  6304. case $host in
  6305. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6306. if test -n "$ac_tool_prefix"; then
  6307. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6308. set dummy ${ac_tool_prefix}as; ac_word=$2
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6310. $as_echo_n "checking for $ac_word... " >&6; }
  6311. if ${ac_cv_prog_AS+:} false; then :
  6312. $as_echo_n "(cached) " >&6
  6313. else
  6314. if test -n "$AS"; then
  6315. ac_cv_prog_AS="$AS" # Let the user override the test.
  6316. else
  6317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6318. for as_dir in $PATH
  6319. do
  6320. IFS=$as_save_IFS
  6321. test -z "$as_dir" && as_dir=.
  6322. for ac_exec_ext in '' $ac_executable_extensions; do
  6323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6324. ac_cv_prog_AS="${ac_tool_prefix}as"
  6325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6326. break 2
  6327. fi
  6328. done
  6329. done
  6330. IFS=$as_save_IFS
  6331. fi
  6332. fi
  6333. AS=$ac_cv_prog_AS
  6334. if test -n "$AS"; then
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6336. $as_echo "$AS" >&6; }
  6337. else
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6339. $as_echo "no" >&6; }
  6340. fi
  6341. fi
  6342. if test -z "$ac_cv_prog_AS"; then
  6343. ac_ct_AS=$AS
  6344. # Extract the first word of "as", so it can be a program name with args.
  6345. set dummy as; ac_word=$2
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6347. $as_echo_n "checking for $ac_word... " >&6; }
  6348. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6349. $as_echo_n "(cached) " >&6
  6350. else
  6351. if test -n "$ac_ct_AS"; then
  6352. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6353. else
  6354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6355. for as_dir in $PATH
  6356. do
  6357. IFS=$as_save_IFS
  6358. test -z "$as_dir" && as_dir=.
  6359. for ac_exec_ext in '' $ac_executable_extensions; do
  6360. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6361. ac_cv_prog_ac_ct_AS="as"
  6362. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6363. break 2
  6364. fi
  6365. done
  6366. done
  6367. IFS=$as_save_IFS
  6368. fi
  6369. fi
  6370. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6371. if test -n "$ac_ct_AS"; then
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6373. $as_echo "$ac_ct_AS" >&6; }
  6374. else
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6376. $as_echo "no" >&6; }
  6377. fi
  6378. if test "x$ac_ct_AS" = x; then
  6379. AS="false"
  6380. else
  6381. case $cross_compiling:$ac_tool_warned in
  6382. yes:)
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6384. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6385. ac_tool_warned=yes ;;
  6386. esac
  6387. AS=$ac_ct_AS
  6388. fi
  6389. else
  6390. AS="$ac_cv_prog_AS"
  6391. fi
  6392. if test -n "$ac_tool_prefix"; then
  6393. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6394. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6396. $as_echo_n "checking for $ac_word... " >&6; }
  6397. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6398. $as_echo_n "(cached) " >&6
  6399. else
  6400. if test -n "$DLLTOOL"; then
  6401. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6402. else
  6403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6404. for as_dir in $PATH
  6405. do
  6406. IFS=$as_save_IFS
  6407. test -z "$as_dir" && as_dir=.
  6408. for ac_exec_ext in '' $ac_executable_extensions; do
  6409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6410. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6412. break 2
  6413. fi
  6414. done
  6415. done
  6416. IFS=$as_save_IFS
  6417. fi
  6418. fi
  6419. DLLTOOL=$ac_cv_prog_DLLTOOL
  6420. if test -n "$DLLTOOL"; then
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6422. $as_echo "$DLLTOOL" >&6; }
  6423. else
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6425. $as_echo "no" >&6; }
  6426. fi
  6427. fi
  6428. if test -z "$ac_cv_prog_DLLTOOL"; then
  6429. ac_ct_DLLTOOL=$DLLTOOL
  6430. # Extract the first word of "dlltool", so it can be a program name with args.
  6431. set dummy dlltool; ac_word=$2
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6433. $as_echo_n "checking for $ac_word... " >&6; }
  6434. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6435. $as_echo_n "(cached) " >&6
  6436. else
  6437. if test -n "$ac_ct_DLLTOOL"; then
  6438. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6439. else
  6440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6441. for as_dir in $PATH
  6442. do
  6443. IFS=$as_save_IFS
  6444. test -z "$as_dir" && as_dir=.
  6445. for ac_exec_ext in '' $ac_executable_extensions; do
  6446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6447. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6449. break 2
  6450. fi
  6451. done
  6452. done
  6453. IFS=$as_save_IFS
  6454. fi
  6455. fi
  6456. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6457. if test -n "$ac_ct_DLLTOOL"; then
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6459. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6460. else
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6462. $as_echo "no" >&6; }
  6463. fi
  6464. if test "x$ac_ct_DLLTOOL" = x; then
  6465. DLLTOOL="false"
  6466. else
  6467. case $cross_compiling:$ac_tool_warned in
  6468. yes:)
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6470. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6471. ac_tool_warned=yes ;;
  6472. esac
  6473. DLLTOOL=$ac_ct_DLLTOOL
  6474. fi
  6475. else
  6476. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6477. fi
  6478. if test -n "$ac_tool_prefix"; then
  6479. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6480. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6482. $as_echo_n "checking for $ac_word... " >&6; }
  6483. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6484. $as_echo_n "(cached) " >&6
  6485. else
  6486. if test -n "$OBJDUMP"; then
  6487. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6488. else
  6489. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6490. for as_dir in $PATH
  6491. do
  6492. IFS=$as_save_IFS
  6493. test -z "$as_dir" && as_dir=.
  6494. for ac_exec_ext in '' $ac_executable_extensions; do
  6495. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6496. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6497. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6498. break 2
  6499. fi
  6500. done
  6501. done
  6502. IFS=$as_save_IFS
  6503. fi
  6504. fi
  6505. OBJDUMP=$ac_cv_prog_OBJDUMP
  6506. if test -n "$OBJDUMP"; then
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6508. $as_echo "$OBJDUMP" >&6; }
  6509. else
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6511. $as_echo "no" >&6; }
  6512. fi
  6513. fi
  6514. if test -z "$ac_cv_prog_OBJDUMP"; then
  6515. ac_ct_OBJDUMP=$OBJDUMP
  6516. # Extract the first word of "objdump", so it can be a program name with args.
  6517. set dummy objdump; ac_word=$2
  6518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6519. $as_echo_n "checking for $ac_word... " >&6; }
  6520. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6521. $as_echo_n "(cached) " >&6
  6522. else
  6523. if test -n "$ac_ct_OBJDUMP"; then
  6524. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6525. else
  6526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6527. for as_dir in $PATH
  6528. do
  6529. IFS=$as_save_IFS
  6530. test -z "$as_dir" && as_dir=.
  6531. for ac_exec_ext in '' $ac_executable_extensions; do
  6532. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6533. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6535. break 2
  6536. fi
  6537. done
  6538. done
  6539. IFS=$as_save_IFS
  6540. fi
  6541. fi
  6542. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6543. if test -n "$ac_ct_OBJDUMP"; then
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6545. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6546. else
  6547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6548. $as_echo "no" >&6; }
  6549. fi
  6550. if test "x$ac_ct_OBJDUMP" = x; then
  6551. OBJDUMP="false"
  6552. else
  6553. case $cross_compiling:$ac_tool_warned in
  6554. yes:)
  6555. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6556. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6557. ac_tool_warned=yes ;;
  6558. esac
  6559. OBJDUMP=$ac_ct_OBJDUMP
  6560. fi
  6561. else
  6562. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6563. fi
  6564. ;;
  6565. esac
  6566. test -z "$AS" && AS=as
  6567. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6568. test -z "$OBJDUMP" && OBJDUMP=objdump
  6569. enable_dlopen=no
  6570. # Check whether --enable-shared was given.
  6571. if test "${enable_shared+set}" = set; then :
  6572. enableval=$enable_shared; p=${PACKAGE-default}
  6573. case $enableval in
  6574. yes) enable_shared=yes ;;
  6575. no) enable_shared=no ;;
  6576. *)
  6577. enable_shared=no
  6578. # Look at the argument we got. We use all the common list separators.
  6579. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6580. for pkg in $enableval; do
  6581. IFS="$lt_save_ifs"
  6582. if test "X$pkg" = "X$p"; then
  6583. enable_shared=yes
  6584. fi
  6585. done
  6586. IFS="$lt_save_ifs"
  6587. ;;
  6588. esac
  6589. else
  6590. enable_shared=yes
  6591. fi
  6592. # Check whether --enable-static was given.
  6593. if test "${enable_static+set}" = set; then :
  6594. enableval=$enable_static; p=${PACKAGE-default}
  6595. case $enableval in
  6596. yes) enable_static=yes ;;
  6597. no) enable_static=no ;;
  6598. *)
  6599. enable_static=no
  6600. # Look at the argument we got. We use all the common list separators.
  6601. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6602. for pkg in $enableval; do
  6603. IFS="$lt_save_ifs"
  6604. if test "X$pkg" = "X$p"; then
  6605. enable_static=yes
  6606. fi
  6607. done
  6608. IFS="$lt_save_ifs"
  6609. ;;
  6610. esac
  6611. else
  6612. enable_static=yes
  6613. fi
  6614. # Check whether --with-pic was given.
  6615. if test "${with_pic+set}" = set; then :
  6616. withval=$with_pic; lt_p=${PACKAGE-default}
  6617. case $withval in
  6618. yes|no) pic_mode=$withval ;;
  6619. *)
  6620. pic_mode=default
  6621. # Look at the argument we got. We use all the common list separators.
  6622. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6623. for lt_pkg in $withval; do
  6624. IFS="$lt_save_ifs"
  6625. if test "X$lt_pkg" = "X$lt_p"; then
  6626. pic_mode=yes
  6627. fi
  6628. done
  6629. IFS="$lt_save_ifs"
  6630. ;;
  6631. esac
  6632. else
  6633. pic_mode=default
  6634. fi
  6635. test -z "$pic_mode" && pic_mode=default
  6636. # Check whether --enable-fast-install was given.
  6637. if test "${enable_fast_install+set}" = set; then :
  6638. enableval=$enable_fast_install; p=${PACKAGE-default}
  6639. case $enableval in
  6640. yes) enable_fast_install=yes ;;
  6641. no) enable_fast_install=no ;;
  6642. *)
  6643. enable_fast_install=no
  6644. # Look at the argument we got. We use all the common list separators.
  6645. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6646. for pkg in $enableval; do
  6647. IFS="$lt_save_ifs"
  6648. if test "X$pkg" = "X$p"; then
  6649. enable_fast_install=yes
  6650. fi
  6651. done
  6652. IFS="$lt_save_ifs"
  6653. ;;
  6654. esac
  6655. else
  6656. enable_fast_install=yes
  6657. fi
  6658. # This can be used to rebuild libtool when needed
  6659. LIBTOOL_DEPS="$ltmain"
  6660. # Always use our own libtool.
  6661. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6662. test -z "$LN_S" && LN_S="ln -s"
  6663. if test -n "${ZSH_VERSION+set}" ; then
  6664. setopt NO_GLOB_SUBST
  6665. fi
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6667. $as_echo_n "checking for objdir... " >&6; }
  6668. if ${lt_cv_objdir+:} false; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. rm -f .libs 2>/dev/null
  6672. mkdir .libs 2>/dev/null
  6673. if test -d .libs; then
  6674. lt_cv_objdir=.libs
  6675. else
  6676. # MS-DOS does not allow filenames that begin with a dot.
  6677. lt_cv_objdir=_libs
  6678. fi
  6679. rmdir .libs 2>/dev/null
  6680. fi
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6682. $as_echo "$lt_cv_objdir" >&6; }
  6683. objdir=$lt_cv_objdir
  6684. cat >>confdefs.h <<_ACEOF
  6685. #define LT_OBJDIR "$lt_cv_objdir/"
  6686. _ACEOF
  6687. case $host_os in
  6688. aix3*)
  6689. # AIX sometimes has problems with the GCC collect2 program. For some
  6690. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6691. # vanish in a puff of smoke.
  6692. if test "X${COLLECT_NAMES+set}" != Xset; then
  6693. COLLECT_NAMES=
  6694. export COLLECT_NAMES
  6695. fi
  6696. ;;
  6697. esac
  6698. # Global variables:
  6699. ofile=libtool
  6700. can_build_shared=yes
  6701. # All known linkers require a `.a' archive for static linking (except MSVC,
  6702. # which needs '.lib').
  6703. libext=a
  6704. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6705. old_CC="$CC"
  6706. old_CFLAGS="$CFLAGS"
  6707. # Set sane defaults for various variables
  6708. test -z "$CC" && CC=cc
  6709. test -z "$LTCC" && LTCC=$CC
  6710. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6711. test -z "$LD" && LD=ld
  6712. test -z "$ac_objext" && ac_objext=o
  6713. for cc_temp in $compiler""; do
  6714. case $cc_temp in
  6715. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6716. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6717. \-*) ;;
  6718. *) break;;
  6719. esac
  6720. done
  6721. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6722. # Only perform the check for file, if the check method requires it
  6723. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6724. case $deplibs_check_method in
  6725. file_magic*)
  6726. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6728. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6729. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6730. $as_echo_n "(cached) " >&6
  6731. else
  6732. case $MAGIC_CMD in
  6733. [\\/*] | ?:[\\/]*)
  6734. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6735. ;;
  6736. *)
  6737. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6738. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6739. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6740. for ac_dir in $ac_dummy; do
  6741. IFS="$lt_save_ifs"
  6742. test -z "$ac_dir" && ac_dir=.
  6743. if test -f $ac_dir/${ac_tool_prefix}file; then
  6744. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6745. if test -n "$file_magic_test_file"; then
  6746. case $deplibs_check_method in
  6747. "file_magic "*)
  6748. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6749. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6750. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6751. $EGREP "$file_magic_regex" > /dev/null; then
  6752. :
  6753. else
  6754. cat <<_LT_EOF 1>&2
  6755. *** Warning: the command libtool uses to detect shared libraries,
  6756. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6757. *** The result is that libtool may fail to recognize shared libraries
  6758. *** as such. This will affect the creation of libtool libraries that
  6759. *** depend on shared libraries, but programs linked with such libtool
  6760. *** libraries will work regardless of this problem. Nevertheless, you
  6761. *** may want to report the problem to your system manager and/or to
  6762. *** bug-libtool@gnu.org
  6763. _LT_EOF
  6764. fi ;;
  6765. esac
  6766. fi
  6767. break
  6768. fi
  6769. done
  6770. IFS="$lt_save_ifs"
  6771. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6772. ;;
  6773. esac
  6774. fi
  6775. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6776. if test -n "$MAGIC_CMD"; then
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6778. $as_echo "$MAGIC_CMD" >&6; }
  6779. else
  6780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6781. $as_echo "no" >&6; }
  6782. fi
  6783. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6784. if test -n "$ac_tool_prefix"; then
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6786. $as_echo_n "checking for file... " >&6; }
  6787. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. case $MAGIC_CMD in
  6791. [\\/*] | ?:[\\/]*)
  6792. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6793. ;;
  6794. *)
  6795. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6796. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6797. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6798. for ac_dir in $ac_dummy; do
  6799. IFS="$lt_save_ifs"
  6800. test -z "$ac_dir" && ac_dir=.
  6801. if test -f $ac_dir/file; then
  6802. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6803. if test -n "$file_magic_test_file"; then
  6804. case $deplibs_check_method in
  6805. "file_magic "*)
  6806. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6807. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6808. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6809. $EGREP "$file_magic_regex" > /dev/null; then
  6810. :
  6811. else
  6812. cat <<_LT_EOF 1>&2
  6813. *** Warning: the command libtool uses to detect shared libraries,
  6814. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6815. *** The result is that libtool may fail to recognize shared libraries
  6816. *** as such. This will affect the creation of libtool libraries that
  6817. *** depend on shared libraries, but programs linked with such libtool
  6818. *** libraries will work regardless of this problem. Nevertheless, you
  6819. *** may want to report the problem to your system manager and/or to
  6820. *** bug-libtool@gnu.org
  6821. _LT_EOF
  6822. fi ;;
  6823. esac
  6824. fi
  6825. break
  6826. fi
  6827. done
  6828. IFS="$lt_save_ifs"
  6829. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6830. ;;
  6831. esac
  6832. fi
  6833. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6834. if test -n "$MAGIC_CMD"; then
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6836. $as_echo "$MAGIC_CMD" >&6; }
  6837. else
  6838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6839. $as_echo "no" >&6; }
  6840. fi
  6841. else
  6842. MAGIC_CMD=:
  6843. fi
  6844. fi
  6845. fi
  6846. ;;
  6847. esac
  6848. # Use C for the default configuration in the libtool script
  6849. lt_save_CC="$CC"
  6850. ac_ext=c
  6851. ac_cpp='$CPP $CPPFLAGS'
  6852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6855. # Source file extension for C test sources.
  6856. ac_ext=c
  6857. # Object file extension for compiled C test sources.
  6858. objext=o
  6859. objext=$objext
  6860. # Code to be used in simple compile tests
  6861. lt_simple_compile_test_code="int some_variable = 0;"
  6862. # Code to be used in simple link tests
  6863. lt_simple_link_test_code='int main(){return(0);}'
  6864. # If no C compiler was specified, use CC.
  6865. LTCC=${LTCC-"$CC"}
  6866. # If no C compiler flags were specified, use CFLAGS.
  6867. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6868. # Allow CC to be a program name with arguments.
  6869. compiler=$CC
  6870. # Save the default compiler, since it gets overwritten when the other
  6871. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6872. compiler_DEFAULT=$CC
  6873. # save warnings/boilerplate of simple test code
  6874. ac_outfile=conftest.$ac_objext
  6875. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6876. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6877. _lt_compiler_boilerplate=`cat conftest.err`
  6878. $RM conftest*
  6879. ac_outfile=conftest.$ac_objext
  6880. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6881. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6882. _lt_linker_boilerplate=`cat conftest.err`
  6883. $RM -r conftest*
  6884. ## CAVEAT EMPTOR:
  6885. ## There is no encapsulation within the following macros, do not change
  6886. ## the running order or otherwise move them around unless you know exactly
  6887. ## what you are doing...
  6888. if test -n "$compiler"; then
  6889. lt_prog_compiler_no_builtin_flag=
  6890. if test "$GCC" = yes; then
  6891. case $cc_basename in
  6892. nvcc*)
  6893. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6894. *)
  6895. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6896. esac
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6898. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6899. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6900. $as_echo_n "(cached) " >&6
  6901. else
  6902. lt_cv_prog_compiler_rtti_exceptions=no
  6903. ac_outfile=conftest.$ac_objext
  6904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6905. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6906. # Insert the option either (1) after the last *FLAGS variable, or
  6907. # (2) before a word containing "conftest.", or (3) at the end.
  6908. # Note that $ac_compile itself does not contain backslashes and begins
  6909. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6910. # The option is referenced via a variable to avoid confusing sed.
  6911. lt_compile=`echo "$ac_compile" | $SED \
  6912. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6913. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6914. -e 's:$: $lt_compiler_flag:'`
  6915. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6916. (eval "$lt_compile" 2>conftest.err)
  6917. ac_status=$?
  6918. cat conftest.err >&5
  6919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6920. if (exit $ac_status) && test -s "$ac_outfile"; then
  6921. # The compiler can only warn and ignore the option if not recognized
  6922. # So say no if there are warnings other than the usual output.
  6923. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6924. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6925. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6926. lt_cv_prog_compiler_rtti_exceptions=yes
  6927. fi
  6928. fi
  6929. $RM conftest*
  6930. fi
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6932. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6933. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6934. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6935. else
  6936. :
  6937. fi
  6938. fi
  6939. lt_prog_compiler_wl=
  6940. lt_prog_compiler_pic=
  6941. lt_prog_compiler_static=
  6942. if test "$GCC" = yes; then
  6943. lt_prog_compiler_wl='-Wl,'
  6944. lt_prog_compiler_static='-static'
  6945. case $host_os in
  6946. aix*)
  6947. # All AIX code is PIC.
  6948. if test "$host_cpu" = ia64; then
  6949. # AIX 5 now supports IA64 processor
  6950. lt_prog_compiler_static='-Bstatic'
  6951. fi
  6952. ;;
  6953. amigaos*)
  6954. case $host_cpu in
  6955. powerpc)
  6956. # see comment about AmigaOS4 .so support
  6957. lt_prog_compiler_pic='-fPIC'
  6958. ;;
  6959. m68k)
  6960. # FIXME: we need at least 68020 code to build shared libraries, but
  6961. # adding the `-m68020' flag to GCC prevents building anything better,
  6962. # like `-m68040'.
  6963. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6964. ;;
  6965. esac
  6966. ;;
  6967. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6968. # PIC is the default for these OSes.
  6969. ;;
  6970. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6971. # This hack is so that the source file can tell whether it is being
  6972. # built for inclusion in a dll (and should export symbols for example).
  6973. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6974. # (--disable-auto-import) libraries
  6975. lt_prog_compiler_pic='-DDLL_EXPORT'
  6976. ;;
  6977. darwin* | rhapsody*)
  6978. # PIC is the default on this platform
  6979. # Common symbols not allowed in MH_DYLIB files
  6980. lt_prog_compiler_pic='-fno-common'
  6981. ;;
  6982. haiku*)
  6983. # PIC is the default for Haiku.
  6984. # The "-static" flag exists, but is broken.
  6985. lt_prog_compiler_static=
  6986. ;;
  6987. hpux*)
  6988. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6989. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6990. # sets the default TLS model and affects inlining.
  6991. case $host_cpu in
  6992. hppa*64*)
  6993. # +Z the default
  6994. ;;
  6995. *)
  6996. lt_prog_compiler_pic='-fPIC'
  6997. ;;
  6998. esac
  6999. ;;
  7000. interix[3-9]*)
  7001. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7002. # Instead, we relocate shared libraries at runtime.
  7003. ;;
  7004. msdosdjgpp*)
  7005. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7006. # on systems that don't support them.
  7007. lt_prog_compiler_can_build_shared=no
  7008. enable_shared=no
  7009. ;;
  7010. *nto* | *qnx*)
  7011. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7012. # it will coredump.
  7013. lt_prog_compiler_pic='-fPIC -shared'
  7014. ;;
  7015. sysv4*MP*)
  7016. if test -d /usr/nec; then
  7017. lt_prog_compiler_pic=-Kconform_pic
  7018. fi
  7019. ;;
  7020. *)
  7021. lt_prog_compiler_pic='-fPIC'
  7022. ;;
  7023. esac
  7024. case $cc_basename in
  7025. nvcc*) # Cuda Compiler Driver 2.2
  7026. lt_prog_compiler_wl='-Xlinker '
  7027. if test -n "$lt_prog_compiler_pic"; then
  7028. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7029. fi
  7030. ;;
  7031. esac
  7032. else
  7033. # PORTME Check for flag to pass linker flags through the system compiler.
  7034. case $host_os in
  7035. aix*)
  7036. lt_prog_compiler_wl='-Wl,'
  7037. if test "$host_cpu" = ia64; then
  7038. # AIX 5 now supports IA64 processor
  7039. lt_prog_compiler_static='-Bstatic'
  7040. else
  7041. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7042. fi
  7043. ;;
  7044. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7045. # This hack is so that the source file can tell whether it is being
  7046. # built for inclusion in a dll (and should export symbols for example).
  7047. lt_prog_compiler_pic='-DDLL_EXPORT'
  7048. ;;
  7049. hpux9* | hpux10* | hpux11*)
  7050. lt_prog_compiler_wl='-Wl,'
  7051. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7052. # not for PA HP-UX.
  7053. case $host_cpu in
  7054. hppa*64*|ia64*)
  7055. # +Z the default
  7056. ;;
  7057. *)
  7058. lt_prog_compiler_pic='+Z'
  7059. ;;
  7060. esac
  7061. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7062. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7063. ;;
  7064. irix5* | irix6* | nonstopux*)
  7065. lt_prog_compiler_wl='-Wl,'
  7066. # PIC (with -KPIC) is the default.
  7067. lt_prog_compiler_static='-non_shared'
  7068. ;;
  7069. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7070. case $cc_basename in
  7071. # old Intel for x86_64 which still supported -KPIC.
  7072. ecc*)
  7073. lt_prog_compiler_wl='-Wl,'
  7074. lt_prog_compiler_pic='-KPIC'
  7075. lt_prog_compiler_static='-static'
  7076. ;;
  7077. # icc used to be incompatible with GCC.
  7078. # ICC 10 doesn't accept -KPIC any more.
  7079. icc* | ifort*)
  7080. lt_prog_compiler_wl='-Wl,'
  7081. lt_prog_compiler_pic='-fPIC'
  7082. lt_prog_compiler_static='-static'
  7083. ;;
  7084. # Lahey Fortran 8.1.
  7085. lf95*)
  7086. lt_prog_compiler_wl='-Wl,'
  7087. lt_prog_compiler_pic='--shared'
  7088. lt_prog_compiler_static='--static'
  7089. ;;
  7090. nagfor*)
  7091. # NAG Fortran compiler
  7092. lt_prog_compiler_wl='-Wl,-Wl,,'
  7093. lt_prog_compiler_pic='-PIC'
  7094. lt_prog_compiler_static='-Bstatic'
  7095. ;;
  7096. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7097. # Portland Group compilers (*not* the Pentium gcc compiler,
  7098. # which looks to be a dead project)
  7099. lt_prog_compiler_wl='-Wl,'
  7100. lt_prog_compiler_pic='-fpic'
  7101. lt_prog_compiler_static='-Bstatic'
  7102. ;;
  7103. ccc*)
  7104. lt_prog_compiler_wl='-Wl,'
  7105. # All Alpha code is PIC.
  7106. lt_prog_compiler_static='-non_shared'
  7107. ;;
  7108. xl* | bgxl* | bgf* | mpixl*)
  7109. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7110. lt_prog_compiler_wl='-Wl,'
  7111. lt_prog_compiler_pic='-qpic'
  7112. lt_prog_compiler_static='-qstaticlink'
  7113. ;;
  7114. *)
  7115. case `$CC -V 2>&1 | sed 5q` in
  7116. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7117. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7118. lt_prog_compiler_pic='-KPIC'
  7119. lt_prog_compiler_static='-Bstatic'
  7120. lt_prog_compiler_wl=''
  7121. ;;
  7122. *Sun\ F* | *Sun*Fortran*)
  7123. lt_prog_compiler_pic='-KPIC'
  7124. lt_prog_compiler_static='-Bstatic'
  7125. lt_prog_compiler_wl='-Qoption ld '
  7126. ;;
  7127. *Sun\ C*)
  7128. # Sun C 5.9
  7129. lt_prog_compiler_pic='-KPIC'
  7130. lt_prog_compiler_static='-Bstatic'
  7131. lt_prog_compiler_wl='-Wl,'
  7132. ;;
  7133. *Intel*\ [CF]*Compiler*)
  7134. lt_prog_compiler_wl='-Wl,'
  7135. lt_prog_compiler_pic='-fPIC'
  7136. lt_prog_compiler_static='-static'
  7137. ;;
  7138. *Portland\ Group*)
  7139. lt_prog_compiler_wl='-Wl,'
  7140. lt_prog_compiler_pic='-fpic'
  7141. lt_prog_compiler_static='-Bstatic'
  7142. ;;
  7143. esac
  7144. ;;
  7145. esac
  7146. ;;
  7147. newsos6)
  7148. lt_prog_compiler_pic='-KPIC'
  7149. lt_prog_compiler_static='-Bstatic'
  7150. ;;
  7151. *nto* | *qnx*)
  7152. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7153. # it will coredump.
  7154. lt_prog_compiler_pic='-fPIC -shared'
  7155. ;;
  7156. osf3* | osf4* | osf5*)
  7157. lt_prog_compiler_wl='-Wl,'
  7158. # All OSF/1 code is PIC.
  7159. lt_prog_compiler_static='-non_shared'
  7160. ;;
  7161. rdos*)
  7162. lt_prog_compiler_static='-non_shared'
  7163. ;;
  7164. solaris*)
  7165. lt_prog_compiler_pic='-KPIC'
  7166. lt_prog_compiler_static='-Bstatic'
  7167. case $cc_basename in
  7168. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7169. lt_prog_compiler_wl='-Qoption ld ';;
  7170. *)
  7171. lt_prog_compiler_wl='-Wl,';;
  7172. esac
  7173. ;;
  7174. sunos4*)
  7175. lt_prog_compiler_wl='-Qoption ld '
  7176. lt_prog_compiler_pic='-PIC'
  7177. lt_prog_compiler_static='-Bstatic'
  7178. ;;
  7179. sysv4 | sysv4.2uw2* | sysv4.3*)
  7180. lt_prog_compiler_wl='-Wl,'
  7181. lt_prog_compiler_pic='-KPIC'
  7182. lt_prog_compiler_static='-Bstatic'
  7183. ;;
  7184. sysv4*MP*)
  7185. if test -d /usr/nec ;then
  7186. lt_prog_compiler_pic='-Kconform_pic'
  7187. lt_prog_compiler_static='-Bstatic'
  7188. fi
  7189. ;;
  7190. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7191. lt_prog_compiler_wl='-Wl,'
  7192. lt_prog_compiler_pic='-KPIC'
  7193. lt_prog_compiler_static='-Bstatic'
  7194. ;;
  7195. unicos*)
  7196. lt_prog_compiler_wl='-Wl,'
  7197. lt_prog_compiler_can_build_shared=no
  7198. ;;
  7199. uts4*)
  7200. lt_prog_compiler_pic='-pic'
  7201. lt_prog_compiler_static='-Bstatic'
  7202. ;;
  7203. *)
  7204. lt_prog_compiler_can_build_shared=no
  7205. ;;
  7206. esac
  7207. fi
  7208. case $host_os in
  7209. # For platforms which do not support PIC, -DPIC is meaningless:
  7210. *djgpp*)
  7211. lt_prog_compiler_pic=
  7212. ;;
  7213. *)
  7214. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7215. ;;
  7216. esac
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7218. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7219. if ${lt_cv_prog_compiler_pic+:} false; then :
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7223. fi
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7225. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7226. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7227. #
  7228. # Check to make sure the PIC flag actually works.
  7229. #
  7230. if test -n "$lt_prog_compiler_pic"; then
  7231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7232. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7233. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7234. $as_echo_n "(cached) " >&6
  7235. else
  7236. lt_cv_prog_compiler_pic_works=no
  7237. ac_outfile=conftest.$ac_objext
  7238. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7239. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7240. # Insert the option either (1) after the last *FLAGS variable, or
  7241. # (2) before a word containing "conftest.", or (3) at the end.
  7242. # Note that $ac_compile itself does not contain backslashes and begins
  7243. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7244. # The option is referenced via a variable to avoid confusing sed.
  7245. lt_compile=`echo "$ac_compile" | $SED \
  7246. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7247. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7248. -e 's:$: $lt_compiler_flag:'`
  7249. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7250. (eval "$lt_compile" 2>conftest.err)
  7251. ac_status=$?
  7252. cat conftest.err >&5
  7253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7254. if (exit $ac_status) && test -s "$ac_outfile"; then
  7255. # The compiler can only warn and ignore the option if not recognized
  7256. # So say no if there are warnings other than the usual output.
  7257. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7258. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7259. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7260. lt_cv_prog_compiler_pic_works=yes
  7261. fi
  7262. fi
  7263. $RM conftest*
  7264. fi
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7266. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7267. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7268. case $lt_prog_compiler_pic in
  7269. "" | " "*) ;;
  7270. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7271. esac
  7272. else
  7273. lt_prog_compiler_pic=
  7274. lt_prog_compiler_can_build_shared=no
  7275. fi
  7276. fi
  7277. #
  7278. # Check to make sure the static flag actually works.
  7279. #
  7280. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7282. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7283. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7284. $as_echo_n "(cached) " >&6
  7285. else
  7286. lt_cv_prog_compiler_static_works=no
  7287. save_LDFLAGS="$LDFLAGS"
  7288. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7289. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7290. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7291. # The linker can only warn and ignore the option if not recognized
  7292. # So say no if there are warnings
  7293. if test -s conftest.err; then
  7294. # Append any errors to the config.log.
  7295. cat conftest.err 1>&5
  7296. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7297. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7298. if diff conftest.exp conftest.er2 >/dev/null; then
  7299. lt_cv_prog_compiler_static_works=yes
  7300. fi
  7301. else
  7302. lt_cv_prog_compiler_static_works=yes
  7303. fi
  7304. fi
  7305. $RM -r conftest*
  7306. LDFLAGS="$save_LDFLAGS"
  7307. fi
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7309. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7310. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7311. :
  7312. else
  7313. lt_prog_compiler_static=
  7314. fi
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7316. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7317. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7318. $as_echo_n "(cached) " >&6
  7319. else
  7320. lt_cv_prog_compiler_c_o=no
  7321. $RM -r conftest 2>/dev/null
  7322. mkdir conftest
  7323. cd conftest
  7324. mkdir out
  7325. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7326. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7327. # Insert the option either (1) after the last *FLAGS variable, or
  7328. # (2) before a word containing "conftest.", or (3) at the end.
  7329. # Note that $ac_compile itself does not contain backslashes and begins
  7330. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7331. lt_compile=`echo "$ac_compile" | $SED \
  7332. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7333. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7334. -e 's:$: $lt_compiler_flag:'`
  7335. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7336. (eval "$lt_compile" 2>out/conftest.err)
  7337. ac_status=$?
  7338. cat out/conftest.err >&5
  7339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7340. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7341. then
  7342. # The compiler can only warn and ignore the option if not recognized
  7343. # So say no if there are warnings
  7344. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7345. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7346. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7347. lt_cv_prog_compiler_c_o=yes
  7348. fi
  7349. fi
  7350. chmod u+w . 2>&5
  7351. $RM conftest*
  7352. # SGI C++ compiler will create directory out/ii_files/ for
  7353. # template instantiation
  7354. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7355. $RM out/* && rmdir out
  7356. cd ..
  7357. $RM -r conftest
  7358. $RM conftest*
  7359. fi
  7360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7361. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7363. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7364. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7365. $as_echo_n "(cached) " >&6
  7366. else
  7367. lt_cv_prog_compiler_c_o=no
  7368. $RM -r conftest 2>/dev/null
  7369. mkdir conftest
  7370. cd conftest
  7371. mkdir out
  7372. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7373. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7374. # Insert the option either (1) after the last *FLAGS variable, or
  7375. # (2) before a word containing "conftest.", or (3) at the end.
  7376. # Note that $ac_compile itself does not contain backslashes and begins
  7377. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7378. lt_compile=`echo "$ac_compile" | $SED \
  7379. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7380. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7381. -e 's:$: $lt_compiler_flag:'`
  7382. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7383. (eval "$lt_compile" 2>out/conftest.err)
  7384. ac_status=$?
  7385. cat out/conftest.err >&5
  7386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7387. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7388. then
  7389. # The compiler can only warn and ignore the option if not recognized
  7390. # So say no if there are warnings
  7391. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7392. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7393. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7394. lt_cv_prog_compiler_c_o=yes
  7395. fi
  7396. fi
  7397. chmod u+w . 2>&5
  7398. $RM conftest*
  7399. # SGI C++ compiler will create directory out/ii_files/ for
  7400. # template instantiation
  7401. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7402. $RM out/* && rmdir out
  7403. cd ..
  7404. $RM -r conftest
  7405. $RM conftest*
  7406. fi
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7408. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7409. hard_links="nottested"
  7410. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7411. # do not overwrite the value of need_locks provided by the user
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7413. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7414. hard_links=yes
  7415. $RM conftest*
  7416. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7417. touch conftest.a
  7418. ln conftest.a conftest.b 2>&5 || hard_links=no
  7419. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7421. $as_echo "$hard_links" >&6; }
  7422. if test "$hard_links" = no; then
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7424. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7425. need_locks=warn
  7426. fi
  7427. else
  7428. need_locks=no
  7429. fi
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7431. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7432. runpath_var=
  7433. allow_undefined_flag=
  7434. always_export_symbols=no
  7435. archive_cmds=
  7436. archive_expsym_cmds=
  7437. compiler_needs_object=no
  7438. enable_shared_with_static_runtimes=no
  7439. export_dynamic_flag_spec=
  7440. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7441. hardcode_automatic=no
  7442. hardcode_direct=no
  7443. hardcode_direct_absolute=no
  7444. hardcode_libdir_flag_spec=
  7445. hardcode_libdir_separator=
  7446. hardcode_minus_L=no
  7447. hardcode_shlibpath_var=unsupported
  7448. inherit_rpath=no
  7449. link_all_deplibs=unknown
  7450. module_cmds=
  7451. module_expsym_cmds=
  7452. old_archive_from_new_cmds=
  7453. old_archive_from_expsyms_cmds=
  7454. thread_safe_flag_spec=
  7455. whole_archive_flag_spec=
  7456. # include_expsyms should be a list of space-separated symbols to be *always*
  7457. # included in the symbol list
  7458. include_expsyms=
  7459. # exclude_expsyms can be an extended regexp of symbols to exclude
  7460. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7461. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7462. # as well as any symbol that contains `d'.
  7463. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7464. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7465. # platforms (ab)use it in PIC code, but their linkers get confused if
  7466. # the symbol is explicitly referenced. Since portable code cannot
  7467. # rely on this symbol name, it's probably fine to never include it in
  7468. # preloaded symbol tables.
  7469. # Exclude shared library initialization/finalization symbols.
  7470. extract_expsyms_cmds=
  7471. case $host_os in
  7472. cygwin* | mingw* | pw32* | cegcc*)
  7473. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7474. # When not using gcc, we currently assume that we are using
  7475. # Microsoft Visual C++.
  7476. if test "$GCC" != yes; then
  7477. with_gnu_ld=no
  7478. fi
  7479. ;;
  7480. interix*)
  7481. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7482. with_gnu_ld=yes
  7483. ;;
  7484. openbsd*)
  7485. with_gnu_ld=no
  7486. ;;
  7487. esac
  7488. ld_shlibs=yes
  7489. # On some targets, GNU ld is compatible enough with the native linker
  7490. # that we're better off using the native interface for both.
  7491. lt_use_gnu_ld_interface=no
  7492. if test "$with_gnu_ld" = yes; then
  7493. case $host_os in
  7494. aix*)
  7495. # The AIX port of GNU ld has always aspired to compatibility
  7496. # with the native linker. However, as the warning in the GNU ld
  7497. # block says, versions before 2.19.5* couldn't really create working
  7498. # shared libraries, regardless of the interface used.
  7499. case `$LD -v 2>&1` in
  7500. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7501. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7502. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7503. *)
  7504. lt_use_gnu_ld_interface=yes
  7505. ;;
  7506. esac
  7507. ;;
  7508. *)
  7509. lt_use_gnu_ld_interface=yes
  7510. ;;
  7511. esac
  7512. fi
  7513. if test "$lt_use_gnu_ld_interface" = yes; then
  7514. # If archive_cmds runs LD, not CC, wlarc should be empty
  7515. wlarc='${wl}'
  7516. # Set some defaults for GNU ld with shared library support. These
  7517. # are reset later if shared libraries are not supported. Putting them
  7518. # here allows them to be overridden if necessary.
  7519. runpath_var=LD_RUN_PATH
  7520. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7521. export_dynamic_flag_spec='${wl}--export-dynamic'
  7522. # ancient GNU ld didn't support --whole-archive et. al.
  7523. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7524. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7525. else
  7526. whole_archive_flag_spec=
  7527. fi
  7528. supports_anon_versioning=no
  7529. case `$LD -v 2>&1` in
  7530. *GNU\ gold*) supports_anon_versioning=yes ;;
  7531. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7532. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7533. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7534. *\ 2.11.*) ;; # other 2.11 versions
  7535. *) supports_anon_versioning=yes ;;
  7536. esac
  7537. # See if GNU ld supports shared libraries.
  7538. case $host_os in
  7539. aix[3-9]*)
  7540. # On AIX/PPC, the GNU linker is very broken
  7541. if test "$host_cpu" != ia64; then
  7542. ld_shlibs=no
  7543. cat <<_LT_EOF 1>&2
  7544. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7545. *** to be unable to reliably create shared libraries on AIX.
  7546. *** Therefore, libtool is disabling shared libraries support. If you
  7547. *** really care for shared libraries, you may want to install binutils
  7548. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7549. *** You will then need to restart the configuration process.
  7550. _LT_EOF
  7551. fi
  7552. ;;
  7553. amigaos*)
  7554. case $host_cpu in
  7555. powerpc)
  7556. # see comment about AmigaOS4 .so support
  7557. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7558. archive_expsym_cmds=''
  7559. ;;
  7560. m68k)
  7561. 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)'
  7562. hardcode_libdir_flag_spec='-L$libdir'
  7563. hardcode_minus_L=yes
  7564. ;;
  7565. esac
  7566. ;;
  7567. beos*)
  7568. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7569. allow_undefined_flag=unsupported
  7570. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7571. # support --undefined. This deserves some investigation. FIXME
  7572. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7573. else
  7574. ld_shlibs=no
  7575. fi
  7576. ;;
  7577. cygwin* | mingw* | pw32* | cegcc*)
  7578. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7579. # as there is no search path for DLLs.
  7580. hardcode_libdir_flag_spec='-L$libdir'
  7581. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7582. allow_undefined_flag=unsupported
  7583. always_export_symbols=no
  7584. enable_shared_with_static_runtimes=yes
  7585. 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'
  7586. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7587. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7588. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7589. # If the export-symbols file already is a .def file (1st line
  7590. # is EXPORTS), use it as is; otherwise, prepend...
  7591. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7592. cp $export_symbols $output_objdir/$soname.def;
  7593. else
  7594. echo EXPORTS > $output_objdir/$soname.def;
  7595. cat $export_symbols >> $output_objdir/$soname.def;
  7596. fi~
  7597. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7598. else
  7599. ld_shlibs=no
  7600. fi
  7601. ;;
  7602. haiku*)
  7603. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7604. link_all_deplibs=yes
  7605. ;;
  7606. interix[3-9]*)
  7607. hardcode_direct=no
  7608. hardcode_shlibpath_var=no
  7609. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7610. export_dynamic_flag_spec='${wl}-E'
  7611. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7612. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7613. # default) and relocated if they conflict, which is a slow very memory
  7614. # consuming and fragmenting process. To avoid this, we pick a random,
  7615. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7616. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7617. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7618. 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'
  7619. ;;
  7620. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7621. tmp_diet=no
  7622. if test "$host_os" = linux-dietlibc; then
  7623. case $cc_basename in
  7624. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7625. esac
  7626. fi
  7627. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7628. && test "$tmp_diet" = no
  7629. then
  7630. tmp_addflag=' $pic_flag'
  7631. tmp_sharedflag='-shared'
  7632. case $cc_basename,$host_cpu in
  7633. pgcc*) # Portland Group C compiler
  7634. 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'
  7635. tmp_addflag=' $pic_flag'
  7636. ;;
  7637. pgf77* | pgf90* | pgf95* | pgfortran*)
  7638. # Portland Group f77 and f90 compilers
  7639. 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'
  7640. tmp_addflag=' $pic_flag -Mnomain' ;;
  7641. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7642. tmp_addflag=' -i_dynamic' ;;
  7643. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7644. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7645. ifc* | ifort*) # Intel Fortran compiler
  7646. tmp_addflag=' -nofor_main' ;;
  7647. lf95*) # Lahey Fortran 8.1
  7648. whole_archive_flag_spec=
  7649. tmp_sharedflag='--shared' ;;
  7650. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7651. tmp_sharedflag='-qmkshrobj'
  7652. tmp_addflag= ;;
  7653. nvcc*) # Cuda Compiler Driver 2.2
  7654. 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'
  7655. compiler_needs_object=yes
  7656. ;;
  7657. esac
  7658. case `$CC -V 2>&1 | sed 5q` in
  7659. *Sun\ C*) # Sun C 5.9
  7660. 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'
  7661. compiler_needs_object=yes
  7662. tmp_sharedflag='-G' ;;
  7663. *Sun\ F*) # Sun Fortran 8.3
  7664. tmp_sharedflag='-G' ;;
  7665. esac
  7666. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7667. if test "x$supports_anon_versioning" = xyes; then
  7668. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7669. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7670. echo "local: *; };" >> $output_objdir/$libname.ver~
  7671. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7672. fi
  7673. case $cc_basename in
  7674. xlf* | bgf* | bgxlf* | mpixlf*)
  7675. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7676. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7677. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7678. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7679. if test "x$supports_anon_versioning" = xyes; then
  7680. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7681. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7682. echo "local: *; };" >> $output_objdir/$libname.ver~
  7683. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7684. fi
  7685. ;;
  7686. esac
  7687. else
  7688. ld_shlibs=no
  7689. fi
  7690. ;;
  7691. netbsd*)
  7692. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7693. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7694. wlarc=
  7695. else
  7696. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7697. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7698. fi
  7699. ;;
  7700. solaris*)
  7701. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7702. ld_shlibs=no
  7703. cat <<_LT_EOF 1>&2
  7704. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7705. *** create shared libraries on Solaris systems. Therefore, libtool
  7706. *** is disabling shared libraries support. We urge you to upgrade GNU
  7707. *** binutils to release 2.9.1 or newer. Another option is to modify
  7708. *** your PATH or compiler configuration so that the native linker is
  7709. *** used, and then restart.
  7710. _LT_EOF
  7711. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7712. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7713. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7714. else
  7715. ld_shlibs=no
  7716. fi
  7717. ;;
  7718. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7719. case `$LD -v 2>&1` in
  7720. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7721. ld_shlibs=no
  7722. cat <<_LT_EOF 1>&2
  7723. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7724. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7725. *** is disabling shared libraries support. We urge you to upgrade GNU
  7726. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7727. *** your PATH or compiler configuration so that the native linker is
  7728. *** used, and then restart.
  7729. _LT_EOF
  7730. ;;
  7731. *)
  7732. # For security reasons, it is highly recommended that you always
  7733. # use absolute paths for naming shared libraries, and exclude the
  7734. # DT_RUNPATH tag from executables and libraries. But doing so
  7735. # requires that you compile everything twice, which is a pain.
  7736. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7737. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7738. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7739. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7740. else
  7741. ld_shlibs=no
  7742. fi
  7743. ;;
  7744. esac
  7745. ;;
  7746. sunos4*)
  7747. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7748. wlarc=
  7749. hardcode_direct=yes
  7750. hardcode_shlibpath_var=no
  7751. ;;
  7752. *)
  7753. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7754. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7755. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7756. else
  7757. ld_shlibs=no
  7758. fi
  7759. ;;
  7760. esac
  7761. if test "$ld_shlibs" = no; then
  7762. runpath_var=
  7763. hardcode_libdir_flag_spec=
  7764. export_dynamic_flag_spec=
  7765. whole_archive_flag_spec=
  7766. fi
  7767. else
  7768. # PORTME fill in a description of your system's linker (not GNU ld)
  7769. case $host_os in
  7770. aix3*)
  7771. allow_undefined_flag=unsupported
  7772. always_export_symbols=yes
  7773. 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'
  7774. # Note: this linker hardcodes the directories in LIBPATH if there
  7775. # are no directories specified by -L.
  7776. hardcode_minus_L=yes
  7777. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7778. # Neither direct hardcoding nor static linking is supported with a
  7779. # broken collect2.
  7780. hardcode_direct=unsupported
  7781. fi
  7782. ;;
  7783. aix[4-9]*)
  7784. if test "$host_cpu" = ia64; then
  7785. # On IA64, the linker does run time linking by default, so we don't
  7786. # have to do anything special.
  7787. aix_use_runtimelinking=no
  7788. exp_sym_flag='-Bexport'
  7789. no_entry_flag=""
  7790. else
  7791. # If we're using GNU nm, then we don't want the "-C" option.
  7792. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7793. # Also, AIX nm treats weak defined symbols like other global
  7794. # defined symbols, whereas GNU nm marks them as "W".
  7795. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7796. 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'
  7797. else
  7798. 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'
  7799. fi
  7800. aix_use_runtimelinking=no
  7801. # Test if we are trying to use run time linking or normal
  7802. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7803. # need to do runtime linking.
  7804. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7805. for ld_flag in $LDFLAGS; do
  7806. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7807. aix_use_runtimelinking=yes
  7808. break
  7809. fi
  7810. done
  7811. ;;
  7812. esac
  7813. exp_sym_flag='-bexport'
  7814. no_entry_flag='-bnoentry'
  7815. fi
  7816. # When large executables or shared objects are built, AIX ld can
  7817. # have problems creating the table of contents. If linking a library
  7818. # or program results in "error TOC overflow" add -mminimal-toc to
  7819. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7820. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7821. archive_cmds=''
  7822. hardcode_direct=yes
  7823. hardcode_direct_absolute=yes
  7824. hardcode_libdir_separator=':'
  7825. link_all_deplibs=yes
  7826. file_list_spec='${wl}-f,'
  7827. if test "$GCC" = yes; then
  7828. case $host_os in aix4.[012]|aix4.[012].*)
  7829. # We only want to do this on AIX 4.2 and lower, the check
  7830. # below for broken collect2 doesn't work under 4.3+
  7831. collect2name=`${CC} -print-prog-name=collect2`
  7832. if test -f "$collect2name" &&
  7833. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7834. then
  7835. # We have reworked collect2
  7836. :
  7837. else
  7838. # We have old collect2
  7839. hardcode_direct=unsupported
  7840. # It fails to find uninstalled libraries when the uninstalled
  7841. # path is not listed in the libpath. Setting hardcode_minus_L
  7842. # to unsupported forces relinking
  7843. hardcode_minus_L=yes
  7844. hardcode_libdir_flag_spec='-L$libdir'
  7845. hardcode_libdir_separator=
  7846. fi
  7847. ;;
  7848. esac
  7849. shared_flag='-shared'
  7850. if test "$aix_use_runtimelinking" = yes; then
  7851. shared_flag="$shared_flag "'${wl}-G'
  7852. fi
  7853. else
  7854. # not using gcc
  7855. if test "$host_cpu" = ia64; then
  7856. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7857. # chokes on -Wl,-G. The following line is correct:
  7858. shared_flag='-G'
  7859. else
  7860. if test "$aix_use_runtimelinking" = yes; then
  7861. shared_flag='${wl}-G'
  7862. else
  7863. shared_flag='${wl}-bM:SRE'
  7864. fi
  7865. fi
  7866. fi
  7867. export_dynamic_flag_spec='${wl}-bexpall'
  7868. # It seems that -bexpall does not export symbols beginning with
  7869. # underscore (_), so it is better to generate a list of symbols to export.
  7870. always_export_symbols=yes
  7871. if test "$aix_use_runtimelinking" = yes; then
  7872. # Warning - without using the other runtime loading flags (-brtl),
  7873. # -berok will link without error, but may produce a broken library.
  7874. allow_undefined_flag='-berok'
  7875. # Determine the default libpath from the value encoded in an
  7876. # empty executable.
  7877. if test "${lt_cv_aix_libpath+set}" = set; then
  7878. aix_libpath=$lt_cv_aix_libpath
  7879. else
  7880. if ${lt_cv_aix_libpath_+:} false; then :
  7881. $as_echo_n "(cached) " >&6
  7882. else
  7883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7884. /* end confdefs.h. */
  7885. int
  7886. main ()
  7887. {
  7888. ;
  7889. return 0;
  7890. }
  7891. _ACEOF
  7892. if ac_fn_c_try_link "$LINENO"; then :
  7893. lt_aix_libpath_sed='
  7894. /Import File Strings/,/^$/ {
  7895. /^0/ {
  7896. s/^0 *\([^ ]*\) *$/\1/
  7897. p
  7898. }
  7899. }'
  7900. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7901. # Check for a 64-bit object if we didn't find anything.
  7902. if test -z "$lt_cv_aix_libpath_"; then
  7903. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7904. fi
  7905. fi
  7906. rm -f core conftest.err conftest.$ac_objext \
  7907. conftest$ac_exeext conftest.$ac_ext
  7908. if test -z "$lt_cv_aix_libpath_"; then
  7909. lt_cv_aix_libpath_="/usr/lib:/lib"
  7910. fi
  7911. fi
  7912. aix_libpath=$lt_cv_aix_libpath_
  7913. fi
  7914. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7915. 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"
  7916. else
  7917. if test "$host_cpu" = ia64; then
  7918. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7919. allow_undefined_flag="-z nodefs"
  7920. 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"
  7921. else
  7922. # Determine the default libpath from the value encoded in an
  7923. # empty executable.
  7924. if test "${lt_cv_aix_libpath+set}" = set; then
  7925. aix_libpath=$lt_cv_aix_libpath
  7926. else
  7927. if ${lt_cv_aix_libpath_+:} false; then :
  7928. $as_echo_n "(cached) " >&6
  7929. else
  7930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7931. /* end confdefs.h. */
  7932. int
  7933. main ()
  7934. {
  7935. ;
  7936. return 0;
  7937. }
  7938. _ACEOF
  7939. if ac_fn_c_try_link "$LINENO"; then :
  7940. lt_aix_libpath_sed='
  7941. /Import File Strings/,/^$/ {
  7942. /^0/ {
  7943. s/^0 *\([^ ]*\) *$/\1/
  7944. p
  7945. }
  7946. }'
  7947. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7948. # Check for a 64-bit object if we didn't find anything.
  7949. if test -z "$lt_cv_aix_libpath_"; then
  7950. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7951. fi
  7952. fi
  7953. rm -f core conftest.err conftest.$ac_objext \
  7954. conftest$ac_exeext conftest.$ac_ext
  7955. if test -z "$lt_cv_aix_libpath_"; then
  7956. lt_cv_aix_libpath_="/usr/lib:/lib"
  7957. fi
  7958. fi
  7959. aix_libpath=$lt_cv_aix_libpath_
  7960. fi
  7961. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7962. # Warning - without using the other run time loading flags,
  7963. # -berok will link without error, but may produce a broken library.
  7964. no_undefined_flag=' ${wl}-bernotok'
  7965. allow_undefined_flag=' ${wl}-berok'
  7966. if test "$with_gnu_ld" = yes; then
  7967. # We only use this code for GNU lds that support --whole-archive.
  7968. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7969. else
  7970. # Exported symbols can be pulled into shared objects from archives
  7971. whole_archive_flag_spec='$convenience'
  7972. fi
  7973. archive_cmds_need_lc=yes
  7974. # This is similar to how AIX traditionally builds its shared libraries.
  7975. 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'
  7976. fi
  7977. fi
  7978. ;;
  7979. amigaos*)
  7980. case $host_cpu in
  7981. powerpc)
  7982. # see comment about AmigaOS4 .so support
  7983. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7984. archive_expsym_cmds=''
  7985. ;;
  7986. m68k)
  7987. 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)'
  7988. hardcode_libdir_flag_spec='-L$libdir'
  7989. hardcode_minus_L=yes
  7990. ;;
  7991. esac
  7992. ;;
  7993. bsdi[45]*)
  7994. export_dynamic_flag_spec=-rdynamic
  7995. ;;
  7996. cygwin* | mingw* | pw32* | cegcc*)
  7997. # When not using gcc, we currently assume that we are using
  7998. # Microsoft Visual C++.
  7999. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8000. # no search path for DLLs.
  8001. case $cc_basename in
  8002. cl*)
  8003. # Native MSVC
  8004. hardcode_libdir_flag_spec=' '
  8005. allow_undefined_flag=unsupported
  8006. always_export_symbols=yes
  8007. file_list_spec='@'
  8008. # Tell ltmain to make .lib files, not .a files.
  8009. libext=lib
  8010. # Tell ltmain to make .dll files, not .so files.
  8011. shrext_cmds=".dll"
  8012. # FIXME: Setting linknames here is a bad hack.
  8013. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8014. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8015. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8016. else
  8017. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8018. fi~
  8019. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8020. linknames='
  8021. # The linker will not automatically build a static lib if we build a DLL.
  8022. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8023. enable_shared_with_static_runtimes=yes
  8024. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8025. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8026. # Don't use ranlib
  8027. old_postinstall_cmds='chmod 644 $oldlib'
  8028. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8029. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8030. case $lt_outputfile in
  8031. *.exe|*.EXE) ;;
  8032. *)
  8033. lt_outputfile="$lt_outputfile.exe"
  8034. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8035. ;;
  8036. esac~
  8037. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8038. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8039. $RM "$lt_outputfile.manifest";
  8040. fi'
  8041. ;;
  8042. *)
  8043. # Assume MSVC wrapper
  8044. hardcode_libdir_flag_spec=' '
  8045. allow_undefined_flag=unsupported
  8046. # Tell ltmain to make .lib files, not .a files.
  8047. libext=lib
  8048. # Tell ltmain to make .dll files, not .so files.
  8049. shrext_cmds=".dll"
  8050. # FIXME: Setting linknames here is a bad hack.
  8051. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8052. # The linker will automatically build a .lib file if we build a DLL.
  8053. old_archive_from_new_cmds='true'
  8054. # FIXME: Should let the user specify the lib program.
  8055. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8056. enable_shared_with_static_runtimes=yes
  8057. ;;
  8058. esac
  8059. ;;
  8060. darwin* | rhapsody*)
  8061. archive_cmds_need_lc=no
  8062. hardcode_direct=no
  8063. hardcode_automatic=yes
  8064. hardcode_shlibpath_var=unsupported
  8065. if test "$lt_cv_ld_force_load" = "yes"; then
  8066. 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\"`'
  8067. else
  8068. whole_archive_flag_spec=''
  8069. fi
  8070. link_all_deplibs=yes
  8071. allow_undefined_flag="$_lt_dar_allow_undefined"
  8072. case $cc_basename in
  8073. ifort*) _lt_dar_can_shared=yes ;;
  8074. *) _lt_dar_can_shared=$GCC ;;
  8075. esac
  8076. if test "$_lt_dar_can_shared" = "yes"; then
  8077. output_verbose_link_cmd=func_echo_all
  8078. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8079. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8080. 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}"
  8081. 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}"
  8082. else
  8083. ld_shlibs=no
  8084. fi
  8085. ;;
  8086. dgux*)
  8087. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8088. hardcode_libdir_flag_spec='-L$libdir'
  8089. hardcode_shlibpath_var=no
  8090. ;;
  8091. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8092. # support. Future versions do this automatically, but an explicit c++rt0.o
  8093. # does not break anything, and helps significantly (at the cost of a little
  8094. # extra space).
  8095. freebsd2.2*)
  8096. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8097. hardcode_libdir_flag_spec='-R$libdir'
  8098. hardcode_direct=yes
  8099. hardcode_shlibpath_var=no
  8100. ;;
  8101. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8102. freebsd2.*)
  8103. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8104. hardcode_direct=yes
  8105. hardcode_minus_L=yes
  8106. hardcode_shlibpath_var=no
  8107. ;;
  8108. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8109. freebsd* | dragonfly*)
  8110. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8111. hardcode_libdir_flag_spec='-R$libdir'
  8112. hardcode_direct=yes
  8113. hardcode_shlibpath_var=no
  8114. ;;
  8115. hpux9*)
  8116. if test "$GCC" = yes; then
  8117. 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'
  8118. else
  8119. 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'
  8120. fi
  8121. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8122. hardcode_libdir_separator=:
  8123. hardcode_direct=yes
  8124. # hardcode_minus_L: Not really in the search PATH,
  8125. # but as the default location of the library.
  8126. hardcode_minus_L=yes
  8127. export_dynamic_flag_spec='${wl}-E'
  8128. ;;
  8129. hpux10*)
  8130. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8131. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8132. else
  8133. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8134. fi
  8135. if test "$with_gnu_ld" = no; then
  8136. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8137. hardcode_libdir_separator=:
  8138. hardcode_direct=yes
  8139. hardcode_direct_absolute=yes
  8140. export_dynamic_flag_spec='${wl}-E'
  8141. # hardcode_minus_L: Not really in the search PATH,
  8142. # but as the default location of the library.
  8143. hardcode_minus_L=yes
  8144. fi
  8145. ;;
  8146. hpux11*)
  8147. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8148. case $host_cpu in
  8149. hppa*64*)
  8150. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8151. ;;
  8152. ia64*)
  8153. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8154. ;;
  8155. *)
  8156. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8157. ;;
  8158. esac
  8159. else
  8160. case $host_cpu in
  8161. hppa*64*)
  8162. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8163. ;;
  8164. ia64*)
  8165. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8166. ;;
  8167. *)
  8168. # Older versions of the 11.00 compiler do not understand -b yet
  8169. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8171. $as_echo_n "checking if $CC understands -b... " >&6; }
  8172. if ${lt_cv_prog_compiler__b+:} false; then :
  8173. $as_echo_n "(cached) " >&6
  8174. else
  8175. lt_cv_prog_compiler__b=no
  8176. save_LDFLAGS="$LDFLAGS"
  8177. LDFLAGS="$LDFLAGS -b"
  8178. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8179. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8180. # The linker can only warn and ignore the option if not recognized
  8181. # So say no if there are warnings
  8182. if test -s conftest.err; then
  8183. # Append any errors to the config.log.
  8184. cat conftest.err 1>&5
  8185. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8186. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8187. if diff conftest.exp conftest.er2 >/dev/null; then
  8188. lt_cv_prog_compiler__b=yes
  8189. fi
  8190. else
  8191. lt_cv_prog_compiler__b=yes
  8192. fi
  8193. fi
  8194. $RM -r conftest*
  8195. LDFLAGS="$save_LDFLAGS"
  8196. fi
  8197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8198. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8199. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8200. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8201. else
  8202. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8203. fi
  8204. ;;
  8205. esac
  8206. fi
  8207. if test "$with_gnu_ld" = no; then
  8208. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8209. hardcode_libdir_separator=:
  8210. case $host_cpu in
  8211. hppa*64*|ia64*)
  8212. hardcode_direct=no
  8213. hardcode_shlibpath_var=no
  8214. ;;
  8215. *)
  8216. hardcode_direct=yes
  8217. hardcode_direct_absolute=yes
  8218. export_dynamic_flag_spec='${wl}-E'
  8219. # hardcode_minus_L: Not really in the search PATH,
  8220. # but as the default location of the library.
  8221. hardcode_minus_L=yes
  8222. ;;
  8223. esac
  8224. fi
  8225. ;;
  8226. irix5* | irix6* | nonstopux*)
  8227. if test "$GCC" = yes; then
  8228. 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'
  8229. # Try to use the -exported_symbol ld option, if it does not
  8230. # work, assume that -exports_file does not work either and
  8231. # implicitly export all symbols.
  8232. # This should be the same for all languages, so no per-tag cache variable.
  8233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8234. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8235. if ${lt_cv_irix_exported_symbol+:} false; then :
  8236. $as_echo_n "(cached) " >&6
  8237. else
  8238. save_LDFLAGS="$LDFLAGS"
  8239. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8241. /* end confdefs.h. */
  8242. int foo (void) { return 0; }
  8243. _ACEOF
  8244. if ac_fn_c_try_link "$LINENO"; then :
  8245. lt_cv_irix_exported_symbol=yes
  8246. else
  8247. lt_cv_irix_exported_symbol=no
  8248. fi
  8249. rm -f core conftest.err conftest.$ac_objext \
  8250. conftest$ac_exeext conftest.$ac_ext
  8251. LDFLAGS="$save_LDFLAGS"
  8252. fi
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8254. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8255. if test "$lt_cv_irix_exported_symbol" = yes; then
  8256. 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'
  8257. fi
  8258. else
  8259. 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'
  8260. 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'
  8261. fi
  8262. archive_cmds_need_lc='no'
  8263. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8264. hardcode_libdir_separator=:
  8265. inherit_rpath=yes
  8266. link_all_deplibs=yes
  8267. ;;
  8268. netbsd*)
  8269. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8270. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8271. else
  8272. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8273. fi
  8274. hardcode_libdir_flag_spec='-R$libdir'
  8275. hardcode_direct=yes
  8276. hardcode_shlibpath_var=no
  8277. ;;
  8278. newsos6)
  8279. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8280. hardcode_direct=yes
  8281. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8282. hardcode_libdir_separator=:
  8283. hardcode_shlibpath_var=no
  8284. ;;
  8285. *nto* | *qnx*)
  8286. ;;
  8287. openbsd*)
  8288. if test -f /usr/libexec/ld.so; then
  8289. hardcode_direct=yes
  8290. hardcode_shlibpath_var=no
  8291. hardcode_direct_absolute=yes
  8292. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8293. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8294. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8295. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8296. export_dynamic_flag_spec='${wl}-E'
  8297. else
  8298. case $host_os in
  8299. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8300. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8301. hardcode_libdir_flag_spec='-R$libdir'
  8302. ;;
  8303. *)
  8304. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8305. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8306. ;;
  8307. esac
  8308. fi
  8309. else
  8310. ld_shlibs=no
  8311. fi
  8312. ;;
  8313. os2*)
  8314. hardcode_libdir_flag_spec='-L$libdir'
  8315. hardcode_minus_L=yes
  8316. allow_undefined_flag=unsupported
  8317. 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'
  8318. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8319. ;;
  8320. osf3*)
  8321. if test "$GCC" = yes; then
  8322. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8323. 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'
  8324. else
  8325. allow_undefined_flag=' -expect_unresolved \*'
  8326. 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'
  8327. fi
  8328. archive_cmds_need_lc='no'
  8329. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8330. hardcode_libdir_separator=:
  8331. ;;
  8332. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8333. if test "$GCC" = yes; then
  8334. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8335. 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'
  8336. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8337. else
  8338. allow_undefined_flag=' -expect_unresolved \*'
  8339. 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'
  8340. 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~
  8341. $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'
  8342. # Both c and cxx compiler support -rpath directly
  8343. hardcode_libdir_flag_spec='-rpath $libdir'
  8344. fi
  8345. archive_cmds_need_lc='no'
  8346. hardcode_libdir_separator=:
  8347. ;;
  8348. solaris*)
  8349. no_undefined_flag=' -z defs'
  8350. if test "$GCC" = yes; then
  8351. wlarc='${wl}'
  8352. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8353. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8354. $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'
  8355. else
  8356. case `$CC -V 2>&1` in
  8357. *"Compilers 5.0"*)
  8358. wlarc=''
  8359. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8360. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8361. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8362. ;;
  8363. *)
  8364. wlarc='${wl}'
  8365. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8366. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8367. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8368. ;;
  8369. esac
  8370. fi
  8371. hardcode_libdir_flag_spec='-R$libdir'
  8372. hardcode_shlibpath_var=no
  8373. case $host_os in
  8374. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8375. *)
  8376. # The compiler driver will combine and reorder linker options,
  8377. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8378. # but is careful enough not to reorder.
  8379. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8380. if test "$GCC" = yes; then
  8381. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8382. else
  8383. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8384. fi
  8385. ;;
  8386. esac
  8387. link_all_deplibs=yes
  8388. ;;
  8389. sunos4*)
  8390. if test "x$host_vendor" = xsequent; then
  8391. # Use $CC to link under sequent, because it throws in some extra .o
  8392. # files that make .init and .fini sections work.
  8393. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8394. else
  8395. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8396. fi
  8397. hardcode_libdir_flag_spec='-L$libdir'
  8398. hardcode_direct=yes
  8399. hardcode_minus_L=yes
  8400. hardcode_shlibpath_var=no
  8401. ;;
  8402. sysv4)
  8403. case $host_vendor in
  8404. sni)
  8405. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8406. hardcode_direct=yes # is this really true???
  8407. ;;
  8408. siemens)
  8409. ## LD is ld it makes a PLAMLIB
  8410. ## CC just makes a GrossModule.
  8411. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8412. reload_cmds='$CC -r -o $output$reload_objs'
  8413. hardcode_direct=no
  8414. ;;
  8415. motorola)
  8416. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8417. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8418. ;;
  8419. esac
  8420. runpath_var='LD_RUN_PATH'
  8421. hardcode_shlibpath_var=no
  8422. ;;
  8423. sysv4.3*)
  8424. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8425. hardcode_shlibpath_var=no
  8426. export_dynamic_flag_spec='-Bexport'
  8427. ;;
  8428. sysv4*MP*)
  8429. if test -d /usr/nec; then
  8430. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8431. hardcode_shlibpath_var=no
  8432. runpath_var=LD_RUN_PATH
  8433. hardcode_runpath_var=yes
  8434. ld_shlibs=yes
  8435. fi
  8436. ;;
  8437. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8438. no_undefined_flag='${wl}-z,text'
  8439. archive_cmds_need_lc=no
  8440. hardcode_shlibpath_var=no
  8441. runpath_var='LD_RUN_PATH'
  8442. if test "$GCC" = yes; then
  8443. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8444. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8445. else
  8446. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8447. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8448. fi
  8449. ;;
  8450. sysv5* | sco3.2v5* | sco5v6*)
  8451. # Note: We can NOT use -z defs as we might desire, because we do not
  8452. # link with -lc, and that would cause any symbols used from libc to
  8453. # always be unresolved, which means just about no library would
  8454. # ever link correctly. If we're not using GNU ld we use -z text
  8455. # though, which does catch some bad symbols but isn't as heavy-handed
  8456. # as -z defs.
  8457. no_undefined_flag='${wl}-z,text'
  8458. allow_undefined_flag='${wl}-z,nodefs'
  8459. archive_cmds_need_lc=no
  8460. hardcode_shlibpath_var=no
  8461. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8462. hardcode_libdir_separator=':'
  8463. link_all_deplibs=yes
  8464. export_dynamic_flag_spec='${wl}-Bexport'
  8465. runpath_var='LD_RUN_PATH'
  8466. if test "$GCC" = yes; then
  8467. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8468. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8469. else
  8470. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8471. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8472. fi
  8473. ;;
  8474. uts4*)
  8475. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8476. hardcode_libdir_flag_spec='-L$libdir'
  8477. hardcode_shlibpath_var=no
  8478. ;;
  8479. *)
  8480. ld_shlibs=no
  8481. ;;
  8482. esac
  8483. if test x$host_vendor = xsni; then
  8484. case $host in
  8485. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8486. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8487. ;;
  8488. esac
  8489. fi
  8490. fi
  8491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8492. $as_echo "$ld_shlibs" >&6; }
  8493. test "$ld_shlibs" = no && can_build_shared=no
  8494. with_gnu_ld=$with_gnu_ld
  8495. #
  8496. # Do we need to explicitly link libc?
  8497. #
  8498. case "x$archive_cmds_need_lc" in
  8499. x|xyes)
  8500. # Assume -lc should be added
  8501. archive_cmds_need_lc=yes
  8502. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8503. case $archive_cmds in
  8504. *'~'*)
  8505. # FIXME: we may have to deal with multi-command sequences.
  8506. ;;
  8507. '$CC '*)
  8508. # Test whether the compiler implicitly links with -lc since on some
  8509. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8510. # to ld, don't add -lc before -lgcc.
  8511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8512. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8513. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8514. $as_echo_n "(cached) " >&6
  8515. else
  8516. $RM conftest*
  8517. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8518. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8519. (eval $ac_compile) 2>&5
  8520. ac_status=$?
  8521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8522. test $ac_status = 0; } 2>conftest.err; then
  8523. soname=conftest
  8524. lib=conftest
  8525. libobjs=conftest.$ac_objext
  8526. deplibs=
  8527. wl=$lt_prog_compiler_wl
  8528. pic_flag=$lt_prog_compiler_pic
  8529. compiler_flags=-v
  8530. linker_flags=-v
  8531. verstring=
  8532. output_objdir=.
  8533. libname=conftest
  8534. lt_save_allow_undefined_flag=$allow_undefined_flag
  8535. allow_undefined_flag=
  8536. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8537. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8538. ac_status=$?
  8539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8540. test $ac_status = 0; }
  8541. then
  8542. lt_cv_archive_cmds_need_lc=no
  8543. else
  8544. lt_cv_archive_cmds_need_lc=yes
  8545. fi
  8546. allow_undefined_flag=$lt_save_allow_undefined_flag
  8547. else
  8548. cat conftest.err 1>&5
  8549. fi
  8550. $RM conftest*
  8551. fi
  8552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8553. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8554. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8555. ;;
  8556. esac
  8557. fi
  8558. ;;
  8559. esac
  8560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8561. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8562. if test "$GCC" = yes; then
  8563. case $host_os in
  8564. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8565. *) lt_awk_arg="/^libraries:/" ;;
  8566. esac
  8567. case $host_os in
  8568. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8569. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8570. esac
  8571. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8572. case $lt_search_path_spec in
  8573. *\;*)
  8574. # if the path contains ";" then we assume it to be the separator
  8575. # otherwise default to the standard path separator (i.e. ":") - it is
  8576. # assumed that no part of a normal pathname contains ";" but that should
  8577. # okay in the real world where ";" in dirpaths is itself problematic.
  8578. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8579. ;;
  8580. *)
  8581. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8582. ;;
  8583. esac
  8584. # Ok, now we have the path, separated by spaces, we can step through it
  8585. # and add multilib dir if necessary...
  8586. lt_tmp_lt_search_path_spec=
  8587. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8588. # ...but if some path already ends with the multilib dir we assume
  8589. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8590. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8591. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8592. lt_multi_os_dir=
  8593. ;;
  8594. esac
  8595. for lt_sys_path in $lt_search_path_spec; do
  8596. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8597. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8598. elif test -n "$lt_multi_os_dir"; then
  8599. test -d "$lt_sys_path" && \
  8600. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8601. fi
  8602. done
  8603. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8604. BEGIN {RS=" "; FS="/|\n";} {
  8605. lt_foo="";
  8606. lt_count=0;
  8607. for (lt_i = NF; lt_i > 0; lt_i--) {
  8608. if ($lt_i != "" && $lt_i != ".") {
  8609. if ($lt_i == "..") {
  8610. lt_count++;
  8611. } else {
  8612. if (lt_count == 0) {
  8613. lt_foo="/" $lt_i lt_foo;
  8614. } else {
  8615. lt_count--;
  8616. }
  8617. }
  8618. }
  8619. }
  8620. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8621. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8622. }'`
  8623. # AWK program above erroneously prepends '/' to C:/dos/paths
  8624. # for these hosts.
  8625. case $host_os in
  8626. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8627. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8628. esac
  8629. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8630. else
  8631. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8632. fi
  8633. library_names_spec=
  8634. libname_spec='lib$name'
  8635. soname_spec=
  8636. shrext_cmds=".so"
  8637. postinstall_cmds=
  8638. postuninstall_cmds=
  8639. finish_cmds=
  8640. finish_eval=
  8641. shlibpath_var=
  8642. shlibpath_overrides_runpath=unknown
  8643. version_type=none
  8644. dynamic_linker="$host_os ld.so"
  8645. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8646. need_lib_prefix=unknown
  8647. hardcode_into_libs=no
  8648. # when you set need_version to no, make sure it does not cause -set_version
  8649. # flags to be left without arguments
  8650. need_version=unknown
  8651. case $host_os in
  8652. aix3*)
  8653. version_type=linux # correct to gnu/linux during the next big refactor
  8654. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8655. shlibpath_var=LIBPATH
  8656. # AIX 3 has no versioning support, so we append a major version to the name.
  8657. soname_spec='${libname}${release}${shared_ext}$major'
  8658. ;;
  8659. aix[4-9]*)
  8660. version_type=linux # correct to gnu/linux during the next big refactor
  8661. need_lib_prefix=no
  8662. need_version=no
  8663. hardcode_into_libs=yes
  8664. if test "$host_cpu" = ia64; then
  8665. # AIX 5 supports IA64
  8666. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8667. shlibpath_var=LD_LIBRARY_PATH
  8668. else
  8669. # With GCC up to 2.95.x, collect2 would create an import file
  8670. # for dependence libraries. The import file would start with
  8671. # the line `#! .'. This would cause the generated library to
  8672. # depend on `.', always an invalid library. This was fixed in
  8673. # development snapshots of GCC prior to 3.0.
  8674. case $host_os in
  8675. aix4 | aix4.[01] | aix4.[01].*)
  8676. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8677. echo ' yes '
  8678. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8679. :
  8680. else
  8681. can_build_shared=no
  8682. fi
  8683. ;;
  8684. esac
  8685. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8686. # soname into executable. Probably we can add versioning support to
  8687. # collect2, so additional links can be useful in future.
  8688. if test "$aix_use_runtimelinking" = yes; then
  8689. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8690. # instead of lib<name>.a to let people know that these are not
  8691. # typical AIX shared libraries.
  8692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8693. else
  8694. # We preserve .a as extension for shared libraries through AIX4.2
  8695. # and later when we are not doing run time linking.
  8696. library_names_spec='${libname}${release}.a $libname.a'
  8697. soname_spec='${libname}${release}${shared_ext}$major'
  8698. fi
  8699. shlibpath_var=LIBPATH
  8700. fi
  8701. ;;
  8702. amigaos*)
  8703. case $host_cpu in
  8704. powerpc)
  8705. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8706. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8707. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8708. ;;
  8709. m68k)
  8710. library_names_spec='$libname.ixlibrary $libname.a'
  8711. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8712. 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'
  8713. ;;
  8714. esac
  8715. ;;
  8716. beos*)
  8717. library_names_spec='${libname}${shared_ext}'
  8718. dynamic_linker="$host_os ld.so"
  8719. shlibpath_var=LIBRARY_PATH
  8720. ;;
  8721. bsdi[45]*)
  8722. version_type=linux # correct to gnu/linux during the next big refactor
  8723. need_version=no
  8724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8725. soname_spec='${libname}${release}${shared_ext}$major'
  8726. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8727. shlibpath_var=LD_LIBRARY_PATH
  8728. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8729. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8730. # the default ld.so.conf also contains /usr/contrib/lib and
  8731. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8732. # libtool to hard-code these into programs
  8733. ;;
  8734. cygwin* | mingw* | pw32* | cegcc*)
  8735. version_type=windows
  8736. shrext_cmds=".dll"
  8737. need_version=no
  8738. need_lib_prefix=no
  8739. case $GCC,$cc_basename in
  8740. yes,*)
  8741. # gcc
  8742. library_names_spec='$libname.dll.a'
  8743. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8744. postinstall_cmds='base_file=`basename \${file}`~
  8745. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8746. dldir=$destdir/`dirname \$dlpath`~
  8747. test -d \$dldir || mkdir -p \$dldir~
  8748. $install_prog $dir/$dlname \$dldir/$dlname~
  8749. chmod a+x \$dldir/$dlname~
  8750. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8751. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8752. fi'
  8753. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8754. dlpath=$dir/\$dldll~
  8755. $RM \$dlpath'
  8756. shlibpath_overrides_runpath=yes
  8757. case $host_os in
  8758. cygwin*)
  8759. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8760. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8761. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8762. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8763. ;;
  8764. mingw* | cegcc*)
  8765. # MinGW DLLs use traditional 'lib' prefix
  8766. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8767. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8768. ;;
  8769. pw32*)
  8770. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8771. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8772. ;;
  8773. esac
  8774. dynamic_linker='Win32 ld.exe'
  8775. ;;
  8776. *,cl*)
  8777. # Native MSVC
  8778. libname_spec='$name'
  8779. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8780. library_names_spec='${libname}.dll.lib'
  8781. case $build_os in
  8782. mingw*)
  8783. sys_lib_search_path_spec=
  8784. lt_save_ifs=$IFS
  8785. IFS=';'
  8786. for lt_path in $LIB
  8787. do
  8788. IFS=$lt_save_ifs
  8789. # Let DOS variable expansion print the short 8.3 style file name.
  8790. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8791. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8792. done
  8793. IFS=$lt_save_ifs
  8794. # Convert to MSYS style.
  8795. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8796. ;;
  8797. cygwin*)
  8798. # Convert to unix form, then to dos form, then back to unix form
  8799. # but this time dos style (no spaces!) so that the unix form looks
  8800. # like /cygdrive/c/PROGRA~1:/cygdr...
  8801. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8802. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8803. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8804. ;;
  8805. *)
  8806. sys_lib_search_path_spec="$LIB"
  8807. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8808. # It is most probably a Windows format PATH.
  8809. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8810. else
  8811. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8812. fi
  8813. # FIXME: find the short name or the path components, as spaces are
  8814. # common. (e.g. "Program Files" -> "PROGRA~1")
  8815. ;;
  8816. esac
  8817. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8818. postinstall_cmds='base_file=`basename \${file}`~
  8819. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8820. dldir=$destdir/`dirname \$dlpath`~
  8821. test -d \$dldir || mkdir -p \$dldir~
  8822. $install_prog $dir/$dlname \$dldir/$dlname'
  8823. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8824. dlpath=$dir/\$dldll~
  8825. $RM \$dlpath'
  8826. shlibpath_overrides_runpath=yes
  8827. dynamic_linker='Win32 link.exe'
  8828. ;;
  8829. *)
  8830. # Assume MSVC wrapper
  8831. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8832. dynamic_linker='Win32 ld.exe'
  8833. ;;
  8834. esac
  8835. # FIXME: first we should search . and the directory the executable is in
  8836. shlibpath_var=PATH
  8837. ;;
  8838. darwin* | rhapsody*)
  8839. dynamic_linker="$host_os dyld"
  8840. version_type=darwin
  8841. need_lib_prefix=no
  8842. need_version=no
  8843. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8844. soname_spec='${libname}${release}${major}$shared_ext'
  8845. shlibpath_overrides_runpath=yes
  8846. shlibpath_var=DYLD_LIBRARY_PATH
  8847. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8848. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8849. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8850. ;;
  8851. dgux*)
  8852. version_type=linux # correct to gnu/linux during the next big refactor
  8853. need_lib_prefix=no
  8854. need_version=no
  8855. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8856. soname_spec='${libname}${release}${shared_ext}$major'
  8857. shlibpath_var=LD_LIBRARY_PATH
  8858. ;;
  8859. freebsd* | dragonfly*)
  8860. # DragonFly does not have aout. When/if they implement a new
  8861. # versioning mechanism, adjust this.
  8862. if test -x /usr/bin/objformat; then
  8863. objformat=`/usr/bin/objformat`
  8864. else
  8865. case $host_os in
  8866. freebsd[23].*) objformat=aout ;;
  8867. *) objformat=elf ;;
  8868. esac
  8869. fi
  8870. version_type=freebsd-$objformat
  8871. case $version_type in
  8872. freebsd-elf*)
  8873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8874. need_version=no
  8875. need_lib_prefix=no
  8876. ;;
  8877. freebsd-*)
  8878. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8879. need_version=yes
  8880. ;;
  8881. esac
  8882. shlibpath_var=LD_LIBRARY_PATH
  8883. case $host_os in
  8884. freebsd2.*)
  8885. shlibpath_overrides_runpath=yes
  8886. ;;
  8887. freebsd3.[01]* | freebsdelf3.[01]*)
  8888. shlibpath_overrides_runpath=yes
  8889. hardcode_into_libs=yes
  8890. ;;
  8891. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8892. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8893. shlibpath_overrides_runpath=no
  8894. hardcode_into_libs=yes
  8895. ;;
  8896. *) # from 4.6 on, and DragonFly
  8897. shlibpath_overrides_runpath=yes
  8898. hardcode_into_libs=yes
  8899. ;;
  8900. esac
  8901. ;;
  8902. gnu*)
  8903. version_type=linux # correct to gnu/linux during the next big refactor
  8904. need_lib_prefix=no
  8905. need_version=no
  8906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8907. soname_spec='${libname}${release}${shared_ext}$major'
  8908. shlibpath_var=LD_LIBRARY_PATH
  8909. shlibpath_overrides_runpath=no
  8910. hardcode_into_libs=yes
  8911. ;;
  8912. haiku*)
  8913. version_type=linux # correct to gnu/linux during the next big refactor
  8914. need_lib_prefix=no
  8915. need_version=no
  8916. dynamic_linker="$host_os runtime_loader"
  8917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8918. soname_spec='${libname}${release}${shared_ext}$major'
  8919. shlibpath_var=LIBRARY_PATH
  8920. shlibpath_overrides_runpath=yes
  8921. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8922. hardcode_into_libs=yes
  8923. ;;
  8924. hpux9* | hpux10* | hpux11*)
  8925. # Give a soname corresponding to the major version so that dld.sl refuses to
  8926. # link against other versions.
  8927. version_type=sunos
  8928. need_lib_prefix=no
  8929. need_version=no
  8930. case $host_cpu in
  8931. ia64*)
  8932. shrext_cmds='.so'
  8933. hardcode_into_libs=yes
  8934. dynamic_linker="$host_os dld.so"
  8935. shlibpath_var=LD_LIBRARY_PATH
  8936. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8938. soname_spec='${libname}${release}${shared_ext}$major'
  8939. if test "X$HPUX_IA64_MODE" = X32; then
  8940. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8941. else
  8942. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8943. fi
  8944. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8945. ;;
  8946. hppa*64*)
  8947. shrext_cmds='.sl'
  8948. hardcode_into_libs=yes
  8949. dynamic_linker="$host_os dld.sl"
  8950. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8951. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8953. soname_spec='${libname}${release}${shared_ext}$major'
  8954. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8955. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8956. ;;
  8957. *)
  8958. shrext_cmds='.sl'
  8959. dynamic_linker="$host_os dld.sl"
  8960. shlibpath_var=SHLIB_PATH
  8961. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8963. soname_spec='${libname}${release}${shared_ext}$major'
  8964. ;;
  8965. esac
  8966. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8967. postinstall_cmds='chmod 555 $lib'
  8968. # or fails outright, so override atomically:
  8969. install_override_mode=555
  8970. ;;
  8971. interix[3-9]*)
  8972. version_type=linux # correct to gnu/linux during the next big refactor
  8973. need_lib_prefix=no
  8974. need_version=no
  8975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8976. soname_spec='${libname}${release}${shared_ext}$major'
  8977. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8978. shlibpath_var=LD_LIBRARY_PATH
  8979. shlibpath_overrides_runpath=no
  8980. hardcode_into_libs=yes
  8981. ;;
  8982. irix5* | irix6* | nonstopux*)
  8983. case $host_os in
  8984. nonstopux*) version_type=nonstopux ;;
  8985. *)
  8986. if test "$lt_cv_prog_gnu_ld" = yes; then
  8987. version_type=linux # correct to gnu/linux during the next big refactor
  8988. else
  8989. version_type=irix
  8990. fi ;;
  8991. esac
  8992. need_lib_prefix=no
  8993. need_version=no
  8994. soname_spec='${libname}${release}${shared_ext}$major'
  8995. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8996. case $host_os in
  8997. irix5* | nonstopux*)
  8998. libsuff= shlibsuff=
  8999. ;;
  9000. *)
  9001. case $LD in # libtool.m4 will add one of these switches to LD
  9002. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9003. libsuff= shlibsuff= libmagic=32-bit;;
  9004. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9005. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9006. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9007. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9008. *) libsuff= shlibsuff= libmagic=never-match;;
  9009. esac
  9010. ;;
  9011. esac
  9012. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9013. shlibpath_overrides_runpath=no
  9014. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9015. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9016. hardcode_into_libs=yes
  9017. ;;
  9018. # No shared lib support for Linux oldld, aout, or coff.
  9019. linux*oldld* | linux*aout* | linux*coff*)
  9020. dynamic_linker=no
  9021. ;;
  9022. # This must be glibc/ELF.
  9023. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9024. version_type=linux # correct to gnu/linux during the next big refactor
  9025. need_lib_prefix=no
  9026. need_version=no
  9027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9028. soname_spec='${libname}${release}${shared_ext}$major'
  9029. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9030. shlibpath_var=LD_LIBRARY_PATH
  9031. shlibpath_overrides_runpath=no
  9032. # Some binutils ld are patched to set DT_RUNPATH
  9033. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9034. $as_echo_n "(cached) " >&6
  9035. else
  9036. lt_cv_shlibpath_overrides_runpath=no
  9037. save_LDFLAGS=$LDFLAGS
  9038. save_libdir=$libdir
  9039. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9040. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9042. /* end confdefs.h. */
  9043. int
  9044. main ()
  9045. {
  9046. ;
  9047. return 0;
  9048. }
  9049. _ACEOF
  9050. if ac_fn_c_try_link "$LINENO"; then :
  9051. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9052. lt_cv_shlibpath_overrides_runpath=yes
  9053. fi
  9054. fi
  9055. rm -f core conftest.err conftest.$ac_objext \
  9056. conftest$ac_exeext conftest.$ac_ext
  9057. LDFLAGS=$save_LDFLAGS
  9058. libdir=$save_libdir
  9059. fi
  9060. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9061. # This implies no fast_install, which is unacceptable.
  9062. # Some rework will be needed to allow for fast_install
  9063. # before this can be enabled.
  9064. hardcode_into_libs=yes
  9065. # Append ld.so.conf contents to the search path
  9066. if test -f /etc/ld.so.conf; then
  9067. 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' ' '`
  9068. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9069. fi
  9070. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9071. # powerpc, because MkLinux only supported shared libraries with the
  9072. # GNU dynamic linker. Since this was broken with cross compilers,
  9073. # most powerpc-linux boxes support dynamic linking these days and
  9074. # people can always --disable-shared, the test was removed, and we
  9075. # assume the GNU/Linux dynamic linker is in use.
  9076. dynamic_linker='GNU/Linux ld.so'
  9077. ;;
  9078. netbsd*)
  9079. version_type=sunos
  9080. need_lib_prefix=no
  9081. need_version=no
  9082. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9084. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9085. dynamic_linker='NetBSD (a.out) ld.so'
  9086. else
  9087. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9088. soname_spec='${libname}${release}${shared_ext}$major'
  9089. dynamic_linker='NetBSD ld.elf_so'
  9090. fi
  9091. shlibpath_var=LD_LIBRARY_PATH
  9092. shlibpath_overrides_runpath=yes
  9093. hardcode_into_libs=yes
  9094. ;;
  9095. newsos6)
  9096. version_type=linux # correct to gnu/linux during the next big refactor
  9097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9098. shlibpath_var=LD_LIBRARY_PATH
  9099. shlibpath_overrides_runpath=yes
  9100. ;;
  9101. *nto* | *qnx*)
  9102. version_type=qnx
  9103. need_lib_prefix=no
  9104. need_version=no
  9105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9106. soname_spec='${libname}${release}${shared_ext}$major'
  9107. shlibpath_var=LD_LIBRARY_PATH
  9108. shlibpath_overrides_runpath=no
  9109. hardcode_into_libs=yes
  9110. dynamic_linker='ldqnx.so'
  9111. ;;
  9112. openbsd*)
  9113. version_type=sunos
  9114. sys_lib_dlsearch_path_spec="/usr/lib"
  9115. need_lib_prefix=no
  9116. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9117. case $host_os in
  9118. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9119. *) need_version=no ;;
  9120. esac
  9121. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9122. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9123. shlibpath_var=LD_LIBRARY_PATH
  9124. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9125. case $host_os in
  9126. openbsd2.[89] | openbsd2.[89].*)
  9127. shlibpath_overrides_runpath=no
  9128. ;;
  9129. *)
  9130. shlibpath_overrides_runpath=yes
  9131. ;;
  9132. esac
  9133. else
  9134. shlibpath_overrides_runpath=yes
  9135. fi
  9136. ;;
  9137. os2*)
  9138. libname_spec='$name'
  9139. shrext_cmds=".dll"
  9140. need_lib_prefix=no
  9141. library_names_spec='$libname${shared_ext} $libname.a'
  9142. dynamic_linker='OS/2 ld.exe'
  9143. shlibpath_var=LIBPATH
  9144. ;;
  9145. osf3* | osf4* | osf5*)
  9146. version_type=osf
  9147. need_lib_prefix=no
  9148. need_version=no
  9149. soname_spec='${libname}${release}${shared_ext}$major'
  9150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9151. shlibpath_var=LD_LIBRARY_PATH
  9152. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9153. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9154. ;;
  9155. rdos*)
  9156. dynamic_linker=no
  9157. ;;
  9158. solaris*)
  9159. version_type=linux # correct to gnu/linux during the next big refactor
  9160. need_lib_prefix=no
  9161. need_version=no
  9162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9163. soname_spec='${libname}${release}${shared_ext}$major'
  9164. shlibpath_var=LD_LIBRARY_PATH
  9165. shlibpath_overrides_runpath=yes
  9166. hardcode_into_libs=yes
  9167. # ldd complains unless libraries are executable
  9168. postinstall_cmds='chmod +x $lib'
  9169. ;;
  9170. sunos4*)
  9171. version_type=sunos
  9172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9173. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9174. shlibpath_var=LD_LIBRARY_PATH
  9175. shlibpath_overrides_runpath=yes
  9176. if test "$with_gnu_ld" = yes; then
  9177. need_lib_prefix=no
  9178. fi
  9179. need_version=yes
  9180. ;;
  9181. sysv4 | sysv4.3*)
  9182. version_type=linux # correct to gnu/linux during the next big refactor
  9183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9184. soname_spec='${libname}${release}${shared_ext}$major'
  9185. shlibpath_var=LD_LIBRARY_PATH
  9186. case $host_vendor in
  9187. sni)
  9188. shlibpath_overrides_runpath=no
  9189. need_lib_prefix=no
  9190. runpath_var=LD_RUN_PATH
  9191. ;;
  9192. siemens)
  9193. need_lib_prefix=no
  9194. ;;
  9195. motorola)
  9196. need_lib_prefix=no
  9197. need_version=no
  9198. shlibpath_overrides_runpath=no
  9199. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9200. ;;
  9201. esac
  9202. ;;
  9203. sysv4*MP*)
  9204. if test -d /usr/nec ;then
  9205. version_type=linux # correct to gnu/linux during the next big refactor
  9206. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9207. soname_spec='$libname${shared_ext}.$major'
  9208. shlibpath_var=LD_LIBRARY_PATH
  9209. fi
  9210. ;;
  9211. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9212. version_type=freebsd-elf
  9213. need_lib_prefix=no
  9214. need_version=no
  9215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9216. soname_spec='${libname}${release}${shared_ext}$major'
  9217. shlibpath_var=LD_LIBRARY_PATH
  9218. shlibpath_overrides_runpath=yes
  9219. hardcode_into_libs=yes
  9220. if test "$with_gnu_ld" = yes; then
  9221. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9222. else
  9223. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9224. case $host_os in
  9225. sco3.2v5*)
  9226. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9227. ;;
  9228. esac
  9229. fi
  9230. sys_lib_dlsearch_path_spec='/usr/lib'
  9231. ;;
  9232. tpf*)
  9233. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9234. version_type=linux # correct to gnu/linux during the next big refactor
  9235. need_lib_prefix=no
  9236. need_version=no
  9237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9238. shlibpath_var=LD_LIBRARY_PATH
  9239. shlibpath_overrides_runpath=no
  9240. hardcode_into_libs=yes
  9241. ;;
  9242. uts4*)
  9243. version_type=linux # correct to gnu/linux during the next big refactor
  9244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9245. soname_spec='${libname}${release}${shared_ext}$major'
  9246. shlibpath_var=LD_LIBRARY_PATH
  9247. ;;
  9248. *)
  9249. dynamic_linker=no
  9250. ;;
  9251. esac
  9252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9253. $as_echo "$dynamic_linker" >&6; }
  9254. test "$dynamic_linker" = no && can_build_shared=no
  9255. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9256. if test "$GCC" = yes; then
  9257. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9258. fi
  9259. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9260. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9261. fi
  9262. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9263. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9264. fi
  9265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9266. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9267. hardcode_action=
  9268. if test -n "$hardcode_libdir_flag_spec" ||
  9269. test -n "$runpath_var" ||
  9270. test "X$hardcode_automatic" = "Xyes" ; then
  9271. # We can hardcode non-existent directories.
  9272. if test "$hardcode_direct" != no &&
  9273. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9274. # have to relink, otherwise we might link with an installed library
  9275. # when we should be linking with a yet-to-be-installed one
  9276. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9277. test "$hardcode_minus_L" != no; then
  9278. # Linking always hardcodes the temporary library directory.
  9279. hardcode_action=relink
  9280. else
  9281. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9282. hardcode_action=immediate
  9283. fi
  9284. else
  9285. # We cannot hardcode anything, or else we can only hardcode existing
  9286. # directories.
  9287. hardcode_action=unsupported
  9288. fi
  9289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9290. $as_echo "$hardcode_action" >&6; }
  9291. if test "$hardcode_action" = relink ||
  9292. test "$inherit_rpath" = yes; then
  9293. # Fast installation is not supported
  9294. enable_fast_install=no
  9295. elif test "$shlibpath_overrides_runpath" = yes ||
  9296. test "$enable_shared" = no; then
  9297. # Fast installation is not necessary
  9298. enable_fast_install=needless
  9299. fi
  9300. if test "x$enable_dlopen" != xyes; then
  9301. enable_dlopen=unknown
  9302. enable_dlopen_self=unknown
  9303. enable_dlopen_self_static=unknown
  9304. else
  9305. lt_cv_dlopen=no
  9306. lt_cv_dlopen_libs=
  9307. case $host_os in
  9308. beos*)
  9309. lt_cv_dlopen="load_add_on"
  9310. lt_cv_dlopen_libs=
  9311. lt_cv_dlopen_self=yes
  9312. ;;
  9313. mingw* | pw32* | cegcc*)
  9314. lt_cv_dlopen="LoadLibrary"
  9315. lt_cv_dlopen_libs=
  9316. ;;
  9317. cygwin*)
  9318. lt_cv_dlopen="dlopen"
  9319. lt_cv_dlopen_libs=
  9320. ;;
  9321. darwin*)
  9322. # if libdl is installed we need to link against it
  9323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9324. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9325. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9326. $as_echo_n "(cached) " >&6
  9327. else
  9328. ac_check_lib_save_LIBS=$LIBS
  9329. LIBS="-ldl $LIBS"
  9330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9331. /* end confdefs.h. */
  9332. /* Override any GCC internal prototype to avoid an error.
  9333. Use char because int might match the return type of a GCC
  9334. builtin and then its argument prototype would still apply. */
  9335. #ifdef __cplusplus
  9336. extern "C"
  9337. #endif
  9338. char dlopen ();
  9339. int
  9340. main ()
  9341. {
  9342. return dlopen ();
  9343. ;
  9344. return 0;
  9345. }
  9346. _ACEOF
  9347. if ac_fn_c_try_link "$LINENO"; then :
  9348. ac_cv_lib_dl_dlopen=yes
  9349. else
  9350. ac_cv_lib_dl_dlopen=no
  9351. fi
  9352. rm -f core conftest.err conftest.$ac_objext \
  9353. conftest$ac_exeext conftest.$ac_ext
  9354. LIBS=$ac_check_lib_save_LIBS
  9355. fi
  9356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9357. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9358. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9359. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9360. else
  9361. lt_cv_dlopen="dyld"
  9362. lt_cv_dlopen_libs=
  9363. lt_cv_dlopen_self=yes
  9364. fi
  9365. ;;
  9366. *)
  9367. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9368. if test "x$ac_cv_func_shl_load" = xyes; then :
  9369. lt_cv_dlopen="shl_load"
  9370. else
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9372. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9373. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9374. $as_echo_n "(cached) " >&6
  9375. else
  9376. ac_check_lib_save_LIBS=$LIBS
  9377. LIBS="-ldld $LIBS"
  9378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9379. /* end confdefs.h. */
  9380. /* Override any GCC internal prototype to avoid an error.
  9381. Use char because int might match the return type of a GCC
  9382. builtin and then its argument prototype would still apply. */
  9383. #ifdef __cplusplus
  9384. extern "C"
  9385. #endif
  9386. char shl_load ();
  9387. int
  9388. main ()
  9389. {
  9390. return shl_load ();
  9391. ;
  9392. return 0;
  9393. }
  9394. _ACEOF
  9395. if ac_fn_c_try_link "$LINENO"; then :
  9396. ac_cv_lib_dld_shl_load=yes
  9397. else
  9398. ac_cv_lib_dld_shl_load=no
  9399. fi
  9400. rm -f core conftest.err conftest.$ac_objext \
  9401. conftest$ac_exeext conftest.$ac_ext
  9402. LIBS=$ac_check_lib_save_LIBS
  9403. fi
  9404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9405. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9406. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9407. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9408. else
  9409. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9410. if test "x$ac_cv_func_dlopen" = xyes; then :
  9411. lt_cv_dlopen="dlopen"
  9412. else
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9414. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9415. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9416. $as_echo_n "(cached) " >&6
  9417. else
  9418. ac_check_lib_save_LIBS=$LIBS
  9419. LIBS="-ldl $LIBS"
  9420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9421. /* end confdefs.h. */
  9422. /* Override any GCC internal prototype to avoid an error.
  9423. Use char because int might match the return type of a GCC
  9424. builtin and then its argument prototype would still apply. */
  9425. #ifdef __cplusplus
  9426. extern "C"
  9427. #endif
  9428. char dlopen ();
  9429. int
  9430. main ()
  9431. {
  9432. return dlopen ();
  9433. ;
  9434. return 0;
  9435. }
  9436. _ACEOF
  9437. if ac_fn_c_try_link "$LINENO"; then :
  9438. ac_cv_lib_dl_dlopen=yes
  9439. else
  9440. ac_cv_lib_dl_dlopen=no
  9441. fi
  9442. rm -f core conftest.err conftest.$ac_objext \
  9443. conftest$ac_exeext conftest.$ac_ext
  9444. LIBS=$ac_check_lib_save_LIBS
  9445. fi
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9447. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9448. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9449. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9450. else
  9451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9452. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9453. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9454. $as_echo_n "(cached) " >&6
  9455. else
  9456. ac_check_lib_save_LIBS=$LIBS
  9457. LIBS="-lsvld $LIBS"
  9458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9459. /* end confdefs.h. */
  9460. /* Override any GCC internal prototype to avoid an error.
  9461. Use char because int might match the return type of a GCC
  9462. builtin and then its argument prototype would still apply. */
  9463. #ifdef __cplusplus
  9464. extern "C"
  9465. #endif
  9466. char dlopen ();
  9467. int
  9468. main ()
  9469. {
  9470. return dlopen ();
  9471. ;
  9472. return 0;
  9473. }
  9474. _ACEOF
  9475. if ac_fn_c_try_link "$LINENO"; then :
  9476. ac_cv_lib_svld_dlopen=yes
  9477. else
  9478. ac_cv_lib_svld_dlopen=no
  9479. fi
  9480. rm -f core conftest.err conftest.$ac_objext \
  9481. conftest$ac_exeext conftest.$ac_ext
  9482. LIBS=$ac_check_lib_save_LIBS
  9483. fi
  9484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9485. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9486. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9487. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9488. else
  9489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9490. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9491. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9492. $as_echo_n "(cached) " >&6
  9493. else
  9494. ac_check_lib_save_LIBS=$LIBS
  9495. LIBS="-ldld $LIBS"
  9496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9497. /* end confdefs.h. */
  9498. /* Override any GCC internal prototype to avoid an error.
  9499. Use char because int might match the return type of a GCC
  9500. builtin and then its argument prototype would still apply. */
  9501. #ifdef __cplusplus
  9502. extern "C"
  9503. #endif
  9504. char dld_link ();
  9505. int
  9506. main ()
  9507. {
  9508. return dld_link ();
  9509. ;
  9510. return 0;
  9511. }
  9512. _ACEOF
  9513. if ac_fn_c_try_link "$LINENO"; then :
  9514. ac_cv_lib_dld_dld_link=yes
  9515. else
  9516. ac_cv_lib_dld_dld_link=no
  9517. fi
  9518. rm -f core conftest.err conftest.$ac_objext \
  9519. conftest$ac_exeext conftest.$ac_ext
  9520. LIBS=$ac_check_lib_save_LIBS
  9521. fi
  9522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9523. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9524. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9525. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9526. fi
  9527. fi
  9528. fi
  9529. fi
  9530. fi
  9531. fi
  9532. ;;
  9533. esac
  9534. if test "x$lt_cv_dlopen" != xno; then
  9535. enable_dlopen=yes
  9536. else
  9537. enable_dlopen=no
  9538. fi
  9539. case $lt_cv_dlopen in
  9540. dlopen)
  9541. save_CPPFLAGS="$CPPFLAGS"
  9542. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9543. save_LDFLAGS="$LDFLAGS"
  9544. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9545. save_LIBS="$LIBS"
  9546. LIBS="$lt_cv_dlopen_libs $LIBS"
  9547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9548. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9549. if ${lt_cv_dlopen_self+:} false; then :
  9550. $as_echo_n "(cached) " >&6
  9551. else
  9552. if test "$cross_compiling" = yes; then :
  9553. lt_cv_dlopen_self=cross
  9554. else
  9555. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9556. lt_status=$lt_dlunknown
  9557. cat > conftest.$ac_ext <<_LT_EOF
  9558. #line $LINENO "configure"
  9559. #include "confdefs.h"
  9560. #if HAVE_DLFCN_H
  9561. #include <dlfcn.h>
  9562. #endif
  9563. #include <stdio.h>
  9564. #ifdef RTLD_GLOBAL
  9565. # define LT_DLGLOBAL RTLD_GLOBAL
  9566. #else
  9567. # ifdef DL_GLOBAL
  9568. # define LT_DLGLOBAL DL_GLOBAL
  9569. # else
  9570. # define LT_DLGLOBAL 0
  9571. # endif
  9572. #endif
  9573. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9574. find out it does not work in some platform. */
  9575. #ifndef LT_DLLAZY_OR_NOW
  9576. # ifdef RTLD_LAZY
  9577. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9578. # else
  9579. # ifdef DL_LAZY
  9580. # define LT_DLLAZY_OR_NOW DL_LAZY
  9581. # else
  9582. # ifdef RTLD_NOW
  9583. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9584. # else
  9585. # ifdef DL_NOW
  9586. # define LT_DLLAZY_OR_NOW DL_NOW
  9587. # else
  9588. # define LT_DLLAZY_OR_NOW 0
  9589. # endif
  9590. # endif
  9591. # endif
  9592. # endif
  9593. #endif
  9594. /* When -fvisbility=hidden is used, assume the code has been annotated
  9595. correspondingly for the symbols needed. */
  9596. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9597. int fnord () __attribute__((visibility("default")));
  9598. #endif
  9599. int fnord () { return 42; }
  9600. int main ()
  9601. {
  9602. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9603. int status = $lt_dlunknown;
  9604. if (self)
  9605. {
  9606. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9607. else
  9608. {
  9609. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9610. else puts (dlerror ());
  9611. }
  9612. /* dlclose (self); */
  9613. }
  9614. else
  9615. puts (dlerror ());
  9616. return status;
  9617. }
  9618. _LT_EOF
  9619. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9620. (eval $ac_link) 2>&5
  9621. ac_status=$?
  9622. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9623. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9624. (./conftest; exit; ) >&5 2>/dev/null
  9625. lt_status=$?
  9626. case x$lt_status in
  9627. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9628. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9629. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9630. esac
  9631. else :
  9632. # compilation failed
  9633. lt_cv_dlopen_self=no
  9634. fi
  9635. fi
  9636. rm -fr conftest*
  9637. fi
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9639. $as_echo "$lt_cv_dlopen_self" >&6; }
  9640. if test "x$lt_cv_dlopen_self" = xyes; then
  9641. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9643. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9644. if ${lt_cv_dlopen_self_static+:} false; then :
  9645. $as_echo_n "(cached) " >&6
  9646. else
  9647. if test "$cross_compiling" = yes; then :
  9648. lt_cv_dlopen_self_static=cross
  9649. else
  9650. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9651. lt_status=$lt_dlunknown
  9652. cat > conftest.$ac_ext <<_LT_EOF
  9653. #line $LINENO "configure"
  9654. #include "confdefs.h"
  9655. #if HAVE_DLFCN_H
  9656. #include <dlfcn.h>
  9657. #endif
  9658. #include <stdio.h>
  9659. #ifdef RTLD_GLOBAL
  9660. # define LT_DLGLOBAL RTLD_GLOBAL
  9661. #else
  9662. # ifdef DL_GLOBAL
  9663. # define LT_DLGLOBAL DL_GLOBAL
  9664. # else
  9665. # define LT_DLGLOBAL 0
  9666. # endif
  9667. #endif
  9668. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9669. find out it does not work in some platform. */
  9670. #ifndef LT_DLLAZY_OR_NOW
  9671. # ifdef RTLD_LAZY
  9672. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9673. # else
  9674. # ifdef DL_LAZY
  9675. # define LT_DLLAZY_OR_NOW DL_LAZY
  9676. # else
  9677. # ifdef RTLD_NOW
  9678. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9679. # else
  9680. # ifdef DL_NOW
  9681. # define LT_DLLAZY_OR_NOW DL_NOW
  9682. # else
  9683. # define LT_DLLAZY_OR_NOW 0
  9684. # endif
  9685. # endif
  9686. # endif
  9687. # endif
  9688. #endif
  9689. /* When -fvisbility=hidden is used, assume the code has been annotated
  9690. correspondingly for the symbols needed. */
  9691. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9692. int fnord () __attribute__((visibility("default")));
  9693. #endif
  9694. int fnord () { return 42; }
  9695. int main ()
  9696. {
  9697. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9698. int status = $lt_dlunknown;
  9699. if (self)
  9700. {
  9701. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9702. else
  9703. {
  9704. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9705. else puts (dlerror ());
  9706. }
  9707. /* dlclose (self); */
  9708. }
  9709. else
  9710. puts (dlerror ());
  9711. return status;
  9712. }
  9713. _LT_EOF
  9714. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9715. (eval $ac_link) 2>&5
  9716. ac_status=$?
  9717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9718. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9719. (./conftest; exit; ) >&5 2>/dev/null
  9720. lt_status=$?
  9721. case x$lt_status in
  9722. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9723. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9724. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9725. esac
  9726. else :
  9727. # compilation failed
  9728. lt_cv_dlopen_self_static=no
  9729. fi
  9730. fi
  9731. rm -fr conftest*
  9732. fi
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9734. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9735. fi
  9736. CPPFLAGS="$save_CPPFLAGS"
  9737. LDFLAGS="$save_LDFLAGS"
  9738. LIBS="$save_LIBS"
  9739. ;;
  9740. esac
  9741. case $lt_cv_dlopen_self in
  9742. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9743. *) enable_dlopen_self=unknown ;;
  9744. esac
  9745. case $lt_cv_dlopen_self_static in
  9746. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9747. *) enable_dlopen_self_static=unknown ;;
  9748. esac
  9749. fi
  9750. striplib=
  9751. old_striplib=
  9752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9753. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9754. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9755. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9756. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9758. $as_echo "yes" >&6; }
  9759. else
  9760. # FIXME - insert some real tests, host_os isn't really good enough
  9761. case $host_os in
  9762. darwin*)
  9763. if test -n "$STRIP" ; then
  9764. striplib="$STRIP -x"
  9765. old_striplib="$STRIP -S"
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9767. $as_echo "yes" >&6; }
  9768. else
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9770. $as_echo "no" >&6; }
  9771. fi
  9772. ;;
  9773. *)
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9775. $as_echo "no" >&6; }
  9776. ;;
  9777. esac
  9778. fi
  9779. # Report which library types will actually be built
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9781. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9783. $as_echo "$can_build_shared" >&6; }
  9784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9785. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9786. test "$can_build_shared" = "no" && enable_shared=no
  9787. # On AIX, shared libraries and static libraries use the same namespace, and
  9788. # are all built from PIC.
  9789. case $host_os in
  9790. aix3*)
  9791. test "$enable_shared" = yes && enable_static=no
  9792. if test -n "$RANLIB"; then
  9793. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9794. postinstall_cmds='$RANLIB $lib'
  9795. fi
  9796. ;;
  9797. aix[4-9]*)
  9798. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9799. test "$enable_shared" = yes && enable_static=no
  9800. fi
  9801. ;;
  9802. esac
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9804. $as_echo "$enable_shared" >&6; }
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9806. $as_echo_n "checking whether to build static libraries... " >&6; }
  9807. # Make sure either enable_shared or enable_static is yes.
  9808. test "$enable_shared" = yes || enable_static=yes
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9810. $as_echo "$enable_static" >&6; }
  9811. fi
  9812. ac_ext=c
  9813. ac_cpp='$CPP $CPPFLAGS'
  9814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9817. CC="$lt_save_CC"
  9818. ac_config_commands="$ac_config_commands libtool"
  9819. # Only expand once:
  9820. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9821. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9822. LT_REVISION=$SDL_INTERFACE_AGE
  9823. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9824. ac_ext=c
  9825. ac_cpp='$CPP $CPPFLAGS'
  9826. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9827. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9828. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9829. if test -n "$ac_tool_prefix"; then
  9830. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9831. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9833. $as_echo_n "checking for $ac_word... " >&6; }
  9834. if ${ac_cv_prog_CC+:} false; then :
  9835. $as_echo_n "(cached) " >&6
  9836. else
  9837. if test -n "$CC"; then
  9838. ac_cv_prog_CC="$CC" # Let the user override the test.
  9839. else
  9840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9841. for as_dir in $PATH
  9842. do
  9843. IFS=$as_save_IFS
  9844. test -z "$as_dir" && as_dir=.
  9845. for ac_exec_ext in '' $ac_executable_extensions; do
  9846. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9847. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9849. break 2
  9850. fi
  9851. done
  9852. done
  9853. IFS=$as_save_IFS
  9854. fi
  9855. fi
  9856. CC=$ac_cv_prog_CC
  9857. if test -n "$CC"; then
  9858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9859. $as_echo "$CC" >&6; }
  9860. else
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9862. $as_echo "no" >&6; }
  9863. fi
  9864. fi
  9865. if test -z "$ac_cv_prog_CC"; then
  9866. ac_ct_CC=$CC
  9867. # Extract the first word of "gcc", so it can be a program name with args.
  9868. set dummy gcc; ac_word=$2
  9869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9870. $as_echo_n "checking for $ac_word... " >&6; }
  9871. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9872. $as_echo_n "(cached) " >&6
  9873. else
  9874. if test -n "$ac_ct_CC"; then
  9875. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9876. else
  9877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9878. for as_dir in $PATH
  9879. do
  9880. IFS=$as_save_IFS
  9881. test -z "$as_dir" && as_dir=.
  9882. for ac_exec_ext in '' $ac_executable_extensions; do
  9883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9884. ac_cv_prog_ac_ct_CC="gcc"
  9885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9886. break 2
  9887. fi
  9888. done
  9889. done
  9890. IFS=$as_save_IFS
  9891. fi
  9892. fi
  9893. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9894. if test -n "$ac_ct_CC"; then
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9896. $as_echo "$ac_ct_CC" >&6; }
  9897. else
  9898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9899. $as_echo "no" >&6; }
  9900. fi
  9901. if test "x$ac_ct_CC" = x; then
  9902. CC=""
  9903. else
  9904. case $cross_compiling:$ac_tool_warned in
  9905. yes:)
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9907. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9908. ac_tool_warned=yes ;;
  9909. esac
  9910. CC=$ac_ct_CC
  9911. fi
  9912. else
  9913. CC="$ac_cv_prog_CC"
  9914. fi
  9915. if test -z "$CC"; then
  9916. if test -n "$ac_tool_prefix"; then
  9917. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9918. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9920. $as_echo_n "checking for $ac_word... " >&6; }
  9921. if ${ac_cv_prog_CC+:} false; then :
  9922. $as_echo_n "(cached) " >&6
  9923. else
  9924. if test -n "$CC"; then
  9925. ac_cv_prog_CC="$CC" # Let the user override the test.
  9926. else
  9927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9928. for as_dir in $PATH
  9929. do
  9930. IFS=$as_save_IFS
  9931. test -z "$as_dir" && as_dir=.
  9932. for ac_exec_ext in '' $ac_executable_extensions; do
  9933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9934. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9936. break 2
  9937. fi
  9938. done
  9939. done
  9940. IFS=$as_save_IFS
  9941. fi
  9942. fi
  9943. CC=$ac_cv_prog_CC
  9944. if test -n "$CC"; then
  9945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9946. $as_echo "$CC" >&6; }
  9947. else
  9948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9949. $as_echo "no" >&6; }
  9950. fi
  9951. fi
  9952. fi
  9953. if test -z "$CC"; then
  9954. # Extract the first word of "cc", so it can be a program name with args.
  9955. set dummy cc; ac_word=$2
  9956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9957. $as_echo_n "checking for $ac_word... " >&6; }
  9958. if ${ac_cv_prog_CC+:} false; then :
  9959. $as_echo_n "(cached) " >&6
  9960. else
  9961. if test -n "$CC"; then
  9962. ac_cv_prog_CC="$CC" # Let the user override the test.
  9963. else
  9964. ac_prog_rejected=no
  9965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9966. for as_dir in $PATH
  9967. do
  9968. IFS=$as_save_IFS
  9969. test -z "$as_dir" && as_dir=.
  9970. for ac_exec_ext in '' $ac_executable_extensions; do
  9971. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9972. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9973. ac_prog_rejected=yes
  9974. continue
  9975. fi
  9976. ac_cv_prog_CC="cc"
  9977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9978. break 2
  9979. fi
  9980. done
  9981. done
  9982. IFS=$as_save_IFS
  9983. if test $ac_prog_rejected = yes; then
  9984. # We found a bogon in the path, so make sure we never use it.
  9985. set dummy $ac_cv_prog_CC
  9986. shift
  9987. if test $# != 0; then
  9988. # We chose a different compiler from the bogus one.
  9989. # However, it has the same basename, so the bogon will be chosen
  9990. # first if we set CC to just the basename; use the full file name.
  9991. shift
  9992. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9993. fi
  9994. fi
  9995. fi
  9996. fi
  9997. CC=$ac_cv_prog_CC
  9998. if test -n "$CC"; then
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10000. $as_echo "$CC" >&6; }
  10001. else
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10003. $as_echo "no" >&6; }
  10004. fi
  10005. fi
  10006. if test -z "$CC"; then
  10007. if test -n "$ac_tool_prefix"; then
  10008. for ac_prog in cl.exe
  10009. do
  10010. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10011. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10013. $as_echo_n "checking for $ac_word... " >&6; }
  10014. if ${ac_cv_prog_CC+:} false; then :
  10015. $as_echo_n "(cached) " >&6
  10016. else
  10017. if test -n "$CC"; then
  10018. ac_cv_prog_CC="$CC" # Let the user override the test.
  10019. else
  10020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10021. for as_dir in $PATH
  10022. do
  10023. IFS=$as_save_IFS
  10024. test -z "$as_dir" && as_dir=.
  10025. for ac_exec_ext in '' $ac_executable_extensions; do
  10026. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10027. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10029. break 2
  10030. fi
  10031. done
  10032. done
  10033. IFS=$as_save_IFS
  10034. fi
  10035. fi
  10036. CC=$ac_cv_prog_CC
  10037. if test -n "$CC"; then
  10038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10039. $as_echo "$CC" >&6; }
  10040. else
  10041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10042. $as_echo "no" >&6; }
  10043. fi
  10044. test -n "$CC" && break
  10045. done
  10046. fi
  10047. if test -z "$CC"; then
  10048. ac_ct_CC=$CC
  10049. for ac_prog in cl.exe
  10050. do
  10051. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10052. set dummy $ac_prog; ac_word=$2
  10053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10054. $as_echo_n "checking for $ac_word... " >&6; }
  10055. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10056. $as_echo_n "(cached) " >&6
  10057. else
  10058. if test -n "$ac_ct_CC"; then
  10059. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10060. else
  10061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10062. for as_dir in $PATH
  10063. do
  10064. IFS=$as_save_IFS
  10065. test -z "$as_dir" && as_dir=.
  10066. for ac_exec_ext in '' $ac_executable_extensions; do
  10067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10068. ac_cv_prog_ac_ct_CC="$ac_prog"
  10069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10070. break 2
  10071. fi
  10072. done
  10073. done
  10074. IFS=$as_save_IFS
  10075. fi
  10076. fi
  10077. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10078. if test -n "$ac_ct_CC"; then
  10079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10080. $as_echo "$ac_ct_CC" >&6; }
  10081. else
  10082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10083. $as_echo "no" >&6; }
  10084. fi
  10085. test -n "$ac_ct_CC" && break
  10086. done
  10087. if test "x$ac_ct_CC" = x; then
  10088. CC=""
  10089. else
  10090. case $cross_compiling:$ac_tool_warned in
  10091. yes:)
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10093. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10094. ac_tool_warned=yes ;;
  10095. esac
  10096. CC=$ac_ct_CC
  10097. fi
  10098. fi
  10099. fi
  10100. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10101. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10102. as_fn_error $? "no acceptable C compiler found in \$PATH
  10103. See \`config.log' for more details" "$LINENO" 5; }
  10104. # Provide some information about the compiler.
  10105. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10106. set X $ac_compile
  10107. ac_compiler=$2
  10108. for ac_option in --version -v -V -qversion; do
  10109. { { ac_try="$ac_compiler $ac_option >&5"
  10110. case "(($ac_try" in
  10111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10112. *) ac_try_echo=$ac_try;;
  10113. esac
  10114. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10115. $as_echo "$ac_try_echo"; } >&5
  10116. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10117. ac_status=$?
  10118. if test -s conftest.err; then
  10119. sed '10a\
  10120. ... rest of stderr output deleted ...
  10121. 10q' conftest.err >conftest.er1
  10122. cat conftest.er1 >&5
  10123. fi
  10124. rm -f conftest.er1 conftest.err
  10125. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10126. test $ac_status = 0; }
  10127. done
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10129. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10130. if ${ac_cv_c_compiler_gnu+:} false; then :
  10131. $as_echo_n "(cached) " >&6
  10132. else
  10133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10134. /* end confdefs.h. */
  10135. int
  10136. main ()
  10137. {
  10138. #ifndef __GNUC__
  10139. choke me
  10140. #endif
  10141. ;
  10142. return 0;
  10143. }
  10144. _ACEOF
  10145. if ac_fn_c_try_compile "$LINENO"; then :
  10146. ac_compiler_gnu=yes
  10147. else
  10148. ac_compiler_gnu=no
  10149. fi
  10150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10151. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10152. fi
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10154. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10155. if test $ac_compiler_gnu = yes; then
  10156. GCC=yes
  10157. else
  10158. GCC=
  10159. fi
  10160. ac_test_CFLAGS=${CFLAGS+set}
  10161. ac_save_CFLAGS=$CFLAGS
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10163. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10164. if ${ac_cv_prog_cc_g+:} false; then :
  10165. $as_echo_n "(cached) " >&6
  10166. else
  10167. ac_save_c_werror_flag=$ac_c_werror_flag
  10168. ac_c_werror_flag=yes
  10169. ac_cv_prog_cc_g=no
  10170. CFLAGS="-g"
  10171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10172. /* end confdefs.h. */
  10173. int
  10174. main ()
  10175. {
  10176. ;
  10177. return 0;
  10178. }
  10179. _ACEOF
  10180. if ac_fn_c_try_compile "$LINENO"; then :
  10181. ac_cv_prog_cc_g=yes
  10182. else
  10183. CFLAGS=""
  10184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10185. /* end confdefs.h. */
  10186. int
  10187. main ()
  10188. {
  10189. ;
  10190. return 0;
  10191. }
  10192. _ACEOF
  10193. if ac_fn_c_try_compile "$LINENO"; then :
  10194. else
  10195. ac_c_werror_flag=$ac_save_c_werror_flag
  10196. CFLAGS="-g"
  10197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10198. /* end confdefs.h. */
  10199. int
  10200. main ()
  10201. {
  10202. ;
  10203. return 0;
  10204. }
  10205. _ACEOF
  10206. if ac_fn_c_try_compile "$LINENO"; then :
  10207. ac_cv_prog_cc_g=yes
  10208. fi
  10209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10210. fi
  10211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10212. fi
  10213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10214. ac_c_werror_flag=$ac_save_c_werror_flag
  10215. fi
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10217. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10218. if test "$ac_test_CFLAGS" = set; then
  10219. CFLAGS=$ac_save_CFLAGS
  10220. elif test $ac_cv_prog_cc_g = yes; then
  10221. if test "$GCC" = yes; then
  10222. CFLAGS="-g -O2"
  10223. else
  10224. CFLAGS="-g"
  10225. fi
  10226. else
  10227. if test "$GCC" = yes; then
  10228. CFLAGS="-O2"
  10229. else
  10230. CFLAGS=
  10231. fi
  10232. fi
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10234. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10235. if ${ac_cv_prog_cc_c89+:} false; then :
  10236. $as_echo_n "(cached) " >&6
  10237. else
  10238. ac_cv_prog_cc_c89=no
  10239. ac_save_CC=$CC
  10240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10241. /* end confdefs.h. */
  10242. #include <stdarg.h>
  10243. #include <stdio.h>
  10244. struct stat;
  10245. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10246. struct buf { int x; };
  10247. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10248. static char *e (p, i)
  10249. char **p;
  10250. int i;
  10251. {
  10252. return p[i];
  10253. }
  10254. static char *f (char * (*g) (char **, int), char **p, ...)
  10255. {
  10256. char *s;
  10257. va_list v;
  10258. va_start (v,p);
  10259. s = g (p, va_arg (v,int));
  10260. va_end (v);
  10261. return s;
  10262. }
  10263. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10264. function prototypes and stuff, but not '\xHH' hex character constants.
  10265. These don't provoke an error unfortunately, instead are silently treated
  10266. as 'x'. The following induces an error, until -std is added to get
  10267. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10268. array size at least. It's necessary to write '\x00'==0 to get something
  10269. that's true only with -std. */
  10270. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10271. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10272. inside strings and character constants. */
  10273. #define FOO(x) 'x'
  10274. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10275. int test (int i, double x);
  10276. struct s1 {int (*f) (int a);};
  10277. struct s2 {int (*f) (double a);};
  10278. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10279. int argc;
  10280. char **argv;
  10281. int
  10282. main ()
  10283. {
  10284. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10285. ;
  10286. return 0;
  10287. }
  10288. _ACEOF
  10289. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10290. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10291. do
  10292. CC="$ac_save_CC $ac_arg"
  10293. if ac_fn_c_try_compile "$LINENO"; then :
  10294. ac_cv_prog_cc_c89=$ac_arg
  10295. fi
  10296. rm -f core conftest.err conftest.$ac_objext
  10297. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10298. done
  10299. rm -f conftest.$ac_ext
  10300. CC=$ac_save_CC
  10301. fi
  10302. # AC_CACHE_VAL
  10303. case "x$ac_cv_prog_cc_c89" in
  10304. x)
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10306. $as_echo "none needed" >&6; } ;;
  10307. xno)
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10309. $as_echo "unsupported" >&6; } ;;
  10310. *)
  10311. CC="$CC $ac_cv_prog_cc_c89"
  10312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10313. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10314. esac
  10315. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10316. fi
  10317. ac_ext=c
  10318. ac_cpp='$CPP $CPPFLAGS'
  10319. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10320. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10321. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10322. ac_ext=cpp
  10323. ac_cpp='$CXXCPP $CPPFLAGS'
  10324. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10325. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10326. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10327. if test -z "$CXX"; then
  10328. if test -n "$CCC"; then
  10329. CXX=$CCC
  10330. else
  10331. if test -n "$ac_tool_prefix"; then
  10332. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10333. do
  10334. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10335. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10337. $as_echo_n "checking for $ac_word... " >&6; }
  10338. if ${ac_cv_prog_CXX+:} false; then :
  10339. $as_echo_n "(cached) " >&6
  10340. else
  10341. if test -n "$CXX"; then
  10342. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10343. else
  10344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10345. for as_dir in $PATH
  10346. do
  10347. IFS=$as_save_IFS
  10348. test -z "$as_dir" && as_dir=.
  10349. for ac_exec_ext in '' $ac_executable_extensions; do
  10350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10351. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10353. break 2
  10354. fi
  10355. done
  10356. done
  10357. IFS=$as_save_IFS
  10358. fi
  10359. fi
  10360. CXX=$ac_cv_prog_CXX
  10361. if test -n "$CXX"; then
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10363. $as_echo "$CXX" >&6; }
  10364. else
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10366. $as_echo "no" >&6; }
  10367. fi
  10368. test -n "$CXX" && break
  10369. done
  10370. fi
  10371. if test -z "$CXX"; then
  10372. ac_ct_CXX=$CXX
  10373. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10374. do
  10375. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10376. set dummy $ac_prog; ac_word=$2
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10378. $as_echo_n "checking for $ac_word... " >&6; }
  10379. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10380. $as_echo_n "(cached) " >&6
  10381. else
  10382. if test -n "$ac_ct_CXX"; then
  10383. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10384. else
  10385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10386. for as_dir in $PATH
  10387. do
  10388. IFS=$as_save_IFS
  10389. test -z "$as_dir" && as_dir=.
  10390. for ac_exec_ext in '' $ac_executable_extensions; do
  10391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10392. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10394. break 2
  10395. fi
  10396. done
  10397. done
  10398. IFS=$as_save_IFS
  10399. fi
  10400. fi
  10401. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10402. if test -n "$ac_ct_CXX"; then
  10403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10404. $as_echo "$ac_ct_CXX" >&6; }
  10405. else
  10406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10407. $as_echo "no" >&6; }
  10408. fi
  10409. test -n "$ac_ct_CXX" && break
  10410. done
  10411. if test "x$ac_ct_CXX" = x; then
  10412. CXX="g++"
  10413. else
  10414. case $cross_compiling:$ac_tool_warned in
  10415. yes:)
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10417. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10418. ac_tool_warned=yes ;;
  10419. esac
  10420. CXX=$ac_ct_CXX
  10421. fi
  10422. fi
  10423. fi
  10424. fi
  10425. # Provide some information about the compiler.
  10426. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10427. set X $ac_compile
  10428. ac_compiler=$2
  10429. for ac_option in --version -v -V -qversion; do
  10430. { { ac_try="$ac_compiler $ac_option >&5"
  10431. case "(($ac_try" in
  10432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10433. *) ac_try_echo=$ac_try;;
  10434. esac
  10435. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10436. $as_echo "$ac_try_echo"; } >&5
  10437. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10438. ac_status=$?
  10439. if test -s conftest.err; then
  10440. sed '10a\
  10441. ... rest of stderr output deleted ...
  10442. 10q' conftest.err >conftest.er1
  10443. cat conftest.er1 >&5
  10444. fi
  10445. rm -f conftest.er1 conftest.err
  10446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10447. test $ac_status = 0; }
  10448. done
  10449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10450. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10451. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10452. $as_echo_n "(cached) " >&6
  10453. else
  10454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10455. /* end confdefs.h. */
  10456. int
  10457. main ()
  10458. {
  10459. #ifndef __GNUC__
  10460. choke me
  10461. #endif
  10462. ;
  10463. return 0;
  10464. }
  10465. _ACEOF
  10466. if ac_fn_cxx_try_compile "$LINENO"; then :
  10467. ac_compiler_gnu=yes
  10468. else
  10469. ac_compiler_gnu=no
  10470. fi
  10471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10472. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10473. fi
  10474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10475. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10476. if test $ac_compiler_gnu = yes; then
  10477. GXX=yes
  10478. else
  10479. GXX=
  10480. fi
  10481. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10482. ac_save_CXXFLAGS=$CXXFLAGS
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10484. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10485. if ${ac_cv_prog_cxx_g+:} false; then :
  10486. $as_echo_n "(cached) " >&6
  10487. else
  10488. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10489. ac_cxx_werror_flag=yes
  10490. ac_cv_prog_cxx_g=no
  10491. CXXFLAGS="-g"
  10492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10493. /* end confdefs.h. */
  10494. int
  10495. main ()
  10496. {
  10497. ;
  10498. return 0;
  10499. }
  10500. _ACEOF
  10501. if ac_fn_cxx_try_compile "$LINENO"; then :
  10502. ac_cv_prog_cxx_g=yes
  10503. else
  10504. CXXFLAGS=""
  10505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10506. /* end confdefs.h. */
  10507. int
  10508. main ()
  10509. {
  10510. ;
  10511. return 0;
  10512. }
  10513. _ACEOF
  10514. if ac_fn_cxx_try_compile "$LINENO"; then :
  10515. else
  10516. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10517. CXXFLAGS="-g"
  10518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10519. /* end confdefs.h. */
  10520. int
  10521. main ()
  10522. {
  10523. ;
  10524. return 0;
  10525. }
  10526. _ACEOF
  10527. if ac_fn_cxx_try_compile "$LINENO"; then :
  10528. ac_cv_prog_cxx_g=yes
  10529. fi
  10530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10531. fi
  10532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10533. fi
  10534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10535. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10536. fi
  10537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10538. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10539. if test "$ac_test_CXXFLAGS" = set; then
  10540. CXXFLAGS=$ac_save_CXXFLAGS
  10541. elif test $ac_cv_prog_cxx_g = yes; then
  10542. if test "$GXX" = yes; then
  10543. CXXFLAGS="-g -O2"
  10544. else
  10545. CXXFLAGS="-g"
  10546. fi
  10547. else
  10548. if test "$GXX" = yes; then
  10549. CXXFLAGS="-O2"
  10550. else
  10551. CXXFLAGS=
  10552. fi
  10553. fi
  10554. ac_ext=c
  10555. ac_cpp='$CPP $CPPFLAGS'
  10556. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10557. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10558. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10559. func_stripname_cnf ()
  10560. {
  10561. case ${2} in
  10562. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10563. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10564. esac
  10565. } # func_stripname_cnf
  10566. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10567. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10568. (test "X$CXX" != "Xg++"))) ; then
  10569. ac_ext=cpp
  10570. ac_cpp='$CXXCPP $CPPFLAGS'
  10571. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10572. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10573. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10575. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10576. if test -z "$CXXCPP"; then
  10577. if ${ac_cv_prog_CXXCPP+:} false; then :
  10578. $as_echo_n "(cached) " >&6
  10579. else
  10580. # Double quotes because CXXCPP needs to be expanded
  10581. for CXXCPP in "$CXX -E" "/lib/cpp"
  10582. do
  10583. ac_preproc_ok=false
  10584. for ac_cxx_preproc_warn_flag in '' yes
  10585. do
  10586. # Use a header file that comes with gcc, so configuring glibc
  10587. # with a fresh cross-compiler works.
  10588. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10589. # <limits.h> exists even on freestanding compilers.
  10590. # On the NeXT, cc -E runs the code through the compiler's parser,
  10591. # not just through cpp. "Syntax error" is here to catch this case.
  10592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10593. /* end confdefs.h. */
  10594. #ifdef __STDC__
  10595. # include <limits.h>
  10596. #else
  10597. # include <assert.h>
  10598. #endif
  10599. Syntax error
  10600. _ACEOF
  10601. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10602. else
  10603. # Broken: fails on valid input.
  10604. continue
  10605. fi
  10606. rm -f conftest.err conftest.i conftest.$ac_ext
  10607. # OK, works on sane cases. Now check whether nonexistent headers
  10608. # can be detected and how.
  10609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10610. /* end confdefs.h. */
  10611. #include <ac_nonexistent.h>
  10612. _ACEOF
  10613. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10614. # Broken: success on invalid input.
  10615. continue
  10616. else
  10617. # Passes both tests.
  10618. ac_preproc_ok=:
  10619. break
  10620. fi
  10621. rm -f conftest.err conftest.i conftest.$ac_ext
  10622. done
  10623. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10624. rm -f conftest.i conftest.err conftest.$ac_ext
  10625. if $ac_preproc_ok; then :
  10626. break
  10627. fi
  10628. done
  10629. ac_cv_prog_CXXCPP=$CXXCPP
  10630. fi
  10631. CXXCPP=$ac_cv_prog_CXXCPP
  10632. else
  10633. ac_cv_prog_CXXCPP=$CXXCPP
  10634. fi
  10635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10636. $as_echo "$CXXCPP" >&6; }
  10637. ac_preproc_ok=false
  10638. for ac_cxx_preproc_warn_flag in '' yes
  10639. do
  10640. # Use a header file that comes with gcc, so configuring glibc
  10641. # with a fresh cross-compiler works.
  10642. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10643. # <limits.h> exists even on freestanding compilers.
  10644. # On the NeXT, cc -E runs the code through the compiler's parser,
  10645. # not just through cpp. "Syntax error" is here to catch this case.
  10646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10647. /* end confdefs.h. */
  10648. #ifdef __STDC__
  10649. # include <limits.h>
  10650. #else
  10651. # include <assert.h>
  10652. #endif
  10653. Syntax error
  10654. _ACEOF
  10655. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10656. else
  10657. # Broken: fails on valid input.
  10658. continue
  10659. fi
  10660. rm -f conftest.err conftest.i conftest.$ac_ext
  10661. # OK, works on sane cases. Now check whether nonexistent headers
  10662. # can be detected and how.
  10663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10664. /* end confdefs.h. */
  10665. #include <ac_nonexistent.h>
  10666. _ACEOF
  10667. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10668. # Broken: success on invalid input.
  10669. continue
  10670. else
  10671. # Passes both tests.
  10672. ac_preproc_ok=:
  10673. break
  10674. fi
  10675. rm -f conftest.err conftest.i conftest.$ac_ext
  10676. done
  10677. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10678. rm -f conftest.i conftest.err conftest.$ac_ext
  10679. if $ac_preproc_ok; then :
  10680. else
  10681. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10682. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10683. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10684. See \`config.log' for more details" "$LINENO" 5; }
  10685. fi
  10686. ac_ext=c
  10687. ac_cpp='$CPP $CPPFLAGS'
  10688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10691. else
  10692. _lt_caught_CXX_error=yes
  10693. fi
  10694. ac_ext=cpp
  10695. ac_cpp='$CXXCPP $CPPFLAGS'
  10696. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10697. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10698. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10699. archive_cmds_need_lc_CXX=no
  10700. allow_undefined_flag_CXX=
  10701. always_export_symbols_CXX=no
  10702. archive_expsym_cmds_CXX=
  10703. compiler_needs_object_CXX=no
  10704. export_dynamic_flag_spec_CXX=
  10705. hardcode_direct_CXX=no
  10706. hardcode_direct_absolute_CXX=no
  10707. hardcode_libdir_flag_spec_CXX=
  10708. hardcode_libdir_separator_CXX=
  10709. hardcode_minus_L_CXX=no
  10710. hardcode_shlibpath_var_CXX=unsupported
  10711. hardcode_automatic_CXX=no
  10712. inherit_rpath_CXX=no
  10713. module_cmds_CXX=
  10714. module_expsym_cmds_CXX=
  10715. link_all_deplibs_CXX=unknown
  10716. old_archive_cmds_CXX=$old_archive_cmds
  10717. reload_flag_CXX=$reload_flag
  10718. reload_cmds_CXX=$reload_cmds
  10719. no_undefined_flag_CXX=
  10720. whole_archive_flag_spec_CXX=
  10721. enable_shared_with_static_runtimes_CXX=no
  10722. # Source file extension for C++ test sources.
  10723. ac_ext=cpp
  10724. # Object file extension for compiled C++ test sources.
  10725. objext=o
  10726. objext_CXX=$objext
  10727. # No sense in running all these tests if we already determined that
  10728. # the CXX compiler isn't working. Some variables (like enable_shared)
  10729. # are currently assumed to apply to all compilers on this platform,
  10730. # and will be corrupted by setting them based on a non-working compiler.
  10731. if test "$_lt_caught_CXX_error" != yes; then
  10732. # Code to be used in simple compile tests
  10733. lt_simple_compile_test_code="int some_variable = 0;"
  10734. # Code to be used in simple link tests
  10735. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10736. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10737. # If no C compiler was specified, use CC.
  10738. LTCC=${LTCC-"$CC"}
  10739. # If no C compiler flags were specified, use CFLAGS.
  10740. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10741. # Allow CC to be a program name with arguments.
  10742. compiler=$CC
  10743. # save warnings/boilerplate of simple test code
  10744. ac_outfile=conftest.$ac_objext
  10745. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10746. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10747. _lt_compiler_boilerplate=`cat conftest.err`
  10748. $RM conftest*
  10749. ac_outfile=conftest.$ac_objext
  10750. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10751. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10752. _lt_linker_boilerplate=`cat conftest.err`
  10753. $RM -r conftest*
  10754. # Allow CC to be a program name with arguments.
  10755. lt_save_CC=$CC
  10756. lt_save_CFLAGS=$CFLAGS
  10757. lt_save_LD=$LD
  10758. lt_save_GCC=$GCC
  10759. GCC=$GXX
  10760. lt_save_with_gnu_ld=$with_gnu_ld
  10761. lt_save_path_LD=$lt_cv_path_LD
  10762. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10763. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10764. else
  10765. $as_unset lt_cv_prog_gnu_ld
  10766. fi
  10767. if test -n "${lt_cv_path_LDCXX+set}"; then
  10768. lt_cv_path_LD=$lt_cv_path_LDCXX
  10769. else
  10770. $as_unset lt_cv_path_LD
  10771. fi
  10772. test -z "${LDCXX+set}" || LD=$LDCXX
  10773. CC=${CXX-"c++"}
  10774. CFLAGS=$CXXFLAGS
  10775. compiler=$CC
  10776. compiler_CXX=$CC
  10777. for cc_temp in $compiler""; do
  10778. case $cc_temp in
  10779. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10780. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10781. \-*) ;;
  10782. *) break;;
  10783. esac
  10784. done
  10785. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10786. if test -n "$compiler"; then
  10787. # We don't want -fno-exception when compiling C++ code, so set the
  10788. # no_builtin_flag separately
  10789. if test "$GXX" = yes; then
  10790. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10791. else
  10792. lt_prog_compiler_no_builtin_flag_CXX=
  10793. fi
  10794. if test "$GXX" = yes; then
  10795. # Set up default GNU C++ configuration
  10796. # Check whether --with-gnu-ld was given.
  10797. if test "${with_gnu_ld+set}" = set; then :
  10798. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10799. else
  10800. with_gnu_ld=no
  10801. fi
  10802. ac_prog=ld
  10803. if test "$GCC" = yes; then
  10804. # Check if gcc -print-prog-name=ld gives a path.
  10805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10806. $as_echo_n "checking for ld used by $CC... " >&6; }
  10807. case $host in
  10808. *-*-mingw*)
  10809. # gcc leaves a trailing carriage return which upsets mingw
  10810. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10811. *)
  10812. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10813. esac
  10814. case $ac_prog in
  10815. # Accept absolute paths.
  10816. [\\/]* | ?:[\\/]*)
  10817. re_direlt='/[^/][^/]*/\.\./'
  10818. # Canonicalize the pathname of ld
  10819. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10820. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10821. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10822. done
  10823. test -z "$LD" && LD="$ac_prog"
  10824. ;;
  10825. "")
  10826. # If it fails, then pretend we aren't using GCC.
  10827. ac_prog=ld
  10828. ;;
  10829. *)
  10830. # If it is relative, then search for the first ld in PATH.
  10831. with_gnu_ld=unknown
  10832. ;;
  10833. esac
  10834. elif test "$with_gnu_ld" = yes; then
  10835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10836. $as_echo_n "checking for GNU ld... " >&6; }
  10837. else
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10839. $as_echo_n "checking for non-GNU ld... " >&6; }
  10840. fi
  10841. if ${lt_cv_path_LD+:} false; then :
  10842. $as_echo_n "(cached) " >&6
  10843. else
  10844. if test -z "$LD"; then
  10845. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10846. for ac_dir in $PATH; do
  10847. IFS="$lt_save_ifs"
  10848. test -z "$ac_dir" && ac_dir=.
  10849. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10850. lt_cv_path_LD="$ac_dir/$ac_prog"
  10851. # Check to see if the program is GNU ld. I'd rather use --version,
  10852. # but apparently some variants of GNU ld only accept -v.
  10853. # Break only if it was the GNU/non-GNU ld that we prefer.
  10854. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10855. *GNU* | *'with BFD'*)
  10856. test "$with_gnu_ld" != no && break
  10857. ;;
  10858. *)
  10859. test "$with_gnu_ld" != yes && break
  10860. ;;
  10861. esac
  10862. fi
  10863. done
  10864. IFS="$lt_save_ifs"
  10865. else
  10866. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10867. fi
  10868. fi
  10869. LD="$lt_cv_path_LD"
  10870. if test -n "$LD"; then
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10872. $as_echo "$LD" >&6; }
  10873. else
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10875. $as_echo "no" >&6; }
  10876. fi
  10877. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10879. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10880. if ${lt_cv_prog_gnu_ld+:} false; then :
  10881. $as_echo_n "(cached) " >&6
  10882. else
  10883. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10884. case `$LD -v 2>&1 </dev/null` in
  10885. *GNU* | *'with BFD'*)
  10886. lt_cv_prog_gnu_ld=yes
  10887. ;;
  10888. *)
  10889. lt_cv_prog_gnu_ld=no
  10890. ;;
  10891. esac
  10892. fi
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10894. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10895. with_gnu_ld=$lt_cv_prog_gnu_ld
  10896. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10897. # archiving commands below assume that GNU ld is being used.
  10898. if test "$with_gnu_ld" = yes; then
  10899. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10900. 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'
  10901. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10902. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10903. # If archive_cmds runs LD, not CC, wlarc should be empty
  10904. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10905. # investigate it a little bit more. (MM)
  10906. wlarc='${wl}'
  10907. # ancient GNU ld didn't support --whole-archive et. al.
  10908. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10909. $GREP 'no-whole-archive' > /dev/null; then
  10910. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10911. else
  10912. whole_archive_flag_spec_CXX=
  10913. fi
  10914. else
  10915. with_gnu_ld=no
  10916. wlarc=
  10917. # A generic and very simple default shared library creation
  10918. # command for GNU C++ for the case where it uses the native
  10919. # linker, instead of GNU ld. If possible, this setting should
  10920. # overridden to take advantage of the native linker features on
  10921. # the platform it is being used on.
  10922. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10923. fi
  10924. # Commands to make compiler produce verbose output that lists
  10925. # what "hidden" libraries, object files and flags are used when
  10926. # linking a shared library.
  10927. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10928. else
  10929. GXX=no
  10930. with_gnu_ld=no
  10931. wlarc=
  10932. fi
  10933. # PORTME: fill in a description of your system's C++ link characteristics
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10935. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10936. ld_shlibs_CXX=yes
  10937. case $host_os in
  10938. aix3*)
  10939. # FIXME: insert proper C++ library support
  10940. ld_shlibs_CXX=no
  10941. ;;
  10942. aix[4-9]*)
  10943. if test "$host_cpu" = ia64; then
  10944. # On IA64, the linker does run time linking by default, so we don't
  10945. # have to do anything special.
  10946. aix_use_runtimelinking=no
  10947. exp_sym_flag='-Bexport'
  10948. no_entry_flag=""
  10949. else
  10950. aix_use_runtimelinking=no
  10951. # Test if we are trying to use run time linking or normal
  10952. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10953. # need to do runtime linking.
  10954. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10955. for ld_flag in $LDFLAGS; do
  10956. case $ld_flag in
  10957. *-brtl*)
  10958. aix_use_runtimelinking=yes
  10959. break
  10960. ;;
  10961. esac
  10962. done
  10963. ;;
  10964. esac
  10965. exp_sym_flag='-bexport'
  10966. no_entry_flag='-bnoentry'
  10967. fi
  10968. # When large executables or shared objects are built, AIX ld can
  10969. # have problems creating the table of contents. If linking a library
  10970. # or program results in "error TOC overflow" add -mminimal-toc to
  10971. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10972. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10973. archive_cmds_CXX=''
  10974. hardcode_direct_CXX=yes
  10975. hardcode_direct_absolute_CXX=yes
  10976. hardcode_libdir_separator_CXX=':'
  10977. link_all_deplibs_CXX=yes
  10978. file_list_spec_CXX='${wl}-f,'
  10979. if test "$GXX" = yes; then
  10980. case $host_os in aix4.[012]|aix4.[012].*)
  10981. # We only want to do this on AIX 4.2 and lower, the check
  10982. # below for broken collect2 doesn't work under 4.3+
  10983. collect2name=`${CC} -print-prog-name=collect2`
  10984. if test -f "$collect2name" &&
  10985. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10986. then
  10987. # We have reworked collect2
  10988. :
  10989. else
  10990. # We have old collect2
  10991. hardcode_direct_CXX=unsupported
  10992. # It fails to find uninstalled libraries when the uninstalled
  10993. # path is not listed in the libpath. Setting hardcode_minus_L
  10994. # to unsupported forces relinking
  10995. hardcode_minus_L_CXX=yes
  10996. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10997. hardcode_libdir_separator_CXX=
  10998. fi
  10999. esac
  11000. shared_flag='-shared'
  11001. if test "$aix_use_runtimelinking" = yes; then
  11002. shared_flag="$shared_flag "'${wl}-G'
  11003. fi
  11004. else
  11005. # not using gcc
  11006. if test "$host_cpu" = ia64; then
  11007. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11008. # chokes on -Wl,-G. The following line is correct:
  11009. shared_flag='-G'
  11010. else
  11011. if test "$aix_use_runtimelinking" = yes; then
  11012. shared_flag='${wl}-G'
  11013. else
  11014. shared_flag='${wl}-bM:SRE'
  11015. fi
  11016. fi
  11017. fi
  11018. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11019. # It seems that -bexpall does not export symbols beginning with
  11020. # underscore (_), so it is better to generate a list of symbols to
  11021. # export.
  11022. always_export_symbols_CXX=yes
  11023. if test "$aix_use_runtimelinking" = yes; then
  11024. # Warning - without using the other runtime loading flags (-brtl),
  11025. # -berok will link without error, but may produce a broken library.
  11026. allow_undefined_flag_CXX='-berok'
  11027. # Determine the default libpath from the value encoded in an empty
  11028. # executable.
  11029. if test "${lt_cv_aix_libpath+set}" = set; then
  11030. aix_libpath=$lt_cv_aix_libpath
  11031. else
  11032. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11033. $as_echo_n "(cached) " >&6
  11034. else
  11035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11036. /* end confdefs.h. */
  11037. int
  11038. main ()
  11039. {
  11040. ;
  11041. return 0;
  11042. }
  11043. _ACEOF
  11044. if ac_fn_cxx_try_link "$LINENO"; then :
  11045. lt_aix_libpath_sed='
  11046. /Import File Strings/,/^$/ {
  11047. /^0/ {
  11048. s/^0 *\([^ ]*\) *$/\1/
  11049. p
  11050. }
  11051. }'
  11052. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11053. # Check for a 64-bit object if we didn't find anything.
  11054. if test -z "$lt_cv_aix_libpath__CXX"; then
  11055. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11056. fi
  11057. fi
  11058. rm -f core conftest.err conftest.$ac_objext \
  11059. conftest$ac_exeext conftest.$ac_ext
  11060. if test -z "$lt_cv_aix_libpath__CXX"; then
  11061. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11062. fi
  11063. fi
  11064. aix_libpath=$lt_cv_aix_libpath__CXX
  11065. fi
  11066. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11067. 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"
  11068. else
  11069. if test "$host_cpu" = ia64; then
  11070. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11071. allow_undefined_flag_CXX="-z nodefs"
  11072. 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"
  11073. else
  11074. # Determine the default libpath from the value encoded in an
  11075. # empty executable.
  11076. if test "${lt_cv_aix_libpath+set}" = set; then
  11077. aix_libpath=$lt_cv_aix_libpath
  11078. else
  11079. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11080. $as_echo_n "(cached) " >&6
  11081. else
  11082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11083. /* end confdefs.h. */
  11084. int
  11085. main ()
  11086. {
  11087. ;
  11088. return 0;
  11089. }
  11090. _ACEOF
  11091. if ac_fn_cxx_try_link "$LINENO"; then :
  11092. lt_aix_libpath_sed='
  11093. /Import File Strings/,/^$/ {
  11094. /^0/ {
  11095. s/^0 *\([^ ]*\) *$/\1/
  11096. p
  11097. }
  11098. }'
  11099. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11100. # Check for a 64-bit object if we didn't find anything.
  11101. if test -z "$lt_cv_aix_libpath__CXX"; then
  11102. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11103. fi
  11104. fi
  11105. rm -f core conftest.err conftest.$ac_objext \
  11106. conftest$ac_exeext conftest.$ac_ext
  11107. if test -z "$lt_cv_aix_libpath__CXX"; then
  11108. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11109. fi
  11110. fi
  11111. aix_libpath=$lt_cv_aix_libpath__CXX
  11112. fi
  11113. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11114. # Warning - without using the other run time loading flags,
  11115. # -berok will link without error, but may produce a broken library.
  11116. no_undefined_flag_CXX=' ${wl}-bernotok'
  11117. allow_undefined_flag_CXX=' ${wl}-berok'
  11118. if test "$with_gnu_ld" = yes; then
  11119. # We only use this code for GNU lds that support --whole-archive.
  11120. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11121. else
  11122. # Exported symbols can be pulled into shared objects from archives
  11123. whole_archive_flag_spec_CXX='$convenience'
  11124. fi
  11125. archive_cmds_need_lc_CXX=yes
  11126. # This is similar to how AIX traditionally builds its shared
  11127. # libraries.
  11128. 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'
  11129. fi
  11130. fi
  11131. ;;
  11132. beos*)
  11133. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11134. allow_undefined_flag_CXX=unsupported
  11135. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11136. # support --undefined. This deserves some investigation. FIXME
  11137. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11138. else
  11139. ld_shlibs_CXX=no
  11140. fi
  11141. ;;
  11142. chorus*)
  11143. case $cc_basename in
  11144. *)
  11145. # FIXME: insert proper C++ library support
  11146. ld_shlibs_CXX=no
  11147. ;;
  11148. esac
  11149. ;;
  11150. cygwin* | mingw* | pw32* | cegcc*)
  11151. case $GXX,$cc_basename in
  11152. ,cl* | no,cl*)
  11153. # Native MSVC
  11154. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11155. # no search path for DLLs.
  11156. hardcode_libdir_flag_spec_CXX=' '
  11157. allow_undefined_flag_CXX=unsupported
  11158. always_export_symbols_CXX=yes
  11159. file_list_spec_CXX='@'
  11160. # Tell ltmain to make .lib files, not .a files.
  11161. libext=lib
  11162. # Tell ltmain to make .dll files, not .so files.
  11163. shrext_cmds=".dll"
  11164. # FIXME: Setting linknames here is a bad hack.
  11165. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11166. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11167. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11168. else
  11169. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11170. fi~
  11171. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11172. linknames='
  11173. # The linker will not automatically build a static lib if we build a DLL.
  11174. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11175. enable_shared_with_static_runtimes_CXX=yes
  11176. # Don't use ranlib
  11177. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11178. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11179. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11180. case $lt_outputfile in
  11181. *.exe|*.EXE) ;;
  11182. *)
  11183. lt_outputfile="$lt_outputfile.exe"
  11184. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11185. ;;
  11186. esac~
  11187. func_to_tool_file "$lt_outputfile"~
  11188. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11189. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11190. $RM "$lt_outputfile.manifest";
  11191. fi'
  11192. ;;
  11193. *)
  11194. # g++
  11195. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11196. # as there is no search path for DLLs.
  11197. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11198. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11199. allow_undefined_flag_CXX=unsupported
  11200. always_export_symbols_CXX=no
  11201. enable_shared_with_static_runtimes_CXX=yes
  11202. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11203. 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'
  11204. # If the export-symbols file already is a .def file (1st line
  11205. # is EXPORTS), use it as is; otherwise, prepend...
  11206. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11207. cp $export_symbols $output_objdir/$soname.def;
  11208. else
  11209. echo EXPORTS > $output_objdir/$soname.def;
  11210. cat $export_symbols >> $output_objdir/$soname.def;
  11211. fi~
  11212. $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'
  11213. else
  11214. ld_shlibs_CXX=no
  11215. fi
  11216. ;;
  11217. esac
  11218. ;;
  11219. darwin* | rhapsody*)
  11220. archive_cmds_need_lc_CXX=no
  11221. hardcode_direct_CXX=no
  11222. hardcode_automatic_CXX=yes
  11223. hardcode_shlibpath_var_CXX=unsupported
  11224. if test "$lt_cv_ld_force_load" = "yes"; then
  11225. 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\"`'
  11226. else
  11227. whole_archive_flag_spec_CXX=''
  11228. fi
  11229. link_all_deplibs_CXX=yes
  11230. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11231. case $cc_basename in
  11232. ifort*) _lt_dar_can_shared=yes ;;
  11233. *) _lt_dar_can_shared=$GCC ;;
  11234. esac
  11235. if test "$_lt_dar_can_shared" = "yes"; then
  11236. output_verbose_link_cmd=func_echo_all
  11237. 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}"
  11238. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11239. 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}"
  11240. 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}"
  11241. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11242. 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}"
  11243. 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}"
  11244. fi
  11245. else
  11246. ld_shlibs_CXX=no
  11247. fi
  11248. ;;
  11249. dgux*)
  11250. case $cc_basename in
  11251. ec++*)
  11252. # FIXME: insert proper C++ library support
  11253. ld_shlibs_CXX=no
  11254. ;;
  11255. ghcx*)
  11256. # Green Hills C++ Compiler
  11257. # FIXME: insert proper C++ library support
  11258. ld_shlibs_CXX=no
  11259. ;;
  11260. *)
  11261. # FIXME: insert proper C++ library support
  11262. ld_shlibs_CXX=no
  11263. ;;
  11264. esac
  11265. ;;
  11266. freebsd2.*)
  11267. # C++ shared libraries reported to be fairly broken before
  11268. # switch to ELF
  11269. ld_shlibs_CXX=no
  11270. ;;
  11271. freebsd-elf*)
  11272. archive_cmds_need_lc_CXX=no
  11273. ;;
  11274. freebsd* | dragonfly*)
  11275. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11276. # conventions
  11277. ld_shlibs_CXX=yes
  11278. ;;
  11279. gnu*)
  11280. ;;
  11281. haiku*)
  11282. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11283. link_all_deplibs_CXX=yes
  11284. ;;
  11285. hpux9*)
  11286. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11287. hardcode_libdir_separator_CXX=:
  11288. export_dynamic_flag_spec_CXX='${wl}-E'
  11289. hardcode_direct_CXX=yes
  11290. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11291. # but as the default
  11292. # location of the library.
  11293. case $cc_basename in
  11294. CC*)
  11295. # FIXME: insert proper C++ library support
  11296. ld_shlibs_CXX=no
  11297. ;;
  11298. aCC*)
  11299. 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'
  11300. # Commands to make compiler produce verbose output that lists
  11301. # what "hidden" libraries, object files and flags are used when
  11302. # linking a shared library.
  11303. #
  11304. # There doesn't appear to be a way to prevent this compiler from
  11305. # explicitly linking system object files so we need to strip them
  11306. # from the output so that they don't get included in the library
  11307. # dependencies.
  11308. 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"'
  11309. ;;
  11310. *)
  11311. if test "$GXX" = yes; then
  11312. 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'
  11313. else
  11314. # FIXME: insert proper C++ library support
  11315. ld_shlibs_CXX=no
  11316. fi
  11317. ;;
  11318. esac
  11319. ;;
  11320. hpux10*|hpux11*)
  11321. if test $with_gnu_ld = no; then
  11322. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11323. hardcode_libdir_separator_CXX=:
  11324. case $host_cpu in
  11325. hppa*64*|ia64*)
  11326. ;;
  11327. *)
  11328. export_dynamic_flag_spec_CXX='${wl}-E'
  11329. ;;
  11330. esac
  11331. fi
  11332. case $host_cpu in
  11333. hppa*64*|ia64*)
  11334. hardcode_direct_CXX=no
  11335. hardcode_shlibpath_var_CXX=no
  11336. ;;
  11337. *)
  11338. hardcode_direct_CXX=yes
  11339. hardcode_direct_absolute_CXX=yes
  11340. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11341. # but as the default
  11342. # location of the library.
  11343. ;;
  11344. esac
  11345. case $cc_basename in
  11346. CC*)
  11347. # FIXME: insert proper C++ library support
  11348. ld_shlibs_CXX=no
  11349. ;;
  11350. aCC*)
  11351. case $host_cpu in
  11352. hppa*64*)
  11353. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11354. ;;
  11355. ia64*)
  11356. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11357. ;;
  11358. *)
  11359. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11360. ;;
  11361. esac
  11362. # Commands to make compiler produce verbose output that lists
  11363. # what "hidden" libraries, object files and flags are used when
  11364. # linking a shared library.
  11365. #
  11366. # There doesn't appear to be a way to prevent this compiler from
  11367. # explicitly linking system object files so we need to strip them
  11368. # from the output so that they don't get included in the library
  11369. # dependencies.
  11370. 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"'
  11371. ;;
  11372. *)
  11373. if test "$GXX" = yes; then
  11374. if test $with_gnu_ld = no; then
  11375. case $host_cpu in
  11376. hppa*64*)
  11377. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11378. ;;
  11379. ia64*)
  11380. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11381. ;;
  11382. *)
  11383. 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'
  11384. ;;
  11385. esac
  11386. fi
  11387. else
  11388. # FIXME: insert proper C++ library support
  11389. ld_shlibs_CXX=no
  11390. fi
  11391. ;;
  11392. esac
  11393. ;;
  11394. interix[3-9]*)
  11395. hardcode_direct_CXX=no
  11396. hardcode_shlibpath_var_CXX=no
  11397. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11398. export_dynamic_flag_spec_CXX='${wl}-E'
  11399. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11400. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11401. # default) and relocated if they conflict, which is a slow very memory
  11402. # consuming and fragmenting process. To avoid this, we pick a random,
  11403. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11404. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11405. 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'
  11406. 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'
  11407. ;;
  11408. irix5* | irix6*)
  11409. case $cc_basename in
  11410. CC*)
  11411. # SGI C++
  11412. 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'
  11413. # Archives containing C++ object files must be created using
  11414. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11415. # necessary to make sure instantiated templates are included
  11416. # in the archive.
  11417. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11418. ;;
  11419. *)
  11420. if test "$GXX" = yes; then
  11421. if test "$with_gnu_ld" = no; then
  11422. 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'
  11423. else
  11424. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11425. fi
  11426. fi
  11427. link_all_deplibs_CXX=yes
  11428. ;;
  11429. esac
  11430. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11431. hardcode_libdir_separator_CXX=:
  11432. inherit_rpath_CXX=yes
  11433. ;;
  11434. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11435. case $cc_basename in
  11436. KCC*)
  11437. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11438. # KCC will only create a shared library if the output file
  11439. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11440. # to its proper name (with version) after linking.
  11441. 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'
  11442. 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'
  11443. # Commands to make compiler produce verbose output that lists
  11444. # what "hidden" libraries, object files and flags are used when
  11445. # linking a shared library.
  11446. #
  11447. # There doesn't appear to be a way to prevent this compiler from
  11448. # explicitly linking system object files so we need to strip them
  11449. # from the output so that they don't get included in the library
  11450. # dependencies.
  11451. 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"'
  11452. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11453. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11454. # Archives containing C++ object files must be created using
  11455. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11456. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11457. ;;
  11458. icpc* | ecpc* )
  11459. # Intel C++
  11460. with_gnu_ld=yes
  11461. # version 8.0 and above of icpc choke on multiply defined symbols
  11462. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11463. # earlier do not add the objects themselves.
  11464. case `$CC -V 2>&1` in
  11465. *"Version 7."*)
  11466. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11467. 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'
  11468. ;;
  11469. *) # Version 8.0 or newer
  11470. tmp_idyn=
  11471. case $host_cpu in
  11472. ia64*) tmp_idyn=' -i_dynamic';;
  11473. esac
  11474. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11475. 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'
  11476. ;;
  11477. esac
  11478. archive_cmds_need_lc_CXX=no
  11479. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11480. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11481. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11482. ;;
  11483. pgCC* | pgcpp*)
  11484. # Portland Group C++ compiler
  11485. case `$CC -V` in
  11486. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11487. prelink_cmds_CXX='tpldir=Template.dir~
  11488. rm -rf $tpldir~
  11489. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11490. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11491. old_archive_cmds_CXX='tpldir=Template.dir~
  11492. rm -rf $tpldir~
  11493. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11494. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11495. $RANLIB $oldlib'
  11496. archive_cmds_CXX='tpldir=Template.dir~
  11497. rm -rf $tpldir~
  11498. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11499. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11500. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11501. rm -rf $tpldir~
  11502. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11503. $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'
  11504. ;;
  11505. *) # Version 6 and above use weak symbols
  11506. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11507. 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'
  11508. ;;
  11509. esac
  11510. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11511. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11512. 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'
  11513. ;;
  11514. cxx*)
  11515. # Compaq C++
  11516. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11517. 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'
  11518. runpath_var=LD_RUN_PATH
  11519. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11520. hardcode_libdir_separator_CXX=:
  11521. # Commands to make compiler produce verbose output that lists
  11522. # what "hidden" libraries, object files and flags are used when
  11523. # linking a shared library.
  11524. #
  11525. # There doesn't appear to be a way to prevent this compiler from
  11526. # explicitly linking system object files so we need to strip them
  11527. # from the output so that they don't get included in the library
  11528. # dependencies.
  11529. 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'
  11530. ;;
  11531. xl* | mpixl* | bgxl*)
  11532. # IBM XL 8.0 on PPC, with GNU ld
  11533. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11534. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11535. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11536. if test "x$supports_anon_versioning" = xyes; then
  11537. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11538. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11539. echo "local: *; };" >> $output_objdir/$libname.ver~
  11540. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11541. fi
  11542. ;;
  11543. *)
  11544. case `$CC -V 2>&1 | sed 5q` in
  11545. *Sun\ C*)
  11546. # Sun C++ 5.9
  11547. no_undefined_flag_CXX=' -zdefs'
  11548. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11549. 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'
  11550. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11551. 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'
  11552. compiler_needs_object_CXX=yes
  11553. # Not sure whether something based on
  11554. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11555. # would be better.
  11556. output_verbose_link_cmd='func_echo_all'
  11557. # Archives containing C++ object files must be created using
  11558. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11559. # necessary to make sure instantiated templates are included
  11560. # in the archive.
  11561. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11562. ;;
  11563. esac
  11564. ;;
  11565. esac
  11566. ;;
  11567. lynxos*)
  11568. # FIXME: insert proper C++ library support
  11569. ld_shlibs_CXX=no
  11570. ;;
  11571. m88k*)
  11572. # FIXME: insert proper C++ library support
  11573. ld_shlibs_CXX=no
  11574. ;;
  11575. mvs*)
  11576. case $cc_basename in
  11577. cxx*)
  11578. # FIXME: insert proper C++ library support
  11579. ld_shlibs_CXX=no
  11580. ;;
  11581. *)
  11582. # FIXME: insert proper C++ library support
  11583. ld_shlibs_CXX=no
  11584. ;;
  11585. esac
  11586. ;;
  11587. netbsd*)
  11588. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11589. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11590. wlarc=
  11591. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11592. hardcode_direct_CXX=yes
  11593. hardcode_shlibpath_var_CXX=no
  11594. fi
  11595. # Workaround some broken pre-1.5 toolchains
  11596. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11597. ;;
  11598. *nto* | *qnx*)
  11599. ld_shlibs_CXX=yes
  11600. ;;
  11601. openbsd2*)
  11602. # C++ shared libraries are fairly broken
  11603. ld_shlibs_CXX=no
  11604. ;;
  11605. openbsd*)
  11606. if test -f /usr/libexec/ld.so; then
  11607. hardcode_direct_CXX=yes
  11608. hardcode_shlibpath_var_CXX=no
  11609. hardcode_direct_absolute_CXX=yes
  11610. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11611. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11612. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11613. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11614. export_dynamic_flag_spec_CXX='${wl}-E'
  11615. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11616. fi
  11617. output_verbose_link_cmd=func_echo_all
  11618. else
  11619. ld_shlibs_CXX=no
  11620. fi
  11621. ;;
  11622. osf3* | osf4* | osf5*)
  11623. case $cc_basename in
  11624. KCC*)
  11625. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11626. # KCC will only create a shared library if the output file
  11627. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11628. # to its proper name (with version) after linking.
  11629. 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'
  11630. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11631. hardcode_libdir_separator_CXX=:
  11632. # Archives containing C++ object files must be created using
  11633. # the KAI C++ compiler.
  11634. case $host in
  11635. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11636. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11637. esac
  11638. ;;
  11639. RCC*)
  11640. # Rational C++ 2.4.1
  11641. # FIXME: insert proper C++ library support
  11642. ld_shlibs_CXX=no
  11643. ;;
  11644. cxx*)
  11645. case $host in
  11646. osf3*)
  11647. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11648. 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'
  11649. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11650. ;;
  11651. *)
  11652. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11653. 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'
  11654. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11655. echo "-hidden">> $lib.exp~
  11656. $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~
  11657. $RM $lib.exp'
  11658. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11659. ;;
  11660. esac
  11661. hardcode_libdir_separator_CXX=:
  11662. # Commands to make compiler produce verbose output that lists
  11663. # what "hidden" libraries, object files and flags are used when
  11664. # linking a shared library.
  11665. #
  11666. # There doesn't appear to be a way to prevent this compiler from
  11667. # explicitly linking system object files so we need to strip them
  11668. # from the output so that they don't get included in the library
  11669. # dependencies.
  11670. 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"'
  11671. ;;
  11672. *)
  11673. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11674. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11675. case $host in
  11676. osf3*)
  11677. 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'
  11678. ;;
  11679. *)
  11680. 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'
  11681. ;;
  11682. esac
  11683. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11684. hardcode_libdir_separator_CXX=:
  11685. # Commands to make compiler produce verbose output that lists
  11686. # what "hidden" libraries, object files and flags are used when
  11687. # linking a shared library.
  11688. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11689. else
  11690. # FIXME: insert proper C++ library support
  11691. ld_shlibs_CXX=no
  11692. fi
  11693. ;;
  11694. esac
  11695. ;;
  11696. psos*)
  11697. # FIXME: insert proper C++ library support
  11698. ld_shlibs_CXX=no
  11699. ;;
  11700. sunos4*)
  11701. case $cc_basename in
  11702. CC*)
  11703. # Sun C++ 4.x
  11704. # FIXME: insert proper C++ library support
  11705. ld_shlibs_CXX=no
  11706. ;;
  11707. lcc*)
  11708. # Lucid
  11709. # FIXME: insert proper C++ library support
  11710. ld_shlibs_CXX=no
  11711. ;;
  11712. *)
  11713. # FIXME: insert proper C++ library support
  11714. ld_shlibs_CXX=no
  11715. ;;
  11716. esac
  11717. ;;
  11718. solaris*)
  11719. case $cc_basename in
  11720. CC* | sunCC*)
  11721. # Sun C++ 4.2, 5.x and Centerline C++
  11722. archive_cmds_need_lc_CXX=yes
  11723. no_undefined_flag_CXX=' -zdefs'
  11724. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11725. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11726. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11727. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11728. hardcode_shlibpath_var_CXX=no
  11729. case $host_os in
  11730. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11731. *)
  11732. # The compiler driver will combine and reorder linker options,
  11733. # but understands `-z linker_flag'.
  11734. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11735. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11736. ;;
  11737. esac
  11738. link_all_deplibs_CXX=yes
  11739. output_verbose_link_cmd='func_echo_all'
  11740. # Archives containing C++ object files must be created using
  11741. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11742. # necessary to make sure instantiated templates are included
  11743. # in the archive.
  11744. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11745. ;;
  11746. gcx*)
  11747. # Green Hills C++ Compiler
  11748. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11749. # The C++ compiler must be used to create the archive.
  11750. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11751. ;;
  11752. *)
  11753. # GNU C++ compiler with Solaris linker
  11754. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11755. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11756. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11757. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11758. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11759. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11760. # Commands to make compiler produce verbose output that lists
  11761. # what "hidden" libraries, object files and flags are used when
  11762. # linking a shared library.
  11763. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11764. else
  11765. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11766. # platform.
  11767. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11768. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11769. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11770. # Commands to make compiler produce verbose output that lists
  11771. # what "hidden" libraries, object files and flags are used when
  11772. # linking a shared library.
  11773. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11774. fi
  11775. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11776. case $host_os in
  11777. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11778. *)
  11779. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11780. ;;
  11781. esac
  11782. fi
  11783. ;;
  11784. esac
  11785. ;;
  11786. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11787. no_undefined_flag_CXX='${wl}-z,text'
  11788. archive_cmds_need_lc_CXX=no
  11789. hardcode_shlibpath_var_CXX=no
  11790. runpath_var='LD_RUN_PATH'
  11791. case $cc_basename in
  11792. CC*)
  11793. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11794. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11795. ;;
  11796. *)
  11797. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11798. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11799. ;;
  11800. esac
  11801. ;;
  11802. sysv5* | sco3.2v5* | sco5v6*)
  11803. # Note: We can NOT use -z defs as we might desire, because we do not
  11804. # link with -lc, and that would cause any symbols used from libc to
  11805. # always be unresolved, which means just about no library would
  11806. # ever link correctly. If we're not using GNU ld we use -z text
  11807. # though, which does catch some bad symbols but isn't as heavy-handed
  11808. # as -z defs.
  11809. no_undefined_flag_CXX='${wl}-z,text'
  11810. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11811. archive_cmds_need_lc_CXX=no
  11812. hardcode_shlibpath_var_CXX=no
  11813. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11814. hardcode_libdir_separator_CXX=':'
  11815. link_all_deplibs_CXX=yes
  11816. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11817. runpath_var='LD_RUN_PATH'
  11818. case $cc_basename in
  11819. CC*)
  11820. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11821. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11822. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11823. '"$old_archive_cmds_CXX"
  11824. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11825. '"$reload_cmds_CXX"
  11826. ;;
  11827. *)
  11828. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11829. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11830. ;;
  11831. esac
  11832. ;;
  11833. tandem*)
  11834. case $cc_basename in
  11835. NCC*)
  11836. # NonStop-UX NCC 3.20
  11837. # FIXME: insert proper C++ library support
  11838. ld_shlibs_CXX=no
  11839. ;;
  11840. *)
  11841. # FIXME: insert proper C++ library support
  11842. ld_shlibs_CXX=no
  11843. ;;
  11844. esac
  11845. ;;
  11846. vxworks*)
  11847. # FIXME: insert proper C++ library support
  11848. ld_shlibs_CXX=no
  11849. ;;
  11850. *)
  11851. # FIXME: insert proper C++ library support
  11852. ld_shlibs_CXX=no
  11853. ;;
  11854. esac
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11856. $as_echo "$ld_shlibs_CXX" >&6; }
  11857. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11858. GCC_CXX="$GXX"
  11859. LD_CXX="$LD"
  11860. ## CAVEAT EMPTOR:
  11861. ## There is no encapsulation within the following macros, do not change
  11862. ## the running order or otherwise move them around unless you know exactly
  11863. ## what you are doing...
  11864. # Dependencies to place before and after the object being linked:
  11865. predep_objects_CXX=
  11866. postdep_objects_CXX=
  11867. predeps_CXX=
  11868. postdeps_CXX=
  11869. compiler_lib_search_path_CXX=
  11870. cat > conftest.$ac_ext <<_LT_EOF
  11871. class Foo
  11872. {
  11873. public:
  11874. Foo (void) { a = 0; }
  11875. private:
  11876. int a;
  11877. };
  11878. _LT_EOF
  11879. _lt_libdeps_save_CFLAGS=$CFLAGS
  11880. case "$CC $CFLAGS " in #(
  11881. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11882. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11883. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11884. esac
  11885. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11886. (eval $ac_compile) 2>&5
  11887. ac_status=$?
  11888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11889. test $ac_status = 0; }; then
  11890. # Parse the compiler output and extract the necessary
  11891. # objects, libraries and library flags.
  11892. # Sentinel used to keep track of whether or not we are before
  11893. # the conftest object file.
  11894. pre_test_object_deps_done=no
  11895. for p in `eval "$output_verbose_link_cmd"`; do
  11896. case ${prev}${p} in
  11897. -L* | -R* | -l*)
  11898. # Some compilers place space between "-{L,R}" and the path.
  11899. # Remove the space.
  11900. if test $p = "-L" ||
  11901. test $p = "-R"; then
  11902. prev=$p
  11903. continue
  11904. fi
  11905. # Expand the sysroot to ease extracting the directories later.
  11906. if test -z "$prev"; then
  11907. case $p in
  11908. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11909. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11910. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11911. esac
  11912. fi
  11913. case $p in
  11914. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11915. esac
  11916. if test "$pre_test_object_deps_done" = no; then
  11917. case ${prev} in
  11918. -L | -R)
  11919. # Internal compiler library paths should come after those
  11920. # provided the user. The postdeps already come after the
  11921. # user supplied libs so there is no need to process them.
  11922. if test -z "$compiler_lib_search_path_CXX"; then
  11923. compiler_lib_search_path_CXX="${prev}${p}"
  11924. else
  11925. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11926. fi
  11927. ;;
  11928. # The "-l" case would never come before the object being
  11929. # linked, so don't bother handling this case.
  11930. esac
  11931. else
  11932. if test -z "$postdeps_CXX"; then
  11933. postdeps_CXX="${prev}${p}"
  11934. else
  11935. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11936. fi
  11937. fi
  11938. prev=
  11939. ;;
  11940. *.lto.$objext) ;; # Ignore GCC LTO objects
  11941. *.$objext)
  11942. # This assumes that the test object file only shows up
  11943. # once in the compiler output.
  11944. if test "$p" = "conftest.$objext"; then
  11945. pre_test_object_deps_done=yes
  11946. continue
  11947. fi
  11948. if test "$pre_test_object_deps_done" = no; then
  11949. if test -z "$predep_objects_CXX"; then
  11950. predep_objects_CXX="$p"
  11951. else
  11952. predep_objects_CXX="$predep_objects_CXX $p"
  11953. fi
  11954. else
  11955. if test -z "$postdep_objects_CXX"; then
  11956. postdep_objects_CXX="$p"
  11957. else
  11958. postdep_objects_CXX="$postdep_objects_CXX $p"
  11959. fi
  11960. fi
  11961. ;;
  11962. *) ;; # Ignore the rest.
  11963. esac
  11964. done
  11965. # Clean up.
  11966. rm -f a.out a.exe
  11967. else
  11968. echo "libtool.m4: error: problem compiling CXX test program"
  11969. fi
  11970. $RM -f confest.$objext
  11971. CFLAGS=$_lt_libdeps_save_CFLAGS
  11972. # PORTME: override above test on systems where it is broken
  11973. case $host_os in
  11974. interix[3-9]*)
  11975. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11976. # hack all around it, let's just trust "g++" to DTRT.
  11977. predep_objects_CXX=
  11978. postdep_objects_CXX=
  11979. postdeps_CXX=
  11980. ;;
  11981. linux*)
  11982. case `$CC -V 2>&1 | sed 5q` in
  11983. *Sun\ C*)
  11984. # Sun C++ 5.9
  11985. # The more standards-conforming stlport4 library is
  11986. # incompatible with the Cstd library. Avoid specifying
  11987. # it if it's in CXXFLAGS. Ignore libCrun as
  11988. # -library=stlport4 depends on it.
  11989. case " $CXX $CXXFLAGS " in
  11990. *" -library=stlport4 "*)
  11991. solaris_use_stlport4=yes
  11992. ;;
  11993. esac
  11994. if test "$solaris_use_stlport4" != yes; then
  11995. postdeps_CXX='-library=Cstd -library=Crun'
  11996. fi
  11997. ;;
  11998. esac
  11999. ;;
  12000. solaris*)
  12001. case $cc_basename in
  12002. CC* | sunCC*)
  12003. # The more standards-conforming stlport4 library is
  12004. # incompatible with the Cstd library. Avoid specifying
  12005. # it if it's in CXXFLAGS. Ignore libCrun as
  12006. # -library=stlport4 depends on it.
  12007. case " $CXX $CXXFLAGS " in
  12008. *" -library=stlport4 "*)
  12009. solaris_use_stlport4=yes
  12010. ;;
  12011. esac
  12012. # Adding this requires a known-good setup of shared libraries for
  12013. # Sun compiler versions before 5.6, else PIC objects from an old
  12014. # archive will be linked into the output, leading to subtle bugs.
  12015. if test "$solaris_use_stlport4" != yes; then
  12016. postdeps_CXX='-library=Cstd -library=Crun'
  12017. fi
  12018. ;;
  12019. esac
  12020. ;;
  12021. esac
  12022. case " $postdeps_CXX " in
  12023. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12024. esac
  12025. compiler_lib_search_dirs_CXX=
  12026. if test -n "${compiler_lib_search_path_CXX}"; then
  12027. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12028. fi
  12029. lt_prog_compiler_wl_CXX=
  12030. lt_prog_compiler_pic_CXX=
  12031. lt_prog_compiler_static_CXX=
  12032. # C++ specific cases for pic, static, wl, etc.
  12033. if test "$GXX" = yes; then
  12034. lt_prog_compiler_wl_CXX='-Wl,'
  12035. lt_prog_compiler_static_CXX='-static'
  12036. case $host_os in
  12037. aix*)
  12038. # All AIX code is PIC.
  12039. if test "$host_cpu" = ia64; then
  12040. # AIX 5 now supports IA64 processor
  12041. lt_prog_compiler_static_CXX='-Bstatic'
  12042. fi
  12043. ;;
  12044. amigaos*)
  12045. case $host_cpu in
  12046. powerpc)
  12047. # see comment about AmigaOS4 .so support
  12048. lt_prog_compiler_pic_CXX='-fPIC'
  12049. ;;
  12050. m68k)
  12051. # FIXME: we need at least 68020 code to build shared libraries, but
  12052. # adding the `-m68020' flag to GCC prevents building anything better,
  12053. # like `-m68040'.
  12054. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12055. ;;
  12056. esac
  12057. ;;
  12058. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12059. # PIC is the default for these OSes.
  12060. ;;
  12061. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12062. # This hack is so that the source file can tell whether it is being
  12063. # built for inclusion in a dll (and should export symbols for example).
  12064. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12065. # (--disable-auto-import) libraries
  12066. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12067. ;;
  12068. darwin* | rhapsody*)
  12069. # PIC is the default on this platform
  12070. # Common symbols not allowed in MH_DYLIB files
  12071. lt_prog_compiler_pic_CXX='-fno-common'
  12072. ;;
  12073. *djgpp*)
  12074. # DJGPP does not support shared libraries at all
  12075. lt_prog_compiler_pic_CXX=
  12076. ;;
  12077. haiku*)
  12078. # PIC is the default for Haiku.
  12079. # The "-static" flag exists, but is broken.
  12080. lt_prog_compiler_static_CXX=
  12081. ;;
  12082. interix[3-9]*)
  12083. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12084. # Instead, we relocate shared libraries at runtime.
  12085. ;;
  12086. sysv4*MP*)
  12087. if test -d /usr/nec; then
  12088. lt_prog_compiler_pic_CXX=-Kconform_pic
  12089. fi
  12090. ;;
  12091. hpux*)
  12092. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12093. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12094. # sets the default TLS model and affects inlining.
  12095. case $host_cpu in
  12096. hppa*64*)
  12097. ;;
  12098. *)
  12099. lt_prog_compiler_pic_CXX='-fPIC'
  12100. ;;
  12101. esac
  12102. ;;
  12103. *qnx* | *nto*)
  12104. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12105. # it will coredump.
  12106. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12107. ;;
  12108. *)
  12109. lt_prog_compiler_pic_CXX='-fPIC'
  12110. ;;
  12111. esac
  12112. else
  12113. case $host_os in
  12114. aix[4-9]*)
  12115. # All AIX code is PIC.
  12116. if test "$host_cpu" = ia64; then
  12117. # AIX 5 now supports IA64 processor
  12118. lt_prog_compiler_static_CXX='-Bstatic'
  12119. else
  12120. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12121. fi
  12122. ;;
  12123. chorus*)
  12124. case $cc_basename in
  12125. cxch68*)
  12126. # Green Hills C++ Compiler
  12127. # _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"
  12128. ;;
  12129. esac
  12130. ;;
  12131. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12132. # This hack is so that the source file can tell whether it is being
  12133. # built for inclusion in a dll (and should export symbols for example).
  12134. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12135. ;;
  12136. dgux*)
  12137. case $cc_basename in
  12138. ec++*)
  12139. lt_prog_compiler_pic_CXX='-KPIC'
  12140. ;;
  12141. ghcx*)
  12142. # Green Hills C++ Compiler
  12143. lt_prog_compiler_pic_CXX='-pic'
  12144. ;;
  12145. *)
  12146. ;;
  12147. esac
  12148. ;;
  12149. freebsd* | dragonfly*)
  12150. # FreeBSD uses GNU C++
  12151. ;;
  12152. hpux9* | hpux10* | hpux11*)
  12153. case $cc_basename in
  12154. CC*)
  12155. lt_prog_compiler_wl_CXX='-Wl,'
  12156. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12157. if test "$host_cpu" != ia64; then
  12158. lt_prog_compiler_pic_CXX='+Z'
  12159. fi
  12160. ;;
  12161. aCC*)
  12162. lt_prog_compiler_wl_CXX='-Wl,'
  12163. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12164. case $host_cpu in
  12165. hppa*64*|ia64*)
  12166. # +Z the default
  12167. ;;
  12168. *)
  12169. lt_prog_compiler_pic_CXX='+Z'
  12170. ;;
  12171. esac
  12172. ;;
  12173. *)
  12174. ;;
  12175. esac
  12176. ;;
  12177. interix*)
  12178. # This is c89, which is MS Visual C++ (no shared libs)
  12179. # Anyone wants to do a port?
  12180. ;;
  12181. irix5* | irix6* | nonstopux*)
  12182. case $cc_basename in
  12183. CC*)
  12184. lt_prog_compiler_wl_CXX='-Wl,'
  12185. lt_prog_compiler_static_CXX='-non_shared'
  12186. # CC pic flag -KPIC is the default.
  12187. ;;
  12188. *)
  12189. ;;
  12190. esac
  12191. ;;
  12192. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12193. case $cc_basename in
  12194. KCC*)
  12195. # KAI C++ Compiler
  12196. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12197. lt_prog_compiler_pic_CXX='-fPIC'
  12198. ;;
  12199. ecpc* )
  12200. # old Intel C++ for x86_64 which still supported -KPIC.
  12201. lt_prog_compiler_wl_CXX='-Wl,'
  12202. lt_prog_compiler_pic_CXX='-KPIC'
  12203. lt_prog_compiler_static_CXX='-static'
  12204. ;;
  12205. icpc* )
  12206. # Intel C++, used to be incompatible with GCC.
  12207. # ICC 10 doesn't accept -KPIC any more.
  12208. lt_prog_compiler_wl_CXX='-Wl,'
  12209. lt_prog_compiler_pic_CXX='-fPIC'
  12210. lt_prog_compiler_static_CXX='-static'
  12211. ;;
  12212. pgCC* | pgcpp*)
  12213. # Portland Group C++ compiler
  12214. lt_prog_compiler_wl_CXX='-Wl,'
  12215. lt_prog_compiler_pic_CXX='-fpic'
  12216. lt_prog_compiler_static_CXX='-Bstatic'
  12217. ;;
  12218. cxx*)
  12219. # Compaq C++
  12220. # Make sure the PIC flag is empty. It appears that all Alpha
  12221. # Linux and Compaq Tru64 Unix objects are PIC.
  12222. lt_prog_compiler_pic_CXX=
  12223. lt_prog_compiler_static_CXX='-non_shared'
  12224. ;;
  12225. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12226. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12227. lt_prog_compiler_wl_CXX='-Wl,'
  12228. lt_prog_compiler_pic_CXX='-qpic'
  12229. lt_prog_compiler_static_CXX='-qstaticlink'
  12230. ;;
  12231. *)
  12232. case `$CC -V 2>&1 | sed 5q` in
  12233. *Sun\ C*)
  12234. # Sun C++ 5.9
  12235. lt_prog_compiler_pic_CXX='-KPIC'
  12236. lt_prog_compiler_static_CXX='-Bstatic'
  12237. lt_prog_compiler_wl_CXX='-Qoption ld '
  12238. ;;
  12239. esac
  12240. ;;
  12241. esac
  12242. ;;
  12243. lynxos*)
  12244. ;;
  12245. m88k*)
  12246. ;;
  12247. mvs*)
  12248. case $cc_basename in
  12249. cxx*)
  12250. lt_prog_compiler_pic_CXX='-W c,exportall'
  12251. ;;
  12252. *)
  12253. ;;
  12254. esac
  12255. ;;
  12256. netbsd*)
  12257. ;;
  12258. *qnx* | *nto*)
  12259. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12260. # it will coredump.
  12261. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12262. ;;
  12263. osf3* | osf4* | osf5*)
  12264. case $cc_basename in
  12265. KCC*)
  12266. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12267. ;;
  12268. RCC*)
  12269. # Rational C++ 2.4.1
  12270. lt_prog_compiler_pic_CXX='-pic'
  12271. ;;
  12272. cxx*)
  12273. # Digital/Compaq C++
  12274. lt_prog_compiler_wl_CXX='-Wl,'
  12275. # Make sure the PIC flag is empty. It appears that all Alpha
  12276. # Linux and Compaq Tru64 Unix objects are PIC.
  12277. lt_prog_compiler_pic_CXX=
  12278. lt_prog_compiler_static_CXX='-non_shared'
  12279. ;;
  12280. *)
  12281. ;;
  12282. esac
  12283. ;;
  12284. psos*)
  12285. ;;
  12286. solaris*)
  12287. case $cc_basename in
  12288. CC* | sunCC*)
  12289. # Sun C++ 4.2, 5.x and Centerline C++
  12290. lt_prog_compiler_pic_CXX='-KPIC'
  12291. lt_prog_compiler_static_CXX='-Bstatic'
  12292. lt_prog_compiler_wl_CXX='-Qoption ld '
  12293. ;;
  12294. gcx*)
  12295. # Green Hills C++ Compiler
  12296. lt_prog_compiler_pic_CXX='-PIC'
  12297. ;;
  12298. *)
  12299. ;;
  12300. esac
  12301. ;;
  12302. sunos4*)
  12303. case $cc_basename in
  12304. CC*)
  12305. # Sun C++ 4.x
  12306. lt_prog_compiler_pic_CXX='-pic'
  12307. lt_prog_compiler_static_CXX='-Bstatic'
  12308. ;;
  12309. lcc*)
  12310. # Lucid
  12311. lt_prog_compiler_pic_CXX='-pic'
  12312. ;;
  12313. *)
  12314. ;;
  12315. esac
  12316. ;;
  12317. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12318. case $cc_basename in
  12319. CC*)
  12320. lt_prog_compiler_wl_CXX='-Wl,'
  12321. lt_prog_compiler_pic_CXX='-KPIC'
  12322. lt_prog_compiler_static_CXX='-Bstatic'
  12323. ;;
  12324. esac
  12325. ;;
  12326. tandem*)
  12327. case $cc_basename in
  12328. NCC*)
  12329. # NonStop-UX NCC 3.20
  12330. lt_prog_compiler_pic_CXX='-KPIC'
  12331. ;;
  12332. *)
  12333. ;;
  12334. esac
  12335. ;;
  12336. vxworks*)
  12337. ;;
  12338. *)
  12339. lt_prog_compiler_can_build_shared_CXX=no
  12340. ;;
  12341. esac
  12342. fi
  12343. case $host_os in
  12344. # For platforms which do not support PIC, -DPIC is meaningless:
  12345. *djgpp*)
  12346. lt_prog_compiler_pic_CXX=
  12347. ;;
  12348. *)
  12349. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12350. ;;
  12351. esac
  12352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12353. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12354. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12355. $as_echo_n "(cached) " >&6
  12356. else
  12357. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12358. fi
  12359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12360. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12361. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12362. #
  12363. # Check to make sure the PIC flag actually works.
  12364. #
  12365. if test -n "$lt_prog_compiler_pic_CXX"; then
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12367. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12368. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12369. $as_echo_n "(cached) " >&6
  12370. else
  12371. lt_cv_prog_compiler_pic_works_CXX=no
  12372. ac_outfile=conftest.$ac_objext
  12373. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12374. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12375. # Insert the option either (1) after the last *FLAGS variable, or
  12376. # (2) before a word containing "conftest.", or (3) at the end.
  12377. # Note that $ac_compile itself does not contain backslashes and begins
  12378. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12379. # The option is referenced via a variable to avoid confusing sed.
  12380. lt_compile=`echo "$ac_compile" | $SED \
  12381. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12382. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12383. -e 's:$: $lt_compiler_flag:'`
  12384. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12385. (eval "$lt_compile" 2>conftest.err)
  12386. ac_status=$?
  12387. cat conftest.err >&5
  12388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12389. if (exit $ac_status) && test -s "$ac_outfile"; then
  12390. # The compiler can only warn and ignore the option if not recognized
  12391. # So say no if there are warnings other than the usual output.
  12392. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12393. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12394. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12395. lt_cv_prog_compiler_pic_works_CXX=yes
  12396. fi
  12397. fi
  12398. $RM conftest*
  12399. fi
  12400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12401. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12402. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12403. case $lt_prog_compiler_pic_CXX in
  12404. "" | " "*) ;;
  12405. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12406. esac
  12407. else
  12408. lt_prog_compiler_pic_CXX=
  12409. lt_prog_compiler_can_build_shared_CXX=no
  12410. fi
  12411. fi
  12412. #
  12413. # Check to make sure the static flag actually works.
  12414. #
  12415. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12417. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12418. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12419. $as_echo_n "(cached) " >&6
  12420. else
  12421. lt_cv_prog_compiler_static_works_CXX=no
  12422. save_LDFLAGS="$LDFLAGS"
  12423. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12424. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12425. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12426. # The linker can only warn and ignore the option if not recognized
  12427. # So say no if there are warnings
  12428. if test -s conftest.err; then
  12429. # Append any errors to the config.log.
  12430. cat conftest.err 1>&5
  12431. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12432. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12433. if diff conftest.exp conftest.er2 >/dev/null; then
  12434. lt_cv_prog_compiler_static_works_CXX=yes
  12435. fi
  12436. else
  12437. lt_cv_prog_compiler_static_works_CXX=yes
  12438. fi
  12439. fi
  12440. $RM -r conftest*
  12441. LDFLAGS="$save_LDFLAGS"
  12442. fi
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12444. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12445. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12446. :
  12447. else
  12448. lt_prog_compiler_static_CXX=
  12449. fi
  12450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12451. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12452. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12453. $as_echo_n "(cached) " >&6
  12454. else
  12455. lt_cv_prog_compiler_c_o_CXX=no
  12456. $RM -r conftest 2>/dev/null
  12457. mkdir conftest
  12458. cd conftest
  12459. mkdir out
  12460. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12461. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12462. # Insert the option either (1) after the last *FLAGS variable, or
  12463. # (2) before a word containing "conftest.", or (3) at the end.
  12464. # Note that $ac_compile itself does not contain backslashes and begins
  12465. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12466. lt_compile=`echo "$ac_compile" | $SED \
  12467. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12468. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12469. -e 's:$: $lt_compiler_flag:'`
  12470. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12471. (eval "$lt_compile" 2>out/conftest.err)
  12472. ac_status=$?
  12473. cat out/conftest.err >&5
  12474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12475. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12476. then
  12477. # The compiler can only warn and ignore the option if not recognized
  12478. # So say no if there are warnings
  12479. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12480. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12481. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12482. lt_cv_prog_compiler_c_o_CXX=yes
  12483. fi
  12484. fi
  12485. chmod u+w . 2>&5
  12486. $RM conftest*
  12487. # SGI C++ compiler will create directory out/ii_files/ for
  12488. # template instantiation
  12489. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12490. $RM out/* && rmdir out
  12491. cd ..
  12492. $RM -r conftest
  12493. $RM conftest*
  12494. fi
  12495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12496. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12498. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12499. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12500. $as_echo_n "(cached) " >&6
  12501. else
  12502. lt_cv_prog_compiler_c_o_CXX=no
  12503. $RM -r conftest 2>/dev/null
  12504. mkdir conftest
  12505. cd conftest
  12506. mkdir out
  12507. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12508. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12509. # Insert the option either (1) after the last *FLAGS variable, or
  12510. # (2) before a word containing "conftest.", or (3) at the end.
  12511. # Note that $ac_compile itself does not contain backslashes and begins
  12512. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12513. lt_compile=`echo "$ac_compile" | $SED \
  12514. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12515. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12516. -e 's:$: $lt_compiler_flag:'`
  12517. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12518. (eval "$lt_compile" 2>out/conftest.err)
  12519. ac_status=$?
  12520. cat out/conftest.err >&5
  12521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12522. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12523. then
  12524. # The compiler can only warn and ignore the option if not recognized
  12525. # So say no if there are warnings
  12526. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12527. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12528. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12529. lt_cv_prog_compiler_c_o_CXX=yes
  12530. fi
  12531. fi
  12532. chmod u+w . 2>&5
  12533. $RM conftest*
  12534. # SGI C++ compiler will create directory out/ii_files/ for
  12535. # template instantiation
  12536. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12537. $RM out/* && rmdir out
  12538. cd ..
  12539. $RM -r conftest
  12540. $RM conftest*
  12541. fi
  12542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12543. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12544. hard_links="nottested"
  12545. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12546. # do not overwrite the value of need_locks provided by the user
  12547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12548. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12549. hard_links=yes
  12550. $RM conftest*
  12551. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12552. touch conftest.a
  12553. ln conftest.a conftest.b 2>&5 || hard_links=no
  12554. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12556. $as_echo "$hard_links" >&6; }
  12557. if test "$hard_links" = no; then
  12558. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12559. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12560. need_locks=warn
  12561. fi
  12562. else
  12563. need_locks=no
  12564. fi
  12565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12566. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12567. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12568. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12569. case $host_os in
  12570. aix[4-9]*)
  12571. # If we're using GNU nm, then we don't want the "-C" option.
  12572. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12573. # Also, AIX nm treats weak defined symbols like other global defined
  12574. # symbols, whereas GNU nm marks them as "W".
  12575. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12576. 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'
  12577. else
  12578. 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'
  12579. fi
  12580. ;;
  12581. pw32*)
  12582. export_symbols_cmds_CXX="$ltdll_cmds"
  12583. ;;
  12584. cygwin* | mingw* | cegcc*)
  12585. case $cc_basename in
  12586. cl*)
  12587. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12588. ;;
  12589. *)
  12590. 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'
  12591. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12592. ;;
  12593. esac
  12594. ;;
  12595. *)
  12596. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12597. ;;
  12598. esac
  12599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12600. $as_echo "$ld_shlibs_CXX" >&6; }
  12601. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12602. with_gnu_ld_CXX=$with_gnu_ld
  12603. #
  12604. # Do we need to explicitly link libc?
  12605. #
  12606. case "x$archive_cmds_need_lc_CXX" in
  12607. x|xyes)
  12608. # Assume -lc should be added
  12609. archive_cmds_need_lc_CXX=yes
  12610. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12611. case $archive_cmds_CXX in
  12612. *'~'*)
  12613. # FIXME: we may have to deal with multi-command sequences.
  12614. ;;
  12615. '$CC '*)
  12616. # Test whether the compiler implicitly links with -lc since on some
  12617. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12618. # to ld, don't add -lc before -lgcc.
  12619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12620. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12621. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12622. $as_echo_n "(cached) " >&6
  12623. else
  12624. $RM conftest*
  12625. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12626. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12627. (eval $ac_compile) 2>&5
  12628. ac_status=$?
  12629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12630. test $ac_status = 0; } 2>conftest.err; then
  12631. soname=conftest
  12632. lib=conftest
  12633. libobjs=conftest.$ac_objext
  12634. deplibs=
  12635. wl=$lt_prog_compiler_wl_CXX
  12636. pic_flag=$lt_prog_compiler_pic_CXX
  12637. compiler_flags=-v
  12638. linker_flags=-v
  12639. verstring=
  12640. output_objdir=.
  12641. libname=conftest
  12642. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12643. allow_undefined_flag_CXX=
  12644. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12645. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12646. ac_status=$?
  12647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12648. test $ac_status = 0; }
  12649. then
  12650. lt_cv_archive_cmds_need_lc_CXX=no
  12651. else
  12652. lt_cv_archive_cmds_need_lc_CXX=yes
  12653. fi
  12654. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12655. else
  12656. cat conftest.err 1>&5
  12657. fi
  12658. $RM conftest*
  12659. fi
  12660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12661. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12662. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12663. ;;
  12664. esac
  12665. fi
  12666. ;;
  12667. esac
  12668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12669. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12670. library_names_spec=
  12671. libname_spec='lib$name'
  12672. soname_spec=
  12673. shrext_cmds=".so"
  12674. postinstall_cmds=
  12675. postuninstall_cmds=
  12676. finish_cmds=
  12677. finish_eval=
  12678. shlibpath_var=
  12679. shlibpath_overrides_runpath=unknown
  12680. version_type=none
  12681. dynamic_linker="$host_os ld.so"
  12682. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12683. need_lib_prefix=unknown
  12684. hardcode_into_libs=no
  12685. # when you set need_version to no, make sure it does not cause -set_version
  12686. # flags to be left without arguments
  12687. need_version=unknown
  12688. case $host_os in
  12689. aix3*)
  12690. version_type=linux # correct to gnu/linux during the next big refactor
  12691. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12692. shlibpath_var=LIBPATH
  12693. # AIX 3 has no versioning support, so we append a major version to the name.
  12694. soname_spec='${libname}${release}${shared_ext}$major'
  12695. ;;
  12696. aix[4-9]*)
  12697. version_type=linux # correct to gnu/linux during the next big refactor
  12698. need_lib_prefix=no
  12699. need_version=no
  12700. hardcode_into_libs=yes
  12701. if test "$host_cpu" = ia64; then
  12702. # AIX 5 supports IA64
  12703. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12704. shlibpath_var=LD_LIBRARY_PATH
  12705. else
  12706. # With GCC up to 2.95.x, collect2 would create an import file
  12707. # for dependence libraries. The import file would start with
  12708. # the line `#! .'. This would cause the generated library to
  12709. # depend on `.', always an invalid library. This was fixed in
  12710. # development snapshots of GCC prior to 3.0.
  12711. case $host_os in
  12712. aix4 | aix4.[01] | aix4.[01].*)
  12713. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12714. echo ' yes '
  12715. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12716. :
  12717. else
  12718. can_build_shared=no
  12719. fi
  12720. ;;
  12721. esac
  12722. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12723. # soname into executable. Probably we can add versioning support to
  12724. # collect2, so additional links can be useful in future.
  12725. if test "$aix_use_runtimelinking" = yes; then
  12726. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12727. # instead of lib<name>.a to let people know that these are not
  12728. # typical AIX shared libraries.
  12729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12730. else
  12731. # We preserve .a as extension for shared libraries through AIX4.2
  12732. # and later when we are not doing run time linking.
  12733. library_names_spec='${libname}${release}.a $libname.a'
  12734. soname_spec='${libname}${release}${shared_ext}$major'
  12735. fi
  12736. shlibpath_var=LIBPATH
  12737. fi
  12738. ;;
  12739. amigaos*)
  12740. case $host_cpu in
  12741. powerpc)
  12742. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12743. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12744. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12745. ;;
  12746. m68k)
  12747. library_names_spec='$libname.ixlibrary $libname.a'
  12748. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12749. 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'
  12750. ;;
  12751. esac
  12752. ;;
  12753. beos*)
  12754. library_names_spec='${libname}${shared_ext}'
  12755. dynamic_linker="$host_os ld.so"
  12756. shlibpath_var=LIBRARY_PATH
  12757. ;;
  12758. bsdi[45]*)
  12759. version_type=linux # correct to gnu/linux during the next big refactor
  12760. need_version=no
  12761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12762. soname_spec='${libname}${release}${shared_ext}$major'
  12763. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12764. shlibpath_var=LD_LIBRARY_PATH
  12765. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12766. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12767. # the default ld.so.conf also contains /usr/contrib/lib and
  12768. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12769. # libtool to hard-code these into programs
  12770. ;;
  12771. cygwin* | mingw* | pw32* | cegcc*)
  12772. version_type=windows
  12773. shrext_cmds=".dll"
  12774. need_version=no
  12775. need_lib_prefix=no
  12776. case $GCC,$cc_basename in
  12777. yes,*)
  12778. # gcc
  12779. library_names_spec='$libname.dll.a'
  12780. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12781. postinstall_cmds='base_file=`basename \${file}`~
  12782. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12783. dldir=$destdir/`dirname \$dlpath`~
  12784. test -d \$dldir || mkdir -p \$dldir~
  12785. $install_prog $dir/$dlname \$dldir/$dlname~
  12786. chmod a+x \$dldir/$dlname~
  12787. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12788. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12789. fi'
  12790. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12791. dlpath=$dir/\$dldll~
  12792. $RM \$dlpath'
  12793. shlibpath_overrides_runpath=yes
  12794. case $host_os in
  12795. cygwin*)
  12796. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12797. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12798. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12799. ;;
  12800. mingw* | cegcc*)
  12801. # MinGW DLLs use traditional 'lib' prefix
  12802. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12803. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12804. ;;
  12805. pw32*)
  12806. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12807. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12808. ;;
  12809. esac
  12810. dynamic_linker='Win32 ld.exe'
  12811. ;;
  12812. *,cl*)
  12813. # Native MSVC
  12814. libname_spec='$name'
  12815. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12816. library_names_spec='${libname}.dll.lib'
  12817. case $build_os in
  12818. mingw*)
  12819. sys_lib_search_path_spec=
  12820. lt_save_ifs=$IFS
  12821. IFS=';'
  12822. for lt_path in $LIB
  12823. do
  12824. IFS=$lt_save_ifs
  12825. # Let DOS variable expansion print the short 8.3 style file name.
  12826. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12827. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12828. done
  12829. IFS=$lt_save_ifs
  12830. # Convert to MSYS style.
  12831. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12832. ;;
  12833. cygwin*)
  12834. # Convert to unix form, then to dos form, then back to unix form
  12835. # but this time dos style (no spaces!) so that the unix form looks
  12836. # like /cygdrive/c/PROGRA~1:/cygdr...
  12837. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12838. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12839. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12840. ;;
  12841. *)
  12842. sys_lib_search_path_spec="$LIB"
  12843. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12844. # It is most probably a Windows format PATH.
  12845. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12846. else
  12847. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12848. fi
  12849. # FIXME: find the short name or the path components, as spaces are
  12850. # common. (e.g. "Program Files" -> "PROGRA~1")
  12851. ;;
  12852. esac
  12853. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12854. postinstall_cmds='base_file=`basename \${file}`~
  12855. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12856. dldir=$destdir/`dirname \$dlpath`~
  12857. test -d \$dldir || mkdir -p \$dldir~
  12858. $install_prog $dir/$dlname \$dldir/$dlname'
  12859. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12860. dlpath=$dir/\$dldll~
  12861. $RM \$dlpath'
  12862. shlibpath_overrides_runpath=yes
  12863. dynamic_linker='Win32 link.exe'
  12864. ;;
  12865. *)
  12866. # Assume MSVC wrapper
  12867. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12868. dynamic_linker='Win32 ld.exe'
  12869. ;;
  12870. esac
  12871. # FIXME: first we should search . and the directory the executable is in
  12872. shlibpath_var=PATH
  12873. ;;
  12874. darwin* | rhapsody*)
  12875. dynamic_linker="$host_os dyld"
  12876. version_type=darwin
  12877. need_lib_prefix=no
  12878. need_version=no
  12879. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12880. soname_spec='${libname}${release}${major}$shared_ext'
  12881. shlibpath_overrides_runpath=yes
  12882. shlibpath_var=DYLD_LIBRARY_PATH
  12883. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12884. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12885. ;;
  12886. dgux*)
  12887. version_type=linux # correct to gnu/linux during the next big refactor
  12888. need_lib_prefix=no
  12889. need_version=no
  12890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12891. soname_spec='${libname}${release}${shared_ext}$major'
  12892. shlibpath_var=LD_LIBRARY_PATH
  12893. ;;
  12894. freebsd* | dragonfly*)
  12895. # DragonFly does not have aout. When/if they implement a new
  12896. # versioning mechanism, adjust this.
  12897. if test -x /usr/bin/objformat; then
  12898. objformat=`/usr/bin/objformat`
  12899. else
  12900. case $host_os in
  12901. freebsd[23].*) objformat=aout ;;
  12902. *) objformat=elf ;;
  12903. esac
  12904. fi
  12905. version_type=freebsd-$objformat
  12906. case $version_type in
  12907. freebsd-elf*)
  12908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12909. need_version=no
  12910. need_lib_prefix=no
  12911. ;;
  12912. freebsd-*)
  12913. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12914. need_version=yes
  12915. ;;
  12916. esac
  12917. shlibpath_var=LD_LIBRARY_PATH
  12918. case $host_os in
  12919. freebsd2.*)
  12920. shlibpath_overrides_runpath=yes
  12921. ;;
  12922. freebsd3.[01]* | freebsdelf3.[01]*)
  12923. shlibpath_overrides_runpath=yes
  12924. hardcode_into_libs=yes
  12925. ;;
  12926. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12927. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12928. shlibpath_overrides_runpath=no
  12929. hardcode_into_libs=yes
  12930. ;;
  12931. *) # from 4.6 on, and DragonFly
  12932. shlibpath_overrides_runpath=yes
  12933. hardcode_into_libs=yes
  12934. ;;
  12935. esac
  12936. ;;
  12937. gnu*)
  12938. version_type=linux # correct to gnu/linux during the next big refactor
  12939. need_lib_prefix=no
  12940. need_version=no
  12941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12942. soname_spec='${libname}${release}${shared_ext}$major'
  12943. shlibpath_var=LD_LIBRARY_PATH
  12944. shlibpath_overrides_runpath=no
  12945. hardcode_into_libs=yes
  12946. ;;
  12947. haiku*)
  12948. version_type=linux # correct to gnu/linux during the next big refactor
  12949. need_lib_prefix=no
  12950. need_version=no
  12951. dynamic_linker="$host_os runtime_loader"
  12952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12953. soname_spec='${libname}${release}${shared_ext}$major'
  12954. shlibpath_var=LIBRARY_PATH
  12955. shlibpath_overrides_runpath=yes
  12956. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12957. hardcode_into_libs=yes
  12958. ;;
  12959. hpux9* | hpux10* | hpux11*)
  12960. # Give a soname corresponding to the major version so that dld.sl refuses to
  12961. # link against other versions.
  12962. version_type=sunos
  12963. need_lib_prefix=no
  12964. need_version=no
  12965. case $host_cpu in
  12966. ia64*)
  12967. shrext_cmds='.so'
  12968. hardcode_into_libs=yes
  12969. dynamic_linker="$host_os dld.so"
  12970. shlibpath_var=LD_LIBRARY_PATH
  12971. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12973. soname_spec='${libname}${release}${shared_ext}$major'
  12974. if test "X$HPUX_IA64_MODE" = X32; then
  12975. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12976. else
  12977. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12978. fi
  12979. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12980. ;;
  12981. hppa*64*)
  12982. shrext_cmds='.sl'
  12983. hardcode_into_libs=yes
  12984. dynamic_linker="$host_os dld.sl"
  12985. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12986. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12987. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12988. soname_spec='${libname}${release}${shared_ext}$major'
  12989. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12990. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12991. ;;
  12992. *)
  12993. shrext_cmds='.sl'
  12994. dynamic_linker="$host_os dld.sl"
  12995. shlibpath_var=SHLIB_PATH
  12996. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12998. soname_spec='${libname}${release}${shared_ext}$major'
  12999. ;;
  13000. esac
  13001. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13002. postinstall_cmds='chmod 555 $lib'
  13003. # or fails outright, so override atomically:
  13004. install_override_mode=555
  13005. ;;
  13006. interix[3-9]*)
  13007. version_type=linux # correct to gnu/linux during the next big refactor
  13008. need_lib_prefix=no
  13009. need_version=no
  13010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13011. soname_spec='${libname}${release}${shared_ext}$major'
  13012. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13013. shlibpath_var=LD_LIBRARY_PATH
  13014. shlibpath_overrides_runpath=no
  13015. hardcode_into_libs=yes
  13016. ;;
  13017. irix5* | irix6* | nonstopux*)
  13018. case $host_os in
  13019. nonstopux*) version_type=nonstopux ;;
  13020. *)
  13021. if test "$lt_cv_prog_gnu_ld" = yes; then
  13022. version_type=linux # correct to gnu/linux during the next big refactor
  13023. else
  13024. version_type=irix
  13025. fi ;;
  13026. esac
  13027. need_lib_prefix=no
  13028. need_version=no
  13029. soname_spec='${libname}${release}${shared_ext}$major'
  13030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13031. case $host_os in
  13032. irix5* | nonstopux*)
  13033. libsuff= shlibsuff=
  13034. ;;
  13035. *)
  13036. case $LD in # libtool.m4 will add one of these switches to LD
  13037. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13038. libsuff= shlibsuff= libmagic=32-bit;;
  13039. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13040. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13041. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13042. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13043. *) libsuff= shlibsuff= libmagic=never-match;;
  13044. esac
  13045. ;;
  13046. esac
  13047. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13048. shlibpath_overrides_runpath=no
  13049. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13050. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13051. hardcode_into_libs=yes
  13052. ;;
  13053. # No shared lib support for Linux oldld, aout, or coff.
  13054. linux*oldld* | linux*aout* | linux*coff*)
  13055. dynamic_linker=no
  13056. ;;
  13057. # This must be glibc/ELF.
  13058. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13059. version_type=linux # correct to gnu/linux during the next big refactor
  13060. need_lib_prefix=no
  13061. need_version=no
  13062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13063. soname_spec='${libname}${release}${shared_ext}$major'
  13064. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13065. shlibpath_var=LD_LIBRARY_PATH
  13066. shlibpath_overrides_runpath=no
  13067. # Some binutils ld are patched to set DT_RUNPATH
  13068. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13069. $as_echo_n "(cached) " >&6
  13070. else
  13071. lt_cv_shlibpath_overrides_runpath=no
  13072. save_LDFLAGS=$LDFLAGS
  13073. save_libdir=$libdir
  13074. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13075. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13077. /* end confdefs.h. */
  13078. int
  13079. main ()
  13080. {
  13081. ;
  13082. return 0;
  13083. }
  13084. _ACEOF
  13085. if ac_fn_cxx_try_link "$LINENO"; then :
  13086. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13087. lt_cv_shlibpath_overrides_runpath=yes
  13088. fi
  13089. fi
  13090. rm -f core conftest.err conftest.$ac_objext \
  13091. conftest$ac_exeext conftest.$ac_ext
  13092. LDFLAGS=$save_LDFLAGS
  13093. libdir=$save_libdir
  13094. fi
  13095. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13096. # This implies no fast_install, which is unacceptable.
  13097. # Some rework will be needed to allow for fast_install
  13098. # before this can be enabled.
  13099. hardcode_into_libs=yes
  13100. # Append ld.so.conf contents to the search path
  13101. if test -f /etc/ld.so.conf; then
  13102. 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' ' '`
  13103. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13104. fi
  13105. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13106. # powerpc, because MkLinux only supported shared libraries with the
  13107. # GNU dynamic linker. Since this was broken with cross compilers,
  13108. # most powerpc-linux boxes support dynamic linking these days and
  13109. # people can always --disable-shared, the test was removed, and we
  13110. # assume the GNU/Linux dynamic linker is in use.
  13111. dynamic_linker='GNU/Linux ld.so'
  13112. ;;
  13113. netbsd*)
  13114. version_type=sunos
  13115. need_lib_prefix=no
  13116. need_version=no
  13117. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13119. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13120. dynamic_linker='NetBSD (a.out) ld.so'
  13121. else
  13122. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13123. soname_spec='${libname}${release}${shared_ext}$major'
  13124. dynamic_linker='NetBSD ld.elf_so'
  13125. fi
  13126. shlibpath_var=LD_LIBRARY_PATH
  13127. shlibpath_overrides_runpath=yes
  13128. hardcode_into_libs=yes
  13129. ;;
  13130. newsos6)
  13131. version_type=linux # correct to gnu/linux during the next big refactor
  13132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13133. shlibpath_var=LD_LIBRARY_PATH
  13134. shlibpath_overrides_runpath=yes
  13135. ;;
  13136. *nto* | *qnx*)
  13137. version_type=qnx
  13138. need_lib_prefix=no
  13139. need_version=no
  13140. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13141. soname_spec='${libname}${release}${shared_ext}$major'
  13142. shlibpath_var=LD_LIBRARY_PATH
  13143. shlibpath_overrides_runpath=no
  13144. hardcode_into_libs=yes
  13145. dynamic_linker='ldqnx.so'
  13146. ;;
  13147. openbsd*)
  13148. version_type=sunos
  13149. sys_lib_dlsearch_path_spec="/usr/lib"
  13150. need_lib_prefix=no
  13151. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13152. case $host_os in
  13153. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13154. *) need_version=no ;;
  13155. esac
  13156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13157. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13158. shlibpath_var=LD_LIBRARY_PATH
  13159. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13160. case $host_os in
  13161. openbsd2.[89] | openbsd2.[89].*)
  13162. shlibpath_overrides_runpath=no
  13163. ;;
  13164. *)
  13165. shlibpath_overrides_runpath=yes
  13166. ;;
  13167. esac
  13168. else
  13169. shlibpath_overrides_runpath=yes
  13170. fi
  13171. ;;
  13172. os2*)
  13173. libname_spec='$name'
  13174. shrext_cmds=".dll"
  13175. need_lib_prefix=no
  13176. library_names_spec='$libname${shared_ext} $libname.a'
  13177. dynamic_linker='OS/2 ld.exe'
  13178. shlibpath_var=LIBPATH
  13179. ;;
  13180. osf3* | osf4* | osf5*)
  13181. version_type=osf
  13182. need_lib_prefix=no
  13183. need_version=no
  13184. soname_spec='${libname}${release}${shared_ext}$major'
  13185. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13186. shlibpath_var=LD_LIBRARY_PATH
  13187. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13188. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13189. ;;
  13190. rdos*)
  13191. dynamic_linker=no
  13192. ;;
  13193. solaris*)
  13194. version_type=linux # correct to gnu/linux during the next big refactor
  13195. need_lib_prefix=no
  13196. need_version=no
  13197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13198. soname_spec='${libname}${release}${shared_ext}$major'
  13199. shlibpath_var=LD_LIBRARY_PATH
  13200. shlibpath_overrides_runpath=yes
  13201. hardcode_into_libs=yes
  13202. # ldd complains unless libraries are executable
  13203. postinstall_cmds='chmod +x $lib'
  13204. ;;
  13205. sunos4*)
  13206. version_type=sunos
  13207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13208. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13209. shlibpath_var=LD_LIBRARY_PATH
  13210. shlibpath_overrides_runpath=yes
  13211. if test "$with_gnu_ld" = yes; then
  13212. need_lib_prefix=no
  13213. fi
  13214. need_version=yes
  13215. ;;
  13216. sysv4 | sysv4.3*)
  13217. version_type=linux # correct to gnu/linux during the next big refactor
  13218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13219. soname_spec='${libname}${release}${shared_ext}$major'
  13220. shlibpath_var=LD_LIBRARY_PATH
  13221. case $host_vendor in
  13222. sni)
  13223. shlibpath_overrides_runpath=no
  13224. need_lib_prefix=no
  13225. runpath_var=LD_RUN_PATH
  13226. ;;
  13227. siemens)
  13228. need_lib_prefix=no
  13229. ;;
  13230. motorola)
  13231. need_lib_prefix=no
  13232. need_version=no
  13233. shlibpath_overrides_runpath=no
  13234. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13235. ;;
  13236. esac
  13237. ;;
  13238. sysv4*MP*)
  13239. if test -d /usr/nec ;then
  13240. version_type=linux # correct to gnu/linux during the next big refactor
  13241. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13242. soname_spec='$libname${shared_ext}.$major'
  13243. shlibpath_var=LD_LIBRARY_PATH
  13244. fi
  13245. ;;
  13246. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13247. version_type=freebsd-elf
  13248. need_lib_prefix=no
  13249. need_version=no
  13250. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13251. soname_spec='${libname}${release}${shared_ext}$major'
  13252. shlibpath_var=LD_LIBRARY_PATH
  13253. shlibpath_overrides_runpath=yes
  13254. hardcode_into_libs=yes
  13255. if test "$with_gnu_ld" = yes; then
  13256. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13257. else
  13258. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13259. case $host_os in
  13260. sco3.2v5*)
  13261. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13262. ;;
  13263. esac
  13264. fi
  13265. sys_lib_dlsearch_path_spec='/usr/lib'
  13266. ;;
  13267. tpf*)
  13268. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13269. version_type=linux # correct to gnu/linux during the next big refactor
  13270. need_lib_prefix=no
  13271. need_version=no
  13272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13273. shlibpath_var=LD_LIBRARY_PATH
  13274. shlibpath_overrides_runpath=no
  13275. hardcode_into_libs=yes
  13276. ;;
  13277. uts4*)
  13278. version_type=linux # correct to gnu/linux during the next big refactor
  13279. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13280. soname_spec='${libname}${release}${shared_ext}$major'
  13281. shlibpath_var=LD_LIBRARY_PATH
  13282. ;;
  13283. *)
  13284. dynamic_linker=no
  13285. ;;
  13286. esac
  13287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13288. $as_echo "$dynamic_linker" >&6; }
  13289. test "$dynamic_linker" = no && can_build_shared=no
  13290. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13291. if test "$GCC" = yes; then
  13292. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13293. fi
  13294. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13295. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13296. fi
  13297. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13298. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13299. fi
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13301. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13302. hardcode_action_CXX=
  13303. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13304. test -n "$runpath_var_CXX" ||
  13305. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13306. # We can hardcode non-existent directories.
  13307. if test "$hardcode_direct_CXX" != no &&
  13308. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13309. # have to relink, otherwise we might link with an installed library
  13310. # when we should be linking with a yet-to-be-installed one
  13311. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13312. test "$hardcode_minus_L_CXX" != no; then
  13313. # Linking always hardcodes the temporary library directory.
  13314. hardcode_action_CXX=relink
  13315. else
  13316. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13317. hardcode_action_CXX=immediate
  13318. fi
  13319. else
  13320. # We cannot hardcode anything, or else we can only hardcode existing
  13321. # directories.
  13322. hardcode_action_CXX=unsupported
  13323. fi
  13324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13325. $as_echo "$hardcode_action_CXX" >&6; }
  13326. if test "$hardcode_action_CXX" = relink ||
  13327. test "$inherit_rpath_CXX" = yes; then
  13328. # Fast installation is not supported
  13329. enable_fast_install=no
  13330. elif test "$shlibpath_overrides_runpath" = yes ||
  13331. test "$enable_shared" = no; then
  13332. # Fast installation is not necessary
  13333. enable_fast_install=needless
  13334. fi
  13335. fi # test -n "$compiler"
  13336. CC=$lt_save_CC
  13337. CFLAGS=$lt_save_CFLAGS
  13338. LDCXX=$LD
  13339. LD=$lt_save_LD
  13340. GCC=$lt_save_GCC
  13341. with_gnu_ld=$lt_save_with_gnu_ld
  13342. lt_cv_path_LDCXX=$lt_cv_path_LD
  13343. lt_cv_path_LD=$lt_save_path_LD
  13344. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13345. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13346. fi # test "$_lt_caught_CXX_error" != yes
  13347. ac_ext=c
  13348. ac_cpp='$CPP $CPPFLAGS'
  13349. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13350. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13351. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13352. # Find a good install program. We prefer a C program (faster),
  13353. # so one script is as good as another. But avoid the broken or
  13354. # incompatible versions:
  13355. # SysV /etc/install, /usr/sbin/install
  13356. # SunOS /usr/etc/install
  13357. # IRIX /sbin/install
  13358. # AIX /bin/install
  13359. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13360. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13361. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13362. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13363. # OS/2's system install, which has a completely different semantic
  13364. # ./install, which can be erroneously created by make from ./install.sh.
  13365. # Reject install programs that cannot install multiple files.
  13366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13367. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13368. if test -z "$INSTALL"; then
  13369. if ${ac_cv_path_install+:} false; then :
  13370. $as_echo_n "(cached) " >&6
  13371. else
  13372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13373. for as_dir in $PATH
  13374. do
  13375. IFS=$as_save_IFS
  13376. test -z "$as_dir" && as_dir=.
  13377. # Account for people who put trailing slashes in PATH elements.
  13378. case $as_dir/ in #((
  13379. ./ | .// | /[cC]/* | \
  13380. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13381. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13382. /usr/ucb/* ) ;;
  13383. *)
  13384. # OSF1 and SCO ODT 3.0 have their own names for install.
  13385. # Don't use installbsd from OSF since it installs stuff as root
  13386. # by default.
  13387. for ac_prog in ginstall scoinst install; do
  13388. for ac_exec_ext in '' $ac_executable_extensions; do
  13389. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13390. if test $ac_prog = install &&
  13391. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13392. # AIX install. It has an incompatible calling convention.
  13393. :
  13394. elif test $ac_prog = install &&
  13395. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13396. # program-specific install script used by HP pwplus--don't use.
  13397. :
  13398. else
  13399. rm -rf conftest.one conftest.two conftest.dir
  13400. echo one > conftest.one
  13401. echo two > conftest.two
  13402. mkdir conftest.dir
  13403. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13404. test -s conftest.one && test -s conftest.two &&
  13405. test -s conftest.dir/conftest.one &&
  13406. test -s conftest.dir/conftest.two
  13407. then
  13408. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13409. break 3
  13410. fi
  13411. fi
  13412. fi
  13413. done
  13414. done
  13415. ;;
  13416. esac
  13417. done
  13418. IFS=$as_save_IFS
  13419. rm -rf conftest.one conftest.two conftest.dir
  13420. fi
  13421. if test "${ac_cv_path_install+set}" = set; then
  13422. INSTALL=$ac_cv_path_install
  13423. else
  13424. # As a last resort, use the slow shell script. Don't cache a
  13425. # value for INSTALL within a source directory, because that will
  13426. # break other packages using the cache if that directory is
  13427. # removed, or if the value is a relative name.
  13428. INSTALL=$ac_install_sh
  13429. fi
  13430. fi
  13431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13432. $as_echo "$INSTALL" >&6; }
  13433. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13434. # It thinks the first close brace ends the variable substitution.
  13435. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13436. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13437. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13439. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13440. set x ${MAKE-make}
  13441. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13442. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13443. $as_echo_n "(cached) " >&6
  13444. else
  13445. cat >conftest.make <<\_ACEOF
  13446. SHELL = /bin/sh
  13447. all:
  13448. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13449. _ACEOF
  13450. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13451. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13452. *@@@%%%=?*=@@@%%%*)
  13453. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13454. *)
  13455. eval ac_cv_prog_make_${ac_make}_set=no;;
  13456. esac
  13457. rm -f conftest.make
  13458. fi
  13459. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13461. $as_echo "yes" >&6; }
  13462. SET_MAKE=
  13463. else
  13464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13465. $as_echo "no" >&6; }
  13466. SET_MAKE="MAKE=${MAKE-make}"
  13467. fi
  13468. if test -n "$ac_tool_prefix"; then
  13469. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13470. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13472. $as_echo_n "checking for $ac_word... " >&6; }
  13473. if ${ac_cv_prog_WINDRES+:} false; then :
  13474. $as_echo_n "(cached) " >&6
  13475. else
  13476. if test -n "$WINDRES"; then
  13477. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13478. else
  13479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13480. for as_dir in $PATH
  13481. do
  13482. IFS=$as_save_IFS
  13483. test -z "$as_dir" && as_dir=.
  13484. for ac_exec_ext in '' $ac_executable_extensions; do
  13485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13486. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13488. break 2
  13489. fi
  13490. done
  13491. done
  13492. IFS=$as_save_IFS
  13493. fi
  13494. fi
  13495. WINDRES=$ac_cv_prog_WINDRES
  13496. if test -n "$WINDRES"; then
  13497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13498. $as_echo "$WINDRES" >&6; }
  13499. else
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13501. $as_echo "no" >&6; }
  13502. fi
  13503. fi
  13504. if test -z "$ac_cv_prog_WINDRES"; then
  13505. ac_ct_WINDRES=$WINDRES
  13506. # Extract the first word of "windres", so it can be a program name with args.
  13507. set dummy windres; ac_word=$2
  13508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13509. $as_echo_n "checking for $ac_word... " >&6; }
  13510. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13511. $as_echo_n "(cached) " >&6
  13512. else
  13513. if test -n "$ac_ct_WINDRES"; then
  13514. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13515. else
  13516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13517. for as_dir in $PATH
  13518. do
  13519. IFS=$as_save_IFS
  13520. test -z "$as_dir" && as_dir=.
  13521. for ac_exec_ext in '' $ac_executable_extensions; do
  13522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13523. ac_cv_prog_ac_ct_WINDRES="windres"
  13524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13525. break 2
  13526. fi
  13527. done
  13528. done
  13529. IFS=$as_save_IFS
  13530. fi
  13531. fi
  13532. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13533. if test -n "$ac_ct_WINDRES"; then
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13535. $as_echo "$ac_ct_WINDRES" >&6; }
  13536. else
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13538. $as_echo "no" >&6; }
  13539. fi
  13540. if test "x$ac_ct_WINDRES" = x; then
  13541. WINDRES=":"
  13542. else
  13543. case $cross_compiling:$ac_tool_warned in
  13544. yes:)
  13545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13546. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13547. ac_tool_warned=yes ;;
  13548. esac
  13549. WINDRES=$ac_ct_WINDRES
  13550. fi
  13551. else
  13552. WINDRES="$ac_cv_prog_WINDRES"
  13553. fi
  13554. case "$host" in
  13555. *-*-mingw32*)
  13556. # Except on msys, where make can't handle full pathnames (bug 1972)
  13557. ;;
  13558. *)
  13559. srcdir=`cd $srcdir && pwd`
  13560. ;;
  13561. esac
  13562. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13563. if test x$srcdir != x.; then
  13564. INCLUDE="-Iinclude $INCLUDE"
  13565. elif test -d .hg; then
  13566. as_fn_error $? "
  13567. *** When building from Mercurial you should configure and build in a
  13568. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13569. " "$LINENO" 5
  13570. fi
  13571. BASE_CFLAGS=""
  13572. BASE_LDFLAGS=""
  13573. case "$host" in
  13574. *-*-cygwin*)
  13575. # We build SDL on cygwin without the UNIX emulation layer
  13576. save_CFLAGS="$CFLAGS"
  13577. have_no_cygwin=no
  13578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13579. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13580. CFLAGS="$save_CFLAGS -mno-cygwin"
  13581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13582. /* end confdefs.h. */
  13583. int
  13584. main ()
  13585. {
  13586. ;
  13587. return 0;
  13588. }
  13589. _ACEOF
  13590. if ac_fn_c_try_compile "$LINENO"; then :
  13591. have_no_cygwin=yes
  13592. fi
  13593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13595. $as_echo "$have_no_cygwin" >&6; }
  13596. CFLAGS="$save_CFLAGS"
  13597. if test x$have_no_cygwin = xyes; then
  13598. BASE_CFLAGS="-mno-cygwin"
  13599. BASE_LDFLAGS="-mno-cygwin"
  13600. fi
  13601. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13602. ;;
  13603. esac
  13604. # Uncomment the following line if you want to force SDL and applications
  13605. # built with it to be compiled for a particular architecture.
  13606. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13607. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13608. # The default optimization for SDL is -O3 (Bug #31)
  13609. if test "x$orig_CFLAGS" = x; then
  13610. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13611. fi
  13612. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13613. BUILD_LDFLAGS="$LDFLAGS"
  13614. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13615. ## These are common directories to find software packages
  13616. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13617. # if test -d $path/include; then
  13618. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13619. # fi
  13620. # if test -d $path/lib; then
  13621. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13622. # fi
  13623. #done
  13624. SDL_CFLAGS="$BASE_CFLAGS"
  13625. SDL_LIBS="-lSDL2 $BASE_LDFLAGS"
  13626. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13627. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13628. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13629. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13630. find_lib()
  13631. {
  13632. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13633. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13634. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13635. if test "$cross_compiling" = yes; then
  13636. host_lib_path=""
  13637. else
  13638. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13639. fi
  13640. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13641. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13642. if test x$lib != x; then
  13643. echo $lib
  13644. return
  13645. fi
  13646. done
  13647. }
  13648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13649. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13650. if ${ac_cv_c_const+:} false; then :
  13651. $as_echo_n "(cached) " >&6
  13652. else
  13653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13654. /* end confdefs.h. */
  13655. int
  13656. main ()
  13657. {
  13658. #ifndef __cplusplus
  13659. /* Ultrix mips cc rejects this sort of thing. */
  13660. typedef int charset[2];
  13661. const charset cs = { 0, 0 };
  13662. /* SunOS 4.1.1 cc rejects this. */
  13663. char const *const *pcpcc;
  13664. char **ppc;
  13665. /* NEC SVR4.0.2 mips cc rejects this. */
  13666. struct point {int x, y;};
  13667. static struct point const zero = {0,0};
  13668. /* AIX XL C 1.02.0.0 rejects this.
  13669. It does not let you subtract one const X* pointer from another in
  13670. an arm of an if-expression whose if-part is not a constant
  13671. expression */
  13672. const char *g = "string";
  13673. pcpcc = &g + (g ? g-g : 0);
  13674. /* HPUX 7.0 cc rejects these. */
  13675. ++pcpcc;
  13676. ppc = (char**) pcpcc;
  13677. pcpcc = (char const *const *) ppc;
  13678. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13679. char tx;
  13680. char *t = &tx;
  13681. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13682. *t++ = 0;
  13683. if (s) return 0;
  13684. }
  13685. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13686. int x[] = {25, 17};
  13687. const int *foo = &x[0];
  13688. ++foo;
  13689. }
  13690. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13691. typedef const int *iptr;
  13692. iptr p = 0;
  13693. ++p;
  13694. }
  13695. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13696. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13697. struct s { int j; const int *ap[3]; } bx;
  13698. struct s *b = &bx; b->j = 5;
  13699. }
  13700. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13701. const int foo = 10;
  13702. if (!foo) return 0;
  13703. }
  13704. return !cs[0] && !zero.x;
  13705. #endif
  13706. ;
  13707. return 0;
  13708. }
  13709. _ACEOF
  13710. if ac_fn_c_try_compile "$LINENO"; then :
  13711. ac_cv_c_const=yes
  13712. else
  13713. ac_cv_c_const=no
  13714. fi
  13715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13716. fi
  13717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13718. $as_echo "$ac_cv_c_const" >&6; }
  13719. if test $ac_cv_c_const = no; then
  13720. $as_echo "#define const /**/" >>confdefs.h
  13721. fi
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13723. $as_echo_n "checking for inline... " >&6; }
  13724. if ${ac_cv_c_inline+:} false; then :
  13725. $as_echo_n "(cached) " >&6
  13726. else
  13727. ac_cv_c_inline=no
  13728. for ac_kw in inline __inline__ __inline; do
  13729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13730. /* end confdefs.h. */
  13731. #ifndef __cplusplus
  13732. typedef int foo_t;
  13733. static $ac_kw foo_t static_foo () {return 0; }
  13734. $ac_kw foo_t foo () {return 0; }
  13735. #endif
  13736. _ACEOF
  13737. if ac_fn_c_try_compile "$LINENO"; then :
  13738. ac_cv_c_inline=$ac_kw
  13739. fi
  13740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13741. test "$ac_cv_c_inline" != no && break
  13742. done
  13743. fi
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13745. $as_echo "$ac_cv_c_inline" >&6; }
  13746. case $ac_cv_c_inline in
  13747. inline | yes) ;;
  13748. *)
  13749. case $ac_cv_c_inline in
  13750. no) ac_val=;;
  13751. *) ac_val=$ac_cv_c_inline;;
  13752. esac
  13753. cat >>confdefs.h <<_ACEOF
  13754. #ifndef __cplusplus
  13755. #define inline $ac_val
  13756. #endif
  13757. _ACEOF
  13758. ;;
  13759. esac
  13760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13761. $as_echo_n "checking for working volatile... " >&6; }
  13762. if ${ac_cv_c_volatile+:} false; then :
  13763. $as_echo_n "(cached) " >&6
  13764. else
  13765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13766. /* end confdefs.h. */
  13767. int
  13768. main ()
  13769. {
  13770. volatile int x;
  13771. int * volatile y = (int *) 0;
  13772. return !x && !y;
  13773. ;
  13774. return 0;
  13775. }
  13776. _ACEOF
  13777. if ac_fn_c_try_compile "$LINENO"; then :
  13778. ac_cv_c_volatile=yes
  13779. else
  13780. ac_cv_c_volatile=no
  13781. fi
  13782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13783. fi
  13784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13785. $as_echo "$ac_cv_c_volatile" >&6; }
  13786. if test $ac_cv_c_volatile = no; then
  13787. $as_echo "#define volatile /**/" >>confdefs.h
  13788. fi
  13789. # Check whether --enable-assertions was given.
  13790. if test "${enable_assertions+set}" = set; then :
  13791. enableval=$enable_assertions;
  13792. else
  13793. enable_assertions=auto
  13794. fi
  13795. case "$enable_assertions" in
  13796. auto) # Use optimization settings to determine assertion level
  13797. ;;
  13798. disabled)
  13799. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13800. ;;
  13801. release)
  13802. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13803. ;;
  13804. enabled)
  13805. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13806. ;;
  13807. paranoid)
  13808. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13809. ;;
  13810. *)
  13811. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13812. ;;
  13813. esac
  13814. # Check whether --enable-dependency-tracking was given.
  13815. if test "${enable_dependency_tracking+set}" = set; then :
  13816. enableval=$enable_dependency_tracking;
  13817. else
  13818. enable_dependency_tracking=yes
  13819. fi
  13820. if test x$enable_dependency_tracking = xyes; then
  13821. have_gcc_mmd_mt=no
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13823. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13825. /* end confdefs.h. */
  13826. #if !defined(__GNUC__) || __GNUC__ < 3
  13827. #error Dependency tracking requires GCC 3.0 or newer
  13828. #endif
  13829. int
  13830. main ()
  13831. {
  13832. ;
  13833. return 0;
  13834. }
  13835. _ACEOF
  13836. if ac_fn_c_try_compile "$LINENO"; then :
  13837. have_gcc_mmd_mt=yes
  13838. fi
  13839. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13841. $as_echo "$have_gcc_mmd_mt" >&6; }
  13842. if test x$have_gcc_mmd_mt = xyes; then
  13843. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13844. fi
  13845. fi
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13847. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13848. have_no_undefined=no
  13849. case "$host" in
  13850. *-*-openbsd*)
  13851. ;;
  13852. *)
  13853. save_LDFLAGS="$LDFLAGS"
  13854. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13856. /* end confdefs.h. */
  13857. int
  13858. main ()
  13859. {
  13860. ;
  13861. return 0;
  13862. }
  13863. _ACEOF
  13864. if ac_fn_c_try_link "$LINENO"; then :
  13865. have_no_undefined=yes
  13866. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13867. fi
  13868. rm -f core conftest.err conftest.$ac_objext \
  13869. conftest$ac_exeext conftest.$ac_ext
  13870. LDFLAGS="$save_LDFLAGS"
  13871. ;;
  13872. esac
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13874. $as_echo "$have_no_undefined" >&6; }
  13875. # Check whether --enable-libc was given.
  13876. if test "${enable_libc+set}" = set; then :
  13877. enableval=$enable_libc;
  13878. else
  13879. enable_libc=yes
  13880. fi
  13881. if test x$enable_libc = xyes; then
  13882. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13884. $as_echo_n "checking for ANSI C header files... " >&6; }
  13885. if ${ac_cv_header_stdc+:} false; then :
  13886. $as_echo_n "(cached) " >&6
  13887. else
  13888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13889. /* end confdefs.h. */
  13890. #include <stdlib.h>
  13891. #include <stdarg.h>
  13892. #include <string.h>
  13893. #include <float.h>
  13894. int
  13895. main ()
  13896. {
  13897. ;
  13898. return 0;
  13899. }
  13900. _ACEOF
  13901. if ac_fn_c_try_compile "$LINENO"; then :
  13902. ac_cv_header_stdc=yes
  13903. else
  13904. ac_cv_header_stdc=no
  13905. fi
  13906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13907. if test $ac_cv_header_stdc = yes; then
  13908. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13910. /* end confdefs.h. */
  13911. #include <string.h>
  13912. _ACEOF
  13913. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13914. $EGREP "memchr" >/dev/null 2>&1; then :
  13915. else
  13916. ac_cv_header_stdc=no
  13917. fi
  13918. rm -f conftest*
  13919. fi
  13920. if test $ac_cv_header_stdc = yes; then
  13921. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13923. /* end confdefs.h. */
  13924. #include <stdlib.h>
  13925. _ACEOF
  13926. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13927. $EGREP "free" >/dev/null 2>&1; then :
  13928. else
  13929. ac_cv_header_stdc=no
  13930. fi
  13931. rm -f conftest*
  13932. fi
  13933. if test $ac_cv_header_stdc = yes; then
  13934. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13935. if test "$cross_compiling" = yes; then :
  13936. :
  13937. else
  13938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13939. /* end confdefs.h. */
  13940. #include <ctype.h>
  13941. #include <stdlib.h>
  13942. #if ((' ' & 0x0FF) == 0x020)
  13943. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13944. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13945. #else
  13946. # define ISLOWER(c) \
  13947. (('a' <= (c) && (c) <= 'i') \
  13948. || ('j' <= (c) && (c) <= 'r') \
  13949. || ('s' <= (c) && (c) <= 'z'))
  13950. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13951. #endif
  13952. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13953. int
  13954. main ()
  13955. {
  13956. int i;
  13957. for (i = 0; i < 256; i++)
  13958. if (XOR (islower (i), ISLOWER (i))
  13959. || toupper (i) != TOUPPER (i))
  13960. return 2;
  13961. return 0;
  13962. }
  13963. _ACEOF
  13964. if ac_fn_c_try_run "$LINENO"; then :
  13965. else
  13966. ac_cv_header_stdc=no
  13967. fi
  13968. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13969. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13970. fi
  13971. fi
  13972. fi
  13973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13974. $as_echo "$ac_cv_header_stdc" >&6; }
  13975. if test $ac_cv_header_stdc = yes; then
  13976. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13977. fi
  13978. 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
  13979. do :
  13980. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13981. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13982. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13983. cat >>confdefs.h <<_ACEOF
  13984. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13985. _ACEOF
  13986. fi
  13987. done
  13988. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13989. if test "x$ac_cv_type_size_t" = xyes; then :
  13990. else
  13991. cat >>confdefs.h <<_ACEOF
  13992. #define size_t unsigned int
  13993. _ACEOF
  13994. fi
  13995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13996. $as_echo_n "checking for M_PI in math.h... " >&6; }
  13997. if ${ac_cv_define_M_PI+:} false; then :
  13998. $as_echo_n "(cached) " >&6
  13999. else
  14000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14001. /* end confdefs.h. */
  14002. #include <math.h>
  14003. #ifdef M_PI
  14004. YES_IS_DEFINED
  14005. #endif
  14006. _ACEOF
  14007. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14008. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14009. ac_cv_define_M_PI=yes
  14010. else
  14011. ac_cv_define_M_PI=no
  14012. fi
  14013. rm -f conftest*
  14014. fi
  14015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14016. $as_echo "$ac_cv_define_M_PI" >&6; }
  14017. if test "$ac_cv_define_M_PI" = "yes" ; then
  14018. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14019. fi
  14020. case "$host" in
  14021. *-*-cygwin* | *-*-mingw32*)
  14022. ;;
  14023. *)
  14024. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14025. # for constant arguments. Useless!
  14026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14027. $as_echo_n "checking for working alloca.h... " >&6; }
  14028. if ${ac_cv_working_alloca_h+:} false; then :
  14029. $as_echo_n "(cached) " >&6
  14030. else
  14031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14032. /* end confdefs.h. */
  14033. #include <alloca.h>
  14034. int
  14035. main ()
  14036. {
  14037. char *p = (char *) alloca (2 * sizeof (int));
  14038. if (p) return 0;
  14039. ;
  14040. return 0;
  14041. }
  14042. _ACEOF
  14043. if ac_fn_c_try_link "$LINENO"; then :
  14044. ac_cv_working_alloca_h=yes
  14045. else
  14046. ac_cv_working_alloca_h=no
  14047. fi
  14048. rm -f core conftest.err conftest.$ac_objext \
  14049. conftest$ac_exeext conftest.$ac_ext
  14050. fi
  14051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14052. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14053. if test $ac_cv_working_alloca_h = yes; then
  14054. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14055. fi
  14056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14057. $as_echo_n "checking for alloca... " >&6; }
  14058. if ${ac_cv_func_alloca_works+:} false; then :
  14059. $as_echo_n "(cached) " >&6
  14060. else
  14061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14062. /* end confdefs.h. */
  14063. #ifdef __GNUC__
  14064. # define alloca __builtin_alloca
  14065. #else
  14066. # ifdef _MSC_VER
  14067. # include <malloc.h>
  14068. # define alloca _alloca
  14069. # else
  14070. # ifdef HAVE_ALLOCA_H
  14071. # include <alloca.h>
  14072. # else
  14073. # ifdef _AIX
  14074. #pragma alloca
  14075. # else
  14076. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14077. void *alloca (size_t);
  14078. # endif
  14079. # endif
  14080. # endif
  14081. # endif
  14082. #endif
  14083. int
  14084. main ()
  14085. {
  14086. char *p = (char *) alloca (1);
  14087. if (p) return 0;
  14088. ;
  14089. return 0;
  14090. }
  14091. _ACEOF
  14092. if ac_fn_c_try_link "$LINENO"; then :
  14093. ac_cv_func_alloca_works=yes
  14094. else
  14095. ac_cv_func_alloca_works=no
  14096. fi
  14097. rm -f core conftest.err conftest.$ac_objext \
  14098. conftest$ac_exeext conftest.$ac_ext
  14099. fi
  14100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14101. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14102. if test $ac_cv_func_alloca_works = yes; then
  14103. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14104. else
  14105. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14106. # that cause trouble. Some versions do not even contain alloca or
  14107. # contain a buggy version. If you still want to use their alloca,
  14108. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14109. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14110. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14112. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14113. if ${ac_cv_os_cray+:} false; then :
  14114. $as_echo_n "(cached) " >&6
  14115. else
  14116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14117. /* end confdefs.h. */
  14118. #if defined CRAY && ! defined CRAY2
  14119. webecray
  14120. #else
  14121. wenotbecray
  14122. #endif
  14123. _ACEOF
  14124. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14125. $EGREP "webecray" >/dev/null 2>&1; then :
  14126. ac_cv_os_cray=yes
  14127. else
  14128. ac_cv_os_cray=no
  14129. fi
  14130. rm -f conftest*
  14131. fi
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14133. $as_echo "$ac_cv_os_cray" >&6; }
  14134. if test $ac_cv_os_cray = yes; then
  14135. for ac_func in _getb67 GETB67 getb67; do
  14136. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14137. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14138. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14139. cat >>confdefs.h <<_ACEOF
  14140. #define CRAY_STACKSEG_END $ac_func
  14141. _ACEOF
  14142. break
  14143. fi
  14144. done
  14145. fi
  14146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14147. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14148. if ${ac_cv_c_stack_direction+:} false; then :
  14149. $as_echo_n "(cached) " >&6
  14150. else
  14151. if test "$cross_compiling" = yes; then :
  14152. ac_cv_c_stack_direction=0
  14153. else
  14154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14155. /* end confdefs.h. */
  14156. $ac_includes_default
  14157. int
  14158. find_stack_direction (int *addr, int depth)
  14159. {
  14160. int dir, dummy = 0;
  14161. if (! addr)
  14162. addr = &dummy;
  14163. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14164. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14165. return dir + dummy;
  14166. }
  14167. int
  14168. main (int argc, char **argv)
  14169. {
  14170. return find_stack_direction (0, argc + !argv + 20) < 0;
  14171. }
  14172. _ACEOF
  14173. if ac_fn_c_try_run "$LINENO"; then :
  14174. ac_cv_c_stack_direction=1
  14175. else
  14176. ac_cv_c_stack_direction=-1
  14177. fi
  14178. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14179. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14180. fi
  14181. fi
  14182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14183. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14184. cat >>confdefs.h <<_ACEOF
  14185. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14186. _ACEOF
  14187. fi
  14188. ;;
  14189. esac
  14190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14191. $as_echo_n "checking for working memcmp... " >&6; }
  14192. if ${ac_cv_func_memcmp_working+:} false; then :
  14193. $as_echo_n "(cached) " >&6
  14194. else
  14195. if test "$cross_compiling" = yes; then :
  14196. ac_cv_func_memcmp_working=no
  14197. else
  14198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14199. /* end confdefs.h. */
  14200. $ac_includes_default
  14201. int
  14202. main ()
  14203. {
  14204. /* Some versions of memcmp are not 8-bit clean. */
  14205. char c0 = '\100', c1 = '\200', c2 = '\201';
  14206. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14207. return 1;
  14208. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14209. or more and with at least one buffer not starting on a 4-byte boundary.
  14210. William Lewis provided this test program. */
  14211. {
  14212. char foo[21];
  14213. char bar[21];
  14214. int i;
  14215. for (i = 0; i < 4; i++)
  14216. {
  14217. char *a = foo + i;
  14218. char *b = bar + i;
  14219. strcpy (a, "--------01111111");
  14220. strcpy (b, "--------10000000");
  14221. if (memcmp (a, b, 16) >= 0)
  14222. return 1;
  14223. }
  14224. return 0;
  14225. }
  14226. ;
  14227. return 0;
  14228. }
  14229. _ACEOF
  14230. if ac_fn_c_try_run "$LINENO"; then :
  14231. ac_cv_func_memcmp_working=yes
  14232. else
  14233. ac_cv_func_memcmp_working=no
  14234. fi
  14235. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14236. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14237. fi
  14238. fi
  14239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14240. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14241. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14242. *" memcmp.$ac_objext "* ) ;;
  14243. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14244. ;;
  14245. esac
  14246. if test x$ac_cv_func_memcmp_working = xyes; then
  14247. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14248. fi
  14249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14250. $as_echo_n "checking for working strtod... " >&6; }
  14251. if ${ac_cv_func_strtod+:} false; then :
  14252. $as_echo_n "(cached) " >&6
  14253. else
  14254. if test "$cross_compiling" = yes; then :
  14255. ac_cv_func_strtod=no
  14256. else
  14257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14258. /* end confdefs.h. */
  14259. $ac_includes_default
  14260. #ifndef strtod
  14261. double strtod ();
  14262. #endif
  14263. int
  14264. main()
  14265. {
  14266. {
  14267. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14268. char *string = " +69";
  14269. char *term;
  14270. double value;
  14271. value = strtod (string, &term);
  14272. if (value != 69 || term != (string + 4))
  14273. return 1;
  14274. }
  14275. {
  14276. /* Under Solaris 2.4, strtod returns the wrong value for the
  14277. terminating character under some conditions. */
  14278. char *string = "NaN";
  14279. char *term;
  14280. strtod (string, &term);
  14281. if (term != string && *(term - 1) == 0)
  14282. return 1;
  14283. }
  14284. return 0;
  14285. }
  14286. _ACEOF
  14287. if ac_fn_c_try_run "$LINENO"; then :
  14288. ac_cv_func_strtod=yes
  14289. else
  14290. ac_cv_func_strtod=no
  14291. fi
  14292. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14293. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14294. fi
  14295. fi
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14297. $as_echo "$ac_cv_func_strtod" >&6; }
  14298. if test $ac_cv_func_strtod = no; then
  14299. case " $LIBOBJS " in
  14300. *" strtod.$ac_objext "* ) ;;
  14301. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14302. ;;
  14303. esac
  14304. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14305. if test "x$ac_cv_func_pow" = xyes; then :
  14306. fi
  14307. if test $ac_cv_func_pow = no; then
  14308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14309. $as_echo_n "checking for pow in -lm... " >&6; }
  14310. if ${ac_cv_lib_m_pow+:} false; then :
  14311. $as_echo_n "(cached) " >&6
  14312. else
  14313. ac_check_lib_save_LIBS=$LIBS
  14314. LIBS="-lm $LIBS"
  14315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14316. /* end confdefs.h. */
  14317. /* Override any GCC internal prototype to avoid an error.
  14318. Use char because int might match the return type of a GCC
  14319. builtin and then its argument prototype would still apply. */
  14320. #ifdef __cplusplus
  14321. extern "C"
  14322. #endif
  14323. char pow ();
  14324. int
  14325. main ()
  14326. {
  14327. return pow ();
  14328. ;
  14329. return 0;
  14330. }
  14331. _ACEOF
  14332. if ac_fn_c_try_link "$LINENO"; then :
  14333. ac_cv_lib_m_pow=yes
  14334. else
  14335. ac_cv_lib_m_pow=no
  14336. fi
  14337. rm -f core conftest.err conftest.$ac_objext \
  14338. conftest$ac_exeext conftest.$ac_ext
  14339. LIBS=$ac_check_lib_save_LIBS
  14340. fi
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14342. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14343. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14344. POW_LIB=-lm
  14345. else
  14346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14347. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14348. fi
  14349. fi
  14350. fi
  14351. if test x$ac_cv_func_strtod = xyes; then
  14352. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14353. fi
  14354. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14355. if test "x$ac_cv_func_mprotect" = xyes; then :
  14356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14357. /* end confdefs.h. */
  14358. #include <sys/types.h>
  14359. #include <sys/mman.h>
  14360. int
  14361. main ()
  14362. {
  14363. ;
  14364. return 0;
  14365. }
  14366. _ACEOF
  14367. if ac_fn_c_try_compile "$LINENO"; then :
  14368. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14369. fi
  14370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14371. fi
  14372. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
  14373. do :
  14374. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14375. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14376. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14377. cat >>confdefs.h <<_ACEOF
  14378. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14379. _ACEOF
  14380. fi
  14381. done
  14382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14383. $as_echo_n "checking for pow in -lm... " >&6; }
  14384. if ${ac_cv_lib_m_pow+:} false; then :
  14385. $as_echo_n "(cached) " >&6
  14386. else
  14387. ac_check_lib_save_LIBS=$LIBS
  14388. LIBS="-lm $LIBS"
  14389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14390. /* end confdefs.h. */
  14391. /* Override any GCC internal prototype to avoid an error.
  14392. Use char because int might match the return type of a GCC
  14393. builtin and then its argument prototype would still apply. */
  14394. #ifdef __cplusplus
  14395. extern "C"
  14396. #endif
  14397. char pow ();
  14398. int
  14399. main ()
  14400. {
  14401. return pow ();
  14402. ;
  14403. return 0;
  14404. }
  14405. _ACEOF
  14406. if ac_fn_c_try_link "$LINENO"; then :
  14407. ac_cv_lib_m_pow=yes
  14408. else
  14409. ac_cv_lib_m_pow=no
  14410. fi
  14411. rm -f core conftest.err conftest.$ac_objext \
  14412. conftest$ac_exeext conftest.$ac_ext
  14413. LIBS=$ac_check_lib_save_LIBS
  14414. fi
  14415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14416. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14417. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14418. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14419. fi
  14420. for ac_func in atan atan2 acos asin ceil copysign cos cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf
  14421. do :
  14422. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14423. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14424. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14425. cat >>confdefs.h <<_ACEOF
  14426. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14427. _ACEOF
  14428. fi
  14429. done
  14430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14431. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14432. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14433. $as_echo_n "(cached) " >&6
  14434. else
  14435. ac_check_lib_save_LIBS=$LIBS
  14436. LIBS="-liconv $LIBS"
  14437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14438. /* end confdefs.h. */
  14439. /* Override any GCC internal prototype to avoid an error.
  14440. Use char because int might match the return type of a GCC
  14441. builtin and then its argument prototype would still apply. */
  14442. #ifdef __cplusplus
  14443. extern "C"
  14444. #endif
  14445. char iconv_open ();
  14446. int
  14447. main ()
  14448. {
  14449. return iconv_open ();
  14450. ;
  14451. return 0;
  14452. }
  14453. _ACEOF
  14454. if ac_fn_c_try_link "$LINENO"; then :
  14455. ac_cv_lib_iconv_iconv_open=yes
  14456. else
  14457. ac_cv_lib_iconv_iconv_open=no
  14458. fi
  14459. rm -f core conftest.err conftest.$ac_objext \
  14460. conftest$ac_exeext conftest.$ac_ext
  14461. LIBS=$ac_check_lib_save_LIBS
  14462. fi
  14463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14464. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14465. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14466. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14467. fi
  14468. for ac_func in iconv
  14469. do :
  14470. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14471. if test "x$ac_cv_func_iconv" = xyes; then :
  14472. cat >>confdefs.h <<_ACEOF
  14473. #define HAVE_ICONV 1
  14474. _ACEOF
  14475. fi
  14476. done
  14477. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14478. "
  14479. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14480. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14481. fi
  14482. fi
  14483. # Check whether --enable-gcc-atomics was given.
  14484. if test "${enable_gcc_atomics+set}" = set; then :
  14485. enableval=$enable_gcc_atomics;
  14486. else
  14487. enable_gcc_atomics=yes
  14488. fi
  14489. if test x$enable_gcc_atomics = xyes; then
  14490. have_gcc_atomics=no
  14491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14492. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14494. /* end confdefs.h. */
  14495. int
  14496. main ()
  14497. {
  14498. int a;
  14499. void *x, *y, *z;
  14500. __sync_lock_test_and_set(&a, 4);
  14501. __sync_lock_test_and_set(&x, y);
  14502. __sync_fetch_and_add(&a, 1);
  14503. __sync_bool_compare_and_swap(&a, 5, 10);
  14504. __sync_bool_compare_and_swap(&x, y, z);
  14505. ;
  14506. return 0;
  14507. }
  14508. _ACEOF
  14509. if ac_fn_c_try_link "$LINENO"; then :
  14510. have_gcc_atomics=yes
  14511. fi
  14512. rm -f core conftest.err conftest.$ac_objext \
  14513. conftest$ac_exeext conftest.$ac_ext
  14514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14515. $as_echo "$have_gcc_atomics" >&6; }
  14516. if test x$have_gcc_atomics = xyes; then
  14517. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14518. else
  14519. # See if we have the minimum operation needed for GCC atomics
  14520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14521. /* end confdefs.h. */
  14522. int
  14523. main ()
  14524. {
  14525. int a;
  14526. __sync_lock_test_and_set(&a, 1);
  14527. __sync_lock_release(&a);
  14528. ;
  14529. return 0;
  14530. }
  14531. _ACEOF
  14532. if ac_fn_c_try_link "$LINENO"; then :
  14533. have_gcc_sync_lock_test_and_set=yes
  14534. fi
  14535. rm -f core conftest.err conftest.$ac_objext \
  14536. conftest$ac_exeext conftest.$ac_ext
  14537. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14538. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14539. fi
  14540. fi
  14541. fi
  14542. # Standard C sources
  14543. SOURCES="$SOURCES $srcdir/src/*.c"
  14544. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14545. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14546. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14547. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14548. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14549. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14550. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14551. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14552. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14553. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14554. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14555. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14556. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14557. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14558. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14559. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14560. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14561. # Check whether --enable-atomic was given.
  14562. if test "${enable_atomic+set}" = set; then :
  14563. enableval=$enable_atomic;
  14564. else
  14565. enable_atomic=yes
  14566. fi
  14567. if test x$enable_atomic != xyes; then
  14568. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14569. else
  14570. SUMMARY_modules="${SUMMARY_modules} atomic"
  14571. fi
  14572. # Check whether --enable-audio was given.
  14573. if test "${enable_audio+set}" = set; then :
  14574. enableval=$enable_audio;
  14575. else
  14576. enable_audio=yes
  14577. fi
  14578. if test x$enable_audio != xyes; then
  14579. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14580. else
  14581. SUMMARY_modules="${SUMMARY_modules} audio"
  14582. fi
  14583. # Check whether --enable-video was given.
  14584. if test "${enable_video+set}" = set; then :
  14585. enableval=$enable_video;
  14586. else
  14587. enable_video=yes
  14588. fi
  14589. if test x$enable_video != xyes; then
  14590. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14591. else
  14592. SUMMARY_modules="${SUMMARY_modules} video"
  14593. fi
  14594. # Check whether --enable-render was given.
  14595. if test "${enable_render+set}" = set; then :
  14596. enableval=$enable_render;
  14597. else
  14598. enable_render=yes
  14599. fi
  14600. if test x$enable_render != xyes; then
  14601. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14602. else
  14603. SUMMARY_modules="${SUMMARY_modules} render"
  14604. fi
  14605. # Check whether --enable-events was given.
  14606. if test "${enable_events+set}" = set; then :
  14607. enableval=$enable_events;
  14608. else
  14609. enable_events=yes
  14610. fi
  14611. if test x$enable_events != xyes; then
  14612. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14613. else
  14614. SUMMARY_modules="${SUMMARY_modules} events"
  14615. fi
  14616. # Check whether --enable-joystick was given.
  14617. if test "${enable_joystick+set}" = set; then :
  14618. enableval=$enable_joystick;
  14619. else
  14620. enable_joystick=yes
  14621. fi
  14622. if test x$enable_joystick != xyes; then
  14623. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14624. else
  14625. SUMMARY_modules="${SUMMARY_modules} joystick"
  14626. fi
  14627. # Check whether --enable-haptic was given.
  14628. if test "${enable_haptic+set}" = set; then :
  14629. enableval=$enable_haptic;
  14630. else
  14631. enable_haptic=yes
  14632. fi
  14633. if test x$enable_haptic != xyes; then
  14634. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14635. else
  14636. SUMMARY_modules="${SUMMARY_modules} haptic"
  14637. fi
  14638. # Check whether --enable-power was given.
  14639. if test "${enable_power+set}" = set; then :
  14640. enableval=$enable_power;
  14641. else
  14642. enable_power=yes
  14643. fi
  14644. if test x$enable_power != xyes; then
  14645. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14646. else
  14647. SUMMARY_modules="${SUMMARY_modules} power"
  14648. fi
  14649. # Check whether --enable-filesystem was given.
  14650. if test "${enable_filesystem+set}" = set; then :
  14651. enableval=$enable_filesystem;
  14652. else
  14653. enable_filesystem=yes
  14654. fi
  14655. if test x$enable_filesystem != xyes; then
  14656. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14657. else
  14658. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14659. fi
  14660. # Check whether --enable-threads was given.
  14661. if test "${enable_threads+set}" = set; then :
  14662. enableval=$enable_threads;
  14663. else
  14664. enable_threads=yes
  14665. fi
  14666. if test x$enable_threads != xyes; then
  14667. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14668. else
  14669. SUMMARY_modules="${SUMMARY_modules} threads"
  14670. fi
  14671. # Check whether --enable-timers was given.
  14672. if test "${enable_timers+set}" = set; then :
  14673. enableval=$enable_timers;
  14674. else
  14675. enable_timers=yes
  14676. fi
  14677. if test x$enable_timers != xyes; then
  14678. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14679. else
  14680. SUMMARY_modules="${SUMMARY_modules} timers"
  14681. fi
  14682. # Check whether --enable-file was given.
  14683. if test "${enable_file+set}" = set; then :
  14684. enableval=$enable_file;
  14685. else
  14686. enable_file=yes
  14687. fi
  14688. if test x$enable_file != xyes; then
  14689. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14690. else
  14691. SUMMARY_modules="${SUMMARY_modules} file"
  14692. fi
  14693. # Check whether --enable-loadso was given.
  14694. if test "${enable_loadso+set}" = set; then :
  14695. enableval=$enable_loadso;
  14696. else
  14697. enable_loadso=yes
  14698. fi
  14699. if test x$enable_loadso != xyes; then
  14700. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14701. else
  14702. SUMMARY_modules="${SUMMARY_modules} loadso"
  14703. fi
  14704. # Check whether --enable-cpuinfo was given.
  14705. if test "${enable_cpuinfo+set}" = set; then :
  14706. enableval=$enable_cpuinfo;
  14707. else
  14708. enable_cpuinfo=yes
  14709. fi
  14710. if test x$enable_cpuinfo != xyes; then
  14711. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14712. else
  14713. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14714. fi
  14715. # Check whether --enable-assembly was given.
  14716. if test "${enable_assembly+set}" = set; then :
  14717. enableval=$enable_assembly;
  14718. else
  14719. enable_assembly=yes
  14720. fi
  14721. if test x$enable_assembly = xyes; then
  14722. SUMMARY_modules="${SUMMARY_modules} assembly"
  14723. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14724. # Make sure that we don't generate floating point code that would
  14725. # cause illegal instruction exceptions on older processors
  14726. case "$host" in
  14727. *-*-darwin*)
  14728. # Don't need to worry about Apple hardware, it's all SSE capable
  14729. default_ssemath=yes
  14730. ;;
  14731. *64-*-*)
  14732. # x86 64-bit architectures all have SSE instructions
  14733. default_ssemath=yes
  14734. ;;
  14735. *)
  14736. default_ssemath=no
  14737. ;;
  14738. esac
  14739. # Check whether --enable-ssemath was given.
  14740. if test "${enable_ssemath+set}" = set; then :
  14741. enableval=$enable_ssemath;
  14742. else
  14743. enable_ssemath=$default_ssemath
  14744. fi
  14745. if test x$enable_ssemath = xno; then
  14746. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14747. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14748. fi
  14749. fi
  14750. # Check whether --enable-mmx was given.
  14751. if test "${enable_mmx+set}" = set; then :
  14752. enableval=$enable_mmx;
  14753. else
  14754. enable_mmx=yes
  14755. fi
  14756. if test x$enable_mmx = xyes; then
  14757. save_CFLAGS="$CFLAGS"
  14758. have_gcc_mmx=no
  14759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14760. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14761. mmx_CFLAGS="-mmmx"
  14762. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14764. /* end confdefs.h. */
  14765. #ifdef __MINGW32__
  14766. #include <_mingw.h>
  14767. #ifdef __MINGW64_VERSION_MAJOR
  14768. #include <intrin.h>
  14769. #else
  14770. #include <mmintrin.h>
  14771. #endif
  14772. #else
  14773. #include <mmintrin.h>
  14774. #endif
  14775. #ifndef __MMX__
  14776. #error Assembler CPP flag not enabled
  14777. #endif
  14778. int
  14779. main ()
  14780. {
  14781. ;
  14782. return 0;
  14783. }
  14784. _ACEOF
  14785. if ac_fn_c_try_compile "$LINENO"; then :
  14786. have_gcc_mmx=yes
  14787. fi
  14788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14790. $as_echo "$have_gcc_mmx" >&6; }
  14791. CFLAGS="$save_CFLAGS"
  14792. if test x$have_gcc_mmx = xyes; then
  14793. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14794. SUMMARY_math="${SUMMARY_math} mmx"
  14795. fi
  14796. fi
  14797. # Check whether --enable-3dnow was given.
  14798. if test "${enable_3dnow+set}" = set; then :
  14799. enableval=$enable_3dnow;
  14800. else
  14801. enable_3dnow=yes
  14802. fi
  14803. if test x$enable_3dnow = xyes; then
  14804. save_CFLAGS="$CFLAGS"
  14805. have_gcc_3dnow=no
  14806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14807. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14808. amd3dnow_CFLAGS="-m3dnow"
  14809. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14811. /* end confdefs.h. */
  14812. #include <mm3dnow.h>
  14813. #ifndef __3dNOW__
  14814. #error Assembler CPP flag not enabled
  14815. #endif
  14816. int
  14817. main ()
  14818. {
  14819. void *p = 0;
  14820. _m_prefetch(p);
  14821. ;
  14822. return 0;
  14823. }
  14824. _ACEOF
  14825. if ac_fn_c_try_link "$LINENO"; then :
  14826. have_gcc_3dnow=yes
  14827. fi
  14828. rm -f core conftest.err conftest.$ac_objext \
  14829. conftest$ac_exeext conftest.$ac_ext
  14830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14831. $as_echo "$have_gcc_3dnow" >&6; }
  14832. CFLAGS="$save_CFLAGS"
  14833. if test x$have_gcc_3dnow = xyes; then
  14834. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14835. SUMMARY_math="${SUMMARY_math} 3dnow"
  14836. fi
  14837. fi
  14838. # Check whether --enable-sse was given.
  14839. if test "${enable_sse+set}" = set; then :
  14840. enableval=$enable_sse;
  14841. else
  14842. enable_sse=yes
  14843. fi
  14844. if test x$enable_sse = xyes; then
  14845. save_CFLAGS="$CFLAGS"
  14846. have_gcc_sse=no
  14847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14848. $as_echo_n "checking for GCC -msse option... " >&6; }
  14849. sse_CFLAGS="-msse"
  14850. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14852. /* end confdefs.h. */
  14853. #ifdef __MINGW32__
  14854. #include <_mingw.h>
  14855. #ifdef __MINGW64_VERSION_MAJOR
  14856. #include <intrin.h>
  14857. #else
  14858. #include <xmmintrin.h>
  14859. #endif
  14860. #else
  14861. #include <xmmintrin.h>
  14862. #endif
  14863. #ifndef __SSE__
  14864. #error Assembler CPP flag not enabled
  14865. #endif
  14866. int
  14867. main ()
  14868. {
  14869. ;
  14870. return 0;
  14871. }
  14872. _ACEOF
  14873. if ac_fn_c_try_compile "$LINENO"; then :
  14874. have_gcc_sse=yes
  14875. fi
  14876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14878. $as_echo "$have_gcc_sse" >&6; }
  14879. CFLAGS="$save_CFLAGS"
  14880. if test x$have_gcc_sse = xyes; then
  14881. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14882. SUMMARY_math="${SUMMARY_math} sse"
  14883. fi
  14884. fi
  14885. # Check whether --enable-sse2 was given.
  14886. if test "${enable_sse2+set}" = set; then :
  14887. enableval=$enable_sse2;
  14888. else
  14889. enable_sse2=$default_ssemath
  14890. fi
  14891. if test x$enable_sse2 = xyes; then
  14892. save_CFLAGS="$CFLAGS"
  14893. have_gcc_sse2=no
  14894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14895. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14896. sse2_CFLAGS="-msse2"
  14897. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14899. /* end confdefs.h. */
  14900. #ifdef __MINGW32__
  14901. #include <_mingw.h>
  14902. #ifdef __MINGW64_VERSION_MAJOR
  14903. #include <intrin.h>
  14904. #else
  14905. #include <emmintrin.h>
  14906. #endif
  14907. #else
  14908. #include <emmintrin.h>
  14909. #endif
  14910. #ifndef __SSE2__
  14911. #error Assembler CPP flag not enabled
  14912. #endif
  14913. int
  14914. main ()
  14915. {
  14916. ;
  14917. return 0;
  14918. }
  14919. _ACEOF
  14920. if ac_fn_c_try_compile "$LINENO"; then :
  14921. have_gcc_sse2=yes
  14922. fi
  14923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14925. $as_echo "$have_gcc_sse2" >&6; }
  14926. CFLAGS="$save_CFLAGS"
  14927. if test x$have_gcc_sse2 = xyes; then
  14928. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14929. SUMMARY_math="${SUMMARY_math} sse2"
  14930. fi
  14931. fi
  14932. # Check whether --enable-sse3 was given.
  14933. if test "${enable_sse3+set}" = set; then :
  14934. enableval=$enable_sse3;
  14935. else
  14936. enable_sse3=$default_ssemath
  14937. fi
  14938. if test x$enable_sse3 = xyes; then
  14939. save_CFLAGS="$CFLAGS"
  14940. have_gcc_sse3=no
  14941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14942. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14943. sse3_CFLAGS="-msse3"
  14944. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14946. /* end confdefs.h. */
  14947. #ifdef __MINGW32__
  14948. #include <_mingw.h>
  14949. #ifdef __MINGW64_VERSION_MAJOR
  14950. #include <intrin.h>
  14951. #else
  14952. #include <pmmintrin.h>
  14953. #endif
  14954. #else
  14955. #include <pmmintrin.h>
  14956. #endif
  14957. #ifndef __SSE2__
  14958. #error Assembler CPP flag not enabled
  14959. #endif
  14960. int
  14961. main ()
  14962. {
  14963. ;
  14964. return 0;
  14965. }
  14966. _ACEOF
  14967. if ac_fn_c_try_compile "$LINENO"; then :
  14968. have_gcc_sse3=yes
  14969. fi
  14970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14972. $as_echo "$have_gcc_sse3" >&6; }
  14973. CFLAGS="$save_CFLAGS"
  14974. if test x$have_gcc_sse3 = xyes; then
  14975. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14976. SUMMARY_math="${SUMMARY_math} sse3"
  14977. fi
  14978. fi
  14979. # Check whether --enable-altivec was given.
  14980. if test "${enable_altivec+set}" = set; then :
  14981. enableval=$enable_altivec;
  14982. else
  14983. enable_altivec=yes
  14984. fi
  14985. if test x$enable_altivec = xyes; then
  14986. save_CFLAGS="$CFLAGS"
  14987. have_gcc_altivec=no
  14988. have_altivec_h_hdr=no
  14989. altivec_CFLAGS="-maltivec"
  14990. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  14991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  14992. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  14993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14994. /* end confdefs.h. */
  14995. #include <altivec.h>
  14996. vector unsigned int vzero() {
  14997. return vec_splat_u32(0);
  14998. }
  14999. int
  15000. main ()
  15001. {
  15002. ;
  15003. return 0;
  15004. }
  15005. _ACEOF
  15006. if ac_fn_c_try_compile "$LINENO"; then :
  15007. have_gcc_altivec=yes
  15008. have_altivec_h_hdr=yes
  15009. fi
  15010. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15012. $as_echo "$have_gcc_altivec" >&6; }
  15013. if test x$have_gcc_altivec = xno; then
  15014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15015. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15017. /* end confdefs.h. */
  15018. vector unsigned int vzero() {
  15019. return vec_splat_u32(0);
  15020. }
  15021. int
  15022. main ()
  15023. {
  15024. ;
  15025. return 0;
  15026. }
  15027. _ACEOF
  15028. if ac_fn_c_try_compile "$LINENO"; then :
  15029. have_gcc_altivec=yes
  15030. fi
  15031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15033. $as_echo "$have_gcc_altivec" >&6; }
  15034. fi
  15035. if test x$have_gcc_altivec = xno; then
  15036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15037. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15038. altivec_CFLAGS="-faltivec"
  15039. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15041. /* end confdefs.h. */
  15042. #include <altivec.h>
  15043. vector unsigned int vzero() {
  15044. return vec_splat_u32(0);
  15045. }
  15046. int
  15047. main ()
  15048. {
  15049. ;
  15050. return 0;
  15051. }
  15052. _ACEOF
  15053. if ac_fn_c_try_compile "$LINENO"; then :
  15054. have_gcc_altivec=yes
  15055. have_altivec_h_hdr=yes
  15056. fi
  15057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15059. $as_echo "$have_gcc_altivec" >&6; }
  15060. fi
  15061. if test x$have_gcc_altivec = xno; then
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15063. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15065. /* end confdefs.h. */
  15066. vector unsigned int vzero() {
  15067. return vec_splat_u32(0);
  15068. }
  15069. int
  15070. main ()
  15071. {
  15072. ;
  15073. return 0;
  15074. }
  15075. _ACEOF
  15076. if ac_fn_c_try_compile "$LINENO"; then :
  15077. have_gcc_altivec=yes
  15078. fi
  15079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15081. $as_echo "$have_gcc_altivec" >&6; }
  15082. fi
  15083. CFLAGS="$save_CFLAGS"
  15084. if test x$have_gcc_altivec = xyes; then
  15085. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15086. if test x$have_altivec_h_hdr = xyes; then
  15087. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15088. fi
  15089. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15090. SUMMARY_math="${SUMMARY_math} altivec"
  15091. fi
  15092. fi
  15093. fi
  15094. CheckOSS()
  15095. {
  15096. # Check whether --enable-oss was given.
  15097. if test "${enable_oss+set}" = set; then :
  15098. enableval=$enable_oss;
  15099. else
  15100. enable_oss=maybe
  15101. fi
  15102. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15103. # use sndio instead. So on there, we default to disabled. You can force
  15104. # it on if you really want, though.
  15105. if test x$enable_oss = xmaybe; then
  15106. enable_oss=yes
  15107. case "$host" in
  15108. *-*-openbsd*)
  15109. enable_oss=no;;
  15110. esac
  15111. fi
  15112. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15114. $as_echo_n "checking for OSS audio support... " >&6; }
  15115. have_oss=no
  15116. if test x$have_oss != xyes; then
  15117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15118. /* end confdefs.h. */
  15119. #include <sys/soundcard.h>
  15120. int
  15121. main ()
  15122. {
  15123. int arg = SNDCTL_DSP_SETFRAGMENT;
  15124. ;
  15125. return 0;
  15126. }
  15127. _ACEOF
  15128. if ac_fn_c_try_compile "$LINENO"; then :
  15129. have_oss=yes
  15130. fi
  15131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15132. fi
  15133. if test x$have_oss != xyes; then
  15134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15135. /* end confdefs.h. */
  15136. #include <soundcard.h>
  15137. int
  15138. main ()
  15139. {
  15140. int arg = SNDCTL_DSP_SETFRAGMENT;
  15141. ;
  15142. return 0;
  15143. }
  15144. _ACEOF
  15145. if ac_fn_c_try_compile "$LINENO"; then :
  15146. have_oss=yes
  15147. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15148. fi
  15149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15150. fi
  15151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15152. $as_echo "$have_oss" >&6; }
  15153. if test x$have_oss = xyes; then
  15154. SUMMARY_audio="${SUMMARY_audio} oss"
  15155. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15156. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15157. have_audio=yes
  15158. # We may need to link with ossaudio emulation library
  15159. case "$host" in
  15160. *-*-openbsd*|*-*-netbsd*)
  15161. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15162. esac
  15163. fi
  15164. fi
  15165. }
  15166. CheckALSA()
  15167. {
  15168. # Check whether --enable-alsa was given.
  15169. if test "${enable_alsa+set}" = set; then :
  15170. enableval=$enable_alsa;
  15171. else
  15172. enable_alsa=yes
  15173. fi
  15174. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15175. alsa_save_CFLAGS="$CFLAGS"
  15176. alsa_save_LDFLAGS="$LDFLAGS"
  15177. alsa_save_LIBS="$LIBS"
  15178. alsa_found=yes
  15179. # Check whether --with-alsa-prefix was given.
  15180. if test "${with_alsa_prefix+set}" = set; then :
  15181. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15182. else
  15183. alsa_prefix=""
  15184. fi
  15185. # Check whether --with-alsa-inc-prefix was given.
  15186. if test "${with_alsa_inc_prefix+set}" = set; then :
  15187. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15188. else
  15189. alsa_inc_prefix=""
  15190. fi
  15191. # Check whether --enable-alsatest was given.
  15192. if test "${enable_alsatest+set}" = set; then :
  15193. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15194. else
  15195. enable_alsatest=yes
  15196. fi
  15197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15198. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15199. if test "$alsa_inc_prefix" != "" ; then
  15200. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15201. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15202. fi
  15203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15204. $as_echo "$ALSA_CFLAGS" >&6; }
  15205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15206. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15207. if test "$alsa_prefix" != "" ; then
  15208. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15209. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15210. fi
  15211. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15212. LIBS=`echo $LIBS | sed 's/-lm//'`
  15213. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15214. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15215. LIBS=`echo $LIBS | sed 's/ //'`
  15216. LIBS="$ALSA_LIBS $LIBS"
  15217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15218. $as_echo "$ALSA_LIBS" >&6; }
  15219. min_alsa_version=1.0.11
  15220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15221. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15222. no_alsa=""
  15223. alsa_min_major_version=`echo $min_alsa_version | \
  15224. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15225. alsa_min_minor_version=`echo $min_alsa_version | \
  15226. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15227. alsa_min_micro_version=`echo $min_alsa_version | \
  15228. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15229. ac_ext=c
  15230. ac_cpp='$CPP $CPPFLAGS'
  15231. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15232. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15233. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15235. /* end confdefs.h. */
  15236. #include <alsa/asoundlib.h>
  15237. int
  15238. main ()
  15239. {
  15240. /* ensure backward compatibility */
  15241. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15242. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15243. #endif
  15244. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15245. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15246. #endif
  15247. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15248. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15249. #endif
  15250. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15251. exit(0);
  15252. # else
  15253. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15254. # error not present
  15255. # endif
  15256. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15257. exit(0);
  15258. # else
  15259. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15260. # error not present
  15261. # endif
  15262. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15263. # error not present
  15264. # endif
  15265. # endif
  15266. # endif
  15267. exit(0);
  15268. ;
  15269. return 0;
  15270. }
  15271. _ACEOF
  15272. if ac_fn_c_try_compile "$LINENO"; then :
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15274. $as_echo "found." >&6; }
  15275. else
  15276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15277. $as_echo "not present." >&6; }
  15278. alsa_found=no
  15279. fi
  15280. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15281. ac_ext=c
  15282. ac_cpp='$CPP $CPPFLAGS'
  15283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15286. if test "x$enable_alsatest" = "xyes"; then
  15287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15288. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15289. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15290. $as_echo_n "(cached) " >&6
  15291. else
  15292. ac_check_lib_save_LIBS=$LIBS
  15293. LIBS="-lasound $LIBS"
  15294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15295. /* end confdefs.h. */
  15296. /* Override any GCC internal prototype to avoid an error.
  15297. Use char because int might match the return type of a GCC
  15298. builtin and then its argument prototype would still apply. */
  15299. #ifdef __cplusplus
  15300. extern "C"
  15301. #endif
  15302. char snd_ctl_open ();
  15303. int
  15304. main ()
  15305. {
  15306. return snd_ctl_open ();
  15307. ;
  15308. return 0;
  15309. }
  15310. _ACEOF
  15311. if ac_fn_c_try_link "$LINENO"; then :
  15312. ac_cv_lib_asound_snd_ctl_open=yes
  15313. else
  15314. ac_cv_lib_asound_snd_ctl_open=no
  15315. fi
  15316. rm -f core conftest.err conftest.$ac_objext \
  15317. conftest$ac_exeext conftest.$ac_ext
  15318. LIBS=$ac_check_lib_save_LIBS
  15319. fi
  15320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15321. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15322. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15323. cat >>confdefs.h <<_ACEOF
  15324. #define HAVE_LIBASOUND 1
  15325. _ACEOF
  15326. LIBS="-lasound $LIBS"
  15327. else
  15328. alsa_found=no
  15329. fi
  15330. fi
  15331. if test "x$alsa_found" = "xyes" ; then
  15332. have_alsa=yes
  15333. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15334. LIBS=`echo $LIBS | sed 's/ //'`
  15335. LIBS="-lasound $LIBS"
  15336. fi
  15337. if test "x$alsa_found" = "xno" ; then
  15338. have_alsa=no
  15339. CFLAGS="$alsa_save_CFLAGS"
  15340. LDFLAGS="$alsa_save_LDFLAGS"
  15341. LIBS="$alsa_save_LIBS"
  15342. ALSA_CFLAGS=""
  15343. ALSA_LIBS=""
  15344. fi
  15345. # Restore all flags from before the ALSA detection runs
  15346. CFLAGS="$alsa_save_CFLAGS"
  15347. LDFLAGS="$alsa_save_LDFLAGS"
  15348. LIBS="$alsa_save_LIBS"
  15349. if test x$have_alsa = xyes; then
  15350. # Check whether --enable-alsa-shared was given.
  15351. if test "${enable_alsa_shared+set}" = set; then :
  15352. enableval=$enable_alsa_shared;
  15353. else
  15354. enable_alsa_shared=yes
  15355. fi
  15356. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15357. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15358. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15359. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15360. if test x$have_loadso != xyes && \
  15361. test x$enable_alsa_shared = xyes; then
  15362. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15363. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15364. fi
  15365. if test x$have_loadso = xyes && \
  15366. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15367. echo "-- dynamic libasound -> $alsa_lib"
  15368. cat >>confdefs.h <<_ACEOF
  15369. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15370. _ACEOF
  15371. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15372. else
  15373. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15374. SUMMARY_audio="${SUMMARY_audio} alsa"
  15375. fi
  15376. have_audio=yes
  15377. fi
  15378. fi
  15379. }
  15380. CheckJACK()
  15381. {
  15382. # Check whether --enable-jack was given.
  15383. if test "${enable_jack+set}" = set; then :
  15384. enableval=$enable_jack;
  15385. else
  15386. enable_jack=yes
  15387. fi
  15388. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15389. audio_jack=no
  15390. JACK_REQUIRED_VERSION=0.125
  15391. # Extract the first word of "pkg-config", so it can be a program name with args.
  15392. set dummy pkg-config; ac_word=$2
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15394. $as_echo_n "checking for $ac_word... " >&6; }
  15395. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15396. $as_echo_n "(cached) " >&6
  15397. else
  15398. case $PKG_CONFIG in
  15399. [\\/]* | ?:[\\/]*)
  15400. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15401. ;;
  15402. *)
  15403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15404. for as_dir in $PATH
  15405. do
  15406. IFS=$as_save_IFS
  15407. test -z "$as_dir" && as_dir=.
  15408. for ac_exec_ext in '' $ac_executable_extensions; do
  15409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15410. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15412. break 2
  15413. fi
  15414. done
  15415. done
  15416. IFS=$as_save_IFS
  15417. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15418. ;;
  15419. esac
  15420. fi
  15421. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15422. if test -n "$PKG_CONFIG"; then
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15424. $as_echo "$PKG_CONFIG" >&6; }
  15425. else
  15426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15427. $as_echo "no" >&6; }
  15428. fi
  15429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15430. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15431. if test x$PKG_CONFIG != xno; then
  15432. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15433. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15434. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15435. audio_jack=yes
  15436. fi
  15437. fi
  15438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15439. $as_echo "$audio_jack" >&6; }
  15440. if test x$audio_jack = xyes; then
  15441. # Check whether --enable-jack-shared was given.
  15442. if test "${enable_jack_shared+set}" = set; then :
  15443. enableval=$enable_jack_shared;
  15444. else
  15445. enable_jack_shared=yes
  15446. fi
  15447. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15448. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15449. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15450. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15451. if test x$have_loadso != xyes && \
  15452. test x$enable_jack_shared = xyes; then
  15453. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15454. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15455. fi
  15456. if test x$have_loadso = xyes && \
  15457. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15458. echo "-- dynamic libjack -> $jack_lib"
  15459. cat >>confdefs.h <<_ACEOF
  15460. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15461. _ACEOF
  15462. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15463. case "$host" in
  15464. # On Solaris, jack must be linked deferred explicitly
  15465. # to prevent undefined symbol failures.
  15466. *-*-solaris*)
  15467. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15468. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15469. esac
  15470. else
  15471. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15472. SUMMARY_audio="${SUMMARY_audio} jack"
  15473. fi
  15474. have_audio=yes
  15475. fi
  15476. fi
  15477. }
  15478. CheckESD()
  15479. {
  15480. # Check whether --enable-esd was given.
  15481. if test "${enable_esd+set}" = set; then :
  15482. enableval=$enable_esd;
  15483. else
  15484. enable_esd=yes
  15485. fi
  15486. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15487. # Check whether --with-esd-prefix was given.
  15488. if test "${with_esd_prefix+set}" = set; then :
  15489. withval=$with_esd_prefix; esd_prefix="$withval"
  15490. else
  15491. esd_prefix=""
  15492. fi
  15493. # Check whether --with-esd-exec-prefix was given.
  15494. if test "${with_esd_exec_prefix+set}" = set; then :
  15495. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15496. else
  15497. esd_exec_prefix=""
  15498. fi
  15499. # Check whether --enable-esdtest was given.
  15500. if test "${enable_esdtest+set}" = set; then :
  15501. enableval=$enable_esdtest;
  15502. else
  15503. enable_esdtest=yes
  15504. fi
  15505. if test x$esd_exec_prefix != x ; then
  15506. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15507. if test x${ESD_CONFIG+set} != xset ; then
  15508. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15509. fi
  15510. fi
  15511. if test x$esd_prefix != x ; then
  15512. esd_args="$esd_args --prefix=$esd_prefix"
  15513. if test x${ESD_CONFIG+set} != xset ; then
  15514. ESD_CONFIG=$esd_prefix/bin/esd-config
  15515. fi
  15516. fi
  15517. # Extract the first word of "esd-config", so it can be a program name with args.
  15518. set dummy esd-config; ac_word=$2
  15519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15520. $as_echo_n "checking for $ac_word... " >&6; }
  15521. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15522. $as_echo_n "(cached) " >&6
  15523. else
  15524. case $ESD_CONFIG in
  15525. [\\/]* | ?:[\\/]*)
  15526. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15527. ;;
  15528. *)
  15529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15530. for as_dir in $PATH
  15531. do
  15532. IFS=$as_save_IFS
  15533. test -z "$as_dir" && as_dir=.
  15534. for ac_exec_ext in '' $ac_executable_extensions; do
  15535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15536. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15538. break 2
  15539. fi
  15540. done
  15541. done
  15542. IFS=$as_save_IFS
  15543. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15544. ;;
  15545. esac
  15546. fi
  15547. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15548. if test -n "$ESD_CONFIG"; then
  15549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15550. $as_echo "$ESD_CONFIG" >&6; }
  15551. else
  15552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15553. $as_echo "no" >&6; }
  15554. fi
  15555. min_esd_version=0.2.8
  15556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15557. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15558. no_esd=""
  15559. if test "$ESD_CONFIG" = "no" ; then
  15560. no_esd=yes
  15561. else
  15562. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15563. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15564. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15565. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15566. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15567. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15568. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15569. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15570. if test "x$enable_esdtest" = "xyes" ; then
  15571. ac_save_CFLAGS="$CFLAGS"
  15572. ac_save_LIBS="$LIBS"
  15573. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15574. LIBS="$LIBS $ESD_LIBS"
  15575. rm -f conf.esdtest
  15576. if test "$cross_compiling" = yes; then :
  15577. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15578. else
  15579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15580. /* end confdefs.h. */
  15581. #include <stdio.h>
  15582. #include <stdlib.h>
  15583. #include <string.h>
  15584. #include <esd.h>
  15585. char*
  15586. my_strdup (char *str)
  15587. {
  15588. char *new_str;
  15589. if (str)
  15590. {
  15591. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15592. strcpy (new_str, str);
  15593. }
  15594. else
  15595. new_str = NULL;
  15596. return new_str;
  15597. }
  15598. int main ()
  15599. {
  15600. int major, minor, micro;
  15601. char *tmp_version;
  15602. system ("touch conf.esdtest");
  15603. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15604. tmp_version = my_strdup("$min_esd_version");
  15605. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15606. printf("%s, bad version string\n", "$min_esd_version");
  15607. exit(1);
  15608. }
  15609. if (($esd_major_version > major) ||
  15610. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15611. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15612. {
  15613. return 0;
  15614. }
  15615. else
  15616. {
  15617. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15618. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15619. printf("*** best to upgrade to the required version.\n");
  15620. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15621. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15622. printf("*** config.cache before re-running configure\n");
  15623. return 1;
  15624. }
  15625. }
  15626. _ACEOF
  15627. if ac_fn_c_try_run "$LINENO"; then :
  15628. else
  15629. no_esd=yes
  15630. fi
  15631. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15632. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15633. fi
  15634. CFLAGS="$ac_save_CFLAGS"
  15635. LIBS="$ac_save_LIBS"
  15636. fi
  15637. fi
  15638. if test "x$no_esd" = x ; then
  15639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15640. $as_echo "yes" >&6; }
  15641. have_esd=yes
  15642. else
  15643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15644. $as_echo "no" >&6; }
  15645. if test "$ESD_CONFIG" = "no" ; then
  15646. echo "*** The esd-config script installed by ESD could not be found"
  15647. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15648. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15649. echo "*** full path to esd-config."
  15650. else
  15651. if test -f conf.esdtest ; then
  15652. :
  15653. else
  15654. echo "*** Could not run ESD test program, checking why..."
  15655. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15656. LIBS="$LIBS $ESD_LIBS"
  15657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15658. /* end confdefs.h. */
  15659. #include <stdio.h>
  15660. #include <esd.h>
  15661. int
  15662. main ()
  15663. {
  15664. return 0;
  15665. ;
  15666. return 0;
  15667. }
  15668. _ACEOF
  15669. if ac_fn_c_try_link "$LINENO"; then :
  15670. echo "*** The test program compiled, but did not run. This usually means"
  15671. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15672. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15673. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15674. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15675. echo "*** is required on your system"
  15676. echo "***"
  15677. echo "*** If you have an old version installed, it is best to remove it, although"
  15678. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15679. else
  15680. echo "*** The test program failed to compile or link. See the file config.log for the"
  15681. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15682. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15683. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15684. fi
  15685. rm -f core conftest.err conftest.$ac_objext \
  15686. conftest$ac_exeext conftest.$ac_ext
  15687. CFLAGS="$ac_save_CFLAGS"
  15688. LIBS="$ac_save_LIBS"
  15689. fi
  15690. fi
  15691. ESD_CFLAGS=""
  15692. ESD_LIBS=""
  15693. have_esd=no
  15694. fi
  15695. rm -f conf.esdtest
  15696. if test x$have_esd = xyes; then
  15697. # Check whether --enable-esd-shared was given.
  15698. if test "${enable_esd_shared+set}" = set; then :
  15699. enableval=$enable_esd_shared;
  15700. else
  15701. enable_esd_shared=yes
  15702. fi
  15703. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15704. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15705. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15706. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15707. if test x$have_loadso != xyes && \
  15708. test x$enable_esd_shared = xyes; then
  15709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15710. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15711. fi
  15712. if test x$have_loadso = xyes && \
  15713. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15714. echo "-- dynamic libesd -> $esd_lib"
  15715. cat >>confdefs.h <<_ACEOF
  15716. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15717. _ACEOF
  15718. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15719. else
  15720. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15721. SUMMARY_audio="${SUMMARY_audio} esd"
  15722. fi
  15723. have_audio=yes
  15724. fi
  15725. fi
  15726. }
  15727. CheckPulseAudio()
  15728. {
  15729. # Check whether --enable-pulseaudio was given.
  15730. if test "${enable_pulseaudio+set}" = set; then :
  15731. enableval=$enable_pulseaudio;
  15732. else
  15733. enable_pulseaudio=yes
  15734. fi
  15735. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15736. audio_pulseaudio=no
  15737. PULSEAUDIO_REQUIRED_VERSION=0.9
  15738. # Extract the first word of "pkg-config", so it can be a program name with args.
  15739. set dummy pkg-config; ac_word=$2
  15740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15741. $as_echo_n "checking for $ac_word... " >&6; }
  15742. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15743. $as_echo_n "(cached) " >&6
  15744. else
  15745. case $PKG_CONFIG in
  15746. [\\/]* | ?:[\\/]*)
  15747. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15748. ;;
  15749. *)
  15750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15751. for as_dir in $PATH
  15752. do
  15753. IFS=$as_save_IFS
  15754. test -z "$as_dir" && as_dir=.
  15755. for ac_exec_ext in '' $ac_executable_extensions; do
  15756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15757. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15759. break 2
  15760. fi
  15761. done
  15762. done
  15763. IFS=$as_save_IFS
  15764. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15765. ;;
  15766. esac
  15767. fi
  15768. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15769. if test -n "$PKG_CONFIG"; then
  15770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15771. $as_echo "$PKG_CONFIG" >&6; }
  15772. else
  15773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15774. $as_echo "no" >&6; }
  15775. fi
  15776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15777. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15778. if test x$PKG_CONFIG != xno; then
  15779. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15780. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15781. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15782. audio_pulseaudio=yes
  15783. fi
  15784. fi
  15785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15786. $as_echo "$audio_pulseaudio" >&6; }
  15787. if test x$audio_pulseaudio = xyes; then
  15788. # Check whether --enable-pulseaudio-shared was given.
  15789. if test "${enable_pulseaudio_shared+set}" = set; then :
  15790. enableval=$enable_pulseaudio_shared;
  15791. else
  15792. enable_pulseaudio_shared=yes
  15793. fi
  15794. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15795. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15796. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15797. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15798. if test x$have_loadso != xyes && \
  15799. test x$enable_pulseaudio_shared = xyes; then
  15800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15801. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15802. fi
  15803. if test x$have_loadso = xyes && \
  15804. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15805. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15806. cat >>confdefs.h <<_ACEOF
  15807. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15808. _ACEOF
  15809. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15810. case "$host" in
  15811. # On Solaris, pulseaudio must be linked deferred explicitly
  15812. # to prevent undefined symbol failures.
  15813. *-*-solaris*)
  15814. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15815. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15816. esac
  15817. else
  15818. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15819. SUMMARY_audio="${SUMMARY_audio} pulse"
  15820. fi
  15821. have_audio=yes
  15822. fi
  15823. fi
  15824. }
  15825. CheckARTSC()
  15826. {
  15827. # Check whether --enable-arts was given.
  15828. if test "${enable_arts+set}" = set; then :
  15829. enableval=$enable_arts;
  15830. else
  15831. enable_arts=yes
  15832. fi
  15833. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15834. # Extract the first word of "artsc-config", so it can be a program name with args.
  15835. set dummy artsc-config; ac_word=$2
  15836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15837. $as_echo_n "checking for $ac_word... " >&6; }
  15838. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15839. $as_echo_n "(cached) " >&6
  15840. else
  15841. case $ARTSCONFIG in
  15842. [\\/]* | ?:[\\/]*)
  15843. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15844. ;;
  15845. *)
  15846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15847. for as_dir in $PATH
  15848. do
  15849. IFS=$as_save_IFS
  15850. test -z "$as_dir" && as_dir=.
  15851. for ac_exec_ext in '' $ac_executable_extensions; do
  15852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15853. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15855. break 2
  15856. fi
  15857. done
  15858. done
  15859. IFS=$as_save_IFS
  15860. ;;
  15861. esac
  15862. fi
  15863. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15864. if test -n "$ARTSCONFIG"; then
  15865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15866. $as_echo "$ARTSCONFIG" >&6; }
  15867. else
  15868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15869. $as_echo "no" >&6; }
  15870. fi
  15871. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15872. : # arts isn't installed
  15873. else
  15874. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15875. ARTS_LIBS=`$ARTSCONFIG --libs`
  15876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15877. $as_echo_n "checking for aRts development environment... " >&6; }
  15878. audio_arts=no
  15879. save_CFLAGS="$CFLAGS"
  15880. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15882. /* end confdefs.h. */
  15883. #include <artsc.h>
  15884. int
  15885. main ()
  15886. {
  15887. arts_stream_t stream;
  15888. ;
  15889. return 0;
  15890. }
  15891. _ACEOF
  15892. if ac_fn_c_try_compile "$LINENO"; then :
  15893. audio_arts=yes
  15894. fi
  15895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15896. CFLAGS="$save_CFLAGS"
  15897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15898. $as_echo "$audio_arts" >&6; }
  15899. if test x$audio_arts = xyes; then
  15900. # Check whether --enable-arts-shared was given.
  15901. if test "${enable_arts_shared+set}" = set; then :
  15902. enableval=$enable_arts_shared;
  15903. else
  15904. enable_arts_shared=yes
  15905. fi
  15906. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15907. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15908. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15909. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15910. if test x$have_loadso != xyes && \
  15911. test x$enable_arts_shared = xyes; then
  15912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15913. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15914. fi
  15915. if test x$have_loadso = xyes && \
  15916. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15917. echo "-- dynamic libartsc -> $arts_lib"
  15918. cat >>confdefs.h <<_ACEOF
  15919. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15920. _ACEOF
  15921. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15922. else
  15923. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15924. SUMMARY_audio="${SUMMARY_audio} arts"
  15925. fi
  15926. have_audio=yes
  15927. fi
  15928. fi
  15929. fi
  15930. }
  15931. CheckNAS()
  15932. {
  15933. # Check whether --enable-nas was given.
  15934. if test "${enable_nas+set}" = set; then :
  15935. enableval=$enable_nas;
  15936. else
  15937. enable_nas=yes
  15938. fi
  15939. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15940. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15941. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15942. have_nas_hdr=yes
  15943. fi
  15944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15945. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15946. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15947. $as_echo_n "(cached) " >&6
  15948. else
  15949. ac_check_lib_save_LIBS=$LIBS
  15950. LIBS="-laudio $LIBS"
  15951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15952. /* end confdefs.h. */
  15953. /* Override any GCC internal prototype to avoid an error.
  15954. Use char because int might match the return type of a GCC
  15955. builtin and then its argument prototype would still apply. */
  15956. #ifdef __cplusplus
  15957. extern "C"
  15958. #endif
  15959. char AuOpenServer ();
  15960. int
  15961. main ()
  15962. {
  15963. return AuOpenServer ();
  15964. ;
  15965. return 0;
  15966. }
  15967. _ACEOF
  15968. if ac_fn_c_try_link "$LINENO"; then :
  15969. ac_cv_lib_audio_AuOpenServer=yes
  15970. else
  15971. ac_cv_lib_audio_AuOpenServer=no
  15972. fi
  15973. rm -f core conftest.err conftest.$ac_objext \
  15974. conftest$ac_exeext conftest.$ac_ext
  15975. LIBS=$ac_check_lib_save_LIBS
  15976. fi
  15977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  15978. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  15979. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  15980. have_nas_lib=yes
  15981. fi
  15982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  15983. $as_echo_n "checking for NAS audio support... " >&6; }
  15984. have_nas=no
  15985. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  15986. have_nas=yes
  15987. NAS_LIBS="-laudio"
  15988. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  15989. have_nas=yes
  15990. NAS_CFLAGS="-I/usr/X11R6/include/"
  15991. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  15992. fi
  15993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  15994. $as_echo "$have_nas" >&6; }
  15995. if test x$have_nas = xyes; then
  15996. # Check whether --enable-nas-shared was given.
  15997. if test "${enable_nas_shared+set}" = set; then :
  15998. enableval=$enable_nas_shared;
  15999. else
  16000. enable_nas_shared=yes
  16001. fi
  16002. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16003. if test x$have_loadso != xyes && \
  16004. test x$enable_nas_shared = xyes; then
  16005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16006. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16007. fi
  16008. if test x$have_loadso = xyes && \
  16009. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16010. echo "-- dynamic libaudio -> $nas_lib"
  16011. cat >>confdefs.h <<_ACEOF
  16012. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16013. _ACEOF
  16014. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16015. else
  16016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16017. SUMMARY_audio="${SUMMARY_audio} nas"
  16018. fi
  16019. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16020. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16021. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16022. have_audio=yes
  16023. fi
  16024. fi
  16025. }
  16026. CheckSNDIO()
  16027. {
  16028. # Check whether --enable-sndio was given.
  16029. if test "${enable_sndio+set}" = set; then :
  16030. enableval=$enable_sndio;
  16031. else
  16032. enable_sndio=yes
  16033. fi
  16034. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16035. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16036. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16037. have_sndio_hdr=yes
  16038. fi
  16039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16040. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16041. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16042. $as_echo_n "(cached) " >&6
  16043. else
  16044. ac_check_lib_save_LIBS=$LIBS
  16045. LIBS="-lsndio $LIBS"
  16046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16047. /* end confdefs.h. */
  16048. /* Override any GCC internal prototype to avoid an error.
  16049. Use char because int might match the return type of a GCC
  16050. builtin and then its argument prototype would still apply. */
  16051. #ifdef __cplusplus
  16052. extern "C"
  16053. #endif
  16054. char sio_open ();
  16055. int
  16056. main ()
  16057. {
  16058. return sio_open ();
  16059. ;
  16060. return 0;
  16061. }
  16062. _ACEOF
  16063. if ac_fn_c_try_link "$LINENO"; then :
  16064. ac_cv_lib_sndio_sio_open=yes
  16065. else
  16066. ac_cv_lib_sndio_sio_open=no
  16067. fi
  16068. rm -f core conftest.err conftest.$ac_objext \
  16069. conftest$ac_exeext conftest.$ac_ext
  16070. LIBS=$ac_check_lib_save_LIBS
  16071. fi
  16072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16073. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16074. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16075. have_sndio_lib=yes
  16076. fi
  16077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16078. $as_echo_n "checking for sndio audio support... " >&6; }
  16079. have_sndio=no
  16080. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16081. have_sndio=yes
  16082. SNDIO_LIBS="-lsndio"
  16083. fi
  16084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16085. $as_echo "$have_sndio" >&6; }
  16086. if test x$have_sndio = xyes; then
  16087. # Check whether --enable-sndio-shared was given.
  16088. if test "${enable_sndio_shared+set}" = set; then :
  16089. enableval=$enable_sndio_shared;
  16090. else
  16091. enable_sndio_shared=yes
  16092. fi
  16093. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16094. if test x$have_loadso != xyes && \
  16095. test x$enable_sndio_shared = xyes; then
  16096. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16097. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16098. fi
  16099. if test x$have_loadso = xyes && \
  16100. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16101. echo "-- dynamic libsndio -> $sndio_lib"
  16102. cat >>confdefs.h <<_ACEOF
  16103. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16104. _ACEOF
  16105. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16106. else
  16107. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16108. SUMMARY_audio="${SUMMARY_audio} sndio"
  16109. fi
  16110. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16111. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16112. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16113. have_audio=yes
  16114. fi
  16115. fi
  16116. }
  16117. CheckFusionSound()
  16118. {
  16119. # Check whether --enable-fusionsound was given.
  16120. if test "${enable_fusionsound+set}" = set; then :
  16121. enableval=$enable_fusionsound;
  16122. else
  16123. enable_fusionsound=no
  16124. fi
  16125. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16126. fusionsound=no
  16127. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16128. # Extract the first word of "pkg-config", so it can be a program name with args.
  16129. set dummy pkg-config; ac_word=$2
  16130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16131. $as_echo_n "checking for $ac_word... " >&6; }
  16132. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16133. $as_echo_n "(cached) " >&6
  16134. else
  16135. case $PKG_CONFIG in
  16136. [\\/]* | ?:[\\/]*)
  16137. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16138. ;;
  16139. *)
  16140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16141. for as_dir in $PATH
  16142. do
  16143. IFS=$as_save_IFS
  16144. test -z "$as_dir" && as_dir=.
  16145. for ac_exec_ext in '' $ac_executable_extensions; do
  16146. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16147. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16149. break 2
  16150. fi
  16151. done
  16152. done
  16153. IFS=$as_save_IFS
  16154. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16155. ;;
  16156. esac
  16157. fi
  16158. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16159. if test -n "$PKG_CONFIG"; then
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16161. $as_echo "$PKG_CONFIG" >&6; }
  16162. else
  16163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16164. $as_echo "no" >&6; }
  16165. fi
  16166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16167. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16168. if test x$PKG_CONFIG != xno; then
  16169. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16170. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16171. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16172. fusionsound=yes
  16173. fi
  16174. fi
  16175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16176. $as_echo "$fusionsound" >&6; }
  16177. if test x$fusionsound = xyes; then
  16178. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16179. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16180. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16181. # Check whether --enable-fusionsound-shared was given.
  16182. if test "${enable_fusionsound_shared+set}" = set; then :
  16183. enableval=$enable_fusionsound_shared;
  16184. else
  16185. enable_fusionsound_shared=yes
  16186. fi
  16187. fusionsound_shared=no
  16188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16189. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16190. if test x$have_loadso != xyes && \
  16191. test x$enable_fusionsound_shared = xyes; then
  16192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16193. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16194. fi
  16195. if test x$have_loadso = xyes && \
  16196. test x$enable_fusionsound_shared = xyes; then
  16197. cat >>confdefs.h <<_ACEOF
  16198. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16199. _ACEOF
  16200. fusionsound_shared=yes
  16201. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16202. else
  16203. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16204. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16205. fi
  16206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16207. $as_echo "$fusionsound_shared" >&6; }
  16208. have_audio=yes
  16209. fi
  16210. fi
  16211. }
  16212. CheckDiskAudio()
  16213. {
  16214. # Check whether --enable-diskaudio was given.
  16215. if test "${enable_diskaudio+set}" = set; then :
  16216. enableval=$enable_diskaudio;
  16217. else
  16218. enable_diskaudio=yes
  16219. fi
  16220. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16221. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16222. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16223. SUMMARY_audio="${SUMMARY_audio} disk"
  16224. fi
  16225. }
  16226. CheckDummyAudio()
  16227. {
  16228. # Check whether --enable-dummyaudio was given.
  16229. if test "${enable_dummyaudio+set}" = set; then :
  16230. enableval=$enable_dummyaudio;
  16231. else
  16232. enable_dummyaudio=yes
  16233. fi
  16234. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16235. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16236. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16237. SUMMARY_audio="${SUMMARY_audio} dummy"
  16238. fi
  16239. }
  16240. CheckLibSampleRate()
  16241. {
  16242. # Check whether --enable-libsamplerate was given.
  16243. if test "${enable_libsamplerate+set}" = set; then :
  16244. enableval=$enable_libsamplerate;
  16245. else
  16246. enable_libsamplerate=yes
  16247. fi
  16248. if test x$enable_libsamplerate = xyes; then
  16249. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16250. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16251. have_samplerate_h_hdr=yes
  16252. else
  16253. have_samplerate_h_hdr=no
  16254. fi
  16255. if test x$have_samplerate_h_hdr = xyes; then
  16256. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16257. # Check whether --enable-libsamplerate-shared was given.
  16258. if test "${enable_libsamplerate_shared+set}" = set; then :
  16259. enableval=$enable_libsamplerate_shared;
  16260. else
  16261. enable_libsamplerate_shared=yes
  16262. fi
  16263. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16264. if test x$have_loadso != xyes && \
  16265. test x$enable_libsamplerate_shared = xyes; then
  16266. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16267. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16268. fi
  16269. if test x$have_loadso = xyes && \
  16270. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16271. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16272. cat >>confdefs.h <<_ACEOF
  16273. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16274. _ACEOF
  16275. else
  16276. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16277. fi
  16278. fi
  16279. fi
  16280. }
  16281. CheckVisibilityHidden()
  16282. {
  16283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16284. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16285. have_gcc_fvisibility=no
  16286. visibility_CFLAGS="-fvisibility=hidden"
  16287. save_CFLAGS="$CFLAGS"
  16288. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16290. /* end confdefs.h. */
  16291. #if !defined(__GNUC__) || __GNUC__ < 4
  16292. #error SDL only uses visibility attributes in GCC 4 or newer
  16293. #endif
  16294. int
  16295. main ()
  16296. {
  16297. ;
  16298. return 0;
  16299. }
  16300. _ACEOF
  16301. if ac_fn_c_try_compile "$LINENO"; then :
  16302. have_gcc_fvisibility=yes
  16303. fi
  16304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16306. $as_echo "$have_gcc_fvisibility" >&6; }
  16307. CFLAGS="$save_CFLAGS"
  16308. if test x$have_gcc_fvisibility = xyes; then
  16309. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16310. fi
  16311. }
  16312. CheckStackBoundary()
  16313. {
  16314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16315. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16316. have_gcc_preferred_stack_boundary=no
  16317. save_CFLAGS="$CFLAGS"
  16318. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16320. /* end confdefs.h. */
  16321. int x = 0;
  16322. int
  16323. main ()
  16324. {
  16325. ;
  16326. return 0;
  16327. }
  16328. _ACEOF
  16329. if ac_fn_c_try_compile "$LINENO"; then :
  16330. have_gcc_preferred_stack_boundary=yes
  16331. fi
  16332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16334. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16335. CFLAGS="$save_CFLAGS"
  16336. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16337. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16338. fi
  16339. }
  16340. CheckDeclarationAfterStatement()
  16341. {
  16342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16343. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16344. have_gcc_declaration_after_statement=no
  16345. save_CFLAGS="$CFLAGS"
  16346. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16348. /* end confdefs.h. */
  16349. int x = 0;
  16350. int
  16351. main ()
  16352. {
  16353. ;
  16354. return 0;
  16355. }
  16356. _ACEOF
  16357. if ac_fn_c_try_compile "$LINENO"; then :
  16358. have_gcc_declaration_after_statement=yes
  16359. fi
  16360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16362. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16363. CFLAGS="$save_CFLAGS"
  16364. if test x$have_gcc_declaration_after_statement = xyes; then
  16365. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16366. fi
  16367. }
  16368. CheckWarnAll()
  16369. {
  16370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16371. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16372. have_gcc_Wall=no
  16373. save_CFLAGS="$CFLAGS"
  16374. CFLAGS="$save_CFLAGS -Wall"
  16375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16376. /* end confdefs.h. */
  16377. int x = 0;
  16378. int
  16379. main ()
  16380. {
  16381. ;
  16382. return 0;
  16383. }
  16384. _ACEOF
  16385. if ac_fn_c_try_compile "$LINENO"; then :
  16386. have_gcc_Wall=yes
  16387. fi
  16388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16390. $as_echo "$have_gcc_Wall" >&6; }
  16391. CFLAGS="$save_CFLAGS"
  16392. if test x$have_gcc_Wall = xyes; then
  16393. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16395. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16396. need_gcc_Wno_multichar=no
  16397. case "$host" in
  16398. *-*-haiku*)
  16399. need_gcc_Wno_multichar=yes
  16400. ;;
  16401. esac
  16402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16403. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16404. if test x$need_gcc_Wno_multichar = xyes; then
  16405. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16406. fi
  16407. fi
  16408. }
  16409. CheckWayland()
  16410. {
  16411. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall -Wmissing-field-initializers"
  16412. # Check whether --enable-video-wayland was given.
  16413. if test "${enable_video_wayland+set}" = set; then :
  16414. enableval=$enable_video_wayland;
  16415. else
  16416. enable_video_wayland=yes
  16417. fi
  16418. # Check whether --enable-video-wayland-qt-touch was given.
  16419. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16420. enableval=$enable_video_wayland_qt_touch;
  16421. else
  16422. enable_video_wayland_qt_touch=yes
  16423. fi
  16424. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16425. # Extract the first word of "pkg-config", so it can be a program name with args.
  16426. set dummy pkg-config; ac_word=$2
  16427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16428. $as_echo_n "checking for $ac_word... " >&6; }
  16429. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16430. $as_echo_n "(cached) " >&6
  16431. else
  16432. case $PKG_CONFIG in
  16433. [\\/]* | ?:[\\/]*)
  16434. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16435. ;;
  16436. *)
  16437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16438. for as_dir in $PATH
  16439. do
  16440. IFS=$as_save_IFS
  16441. test -z "$as_dir" && as_dir=.
  16442. for ac_exec_ext in '' $ac_executable_extensions; do
  16443. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16444. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16445. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16446. break 2
  16447. fi
  16448. done
  16449. done
  16450. IFS=$as_save_IFS
  16451. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16452. ;;
  16453. esac
  16454. fi
  16455. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16456. if test -n "$PKG_CONFIG"; then
  16457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16458. $as_echo "$PKG_CONFIG" >&6; }
  16459. else
  16460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16461. $as_echo "no" >&6; }
  16462. fi
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16464. $as_echo_n "checking for Wayland support... " >&6; }
  16465. video_wayland=no
  16466. if test x$PKG_CONFIG != xno && \
  16467. test x$video_opengl_egl = xyes && \
  16468. test x$video_opengles_v2 = xyes; then
  16469. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16470. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16471. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16472. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16473. WAYLAND_CORE_PROTOCOL_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-client`
  16474. WAYLAND_PROTOCOLS_DIR=`$PKG_CONFIG --variable=pkgdatadir wayland-protocols`
  16475. video_wayland=yes
  16476. fi
  16477. fi
  16478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16479. $as_echo "$video_wayland" >&6; }
  16480. if test x$video_wayland = xyes; then
  16481. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16482. if test x$enable_video_wayland_qt_touch = xyes; then
  16483. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16484. fi
  16485. WAYLAND_PROTOCOLS_UNSTABLE="relative-pointer-unstable-v1 pointer-constraints-unstable-v1"
  16486. SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
  16487. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16488. # Check whether --enable-wayland-shared was given.
  16489. if test "${enable_wayland_shared+set}" = set; then :
  16490. enableval=$enable_wayland_shared;
  16491. else
  16492. enable_wayland_shared=maybe
  16493. fi
  16494. case "$host" in
  16495. *)
  16496. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16497. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16498. if test x$wayland_egl_lib = x; then
  16499. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16500. fi
  16501. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16502. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16503. ;;
  16504. esac
  16505. if test x$enable_wayland_shared = xmaybe; then
  16506. enable_wayland_shared=yes
  16507. fi
  16508. if test x$have_loadso != xyes && \
  16509. test x$enable_wayland_shared = xyes; then
  16510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16511. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16512. enable_wayland_shared=no
  16513. fi
  16514. if test x$have_loadso = xyes && \
  16515. test x$enable_wayland_shared = xyes && \
  16516. test x$wayland_client_lib != x && \
  16517. test x$wayland_egl_lib != x && \
  16518. test x$wayland_cursor_lib != x && \
  16519. test x$xkbcommon_lib != x; then
  16520. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16521. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16522. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16523. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16524. cat >>confdefs.h <<_ACEOF
  16525. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16526. _ACEOF
  16527. cat >>confdefs.h <<_ACEOF
  16528. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16529. _ACEOF
  16530. cat >>confdefs.h <<_ACEOF
  16531. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16532. _ACEOF
  16533. cat >>confdefs.h <<_ACEOF
  16534. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16535. _ACEOF
  16536. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16537. else
  16538. enable_wayland_shared=no
  16539. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16540. SUMMARY_video="${SUMMARY_video} wayland"
  16541. fi
  16542. have_video=yes
  16543. fi
  16544. fi
  16545. }
  16546. CheckMir()
  16547. {
  16548. # Check whether --enable-video-mir was given.
  16549. if test "${enable_video_mir+set}" = set; then :
  16550. enableval=$enable_video_mir;
  16551. else
  16552. enable_video_mir=yes
  16553. fi
  16554. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16555. # Extract the first word of "pkg-config", so it can be a program name with args.
  16556. set dummy pkg-config; ac_word=$2
  16557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16558. $as_echo_n "checking for $ac_word... " >&6; }
  16559. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16560. $as_echo_n "(cached) " >&6
  16561. else
  16562. case $PKG_CONFIG in
  16563. [\\/]* | ?:[\\/]*)
  16564. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16565. ;;
  16566. *)
  16567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16568. for as_dir in $PATH
  16569. do
  16570. IFS=$as_save_IFS
  16571. test -z "$as_dir" && as_dir=.
  16572. for ac_exec_ext in '' $ac_executable_extensions; do
  16573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16574. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16576. break 2
  16577. fi
  16578. done
  16579. done
  16580. IFS=$as_save_IFS
  16581. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16582. ;;
  16583. esac
  16584. fi
  16585. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16586. if test -n "$PKG_CONFIG"; then
  16587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16588. $as_echo "$PKG_CONFIG" >&6; }
  16589. else
  16590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16591. $as_echo "no" >&6; }
  16592. fi
  16593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16594. $as_echo_n "checking for Mir support... " >&6; }
  16595. video_mir=no
  16596. if test x$PKG_CONFIG != xno; then
  16597. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16598. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16599. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16600. save_CFLAGS="$CFLAGS"
  16601. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16603. /* end confdefs.h. */
  16604. #include <mir_toolkit/mir_client_library.h>
  16605. int
  16606. main ()
  16607. {
  16608. MirWindowAttrib attrib = mir_window_attrib_state
  16609. ;
  16610. return 0;
  16611. }
  16612. _ACEOF
  16613. if ac_fn_c_try_compile "$LINENO"; then :
  16614. video_mir=yes
  16615. fi
  16616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16617. CFLAGS="$save_CFLAGS"
  16618. fi
  16619. fi
  16620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16621. $as_echo "$video_mir" >&6; }
  16622. if test x$video_mir = xyes; then
  16623. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16624. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16625. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16626. # Check whether --enable-mir-shared was given.
  16627. if test "${enable_mir_shared+set}" = set; then :
  16628. enableval=$enable_mir_shared;
  16629. else
  16630. enable_mir_shared=maybe
  16631. fi
  16632. case "$host" in
  16633. *)
  16634. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16635. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16636. ;;
  16637. esac
  16638. if test x$enable_mir_shared = xmaybe; then
  16639. enable_mir_shared=yes
  16640. fi
  16641. if test x$have_loadso != xyes && \
  16642. test x$enable_mir_shared = xyes; then
  16643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16644. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16645. enable_mir_shared=no
  16646. fi
  16647. if test x$have_loadso = xyes && \
  16648. test x$enable_mir_shared = xyes && \
  16649. test x$mirclient_lib != x && \
  16650. test x$xkbcommon_lib != x; then
  16651. echo "-- dynamic libmirclient -> $mirclient_lib"
  16652. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16653. cat >>confdefs.h <<_ACEOF
  16654. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16655. _ACEOF
  16656. cat >>confdefs.h <<_ACEOF
  16657. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16658. _ACEOF
  16659. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16660. else
  16661. enable_mir_shared=no
  16662. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16663. SUMMARY_video="${SUMMARY_video} mir"
  16664. fi
  16665. have_video=yes
  16666. fi
  16667. fi
  16668. }
  16669. CheckNativeClient()
  16670. {
  16671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16672. /* end confdefs.h. */
  16673. #if !defined(__native_client__)
  16674. #error "NO NACL"
  16675. #endif
  16676. int
  16677. main ()
  16678. {
  16679. ;
  16680. return 0;
  16681. }
  16682. _ACEOF
  16683. if ac_fn_c_try_compile "$LINENO"; then :
  16684. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16685. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16686. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16687. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16688. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16689. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16690. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16691. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16692. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16693. SUMMARY_audio="${SUMMARY_audio} nacl"
  16694. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16695. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16696. fi
  16697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16698. }
  16699. CheckRPI()
  16700. {
  16701. # Check whether --enable-video-rpi was given.
  16702. if test "${enable_video_rpi+set}" = set; then :
  16703. enableval=$enable_video_rpi;
  16704. else
  16705. enable_video_rpi=yes
  16706. fi
  16707. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16708. if test x$ARCH = xnetbsd; then
  16709. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16710. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16711. else
  16712. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16713. RPI_LDFLAGS="-L/opt/vc/lib -lbcm_host"
  16714. fi
  16715. # Save the original compiler flags and libraries
  16716. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16717. # Add the Raspberry Pi compiler flags and libraries
  16718. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16720. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16721. have_video_rpi=no
  16722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16723. /* end confdefs.h. */
  16724. #include <bcm_host.h>
  16725. int
  16726. main ()
  16727. {
  16728. bcm_host_init();
  16729. ;
  16730. return 0;
  16731. }
  16732. _ACEOF
  16733. if ac_fn_c_try_link "$LINENO"; then :
  16734. have_video_rpi=yes
  16735. fi
  16736. rm -f core conftest.err conftest.$ac_objext \
  16737. conftest$ac_exeext conftest.$ac_ext
  16738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16739. $as_echo "$have_video_rpi" >&6; }
  16740. # Restore the compiler flags and libraries
  16741. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16742. if test x$have_video_rpi = xyes; then
  16743. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16744. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16745. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16746. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16747. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16748. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16749. SUMMARY_video="${SUMMARY_video} rpi"
  16750. fi
  16751. fi
  16752. }
  16753. CheckX11()
  16754. {
  16755. # Check whether --enable-video-x11 was given.
  16756. if test "${enable_video_x11+set}" = set; then :
  16757. enableval=$enable_video_x11;
  16758. else
  16759. enable_video_x11=yes
  16760. fi
  16761. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16762. case "$host" in
  16763. *-*-darwin*)
  16764. # This isn't necessary for X11, but fixes GLX detection
  16765. if test "x$x_includes" = xNONE && \
  16766. test "x$x_libraries" = xNONE && \
  16767. test -d /usr/X11R6/include && \
  16768. test -d /usr/X11R6/lib; then
  16769. x_includes="/usr/X11R6/include"
  16770. x_libraries="/usr/X11R6/lib"
  16771. fi
  16772. ;;
  16773. esac
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16775. $as_echo_n "checking for X... " >&6; }
  16776. # Check whether --with-x was given.
  16777. if test "${with_x+set}" = set; then :
  16778. withval=$with_x;
  16779. fi
  16780. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16781. if test "x$with_x" = xno; then
  16782. # The user explicitly disabled X.
  16783. have_x=disabled
  16784. else
  16785. case $x_includes,$x_libraries in #(
  16786. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16787. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16788. $as_echo_n "(cached) " >&6
  16789. else
  16790. # One or both of the vars are not set, and there is no cached value.
  16791. ac_x_includes=no ac_x_libraries=no
  16792. rm -f -r conftest.dir
  16793. if mkdir conftest.dir; then
  16794. cd conftest.dir
  16795. cat >Imakefile <<'_ACEOF'
  16796. incroot:
  16797. @echo incroot='${INCROOT}'
  16798. usrlibdir:
  16799. @echo usrlibdir='${USRLIBDIR}'
  16800. libdir:
  16801. @echo libdir='${LIBDIR}'
  16802. _ACEOF
  16803. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16804. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16805. for ac_var in incroot usrlibdir libdir; do
  16806. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16807. done
  16808. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16809. for ac_extension in a so sl dylib la dll; do
  16810. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16811. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16812. ac_im_usrlibdir=$ac_im_libdir; break
  16813. fi
  16814. done
  16815. # Screen out bogus values from the imake configuration. They are
  16816. # bogus both because they are the default anyway, and because
  16817. # using them would break gcc on systems where it needs fixed includes.
  16818. case $ac_im_incroot in
  16819. /usr/include) ac_x_includes= ;;
  16820. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16821. esac
  16822. case $ac_im_usrlibdir in
  16823. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16824. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16825. esac
  16826. fi
  16827. cd ..
  16828. rm -f -r conftest.dir
  16829. fi
  16830. # Standard set of common directories for X headers.
  16831. # Check X11 before X11Rn because it is often a symlink to the current release.
  16832. ac_x_header_dirs='
  16833. /usr/X11/include
  16834. /usr/X11R7/include
  16835. /usr/X11R6/include
  16836. /usr/X11R5/include
  16837. /usr/X11R4/include
  16838. /usr/include/X11
  16839. /usr/include/X11R7
  16840. /usr/include/X11R6
  16841. /usr/include/X11R5
  16842. /usr/include/X11R4
  16843. /usr/local/X11/include
  16844. /usr/local/X11R7/include
  16845. /usr/local/X11R6/include
  16846. /usr/local/X11R5/include
  16847. /usr/local/X11R4/include
  16848. /usr/local/include/X11
  16849. /usr/local/include/X11R7
  16850. /usr/local/include/X11R6
  16851. /usr/local/include/X11R5
  16852. /usr/local/include/X11R4
  16853. /usr/X386/include
  16854. /usr/x386/include
  16855. /usr/XFree86/include/X11
  16856. /usr/include
  16857. /usr/local/include
  16858. /usr/unsupported/include
  16859. /usr/athena/include
  16860. /usr/local/x11r5/include
  16861. /usr/lpp/Xamples/include
  16862. /usr/openwin/include
  16863. /usr/openwin/share/include'
  16864. if test "$ac_x_includes" = no; then
  16865. # Guess where to find include files, by looking for Xlib.h.
  16866. # First, try using that file with no special directory specified.
  16867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16868. /* end confdefs.h. */
  16869. #include <X11/Xlib.h>
  16870. _ACEOF
  16871. if ac_fn_c_try_cpp "$LINENO"; then :
  16872. # We can compile using X headers with no special include directory.
  16873. ac_x_includes=
  16874. else
  16875. for ac_dir in $ac_x_header_dirs; do
  16876. if test -r "$ac_dir/X11/Xlib.h"; then
  16877. ac_x_includes=$ac_dir
  16878. break
  16879. fi
  16880. done
  16881. fi
  16882. rm -f conftest.err conftest.i conftest.$ac_ext
  16883. fi # $ac_x_includes = no
  16884. if test "$ac_x_libraries" = no; then
  16885. # Check for the libraries.
  16886. # See if we find them without any special options.
  16887. # Don't add to $LIBS permanently.
  16888. ac_save_LIBS=$LIBS
  16889. LIBS="-lX11 $LIBS"
  16890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16891. /* end confdefs.h. */
  16892. #include <X11/Xlib.h>
  16893. int
  16894. main ()
  16895. {
  16896. XrmInitialize ()
  16897. ;
  16898. return 0;
  16899. }
  16900. _ACEOF
  16901. if ac_fn_c_try_link "$LINENO"; then :
  16902. LIBS=$ac_save_LIBS
  16903. # We can link X programs with no special library path.
  16904. ac_x_libraries=
  16905. else
  16906. LIBS=$ac_save_LIBS
  16907. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16908. do
  16909. # Don't even attempt the hair of trying to link an X program!
  16910. for ac_extension in a so sl dylib la dll; do
  16911. if test -r "$ac_dir/libX11.$ac_extension"; then
  16912. ac_x_libraries=$ac_dir
  16913. break 2
  16914. fi
  16915. done
  16916. done
  16917. fi
  16918. rm -f core conftest.err conftest.$ac_objext \
  16919. conftest$ac_exeext conftest.$ac_ext
  16920. fi # $ac_x_libraries = no
  16921. case $ac_x_includes,$ac_x_libraries in #(
  16922. no,* | *,no | *\'*)
  16923. # Didn't find X, or a directory has "'" in its name.
  16924. ac_cv_have_x="have_x=no";; #(
  16925. *)
  16926. # Record where we found X for the cache.
  16927. ac_cv_have_x="have_x=yes\
  16928. ac_x_includes='$ac_x_includes'\
  16929. ac_x_libraries='$ac_x_libraries'"
  16930. esac
  16931. fi
  16932. ;; #(
  16933. *) have_x=yes;;
  16934. esac
  16935. eval "$ac_cv_have_x"
  16936. fi # $with_x != no
  16937. if test "$have_x" != yes; then
  16938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16939. $as_echo "$have_x" >&6; }
  16940. no_x=yes
  16941. else
  16942. # If each of the values was on the command line, it overrides each guess.
  16943. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16944. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16945. # Update the cache value to reflect the command line values.
  16946. ac_cv_have_x="have_x=yes\
  16947. ac_x_includes='$x_includes'\
  16948. ac_x_libraries='$x_libraries'"
  16949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16950. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16951. fi
  16952. if test "$no_x" = yes; then
  16953. # Not all programs may use this symbol, but it does not hurt to define it.
  16954. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16955. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16956. else
  16957. if test -n "$x_includes"; then
  16958. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16959. fi
  16960. # It would also be nice to do this for all -L options, not just this one.
  16961. if test -n "$x_libraries"; then
  16962. X_LIBS="$X_LIBS -L$x_libraries"
  16963. # For Solaris; some versions of Sun CC require a space after -R and
  16964. # others require no space. Words are not sufficient . . . .
  16965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  16966. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  16967. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  16968. ac_xsave_c_werror_flag=$ac_c_werror_flag
  16969. ac_c_werror_flag=yes
  16970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16971. /* end confdefs.h. */
  16972. int
  16973. main ()
  16974. {
  16975. ;
  16976. return 0;
  16977. }
  16978. _ACEOF
  16979. if ac_fn_c_try_link "$LINENO"; then :
  16980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16981. $as_echo "no" >&6; }
  16982. X_LIBS="$X_LIBS -R$x_libraries"
  16983. else
  16984. LIBS="$ac_xsave_LIBS -R $x_libraries"
  16985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16986. /* end confdefs.h. */
  16987. int
  16988. main ()
  16989. {
  16990. ;
  16991. return 0;
  16992. }
  16993. _ACEOF
  16994. if ac_fn_c_try_link "$LINENO"; then :
  16995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16996. $as_echo "yes" >&6; }
  16997. X_LIBS="$X_LIBS -R $x_libraries"
  16998. else
  16999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17000. $as_echo "neither works" >&6; }
  17001. fi
  17002. rm -f core conftest.err conftest.$ac_objext \
  17003. conftest$ac_exeext conftest.$ac_ext
  17004. fi
  17005. rm -f core conftest.err conftest.$ac_objext \
  17006. conftest$ac_exeext conftest.$ac_ext
  17007. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17008. LIBS=$ac_xsave_LIBS
  17009. fi
  17010. # Check for system-dependent libraries X programs must link with.
  17011. # Do this before checking for the system-independent R6 libraries
  17012. # (-lICE), since we may need -lsocket or whatever for X linking.
  17013. if test "$ISC" = yes; then
  17014. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17015. else
  17016. # Martyn Johnson says this is needed for Ultrix, if the X
  17017. # libraries were built with DECnet support. And Karl Berry says
  17018. # the Alpha needs dnet_stub (dnet does not exist).
  17019. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17021. /* end confdefs.h. */
  17022. /* Override any GCC internal prototype to avoid an error.
  17023. Use char because int might match the return type of a GCC
  17024. builtin and then its argument prototype would still apply. */
  17025. #ifdef __cplusplus
  17026. extern "C"
  17027. #endif
  17028. char XOpenDisplay ();
  17029. int
  17030. main ()
  17031. {
  17032. return XOpenDisplay ();
  17033. ;
  17034. return 0;
  17035. }
  17036. _ACEOF
  17037. if ac_fn_c_try_link "$LINENO"; then :
  17038. else
  17039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17040. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17041. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17042. $as_echo_n "(cached) " >&6
  17043. else
  17044. ac_check_lib_save_LIBS=$LIBS
  17045. LIBS="-ldnet $LIBS"
  17046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17047. /* end confdefs.h. */
  17048. /* Override any GCC internal prototype to avoid an error.
  17049. Use char because int might match the return type of a GCC
  17050. builtin and then its argument prototype would still apply. */
  17051. #ifdef __cplusplus
  17052. extern "C"
  17053. #endif
  17054. char dnet_ntoa ();
  17055. int
  17056. main ()
  17057. {
  17058. return dnet_ntoa ();
  17059. ;
  17060. return 0;
  17061. }
  17062. _ACEOF
  17063. if ac_fn_c_try_link "$LINENO"; then :
  17064. ac_cv_lib_dnet_dnet_ntoa=yes
  17065. else
  17066. ac_cv_lib_dnet_dnet_ntoa=no
  17067. fi
  17068. rm -f core conftest.err conftest.$ac_objext \
  17069. conftest$ac_exeext conftest.$ac_ext
  17070. LIBS=$ac_check_lib_save_LIBS
  17071. fi
  17072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17073. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17074. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17075. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17076. fi
  17077. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17079. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17080. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17081. $as_echo_n "(cached) " >&6
  17082. else
  17083. ac_check_lib_save_LIBS=$LIBS
  17084. LIBS="-ldnet_stub $LIBS"
  17085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17086. /* end confdefs.h. */
  17087. /* Override any GCC internal prototype to avoid an error.
  17088. Use char because int might match the return type of a GCC
  17089. builtin and then its argument prototype would still apply. */
  17090. #ifdef __cplusplus
  17091. extern "C"
  17092. #endif
  17093. char dnet_ntoa ();
  17094. int
  17095. main ()
  17096. {
  17097. return dnet_ntoa ();
  17098. ;
  17099. return 0;
  17100. }
  17101. _ACEOF
  17102. if ac_fn_c_try_link "$LINENO"; then :
  17103. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17104. else
  17105. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17106. fi
  17107. rm -f core conftest.err conftest.$ac_objext \
  17108. conftest$ac_exeext conftest.$ac_ext
  17109. LIBS=$ac_check_lib_save_LIBS
  17110. fi
  17111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17112. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17113. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17114. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17115. fi
  17116. fi
  17117. fi
  17118. rm -f core conftest.err conftest.$ac_objext \
  17119. conftest$ac_exeext conftest.$ac_ext
  17120. LIBS="$ac_xsave_LIBS"
  17121. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17122. # to get the SysV transport functions.
  17123. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17124. # needs -lnsl.
  17125. # The nsl library prevents programs from opening the X display
  17126. # on Irix 5.2, according to T.E. Dickey.
  17127. # The functions gethostbyname, getservbyname, and inet_addr are
  17128. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17129. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17130. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17131. fi
  17132. if test $ac_cv_func_gethostbyname = no; then
  17133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17134. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17135. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17136. $as_echo_n "(cached) " >&6
  17137. else
  17138. ac_check_lib_save_LIBS=$LIBS
  17139. LIBS="-lnsl $LIBS"
  17140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17141. /* end confdefs.h. */
  17142. /* Override any GCC internal prototype to avoid an error.
  17143. Use char because int might match the return type of a GCC
  17144. builtin and then its argument prototype would still apply. */
  17145. #ifdef __cplusplus
  17146. extern "C"
  17147. #endif
  17148. char gethostbyname ();
  17149. int
  17150. main ()
  17151. {
  17152. return gethostbyname ();
  17153. ;
  17154. return 0;
  17155. }
  17156. _ACEOF
  17157. if ac_fn_c_try_link "$LINENO"; then :
  17158. ac_cv_lib_nsl_gethostbyname=yes
  17159. else
  17160. ac_cv_lib_nsl_gethostbyname=no
  17161. fi
  17162. rm -f core conftest.err conftest.$ac_objext \
  17163. conftest$ac_exeext conftest.$ac_ext
  17164. LIBS=$ac_check_lib_save_LIBS
  17165. fi
  17166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17167. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17168. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17169. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17170. fi
  17171. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17173. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17174. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17175. $as_echo_n "(cached) " >&6
  17176. else
  17177. ac_check_lib_save_LIBS=$LIBS
  17178. LIBS="-lbsd $LIBS"
  17179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17180. /* end confdefs.h. */
  17181. /* Override any GCC internal prototype to avoid an error.
  17182. Use char because int might match the return type of a GCC
  17183. builtin and then its argument prototype would still apply. */
  17184. #ifdef __cplusplus
  17185. extern "C"
  17186. #endif
  17187. char gethostbyname ();
  17188. int
  17189. main ()
  17190. {
  17191. return gethostbyname ();
  17192. ;
  17193. return 0;
  17194. }
  17195. _ACEOF
  17196. if ac_fn_c_try_link "$LINENO"; then :
  17197. ac_cv_lib_bsd_gethostbyname=yes
  17198. else
  17199. ac_cv_lib_bsd_gethostbyname=no
  17200. fi
  17201. rm -f core conftest.err conftest.$ac_objext \
  17202. conftest$ac_exeext conftest.$ac_ext
  17203. LIBS=$ac_check_lib_save_LIBS
  17204. fi
  17205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17206. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17207. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17208. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17209. fi
  17210. fi
  17211. fi
  17212. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17213. # socket/setsockopt and other routines are undefined under SCO ODT
  17214. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17215. # on later versions), says Simon Leinen: it contains gethostby*
  17216. # variants that don't use the name server (or something). -lsocket
  17217. # must be given before -lnsl if both are needed. We assume that
  17218. # if connect needs -lnsl, so does gethostbyname.
  17219. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17220. if test "x$ac_cv_func_connect" = xyes; then :
  17221. fi
  17222. if test $ac_cv_func_connect = no; then
  17223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17224. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17225. if ${ac_cv_lib_socket_connect+:} false; then :
  17226. $as_echo_n "(cached) " >&6
  17227. else
  17228. ac_check_lib_save_LIBS=$LIBS
  17229. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17231. /* end confdefs.h. */
  17232. /* Override any GCC internal prototype to avoid an error.
  17233. Use char because int might match the return type of a GCC
  17234. builtin and then its argument prototype would still apply. */
  17235. #ifdef __cplusplus
  17236. extern "C"
  17237. #endif
  17238. char connect ();
  17239. int
  17240. main ()
  17241. {
  17242. return connect ();
  17243. ;
  17244. return 0;
  17245. }
  17246. _ACEOF
  17247. if ac_fn_c_try_link "$LINENO"; then :
  17248. ac_cv_lib_socket_connect=yes
  17249. else
  17250. ac_cv_lib_socket_connect=no
  17251. fi
  17252. rm -f core conftest.err conftest.$ac_objext \
  17253. conftest$ac_exeext conftest.$ac_ext
  17254. LIBS=$ac_check_lib_save_LIBS
  17255. fi
  17256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17257. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17258. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17259. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17260. fi
  17261. fi
  17262. # Guillermo Gomez says -lposix is necessary on A/UX.
  17263. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17264. if test "x$ac_cv_func_remove" = xyes; then :
  17265. fi
  17266. if test $ac_cv_func_remove = no; then
  17267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17268. $as_echo_n "checking for remove in -lposix... " >&6; }
  17269. if ${ac_cv_lib_posix_remove+:} false; then :
  17270. $as_echo_n "(cached) " >&6
  17271. else
  17272. ac_check_lib_save_LIBS=$LIBS
  17273. LIBS="-lposix $LIBS"
  17274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17275. /* end confdefs.h. */
  17276. /* Override any GCC internal prototype to avoid an error.
  17277. Use char because int might match the return type of a GCC
  17278. builtin and then its argument prototype would still apply. */
  17279. #ifdef __cplusplus
  17280. extern "C"
  17281. #endif
  17282. char remove ();
  17283. int
  17284. main ()
  17285. {
  17286. return remove ();
  17287. ;
  17288. return 0;
  17289. }
  17290. _ACEOF
  17291. if ac_fn_c_try_link "$LINENO"; then :
  17292. ac_cv_lib_posix_remove=yes
  17293. else
  17294. ac_cv_lib_posix_remove=no
  17295. fi
  17296. rm -f core conftest.err conftest.$ac_objext \
  17297. conftest$ac_exeext conftest.$ac_ext
  17298. LIBS=$ac_check_lib_save_LIBS
  17299. fi
  17300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17301. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17302. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17303. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17304. fi
  17305. fi
  17306. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17307. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17308. if test "x$ac_cv_func_shmat" = xyes; then :
  17309. fi
  17310. if test $ac_cv_func_shmat = no; then
  17311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17312. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17313. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17314. $as_echo_n "(cached) " >&6
  17315. else
  17316. ac_check_lib_save_LIBS=$LIBS
  17317. LIBS="-lipc $LIBS"
  17318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17319. /* end confdefs.h. */
  17320. /* Override any GCC internal prototype to avoid an error.
  17321. Use char because int might match the return type of a GCC
  17322. builtin and then its argument prototype would still apply. */
  17323. #ifdef __cplusplus
  17324. extern "C"
  17325. #endif
  17326. char shmat ();
  17327. int
  17328. main ()
  17329. {
  17330. return shmat ();
  17331. ;
  17332. return 0;
  17333. }
  17334. _ACEOF
  17335. if ac_fn_c_try_link "$LINENO"; then :
  17336. ac_cv_lib_ipc_shmat=yes
  17337. else
  17338. ac_cv_lib_ipc_shmat=no
  17339. fi
  17340. rm -f core conftest.err conftest.$ac_objext \
  17341. conftest$ac_exeext conftest.$ac_ext
  17342. LIBS=$ac_check_lib_save_LIBS
  17343. fi
  17344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17345. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17346. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17347. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17348. fi
  17349. fi
  17350. fi
  17351. # Check for libraries that X11R6 Xt/Xaw programs need.
  17352. ac_save_LDFLAGS=$LDFLAGS
  17353. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17354. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17355. # check for ICE first), but we must link in the order -lSM -lICE or
  17356. # we get undefined symbols. So assume we have SM if we have ICE.
  17357. # These have to be linked with before -lX11, unlike the other
  17358. # libraries we check for below, so use a different variable.
  17359. # John Interrante, Karl Berry
  17360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17361. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17362. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17363. $as_echo_n "(cached) " >&6
  17364. else
  17365. ac_check_lib_save_LIBS=$LIBS
  17366. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17368. /* end confdefs.h. */
  17369. /* Override any GCC internal prototype to avoid an error.
  17370. Use char because int might match the return type of a GCC
  17371. builtin and then its argument prototype would still apply. */
  17372. #ifdef __cplusplus
  17373. extern "C"
  17374. #endif
  17375. char IceConnectionNumber ();
  17376. int
  17377. main ()
  17378. {
  17379. return IceConnectionNumber ();
  17380. ;
  17381. return 0;
  17382. }
  17383. _ACEOF
  17384. if ac_fn_c_try_link "$LINENO"; then :
  17385. ac_cv_lib_ICE_IceConnectionNumber=yes
  17386. else
  17387. ac_cv_lib_ICE_IceConnectionNumber=no
  17388. fi
  17389. rm -f core conftest.err conftest.$ac_objext \
  17390. conftest$ac_exeext conftest.$ac_ext
  17391. LIBS=$ac_check_lib_save_LIBS
  17392. fi
  17393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17394. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17395. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17396. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17397. fi
  17398. LDFLAGS=$ac_save_LDFLAGS
  17399. fi
  17400. if test x$have_x = xyes; then
  17401. # Check whether --enable-x11-shared was given.
  17402. if test "${enable_x11_shared+set}" = set; then :
  17403. enableval=$enable_x11_shared;
  17404. else
  17405. enable_x11_shared=maybe
  17406. fi
  17407. case "$host" in
  17408. *-*-darwin*)
  17409. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17410. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17411. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17412. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17413. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17414. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17415. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17416. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17417. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17418. ;;
  17419. *-*-openbsd*)
  17420. x11_lib='libX11.so'
  17421. x11ext_lib='libXext.so'
  17422. xcursor_lib='libXcursor.so'
  17423. xinerama_lib='libXinerama.so'
  17424. xinput_lib='libXi.so'
  17425. xrandr_lib='libXrandr.so'
  17426. xrender_lib='libXrender.so'
  17427. xss_lib='libXss.so'
  17428. xvidmode_lib='libXxf86vm.so'
  17429. ;;
  17430. *)
  17431. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17432. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17433. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17434. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17435. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17436. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17437. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17438. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17439. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17440. ;;
  17441. esac
  17442. if test x$ac_cv_func_shmat != xyes; then
  17443. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17444. fi
  17445. CFLAGS="$CFLAGS $X_CFLAGS"
  17446. LDFLAGS="$LDFLAGS $X_LIBS"
  17447. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17448. #include <X11/Xproto.h>
  17449. "
  17450. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17451. have_xext_h_hdr=yes
  17452. else
  17453. have_xext_h_hdr=no
  17454. fi
  17455. if test x$have_xext_h_hdr != xyes; then
  17456. as_fn_error $? "
  17457. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17458. " "$LINENO" 5
  17459. fi
  17460. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17461. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17462. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17463. # Needed so SDL applications can include SDL_syswm.h
  17464. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17465. if test x$enable_x11_shared = xmaybe; then
  17466. enable_x11_shared=yes
  17467. fi
  17468. if test x$have_loadso != xyes && \
  17469. test x$enable_x11_shared = xyes; then
  17470. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17471. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17472. enable_x11_shared=no
  17473. fi
  17474. if test x$have_loadso = xyes && \
  17475. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17476. echo "-- dynamic libX11 -> $x11_lib"
  17477. echo "-- dynamic libX11ext -> $x11ext_lib"
  17478. cat >>confdefs.h <<_ACEOF
  17479. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17480. _ACEOF
  17481. cat >>confdefs.h <<_ACEOF
  17482. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17483. _ACEOF
  17484. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17485. else
  17486. enable_x11_shared=no
  17487. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17488. SUMMARY_video="${SUMMARY_video} x11"
  17489. fi
  17490. have_video=yes
  17491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17492. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17493. have_const_param_XextAddDisplay=no
  17494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17495. /* end confdefs.h. */
  17496. #include <X11/Xlib.h>
  17497. #include <X11/Xproto.h>
  17498. #include <X11/extensions/Xext.h>
  17499. #include <X11/extensions/extutil.h>
  17500. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17501. int
  17502. main ()
  17503. {
  17504. ;
  17505. return 0;
  17506. }
  17507. _ACEOF
  17508. if ac_fn_c_try_compile "$LINENO"; then :
  17509. have_const_param_XextAddDisplay=yes
  17510. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17511. fi
  17512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17514. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17516. $as_echo_n "checking for XGenericEvent... " >&6; }
  17517. have_XGenericEvent=no
  17518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17519. /* end confdefs.h. */
  17520. #include <X11/Xlib.h>
  17521. int
  17522. main ()
  17523. {
  17524. Display *display;
  17525. XEvent event;
  17526. XGenericEventCookie *cookie = &event.xcookie;
  17527. XNextEvent(display, &event);
  17528. XGetEventData(display, cookie);
  17529. XFreeEventData(display, cookie);
  17530. ;
  17531. return 0;
  17532. }
  17533. _ACEOF
  17534. if ac_fn_c_try_compile "$LINENO"; then :
  17535. have_XGenericEvent=yes
  17536. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17537. fi
  17538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17540. $as_echo "$have_XGenericEvent" >&6; }
  17541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17542. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17543. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17544. $as_echo_n "(cached) " >&6
  17545. else
  17546. ac_check_lib_save_LIBS=$LIBS
  17547. LIBS="-lX11 $LIBS"
  17548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17549. /* end confdefs.h. */
  17550. /* Override any GCC internal prototype to avoid an error.
  17551. Use char because int might match the return type of a GCC
  17552. builtin and then its argument prototype would still apply. */
  17553. #ifdef __cplusplus
  17554. extern "C"
  17555. #endif
  17556. char XkbKeycodeToKeysym ();
  17557. int
  17558. main ()
  17559. {
  17560. return XkbKeycodeToKeysym ();
  17561. ;
  17562. return 0;
  17563. }
  17564. _ACEOF
  17565. if ac_fn_c_try_link "$LINENO"; then :
  17566. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17567. else
  17568. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17569. fi
  17570. rm -f core conftest.err conftest.$ac_objext \
  17571. conftest$ac_exeext conftest.$ac_ext
  17572. LIBS=$ac_check_lib_save_LIBS
  17573. fi
  17574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17575. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17576. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17577. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17578. fi
  17579. # Check whether --enable-video-x11-xcursor was given.
  17580. if test "${enable_video_x11_xcursor+set}" = set; then :
  17581. enableval=$enable_video_x11_xcursor;
  17582. else
  17583. enable_video_x11_xcursor=yes
  17584. fi
  17585. if test x$enable_video_x11_xcursor = xyes; then
  17586. definitely_enable_video_x11_xcursor=no
  17587. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17588. "
  17589. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17590. have_xcursor_h_hdr=yes
  17591. else
  17592. have_xcursor_h_hdr=no
  17593. fi
  17594. if test x$have_xcursor_h_hdr = xyes; then
  17595. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17596. echo "-- dynamic libXcursor -> $xcursor_lib"
  17597. cat >>confdefs.h <<_ACEOF
  17598. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17599. _ACEOF
  17600. definitely_enable_video_x11_xcursor=yes
  17601. else
  17602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17603. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17604. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17605. $as_echo_n "(cached) " >&6
  17606. else
  17607. ac_check_lib_save_LIBS=$LIBS
  17608. LIBS="-lXcursor $LIBS"
  17609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17610. /* end confdefs.h. */
  17611. /* Override any GCC internal prototype to avoid an error.
  17612. Use char because int might match the return type of a GCC
  17613. builtin and then its argument prototype would still apply. */
  17614. #ifdef __cplusplus
  17615. extern "C"
  17616. #endif
  17617. char XcursorImageCreate ();
  17618. int
  17619. main ()
  17620. {
  17621. return XcursorImageCreate ();
  17622. ;
  17623. return 0;
  17624. }
  17625. _ACEOF
  17626. if ac_fn_c_try_link "$LINENO"; then :
  17627. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17628. else
  17629. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17630. fi
  17631. rm -f core conftest.err conftest.$ac_objext \
  17632. conftest$ac_exeext conftest.$ac_ext
  17633. LIBS=$ac_check_lib_save_LIBS
  17634. fi
  17635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17636. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17637. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17638. have_xcursor_lib=yes
  17639. fi
  17640. if test x$have_xcursor_lib = xyes ; then
  17641. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17642. definitely_enable_video_x11_xcursor=yes
  17643. fi
  17644. fi
  17645. fi
  17646. fi
  17647. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17648. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17649. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17650. fi
  17651. # Check whether --enable-video-x11-xdbe was given.
  17652. if test "${enable_video_x11_xdbe+set}" = set; then :
  17653. enableval=$enable_video_x11_xdbe;
  17654. else
  17655. enable_video_x11_xdbe=yes
  17656. fi
  17657. if test x$enable_video_x11_xdbe = xyes; then
  17658. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17659. "
  17660. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17661. have_dbe_h_hdr=yes
  17662. else
  17663. have_dbe_h_hdr=no
  17664. fi
  17665. if test x$have_dbe_h_hdr = xyes; then
  17666. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17667. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17668. fi
  17669. fi
  17670. # Check whether --enable-video-x11-xinerama was given.
  17671. if test "${enable_video_x11_xinerama+set}" = set; then :
  17672. enableval=$enable_video_x11_xinerama;
  17673. else
  17674. enable_video_x11_xinerama=yes
  17675. fi
  17676. if test x$enable_video_x11_xinerama = xyes; then
  17677. definitely_enable_video_x11_xinerama=no
  17678. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17679. "
  17680. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17681. have_xinerama_h_hdr=yes
  17682. else
  17683. have_xinerama_h_hdr=no
  17684. fi
  17685. if test x$have_xinerama_h_hdr = xyes; then
  17686. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17687. echo "-- dynamic libXinerama -> $xinerama_lib"
  17688. cat >>confdefs.h <<_ACEOF
  17689. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17690. _ACEOF
  17691. definitely_enable_video_x11_xinerama=yes
  17692. else
  17693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17694. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17695. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17696. $as_echo_n "(cached) " >&6
  17697. else
  17698. ac_check_lib_save_LIBS=$LIBS
  17699. LIBS="-lXinerama $LIBS"
  17700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17701. /* end confdefs.h. */
  17702. /* Override any GCC internal prototype to avoid an error.
  17703. Use char because int might match the return type of a GCC
  17704. builtin and then its argument prototype would still apply. */
  17705. #ifdef __cplusplus
  17706. extern "C"
  17707. #endif
  17708. char XineramaQueryExtension ();
  17709. int
  17710. main ()
  17711. {
  17712. return XineramaQueryExtension ();
  17713. ;
  17714. return 0;
  17715. }
  17716. _ACEOF
  17717. if ac_fn_c_try_link "$LINENO"; then :
  17718. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17719. else
  17720. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17721. fi
  17722. rm -f core conftest.err conftest.$ac_objext \
  17723. conftest$ac_exeext conftest.$ac_ext
  17724. LIBS=$ac_check_lib_save_LIBS
  17725. fi
  17726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17727. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17728. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17729. have_xinerama_lib=yes
  17730. fi
  17731. if test x$have_xinerama_lib = xyes ; then
  17732. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17733. definitely_enable_video_x11_xinerama=yes
  17734. fi
  17735. fi
  17736. fi
  17737. fi
  17738. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17739. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17740. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17741. fi
  17742. # Check whether --enable-video-x11-xinput was given.
  17743. if test "${enable_video_x11_xinput+set}" = set; then :
  17744. enableval=$enable_video_x11_xinput;
  17745. else
  17746. enable_video_x11_xinput=yes
  17747. fi
  17748. if test x$enable_video_x11_xinput = xyes; then
  17749. definitely_enable_video_x11_xinput=no
  17750. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17751. "
  17752. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17753. have_xinput_h_hdr=yes
  17754. else
  17755. have_xinput_h_hdr=no
  17756. fi
  17757. if test x$have_xinput_h_hdr = xyes; then
  17758. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17759. echo "-- dynamic libXi -> $xinput_lib"
  17760. cat >>confdefs.h <<_ACEOF
  17761. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17762. _ACEOF
  17763. definitely_enable_video_x11_xinput=yes
  17764. else
  17765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17766. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17767. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17768. $as_echo_n "(cached) " >&6
  17769. else
  17770. ac_check_lib_save_LIBS=$LIBS
  17771. LIBS="-lXi $LIBS"
  17772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17773. /* end confdefs.h. */
  17774. /* Override any GCC internal prototype to avoid an error.
  17775. Use char because int might match the return type of a GCC
  17776. builtin and then its argument prototype would still apply. */
  17777. #ifdef __cplusplus
  17778. extern "C"
  17779. #endif
  17780. char XOpenDevice ();
  17781. int
  17782. main ()
  17783. {
  17784. return XOpenDevice ();
  17785. ;
  17786. return 0;
  17787. }
  17788. _ACEOF
  17789. if ac_fn_c_try_link "$LINENO"; then :
  17790. ac_cv_lib_Xi_XOpenDevice=yes
  17791. else
  17792. ac_cv_lib_Xi_XOpenDevice=no
  17793. fi
  17794. rm -f core conftest.err conftest.$ac_objext \
  17795. conftest$ac_exeext conftest.$ac_ext
  17796. LIBS=$ac_check_lib_save_LIBS
  17797. fi
  17798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17799. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17800. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17801. have_xinput_lib=yes
  17802. fi
  17803. if test x$have_xinput_lib = xyes ; then
  17804. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17805. definitely_enable_video_x11_xinput=yes
  17806. fi
  17807. fi
  17808. fi
  17809. fi
  17810. if test x$definitely_enable_video_x11_xinput = xyes; then
  17811. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17812. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17814. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17815. have_xinput2_multitouch=no
  17816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17817. /* end confdefs.h. */
  17818. #include <X11/Xlib.h>
  17819. #include <X11/Xproto.h>
  17820. #include <X11/extensions/XInput2.h>
  17821. int
  17822. main ()
  17823. {
  17824. int event_type = XI_TouchBegin;
  17825. XITouchClassInfo *t;
  17826. ;
  17827. return 0;
  17828. }
  17829. _ACEOF
  17830. if ac_fn_c_try_compile "$LINENO"; then :
  17831. have_xinput2_multitouch=yes
  17832. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17833. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17834. fi
  17835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17837. $as_echo "$have_xinput2_multitouch" >&6; }
  17838. fi
  17839. # Check whether --enable-video-x11-xrandr was given.
  17840. if test "${enable_video_x11_xrandr+set}" = set; then :
  17841. enableval=$enable_video_x11_xrandr;
  17842. else
  17843. enable_video_x11_xrandr=yes
  17844. fi
  17845. if test x$enable_video_x11_xrandr = xyes; then
  17846. definitely_enable_video_x11_xrandr=no
  17847. have_xrandr_h_hdr=no
  17848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17849. /* end confdefs.h. */
  17850. #include <X11/Xlib.h>
  17851. #include <X11/extensions/Xrandr.h>
  17852. int
  17853. main ()
  17854. {
  17855. XRRScreenResources *res = NULL;
  17856. ;
  17857. return 0;
  17858. }
  17859. _ACEOF
  17860. if ac_fn_c_try_compile "$LINENO"; then :
  17861. have_xrandr_h_hdr=yes
  17862. fi
  17863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17864. if test x$have_xrandr_h_hdr = xyes; then
  17865. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17866. echo "-- dynamic libXrandr -> $xrandr_lib"
  17867. cat >>confdefs.h <<_ACEOF
  17868. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17869. _ACEOF
  17870. definitely_enable_video_x11_xrandr=yes
  17871. else
  17872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17873. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17874. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17875. $as_echo_n "(cached) " >&6
  17876. else
  17877. ac_check_lib_save_LIBS=$LIBS
  17878. LIBS="-lXrandr $LIBS"
  17879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17880. /* end confdefs.h. */
  17881. /* Override any GCC internal prototype to avoid an error.
  17882. Use char because int might match the return type of a GCC
  17883. builtin and then its argument prototype would still apply. */
  17884. #ifdef __cplusplus
  17885. extern "C"
  17886. #endif
  17887. char XRRQueryExtension ();
  17888. int
  17889. main ()
  17890. {
  17891. return XRRQueryExtension ();
  17892. ;
  17893. return 0;
  17894. }
  17895. _ACEOF
  17896. if ac_fn_c_try_link "$LINENO"; then :
  17897. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17898. else
  17899. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17900. fi
  17901. rm -f core conftest.err conftest.$ac_objext \
  17902. conftest$ac_exeext conftest.$ac_ext
  17903. LIBS=$ac_check_lib_save_LIBS
  17904. fi
  17905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17906. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17907. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17908. have_xrandr_lib=yes
  17909. fi
  17910. if test x$have_xrandr_lib = xyes ; then
  17911. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17912. definitely_enable_video_x11_xrandr=yes
  17913. fi
  17914. fi
  17915. fi
  17916. fi
  17917. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17918. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17919. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17920. fi
  17921. # Check whether --enable-video-x11-scrnsaver was given.
  17922. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17923. enableval=$enable_video_x11_scrnsaver;
  17924. else
  17925. enable_video_x11_scrnsaver=yes
  17926. fi
  17927. if test x$enable_video_x11_scrnsaver = xyes; then
  17928. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17929. "
  17930. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17931. have_scrnsaver_h_hdr=yes
  17932. else
  17933. have_scrnsaver_h_hdr=no
  17934. fi
  17935. if test x$have_scrnsaver_h_hdr = xyes; then
  17936. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17937. echo "-- dynamic libXss -> $xss_lib"
  17938. cat >>confdefs.h <<_ACEOF
  17939. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17940. _ACEOF
  17941. definitely_enable_video_x11_scrnsaver=yes
  17942. else
  17943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17944. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17945. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17946. $as_echo_n "(cached) " >&6
  17947. else
  17948. ac_check_lib_save_LIBS=$LIBS
  17949. LIBS="-lXss $LIBS"
  17950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17951. /* end confdefs.h. */
  17952. /* Override any GCC internal prototype to avoid an error.
  17953. Use char because int might match the return type of a GCC
  17954. builtin and then its argument prototype would still apply. */
  17955. #ifdef __cplusplus
  17956. extern "C"
  17957. #endif
  17958. char XScreenSaverSuspend ();
  17959. int
  17960. main ()
  17961. {
  17962. return XScreenSaverSuspend ();
  17963. ;
  17964. return 0;
  17965. }
  17966. _ACEOF
  17967. if ac_fn_c_try_link "$LINENO"; then :
  17968. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  17969. else
  17970. ac_cv_lib_Xss_XScreenSaverSuspend=no
  17971. fi
  17972. rm -f core conftest.err conftest.$ac_objext \
  17973. conftest$ac_exeext conftest.$ac_ext
  17974. LIBS=$ac_check_lib_save_LIBS
  17975. fi
  17976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  17977. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  17978. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  17979. have_xss_lib=yes
  17980. fi
  17981. if test x$have_xss_lib = xyes ; then
  17982. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  17983. definitely_enable_video_x11_scrnsaver=yes
  17984. fi
  17985. fi
  17986. fi
  17987. fi
  17988. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  17989. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  17990. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  17991. fi
  17992. # Check whether --enable-video-x11-xshape was given.
  17993. if test "${enable_video_x11_xshape+set}" = set; then :
  17994. enableval=$enable_video_x11_xshape;
  17995. else
  17996. enable_video_x11_xshape=yes
  17997. fi
  17998. if test x$enable_video_x11_xshape = xyes; then
  17999. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18000. "
  18001. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18002. have_shape_h_hdr=yes
  18003. else
  18004. have_shape_h_hdr=no
  18005. fi
  18006. if test x$have_shape_h_hdr = xyes; then
  18007. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18008. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18009. fi
  18010. fi
  18011. # Check whether --enable-video-x11-vm was given.
  18012. if test "${enable_video_x11_vm+set}" = set; then :
  18013. enableval=$enable_video_x11_vm;
  18014. else
  18015. enable_video_x11_vm=yes
  18016. fi
  18017. if test x$enable_video_x11_vm = xyes; then
  18018. definitely_enable_video_x11_vm=no
  18019. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18020. "
  18021. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18022. have_vm_h_hdr=yes
  18023. else
  18024. have_vm_h_hdr=no
  18025. fi
  18026. if test x$have_vm_h_hdr = xyes; then
  18027. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18028. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18029. cat >>confdefs.h <<_ACEOF
  18030. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18031. _ACEOF
  18032. definitely_enable_video_x11_vm=yes
  18033. else
  18034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18035. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18036. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18037. $as_echo_n "(cached) " >&6
  18038. else
  18039. ac_check_lib_save_LIBS=$LIBS
  18040. LIBS="-lXxf86vm $LIBS"
  18041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18042. /* end confdefs.h. */
  18043. /* Override any GCC internal prototype to avoid an error.
  18044. Use char because int might match the return type of a GCC
  18045. builtin and then its argument prototype would still apply. */
  18046. #ifdef __cplusplus
  18047. extern "C"
  18048. #endif
  18049. char XF86VidModeQueryVersion ();
  18050. int
  18051. main ()
  18052. {
  18053. return XF86VidModeQueryVersion ();
  18054. ;
  18055. return 0;
  18056. }
  18057. _ACEOF
  18058. if ac_fn_c_try_link "$LINENO"; then :
  18059. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18060. else
  18061. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18062. fi
  18063. rm -f core conftest.err conftest.$ac_objext \
  18064. conftest$ac_exeext conftest.$ac_ext
  18065. LIBS=$ac_check_lib_save_LIBS
  18066. fi
  18067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18068. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18069. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18070. have_vm_lib=yes
  18071. fi
  18072. if test x$have_vm_lib = xyes ; then
  18073. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18074. definitely_enable_video_x11_vm=yes
  18075. fi
  18076. fi
  18077. fi
  18078. fi
  18079. if test x$definitely_enable_video_x11_vm = xyes; then
  18080. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18081. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18082. fi
  18083. fi
  18084. fi
  18085. }
  18086. CheckVivanteVideo()
  18087. {
  18088. # Check whether --enable-video-vivante was given.
  18089. if test "${enable_video_vivante+set}" = set; then :
  18090. enableval=$enable_video_vivante;
  18091. else
  18092. enable_video_vivante=yes
  18093. fi
  18094. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18096. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18097. have_vivante_vdk=no
  18098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18099. /* end confdefs.h. */
  18100. #define LINUX
  18101. #define EGL_API_FB
  18102. #include <gc_vdk.h>
  18103. int
  18104. main ()
  18105. {
  18106. ;
  18107. return 0;
  18108. }
  18109. _ACEOF
  18110. if ac_fn_c_try_compile "$LINENO"; then :
  18111. have_vivante_vdk=yes
  18112. fi
  18113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18115. $as_echo "$have_vivante_vdk" >&6; }
  18116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18117. $as_echo_n "checking for Vivante FB API... " >&6; }
  18118. have_vivante_egl=no
  18119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18120. /* end confdefs.h. */
  18121. #define LINUX
  18122. #define EGL_API_FB
  18123. #include <EGL/eglvivante.h>
  18124. int
  18125. main ()
  18126. {
  18127. ;
  18128. return 0;
  18129. }
  18130. _ACEOF
  18131. if ac_fn_c_try_compile "$LINENO"; then :
  18132. have_vivante_egl=yes
  18133. fi
  18134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18136. $as_echo "$have_vivante_egl" >&6; }
  18137. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18138. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18139. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18140. if test x$have_vivante_vdk = xyes; then
  18141. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18142. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18143. fi
  18144. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18145. SUMMARY_video="${SUMMARY_video} vivante"
  18146. have_video=yes
  18147. fi
  18148. fi
  18149. }
  18150. CheckHaikuVideo()
  18151. {
  18152. if test x$enable_video = xyes; then
  18153. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18154. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18155. have_video=yes
  18156. SUMMARY_video="${SUMMARY_video} haiku"
  18157. fi
  18158. }
  18159. CheckCOCOA()
  18160. {
  18161. # Check whether --enable-video-cocoa was given.
  18162. if test "${enable_video_cocoa+set}" = set; then :
  18163. enableval=$enable_video_cocoa;
  18164. else
  18165. enable_video_cocoa=yes
  18166. fi
  18167. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18168. save_CFLAGS="$CFLAGS"
  18169. CFLAGS="$CFLAGS -x objective-c"
  18170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18171. $as_echo_n "checking for Cocoa framework... " >&6; }
  18172. have_cocoa=no
  18173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18174. /* end confdefs.h. */
  18175. #import <Cocoa/Cocoa.h>
  18176. int
  18177. main ()
  18178. {
  18179. ;
  18180. return 0;
  18181. }
  18182. _ACEOF
  18183. if ac_fn_c_try_compile "$LINENO"; then :
  18184. have_cocoa=yes
  18185. fi
  18186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18188. $as_echo "$have_cocoa" >&6; }
  18189. CFLAGS="$save_CFLAGS"
  18190. if test x$have_cocoa = xyes; then
  18191. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18192. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18193. SUMMARY_video="${SUMMARY_video} cocoa"
  18194. have_video=yes
  18195. fi
  18196. fi
  18197. }
  18198. CheckDirectFB()
  18199. {
  18200. # Check whether --enable-video-directfb was given.
  18201. if test "${enable_video_directfb+set}" = set; then :
  18202. enableval=$enable_video_directfb;
  18203. else
  18204. enable_video_directfb=no
  18205. fi
  18206. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18207. video_directfb=no
  18208. DIRECTFB_REQUIRED_VERSION=1.0.0
  18209. for ac_prog in directfb-config
  18210. do
  18211. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18212. set dummy $ac_prog; ac_word=$2
  18213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18214. $as_echo_n "checking for $ac_word... " >&6; }
  18215. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18216. $as_echo_n "(cached) " >&6
  18217. else
  18218. case $DIRECTFBCONFIG in
  18219. [\\/]* | ?:[\\/]*)
  18220. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18221. ;;
  18222. *)
  18223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18224. as_dummy="$prefix/bin:$PATH"
  18225. for as_dir in $as_dummy
  18226. do
  18227. IFS=$as_save_IFS
  18228. test -z "$as_dir" && as_dir=.
  18229. for ac_exec_ext in '' $ac_executable_extensions; do
  18230. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18231. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18233. break 2
  18234. fi
  18235. done
  18236. done
  18237. IFS=$as_save_IFS
  18238. ;;
  18239. esac
  18240. fi
  18241. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18242. if test -n "$DIRECTFBCONFIG"; then
  18243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18244. $as_echo "$DIRECTFBCONFIG" >&6; }
  18245. else
  18246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18247. $as_echo "no" >&6; }
  18248. fi
  18249. test -n "$DIRECTFBCONFIG" && break
  18250. done
  18251. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18252. if test x$DIRECTFBCONFIG = xno; then
  18253. # Extract the first word of "pkg-config", so it can be a program name with args.
  18254. set dummy pkg-config; ac_word=$2
  18255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18256. $as_echo_n "checking for $ac_word... " >&6; }
  18257. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18258. $as_echo_n "(cached) " >&6
  18259. else
  18260. case $PKG_CONFIG in
  18261. [\\/]* | ?:[\\/]*)
  18262. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18263. ;;
  18264. *)
  18265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18266. for as_dir in $PATH
  18267. do
  18268. IFS=$as_save_IFS
  18269. test -z "$as_dir" && as_dir=.
  18270. for ac_exec_ext in '' $ac_executable_extensions; do
  18271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18272. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18274. break 2
  18275. fi
  18276. done
  18277. done
  18278. IFS=$as_save_IFS
  18279. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18280. ;;
  18281. esac
  18282. fi
  18283. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18284. if test -n "$PKG_CONFIG"; then
  18285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18286. $as_echo "$PKG_CONFIG" >&6; }
  18287. else
  18288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18289. $as_echo "no" >&6; }
  18290. fi
  18291. if test x$PKG_CONFIG != xno; then
  18292. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18293. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18294. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18295. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18296. video_directfb=yes
  18297. fi
  18298. fi
  18299. else
  18300. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18301. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18302. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18303. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18304. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18305. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18306. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18307. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18308. video_directfb=yes
  18309. fi
  18310. fi
  18311. if test x$video_directfb = xyes; then
  18312. # SuSE 11.1 installs directfb-config without directfb-devel
  18313. save_CPPFLAGS="$CPPFLAGS"
  18314. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18315. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18316. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18317. have_directfb_hdr=yes
  18318. else
  18319. have_directfb_hdr=no
  18320. fi
  18321. CPPFLAGS="$save_CPPFLAGS"
  18322. video_directfb=$have_directfb_hdr
  18323. fi
  18324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18325. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18327. $as_echo "$video_directfb" >&6; }
  18328. if test x$video_directfb = xyes; then
  18329. # Check whether --enable-directfb-shared was given.
  18330. if test "${enable_directfb_shared+set}" = set; then :
  18331. enableval=$enable_directfb_shared;
  18332. else
  18333. enable_directfb_shared=yes
  18334. fi
  18335. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18336. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18337. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18338. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18340. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18341. directfb_shared=no
  18342. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18343. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18345. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18346. if test x$have_loadso != xyes && \
  18347. test x$enable_directfb_shared = xyes; then
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18349. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18350. fi
  18351. if test x$have_loadso = xyes && \
  18352. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18353. directfb_shared=yes
  18354. echo "-- $directfb_lib_spec -> $directfb_lib"
  18355. cat >>confdefs.h <<_ACEOF
  18356. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18357. _ACEOF
  18358. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18359. else
  18360. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18361. SUMMARY_video="${SUMMARY_video} directfb"
  18362. fi
  18363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18364. $as_echo "$directfb_shared" >&6; }
  18365. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18366. have_video=yes
  18367. fi
  18368. fi
  18369. }
  18370. CheckKMSDRM()
  18371. {
  18372. # Check whether --enable-video-kmsdrm was given.
  18373. if test "${enable_video_kmsdrm+set}" = set; then :
  18374. enableval=$enable_video_kmsdrm;
  18375. else
  18376. enable_video_kmsdrm=no
  18377. fi
  18378. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18379. video_kmsdrm=no
  18380. libdrm_avail=no
  18381. libgbm_avail=no
  18382. LIBDRM_REQUIRED_VERSION=2.4.46
  18383. LIBGBM_REQUIRED_VERSION=9.0.0
  18384. # Extract the first word of "pkg-config", so it can be a program name with args.
  18385. set dummy pkg-config; ac_word=$2
  18386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18387. $as_echo_n "checking for $ac_word... " >&6; }
  18388. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18389. $as_echo_n "(cached) " >&6
  18390. else
  18391. case $PKG_CONFIG in
  18392. [\\/]* | ?:[\\/]*)
  18393. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18394. ;;
  18395. *)
  18396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18397. for as_dir in $PATH
  18398. do
  18399. IFS=$as_save_IFS
  18400. test -z "$as_dir" && as_dir=.
  18401. for ac_exec_ext in '' $ac_executable_extensions; do
  18402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18403. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18405. break 2
  18406. fi
  18407. done
  18408. done
  18409. IFS=$as_save_IFS
  18410. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18411. ;;
  18412. esac
  18413. fi
  18414. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18415. if test -n "$PKG_CONFIG"; then
  18416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18417. $as_echo "$PKG_CONFIG" >&6; }
  18418. else
  18419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18420. $as_echo "no" >&6; }
  18421. fi
  18422. if test x$PKG_CONFIG != xno; then
  18423. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18424. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18425. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18426. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18427. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18428. libdrm_avail=yes
  18429. fi
  18430. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18431. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18432. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18433. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18434. libgbm_avail=yes
  18435. fi
  18436. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18437. video_kmsdrm=yes
  18438. fi
  18439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18440. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18442. $as_echo "$libdrm_avail" >&6; }
  18443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18444. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18446. $as_echo "$libgbm_avail" >&6; }
  18447. if test x$video_kmsdrm = xyes; then
  18448. # Check whether --enable-kmsdrm-shared was given.
  18449. if test "${enable_kmsdrm_shared+set}" = set; then :
  18450. enableval=$enable_kmsdrm_shared;
  18451. else
  18452. enable_kmsdrm_shared=yes
  18453. fi
  18454. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18455. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18456. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18458. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18459. kmsdrm_shared=no
  18460. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18461. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18462. if test x$have_loadso != xyes && \
  18463. test x$enable_kmsdrm_shared = xyes; then
  18464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18465. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18466. fi
  18467. if test x$have_loadso = xyes && \
  18468. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18469. kmsdrm_shared=yes
  18470. cat >>confdefs.h <<_ACEOF
  18471. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18472. _ACEOF
  18473. cat >>confdefs.h <<_ACEOF
  18474. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18475. _ACEOF
  18476. cat >>confdefs.h <<_ACEOF
  18477. #define HAVE_KMSDRM_SHARED "TRUE"
  18478. _ACEOF
  18479. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18480. else
  18481. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18482. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18483. fi
  18484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18485. $as_echo "$kmsdrm_shared" >&6; }
  18486. have_video=yes
  18487. fi
  18488. fi
  18489. fi
  18490. fi
  18491. }
  18492. CheckDummyVideo()
  18493. {
  18494. # Check whether --enable-video-dummy was given.
  18495. if test "${enable_video_dummy+set}" = set; then :
  18496. enableval=$enable_video_dummy;
  18497. else
  18498. enable_video_dummy=yes
  18499. fi
  18500. if test x$enable_video_dummy = xyes; then
  18501. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18502. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18503. have_video=yes
  18504. SUMMARY_video="${SUMMARY_video} dummy"
  18505. fi
  18506. }
  18507. CheckQNXVideo()
  18508. {
  18509. if test x$enable_video = xyes; then
  18510. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18511. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18512. have_video=yes
  18513. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18514. SUMMARY_video="${SUMMARY_video} qnx"
  18515. fi
  18516. }
  18517. CheckQNXAudio()
  18518. {
  18519. if test x$enable_audio = xyes; then
  18520. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18521. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18522. have_audio=yes
  18523. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18524. SUMMARY_audio="${SUMMARY_audio} qsa"
  18525. fi
  18526. }
  18527. # Check whether --enable-video-opengl was given.
  18528. if test "${enable_video_opengl+set}" = set; then :
  18529. enableval=$enable_video_opengl;
  18530. else
  18531. enable_video_opengl=yes
  18532. fi
  18533. CheckOpenGLX11()
  18534. {
  18535. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18537. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18538. video_opengl=no
  18539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18540. /* end confdefs.h. */
  18541. #include <GL/gl.h>
  18542. #include <GL/glx.h>
  18543. int
  18544. main ()
  18545. {
  18546. ;
  18547. return 0;
  18548. }
  18549. _ACEOF
  18550. if ac_fn_c_try_compile "$LINENO"; then :
  18551. video_opengl=yes
  18552. fi
  18553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18555. $as_echo "$video_opengl" >&6; }
  18556. if test x$video_opengl = xyes; then
  18557. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18558. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18559. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18560. SUMMARY_video="${SUMMARY_video} opengl"
  18561. fi
  18562. fi
  18563. }
  18564. # Check whether --enable-video-opengles was given.
  18565. if test "${enable_video_opengles+set}" = set; then :
  18566. enableval=$enable_video_opengles;
  18567. else
  18568. enable_video_opengles=yes
  18569. fi
  18570. # Check whether --enable-video-opengles1 was given.
  18571. if test "${enable_video_opengles1+set}" = set; then :
  18572. enableval=$enable_video_opengles1;
  18573. else
  18574. enable_video_opengles1=yes
  18575. fi
  18576. # Check whether --enable-video-opengles2 was given.
  18577. if test "${enable_video_opengles2+set}" = set; then :
  18578. enableval=$enable_video_opengles2;
  18579. else
  18580. enable_video_opengles2=yes
  18581. fi
  18582. CheckOpenGLESX11()
  18583. {
  18584. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18586. $as_echo_n "checking for EGL support... " >&6; }
  18587. video_opengl_egl=no
  18588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18589. /* end confdefs.h. */
  18590. #define LINUX
  18591. #define EGL_API_FB
  18592. #include <EGL/egl.h>
  18593. #include <EGL/eglext.h>
  18594. int
  18595. main ()
  18596. {
  18597. ;
  18598. return 0;
  18599. }
  18600. _ACEOF
  18601. if ac_fn_c_try_compile "$LINENO"; then :
  18602. video_opengl_egl=yes
  18603. fi
  18604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18606. $as_echo "$video_opengl_egl" >&6; }
  18607. if test x$video_opengl_egl = xyes; then
  18608. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18609. fi
  18610. if test x$enable_video_opengles1 = xyes; then
  18611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18612. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18613. video_opengles_v1=no
  18614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18615. /* end confdefs.h. */
  18616. #include <GLES/gl.h>
  18617. #include <GLES/glext.h>
  18618. int
  18619. main ()
  18620. {
  18621. ;
  18622. return 0;
  18623. }
  18624. _ACEOF
  18625. if ac_fn_c_try_compile "$LINENO"; then :
  18626. video_opengles_v1=yes
  18627. fi
  18628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18630. $as_echo "$video_opengles_v1" >&6; }
  18631. if test x$video_opengles_v1 = xyes; then
  18632. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18633. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18634. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18635. fi
  18636. fi
  18637. if test x$enable_video_opengles2 = xyes; then
  18638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18639. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18640. video_opengles_v2=no
  18641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18642. /* end confdefs.h. */
  18643. #include <GLES2/gl2.h>
  18644. #include <GLES2/gl2ext.h>
  18645. int
  18646. main ()
  18647. {
  18648. ;
  18649. return 0;
  18650. }
  18651. _ACEOF
  18652. if ac_fn_c_try_compile "$LINENO"; then :
  18653. video_opengles_v2=yes
  18654. fi
  18655. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18657. $as_echo "$video_opengles_v2" >&6; }
  18658. if test x$video_opengles_v2 = xyes; then
  18659. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18660. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18661. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18662. fi
  18663. fi
  18664. fi
  18665. }
  18666. CheckWINDOWSGL()
  18667. {
  18668. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18669. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18670. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18671. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18672. SUMMARY_video="${SUMMARY_video} opengl"
  18673. fi
  18674. }
  18675. CheckWINDOWSGLES()
  18676. {
  18677. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18679. $as_echo_n "checking for EGL support... " >&6; }
  18680. video_opengl_egl=no
  18681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18682. /* end confdefs.h. */
  18683. #include <EGL/egl.h>
  18684. int
  18685. main ()
  18686. {
  18687. ;
  18688. return 0;
  18689. }
  18690. _ACEOF
  18691. if ac_fn_c_try_compile "$LINENO"; then :
  18692. video_opengl_egl=yes
  18693. fi
  18694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18696. $as_echo "$video_opengl_egl" >&6; }
  18697. if test x$video_opengl_egl = xyes; then
  18698. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18699. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18700. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18701. fi
  18702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18703. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18704. video_opengles_v2=no
  18705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18706. /* end confdefs.h. */
  18707. #include <GLES2/gl2.h>
  18708. #include <GLES2/gl2ext.h>
  18709. int
  18710. main ()
  18711. {
  18712. ;
  18713. return 0;
  18714. }
  18715. _ACEOF
  18716. if ac_fn_c_try_compile "$LINENO"; then :
  18717. video_opengles_v2=yes
  18718. fi
  18719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18721. $as_echo "$video_opengles_v2" >&6; }
  18722. if test x$video_opengles_v2 = xyes; then
  18723. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18724. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18725. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18726. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18727. fi
  18728. fi
  18729. }
  18730. CheckHaikuGL()
  18731. {
  18732. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18733. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18734. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18735. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18737. SUMMARY_video="${SUMMARY_video} opengl"
  18738. fi
  18739. }
  18740. CheckMacGL()
  18741. {
  18742. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18743. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18744. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18745. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18746. SUMMARY_video="${SUMMARY_video} opengl"
  18747. fi
  18748. }
  18749. CheckEmscriptenGLES()
  18750. {
  18751. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18753. $as_echo_n "checking for EGL support... " >&6; }
  18754. video_opengl_egl=no
  18755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18756. /* end confdefs.h. */
  18757. #include <EGL/egl.h>
  18758. int
  18759. main ()
  18760. {
  18761. ;
  18762. return 0;
  18763. }
  18764. _ACEOF
  18765. if ac_fn_c_try_compile "$LINENO"; then :
  18766. video_opengl_egl=yes
  18767. fi
  18768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18770. $as_echo "$video_opengl_egl" >&6; }
  18771. if test x$video_opengl_egl = xyes; then
  18772. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18773. fi
  18774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18775. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18776. video_opengles_v2=no
  18777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18778. /* end confdefs.h. */
  18779. #include <GLES2/gl2.h>
  18780. #include <GLES2/gl2ext.h>
  18781. int
  18782. main ()
  18783. {
  18784. ;
  18785. return 0;
  18786. }
  18787. _ACEOF
  18788. if ac_fn_c_try_compile "$LINENO"; then :
  18789. video_opengles_v2=yes
  18790. fi
  18791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18793. $as_echo "$video_opengles_v2" >&6; }
  18794. if test x$video_opengles_v2 = xyes; then
  18795. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18796. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18797. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18798. fi
  18799. fi
  18800. }
  18801. # Check whether --enable-video-vulkan was given.
  18802. if test "${enable_video_vulkan+set}" = set; then :
  18803. enableval=$enable_video_vulkan;
  18804. else
  18805. enable_video_vulkan=yes
  18806. fi
  18807. CheckVulkan()
  18808. {
  18809. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18810. case "$host" in
  18811. *-*-androideabi*)
  18812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18813. /* end confdefs.h. */
  18814. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18815. #error Vulkan doesn't work on this configuration
  18816. #endif
  18817. int
  18818. main ()
  18819. {
  18820. ;
  18821. return 0;
  18822. }
  18823. _ACEOF
  18824. if ac_fn_c_try_compile "$LINENO"; then :
  18825. else
  18826. enable_video_vulkan=no
  18827. fi
  18828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18829. ;;
  18830. *-*-darwin*)
  18831. save_CFLAGS="$CFLAGS"
  18832. CFLAGS="$CFLAGS -x objective-c"
  18833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18834. /* end confdefs.h. */
  18835. #include <Cocoa/Cocoa.h>
  18836. #include <Metal/Metal.h>
  18837. #include <QuartzCore/CAMetalLayer.h>
  18838. #if !TARGET_CPU_X86_64
  18839. #error Vulkan doesn't work on this configuration
  18840. #endif
  18841. int
  18842. main ()
  18843. {
  18844. ;
  18845. return 0;
  18846. }
  18847. _ACEOF
  18848. if ac_fn_c_try_compile "$LINENO"; then :
  18849. else
  18850. enable_video_vulkan=no
  18851. fi
  18852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18853. CFLAGS="$save_CFLAGS"
  18854. ;;
  18855. *)
  18856. ;;
  18857. esac
  18858. if test x$enable_video_vulkan = xno; then
  18859. # For reasons I am totally unable to see, I get an undefined macro error if
  18860. # I put this in the AC_TRY_COMPILE.
  18861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18862. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18863. fi
  18864. fi
  18865. if test x$enable_video_vulkan = xyes; then
  18866. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18867. SUMMARY_video="${SUMMARY_video} vulkan"
  18868. fi
  18869. }
  18870. CheckInputEvents()
  18871. {
  18872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18873. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18874. use_input_events=no
  18875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18876. /* end confdefs.h. */
  18877. #include <linux/input.h>
  18878. int
  18879. main ()
  18880. {
  18881. #ifndef EVIOCGNAME
  18882. #error EVIOCGNAME() ioctl not available
  18883. #endif
  18884. ;
  18885. return 0;
  18886. }
  18887. _ACEOF
  18888. if ac_fn_c_try_compile "$LINENO"; then :
  18889. use_input_events=yes
  18890. fi
  18891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18893. $as_echo "$use_input_events" >&6; }
  18894. if test x$use_input_events = xyes; then
  18895. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18896. SUMMARY_input="${SUMMARY_input} linuxev"
  18897. fi
  18898. }
  18899. CheckInputKD()
  18900. {
  18901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18902. $as_echo_n "checking for Linux kd.h... " >&6; }
  18903. use_input_kd=no
  18904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18905. /* end confdefs.h. */
  18906. #include <linux/kd.h>
  18907. #include <linux/keyboard.h>
  18908. int
  18909. main ()
  18910. {
  18911. struct kbentry kbe;
  18912. kbe.kb_table = KG_CTRL;
  18913. ioctl(0, KDGKBENT, &kbe);
  18914. ;
  18915. return 0;
  18916. }
  18917. _ACEOF
  18918. if ac_fn_c_try_compile "$LINENO"; then :
  18919. use_input_kd=yes
  18920. fi
  18921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  18923. $as_echo "$use_input_kd" >&6; }
  18924. if test x$use_input_kd = xyes; then
  18925. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  18926. SUMMARY_input="${SUMMARY_input} linuxkd"
  18927. fi
  18928. }
  18929. CheckLibUDev()
  18930. {
  18931. # Check whether --enable-libudev was given.
  18932. if test "${enable_libudev+set}" = set; then :
  18933. enableval=$enable_libudev;
  18934. else
  18935. enable_libudev=yes
  18936. fi
  18937. if test x$enable_libudev = xyes; then
  18938. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  18939. if test "x$ac_cv_header_libudev_h" = xyes; then :
  18940. have_libudev_h_hdr=yes
  18941. else
  18942. have_libudev_h_hdr=no
  18943. fi
  18944. if test x$have_libudev_h_hdr = xyes; then
  18945. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  18946. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  18947. if test x$udev_lib != x; then
  18948. echo "-- dynamic udev -> $udev_lib"
  18949. cat >>confdefs.h <<_ACEOF
  18950. #define SDL_UDEV_DYNAMIC "$udev_lib"
  18951. _ACEOF
  18952. fi
  18953. fi
  18954. fi
  18955. }
  18956. CheckDBus()
  18957. {
  18958. # Check whether --enable-dbus was given.
  18959. if test "${enable_dbus+set}" = set; then :
  18960. enableval=$enable_dbus;
  18961. else
  18962. enable_dbus=yes
  18963. fi
  18964. if test x$enable_dbus = xyes; then
  18965. # Extract the first word of "pkg-config", so it can be a program name with args.
  18966. set dummy pkg-config; ac_word=$2
  18967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18968. $as_echo_n "checking for $ac_word... " >&6; }
  18969. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18970. $as_echo_n "(cached) " >&6
  18971. else
  18972. case $PKG_CONFIG in
  18973. [\\/]* | ?:[\\/]*)
  18974. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18975. ;;
  18976. *)
  18977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18978. for as_dir in $PATH
  18979. do
  18980. IFS=$as_save_IFS
  18981. test -z "$as_dir" && as_dir=.
  18982. for ac_exec_ext in '' $ac_executable_extensions; do
  18983. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18984. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18986. break 2
  18987. fi
  18988. done
  18989. done
  18990. IFS=$as_save_IFS
  18991. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18992. ;;
  18993. esac
  18994. fi
  18995. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18996. if test -n "$PKG_CONFIG"; then
  18997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18998. $as_echo "$PKG_CONFIG" >&6; }
  18999. else
  19000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19001. $as_echo "no" >&6; }
  19002. fi
  19003. if test x$PKG_CONFIG != xno; then
  19004. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19005. save_CFLAGS="$CFLAGS"
  19006. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19007. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19008. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19009. have_dbus_dbus_h_hdr=yes
  19010. else
  19011. have_dbus_dbus_h_hdr=no
  19012. fi
  19013. CFLAGS="$save_CFLAGS"
  19014. if test x$have_dbus_dbus_h_hdr = xyes; then
  19015. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19016. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19017. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19018. fi
  19019. fi
  19020. fi
  19021. }
  19022. CheckIME()
  19023. {
  19024. # Check whether --enable-ime was given.
  19025. if test "${enable_ime+set}" = set; then :
  19026. enableval=$enable_ime;
  19027. else
  19028. enable_ime=yes
  19029. fi
  19030. if test x$enable_ime = xyes; then
  19031. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19032. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19033. fi
  19034. }
  19035. CheckIBus()
  19036. {
  19037. # Check whether --enable-ibus was given.
  19038. if test "${enable_ibus+set}" = set; then :
  19039. enableval=$enable_ibus;
  19040. else
  19041. enable_ibus=yes
  19042. fi
  19043. if test x$enable_ibus = xyes; then
  19044. # Extract the first word of "pkg-config", so it can be a program name with args.
  19045. set dummy pkg-config; ac_word=$2
  19046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19047. $as_echo_n "checking for $ac_word... " >&6; }
  19048. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19049. $as_echo_n "(cached) " >&6
  19050. else
  19051. case $PKG_CONFIG in
  19052. [\\/]* | ?:[\\/]*)
  19053. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19054. ;;
  19055. *)
  19056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19057. for as_dir in $PATH
  19058. do
  19059. IFS=$as_save_IFS
  19060. test -z "$as_dir" && as_dir=.
  19061. for ac_exec_ext in '' $ac_executable_extensions; do
  19062. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19063. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19064. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19065. break 2
  19066. fi
  19067. done
  19068. done
  19069. IFS=$as_save_IFS
  19070. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19071. ;;
  19072. esac
  19073. fi
  19074. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19075. if test -n "$PKG_CONFIG"; then
  19076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19077. $as_echo "$PKG_CONFIG" >&6; }
  19078. else
  19079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19080. $as_echo "no" >&6; }
  19081. fi
  19082. if test x$PKG_CONFIG != xno; then
  19083. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19084. save_CFLAGS="$CFLAGS"
  19085. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19086. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19087. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19088. have_ibus_ibus_h_hdr=yes
  19089. else
  19090. have_ibus_ibus_h_hdr=no
  19091. fi
  19092. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19093. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19094. have_inotify_inotify_h_hdr=yes
  19095. else
  19096. have_inotify_inotify_h_hdr=no
  19097. fi
  19098. CFLAGS="$save_CFLAGS"
  19099. if test x$have_ibus_ibus_h_hdr = xyes; then
  19100. if test x$enable_ime != xyes; then
  19101. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19102. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19103. have_ibus_ibus_h_hdr=no
  19104. elif test x$enable_dbus != xyes; then
  19105. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19106. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19107. have_ibus_ibus_h_hdr=no
  19108. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19110. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19111. have_ibus_ibus_h_hdr=no
  19112. else
  19113. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19114. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19115. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19116. fi
  19117. fi
  19118. fi
  19119. fi
  19120. }
  19121. CheckFcitx()
  19122. {
  19123. # Check whether --enable-fcitx was given.
  19124. if test "${enable_fcitx+set}" = set; then :
  19125. enableval=$enable_fcitx;
  19126. else
  19127. enable_fcitx=yes
  19128. fi
  19129. if test x$enable_fcitx = xyes; then
  19130. # Extract the first word of "pkg-config", so it can be a program name with args.
  19131. set dummy pkg-config; ac_word=$2
  19132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19133. $as_echo_n "checking for $ac_word... " >&6; }
  19134. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19135. $as_echo_n "(cached) " >&6
  19136. else
  19137. case $PKG_CONFIG in
  19138. [\\/]* | ?:[\\/]*)
  19139. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19140. ;;
  19141. *)
  19142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19143. for as_dir in $PATH
  19144. do
  19145. IFS=$as_save_IFS
  19146. test -z "$as_dir" && as_dir=.
  19147. for ac_exec_ext in '' $ac_executable_extensions; do
  19148. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19149. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19151. break 2
  19152. fi
  19153. done
  19154. done
  19155. IFS=$as_save_IFS
  19156. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19157. ;;
  19158. esac
  19159. fi
  19160. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19161. if test -n "$PKG_CONFIG"; then
  19162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19163. $as_echo "$PKG_CONFIG" >&6; }
  19164. else
  19165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19166. $as_echo "no" >&6; }
  19167. fi
  19168. if test x$PKG_CONFIG != xno; then
  19169. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19170. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19171. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19172. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19173. have_fcitx_frontend_h_hdr=yes
  19174. else
  19175. have_fcitx_frontend_h_hdr=no
  19176. fi
  19177. CFLAGS="$save_CFLAGS"
  19178. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19179. if test x$enable_ime != xyes; then
  19180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19181. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19182. have_fcitx_frontend_h_hdr=no
  19183. elif test x$enable_dbus != xyes; then
  19184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19185. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19186. have_fcitx_frontend_h_hdr=no
  19187. else
  19188. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19189. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19190. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19191. fi
  19192. fi
  19193. fi
  19194. fi
  19195. }
  19196. CheckTslib()
  19197. {
  19198. # Check whether --enable-input-tslib was given.
  19199. if test "${enable_input_tslib+set}" = set; then :
  19200. enableval=$enable_input_tslib;
  19201. else
  19202. enable_input_tslib=yes
  19203. fi
  19204. if test x$enable_input_tslib = xyes; then
  19205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19206. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19207. enable_input_tslib=no
  19208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19209. /* end confdefs.h. */
  19210. #include "tslib.h"
  19211. int
  19212. main ()
  19213. {
  19214. ;
  19215. return 0;
  19216. }
  19217. _ACEOF
  19218. if ac_fn_c_try_compile "$LINENO"; then :
  19219. enable_input_tslib=yes
  19220. fi
  19221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19223. $as_echo "$enable_input_tslib" >&6; }
  19224. if test x$enable_input_tslib = xyes; then
  19225. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19226. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19227. SUMMARY_input="${SUMMARY_input} ts"
  19228. fi
  19229. fi
  19230. }
  19231. CheckPTHREAD()
  19232. {
  19233. # Check whether --enable-pthreads was given.
  19234. if test "${enable_pthreads+set}" = set; then :
  19235. enableval=$enable_pthreads;
  19236. else
  19237. enable_pthreads=yes
  19238. fi
  19239. # Check whether --enable-pthread-sem was given.
  19240. if test "${enable_pthread_sem+set}" = set; then :
  19241. enableval=$enable_pthread_sem;
  19242. else
  19243. enable_pthread_sem=yes
  19244. fi
  19245. case "$host" in
  19246. *-*-androideabi*)
  19247. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19248. pthread_lib=""
  19249. ;;
  19250. *-*-linux*|*-*-uclinux*)
  19251. pthread_cflags="-D_REENTRANT"
  19252. pthread_lib="-lpthread"
  19253. ;;
  19254. *-*-bsdi*)
  19255. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19256. pthread_lib=""
  19257. ;;
  19258. *-*-darwin*)
  19259. pthread_cflags="-D_THREAD_SAFE"
  19260. # causes Carbon.p complaints?
  19261. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19262. ;;
  19263. *-*-freebsd*|*-*-dragonfly*)
  19264. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19265. pthread_lib="-pthread"
  19266. ;;
  19267. *-*-netbsd*)
  19268. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19269. pthread_lib="-lpthread"
  19270. ;;
  19271. *-*-openbsd*)
  19272. pthread_cflags="-D_REENTRANT"
  19273. pthread_lib="-pthread"
  19274. ;;
  19275. *-*-solaris2.9)
  19276. # From Solaris 9+, posix4's preferred name is rt.
  19277. pthread_cflags="-D_REENTRANT"
  19278. pthread_lib="-lpthread -lrt"
  19279. ;;
  19280. *-*-solaris2.10)
  19281. # Solaris 10+ merged pthread into libc.
  19282. pthread_cflags="-D_REENTRANT"
  19283. pthread_lib="-lrt"
  19284. ;;
  19285. *-*-solaris*)
  19286. # Solaris 11+ merged rt into libc.
  19287. pthread_cflags="-D_REENTRANT"
  19288. pthread_lib=""
  19289. ;;
  19290. *-*-sysv5*)
  19291. pthread_cflags="-D_REENTRANT -Kthread"
  19292. pthread_lib=""
  19293. ;;
  19294. *-*-aix*)
  19295. pthread_cflags="-D_REENTRANT -mthreads"
  19296. pthread_lib="-lpthread"
  19297. ;;
  19298. *-*-hpux11*)
  19299. pthread_cflags="-D_REENTRANT"
  19300. pthread_lib="-L/usr/lib -lpthread"
  19301. ;;
  19302. *-*-haiku*)
  19303. pthread_cflags="-D_REENTRANT"
  19304. pthread_lib=""
  19305. ;;
  19306. *-*-nto*)
  19307. pthread_cflags="-D_REENTRANT"
  19308. pthread_lib=""
  19309. ;;
  19310. *)
  19311. pthread_cflags="-D_REENTRANT"
  19312. pthread_lib="-lpthread"
  19313. ;;
  19314. esac
  19315. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19316. # Save the original compiler flags and libraries
  19317. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19318. # Add the pthread compiler flags and libraries
  19319. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19320. # Check to see if we have pthread support on this system
  19321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19322. $as_echo_n "checking for pthreads... " >&6; }
  19323. use_pthreads=no
  19324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19325. /* end confdefs.h. */
  19326. #include <pthread.h>
  19327. int
  19328. main ()
  19329. {
  19330. pthread_attr_t type;
  19331. pthread_attr_init(&type);
  19332. ;
  19333. return 0;
  19334. }
  19335. _ACEOF
  19336. if ac_fn_c_try_link "$LINENO"; then :
  19337. use_pthreads=yes
  19338. fi
  19339. rm -f core conftest.err conftest.$ac_objext \
  19340. conftest$ac_exeext conftest.$ac_ext
  19341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19342. $as_echo "$use_pthreads" >&6; }
  19343. # Restore the compiler flags and libraries
  19344. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19345. # Do futher testing if we have pthread support...
  19346. if test x$use_pthreads = xyes; then
  19347. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19348. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19349. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19350. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19351. # Save the original compiler flags and libraries
  19352. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19353. # Add the pthread compiler flags and libraries
  19354. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19355. # Check to see if recursive mutexes are available
  19356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19357. $as_echo_n "checking for recursive mutexes... " >&6; }
  19358. has_recursive_mutexes=no
  19359. if test x$has_recursive_mutexes = xno; then
  19360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19361. /* end confdefs.h. */
  19362. #define _GNU_SOURCE 1
  19363. #include <pthread.h>
  19364. int
  19365. main ()
  19366. {
  19367. pthread_mutexattr_t attr;
  19368. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19369. ;
  19370. return 0;
  19371. }
  19372. _ACEOF
  19373. if ac_fn_c_try_link "$LINENO"; then :
  19374. has_recursive_mutexes=yes
  19375. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19376. fi
  19377. rm -f core conftest.err conftest.$ac_objext \
  19378. conftest$ac_exeext conftest.$ac_ext
  19379. fi
  19380. if test x$has_recursive_mutexes = xno; then
  19381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19382. /* end confdefs.h. */
  19383. #define _GNU_SOURCE 1
  19384. #include <pthread.h>
  19385. int
  19386. main ()
  19387. {
  19388. pthread_mutexattr_t attr;
  19389. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19390. ;
  19391. return 0;
  19392. }
  19393. _ACEOF
  19394. if ac_fn_c_try_link "$LINENO"; then :
  19395. has_recursive_mutexes=yes
  19396. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19397. fi
  19398. rm -f core conftest.err conftest.$ac_objext \
  19399. conftest$ac_exeext conftest.$ac_ext
  19400. fi
  19401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19402. $as_echo "$has_recursive_mutexes" >&6; }
  19403. # Check to see if pthread semaphore support is missing
  19404. if test x$enable_pthread_sem = xyes; then
  19405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19406. $as_echo_n "checking for pthread semaphores... " >&6; }
  19407. have_pthread_sem=no
  19408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19409. /* end confdefs.h. */
  19410. #include <pthread.h>
  19411. #include <semaphore.h>
  19412. int
  19413. main ()
  19414. {
  19415. ;
  19416. return 0;
  19417. }
  19418. _ACEOF
  19419. if ac_fn_c_try_compile "$LINENO"; then :
  19420. have_pthread_sem=yes
  19421. fi
  19422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19424. $as_echo "$have_pthread_sem" >&6; }
  19425. fi
  19426. if test x$have_pthread_sem = xyes; then
  19427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19428. $as_echo_n "checking for sem_timedwait... " >&6; }
  19429. have_sem_timedwait=no
  19430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19431. /* end confdefs.h. */
  19432. #include <pthread.h>
  19433. #include <semaphore.h>
  19434. int
  19435. main ()
  19436. {
  19437. sem_timedwait(NULL, NULL);
  19438. ;
  19439. return 0;
  19440. }
  19441. _ACEOF
  19442. if ac_fn_c_try_link "$LINENO"; then :
  19443. have_sem_timedwait=yes
  19444. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19445. fi
  19446. rm -f core conftest.err conftest.$ac_objext \
  19447. conftest$ac_exeext conftest.$ac_ext
  19448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19449. $as_echo "$have_sem_timedwait" >&6; }
  19450. fi
  19451. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19452. "
  19453. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19454. have_pthread_np_h=yes
  19455. else
  19456. have_pthread_np_h=no
  19457. fi
  19458. if test x$have_pthread_np_h = xyes; then
  19459. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19460. fi
  19461. # Check to see if pthread naming is available
  19462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19463. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19465. /* end confdefs.h. */
  19466. /* Override any GCC internal prototype to avoid an error.
  19467. Use char because int might match the return type of a GCC
  19468. builtin and then its argument prototype would still apply. */
  19469. #ifdef __cplusplus
  19470. extern "C"
  19471. #endif
  19472. char pthread_setname_np ();
  19473. int
  19474. main ()
  19475. {
  19476. return pthread_setname_np ();
  19477. ;
  19478. return 0;
  19479. }
  19480. _ACEOF
  19481. if ac_fn_c_try_link "$LINENO"; then :
  19482. has_pthread_setname_np=yes
  19483. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19484. else
  19485. has_pthread_setname_np=no
  19486. fi
  19487. rm -f core conftest.err conftest.$ac_objext \
  19488. conftest$ac_exeext conftest.$ac_ext
  19489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19490. $as_echo "$has_pthread_setname_np" >&6; }
  19491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19492. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19494. /* end confdefs.h. */
  19495. /* Override any GCC internal prototype to avoid an error.
  19496. Use char because int might match the return type of a GCC
  19497. builtin and then its argument prototype would still apply. */
  19498. #ifdef __cplusplus
  19499. extern "C"
  19500. #endif
  19501. char pthread_set_name_np ();
  19502. int
  19503. main ()
  19504. {
  19505. return pthread_set_name_np ();
  19506. ;
  19507. return 0;
  19508. }
  19509. _ACEOF
  19510. if ac_fn_c_try_link "$LINENO"; then :
  19511. has_pthread_set_name_np=yes
  19512. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19513. else
  19514. has_pthread_set_name_np=no
  19515. fi
  19516. rm -f core conftest.err conftest.$ac_objext \
  19517. conftest$ac_exeext conftest.$ac_ext
  19518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19519. $as_echo "$has_pthread_set_name_np" >&6; }
  19520. # Restore the compiler flags and libraries
  19521. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19522. # Basic thread creation functions
  19523. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19524. # Semaphores
  19525. # We can fake these with mutexes and condition variables if necessary
  19526. if test x$have_pthread_sem = xyes; then
  19527. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19528. else
  19529. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19530. fi
  19531. # Mutexes
  19532. # We can fake these with semaphores if necessary
  19533. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19534. # Condition variables
  19535. # We can fake these with semaphores and mutexes if necessary
  19536. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19537. # Thread local storage
  19538. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19539. have_threads=yes
  19540. fi
  19541. fi
  19542. }
  19543. CheckWINDOWS()
  19544. {
  19545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19546. $as_echo_n "checking Windows compiler... " >&6; }
  19547. have_win32_gcc=no
  19548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19549. /* end confdefs.h. */
  19550. #include <windows.h>
  19551. int
  19552. main ()
  19553. {
  19554. ;
  19555. return 0;
  19556. }
  19557. _ACEOF
  19558. if ac_fn_c_try_compile "$LINENO"; then :
  19559. have_win32_gcc=yes
  19560. fi
  19561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19563. $as_echo "$have_win32_gcc" >&6; }
  19564. if test x$have_win32_gcc != xyes; then
  19565. as_fn_error $? "
  19566. *** Your compiler ($CC) does not produce Windows executables!
  19567. " "$LINENO" 5
  19568. fi
  19569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19570. $as_echo_n "checking Windows CE... " >&6; }
  19571. have_wince=no
  19572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19573. /* end confdefs.h. */
  19574. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19575. #error This is not Windows CE
  19576. #endif
  19577. int
  19578. main ()
  19579. {
  19580. ;
  19581. return 0;
  19582. }
  19583. _ACEOF
  19584. if ac_fn_c_try_compile "$LINENO"; then :
  19585. have_wince=yes
  19586. as_fn_error $? "
  19587. *** Sorry, Windows CE is no longer supported.
  19588. " "$LINENO" 5
  19589. fi
  19590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19592. $as_echo "$have_wince" >&6; }
  19593. # This fixes Windows stack alignment with newer GCC
  19594. CheckStackBoundary
  19595. }
  19596. CheckDIRECTX()
  19597. {
  19598. # Check whether --enable-directx was given.
  19599. if test "${enable_directx+set}" = set; then :
  19600. enableval=$enable_directx;
  19601. else
  19602. enable_directx=yes
  19603. fi
  19604. if test x$enable_directx = xyes; then
  19605. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19606. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19607. have_d3d=yes
  19608. fi
  19609. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19610. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19611. have_d3d11=yes
  19612. fi
  19613. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19614. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19615. have_ddraw=yes
  19616. fi
  19617. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19618. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19619. have_dsound=yes
  19620. fi
  19621. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19622. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19623. have_dinput=yes
  19624. fi
  19625. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19626. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19627. have_dxgi=yes
  19628. fi
  19629. ac_fn_c_check_header_mongrel "$LINENO" "xaudio2.h" "ac_cv_header_xaudio2_h" "$ac_includes_default"
  19630. if test "x$ac_cv_header_xaudio2_h" = xyes; then :
  19631. have_xaudio2=yes
  19632. fi
  19633. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19634. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19635. have_xinput=yes
  19636. fi
  19637. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19638. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19639. have_wasapi=yes
  19640. fi
  19641. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19642. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19643. else
  19644. have_wasapi=no
  19645. fi
  19646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19647. /* end confdefs.h. */
  19648. #include <windows.h>
  19649. #include <xinput.h>
  19650. XINPUT_GAMEPAD_EX x1;
  19651. int
  19652. main ()
  19653. {
  19654. ;
  19655. return 0;
  19656. }
  19657. _ACEOF
  19658. if ac_fn_c_try_compile "$LINENO"; then :
  19659. have_xinput_gamepadex=yes
  19660. fi
  19661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19663. /* end confdefs.h. */
  19664. #include <windows.h>
  19665. #include <xinput.h>
  19666. XINPUT_STATE_EX s1;
  19667. int
  19668. main ()
  19669. {
  19670. ;
  19671. return 0;
  19672. }
  19673. _ACEOF
  19674. if ac_fn_c_try_compile "$LINENO"; then :
  19675. have_xinput_stateex=yes
  19676. fi
  19677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19678. if test x$have_ddraw = xyes; then
  19679. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19680. fi
  19681. if test x$have_dinput = xyes; then
  19682. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19683. fi
  19684. if test x$have_dsound = xyes; then
  19685. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19686. fi
  19687. if test x$have_dxgi = xyes; then
  19688. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19689. fi
  19690. if test x$have_xinput = xyes; then
  19691. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19692. fi
  19693. if test x$have_xinput_gamepadex = xyes; then
  19694. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19695. fi
  19696. if test x$have_xinput_stateex = xyes; then
  19697. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19698. fi
  19699. SUMMARY_video="${SUMMARY_video} directx"
  19700. SUMMARY_audio="${SUMMARY_audio} directx"
  19701. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19702. # FIXME: ...so force it off for now.
  19703. case "$host" in
  19704. *-*-cygwin*)
  19705. have_dinput=false
  19706. ;;
  19707. esac
  19708. fi
  19709. }
  19710. CheckDLOPEN()
  19711. {
  19712. # Check whether --enable-sdl-dlopen was given.
  19713. if test "${enable_sdl_dlopen+set}" = set; then :
  19714. enableval=$enable_sdl_dlopen;
  19715. else
  19716. enable_sdl_dlopen=yes
  19717. fi
  19718. if test x$enable_sdl_dlopen = xyes; then
  19719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19720. $as_echo_n "checking for dlopen... " >&6; }
  19721. have_dlopen=no
  19722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19723. /* end confdefs.h. */
  19724. #include <dlfcn.h>
  19725. int
  19726. main ()
  19727. {
  19728. void *handle = dlopen("", RTLD_NOW);
  19729. const char *loaderror = (char *) dlerror();
  19730. ;
  19731. return 0;
  19732. }
  19733. _ACEOF
  19734. if ac_fn_c_try_compile "$LINENO"; then :
  19735. have_dlopen=yes
  19736. fi
  19737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19739. $as_echo "$have_dlopen" >&6; }
  19740. if test x$have_dlopen = xyes; then
  19741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19742. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19743. if ${ac_cv_lib_c_dlopen+:} false; then :
  19744. $as_echo_n "(cached) " >&6
  19745. else
  19746. ac_check_lib_save_LIBS=$LIBS
  19747. LIBS="-lc $LIBS"
  19748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19749. /* end confdefs.h. */
  19750. /* Override any GCC internal prototype to avoid an error.
  19751. Use char because int might match the return type of a GCC
  19752. builtin and then its argument prototype would still apply. */
  19753. #ifdef __cplusplus
  19754. extern "C"
  19755. #endif
  19756. char dlopen ();
  19757. int
  19758. main ()
  19759. {
  19760. return dlopen ();
  19761. ;
  19762. return 0;
  19763. }
  19764. _ACEOF
  19765. if ac_fn_c_try_link "$LINENO"; then :
  19766. ac_cv_lib_c_dlopen=yes
  19767. else
  19768. ac_cv_lib_c_dlopen=no
  19769. fi
  19770. rm -f core conftest.err conftest.$ac_objext \
  19771. conftest$ac_exeext conftest.$ac_ext
  19772. LIBS=$ac_check_lib_save_LIBS
  19773. fi
  19774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19775. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19776. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19777. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19778. else
  19779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19780. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19781. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19782. $as_echo_n "(cached) " >&6
  19783. else
  19784. ac_check_lib_save_LIBS=$LIBS
  19785. LIBS="-ldl $LIBS"
  19786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19787. /* end confdefs.h. */
  19788. /* Override any GCC internal prototype to avoid an error.
  19789. Use char because int might match the return type of a GCC
  19790. builtin and then its argument prototype would still apply. */
  19791. #ifdef __cplusplus
  19792. extern "C"
  19793. #endif
  19794. char dlopen ();
  19795. int
  19796. main ()
  19797. {
  19798. return dlopen ();
  19799. ;
  19800. return 0;
  19801. }
  19802. _ACEOF
  19803. if ac_fn_c_try_link "$LINENO"; then :
  19804. ac_cv_lib_dl_dlopen=yes
  19805. else
  19806. ac_cv_lib_dl_dlopen=no
  19807. fi
  19808. rm -f core conftest.err conftest.$ac_objext \
  19809. conftest$ac_exeext conftest.$ac_ext
  19810. LIBS=$ac_check_lib_save_LIBS
  19811. fi
  19812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19813. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19814. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19815. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19816. else
  19817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19818. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19819. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19820. $as_echo_n "(cached) " >&6
  19821. else
  19822. ac_check_lib_save_LIBS=$LIBS
  19823. LIBS="-lltdl $LIBS"
  19824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19825. /* end confdefs.h. */
  19826. /* Override any GCC internal prototype to avoid an error.
  19827. Use char because int might match the return type of a GCC
  19828. builtin and then its argument prototype would still apply. */
  19829. #ifdef __cplusplus
  19830. extern "C"
  19831. #endif
  19832. char dlopen ();
  19833. int
  19834. main ()
  19835. {
  19836. return dlopen ();
  19837. ;
  19838. return 0;
  19839. }
  19840. _ACEOF
  19841. if ac_fn_c_try_link "$LINENO"; then :
  19842. ac_cv_lib_ltdl_dlopen=yes
  19843. else
  19844. ac_cv_lib_ltdl_dlopen=no
  19845. fi
  19846. rm -f core conftest.err conftest.$ac_objext \
  19847. conftest$ac_exeext conftest.$ac_ext
  19848. LIBS=$ac_check_lib_save_LIBS
  19849. fi
  19850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19851. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19852. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19853. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19854. fi
  19855. fi
  19856. fi
  19857. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19858. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19859. have_loadso=yes
  19860. fi
  19861. fi
  19862. }
  19863. CheckUSBHID()
  19864. {
  19865. case "$host" in
  19866. *-*-*bsd*)
  19867. if test x$enable_joystick = xyes; then
  19868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19869. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19870. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19871. $as_echo_n "(cached) " >&6
  19872. else
  19873. ac_check_lib_save_LIBS=$LIBS
  19874. LIBS="-lusbhid $LIBS"
  19875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19876. /* end confdefs.h. */
  19877. /* Override any GCC internal prototype to avoid an error.
  19878. Use char because int might match the return type of a GCC
  19879. builtin and then its argument prototype would still apply. */
  19880. #ifdef __cplusplus
  19881. extern "C"
  19882. #endif
  19883. char hid_init ();
  19884. int
  19885. main ()
  19886. {
  19887. return hid_init ();
  19888. ;
  19889. return 0;
  19890. }
  19891. _ACEOF
  19892. if ac_fn_c_try_link "$LINENO"; then :
  19893. ac_cv_lib_usbhid_hid_init=yes
  19894. else
  19895. ac_cv_lib_usbhid_hid_init=no
  19896. fi
  19897. rm -f core conftest.err conftest.$ac_objext \
  19898. conftest$ac_exeext conftest.$ac_ext
  19899. LIBS=$ac_check_lib_save_LIBS
  19900. fi
  19901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  19902. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  19903. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  19904. have_libusbhid=yes
  19905. fi
  19906. if test x$have_libusbhid = xyes; then
  19907. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  19908. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  19909. USB_CFLAGS="-DHAVE_USBHID_H"
  19910. fi
  19911. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  19912. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  19913. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  19914. fi
  19915. USB_LIBS="$USB_LIBS -lusbhid"
  19916. else
  19917. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  19918. if test "x$ac_cv_header_usb_h" = xyes; then :
  19919. USB_CFLAGS="-DHAVE_USB_H"
  19920. fi
  19921. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  19922. if test "x$ac_cv_header_libusb_h" = xyes; then :
  19923. USB_CFLAGS="-DHAVE_LIBUSB_H"
  19924. fi
  19925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  19926. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  19927. if ${ac_cv_lib_usb_hid_init+:} false; then :
  19928. $as_echo_n "(cached) " >&6
  19929. else
  19930. ac_check_lib_save_LIBS=$LIBS
  19931. LIBS="-lusb $LIBS"
  19932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19933. /* end confdefs.h. */
  19934. /* Override any GCC internal prototype to avoid an error.
  19935. Use char because int might match the return type of a GCC
  19936. builtin and then its argument prototype would still apply. */
  19937. #ifdef __cplusplus
  19938. extern "C"
  19939. #endif
  19940. char hid_init ();
  19941. int
  19942. main ()
  19943. {
  19944. return hid_init ();
  19945. ;
  19946. return 0;
  19947. }
  19948. _ACEOF
  19949. if ac_fn_c_try_link "$LINENO"; then :
  19950. ac_cv_lib_usb_hid_init=yes
  19951. else
  19952. ac_cv_lib_usb_hid_init=no
  19953. fi
  19954. rm -f core conftest.err conftest.$ac_objext \
  19955. conftest$ac_exeext conftest.$ac_ext
  19956. LIBS=$ac_check_lib_save_LIBS
  19957. fi
  19958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  19959. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  19960. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  19961. USB_LIBS="$USB_LIBS -lusb"
  19962. fi
  19963. fi
  19964. save_CFLAGS="$CFLAGS"
  19965. CFLAGS="$CFLAGS $USB_CFLAGS"
  19966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  19967. $as_echo_n "checking for usbhid... " >&6; }
  19968. have_usbhid=no
  19969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19970. /* end confdefs.h. */
  19971. #include <sys/types.h>
  19972. #if defined(HAVE_USB_H)
  19973. #include <usb.h>
  19974. #endif
  19975. #ifdef __DragonFly__
  19976. # include <bus/usb/usb.h>
  19977. # include <bus/usb/usbhid.h>
  19978. #else
  19979. # include <dev/usb/usb.h>
  19980. # include <dev/usb/usbhid.h>
  19981. #endif
  19982. #if defined(HAVE_USBHID_H)
  19983. #include <usbhid.h>
  19984. #elif defined(HAVE_LIBUSB_H)
  19985. #include <libusb.h>
  19986. #elif defined(HAVE_LIBUSBHID_H)
  19987. #include <libusbhid.h>
  19988. #endif
  19989. int
  19990. main ()
  19991. {
  19992. struct report_desc *repdesc;
  19993. struct usb_ctl_report *repbuf;
  19994. hid_kind_t hidkind;
  19995. ;
  19996. return 0;
  19997. }
  19998. _ACEOF
  19999. if ac_fn_c_try_compile "$LINENO"; then :
  20000. have_usbhid=yes
  20001. fi
  20002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20004. $as_echo "$have_usbhid" >&6; }
  20005. if test x$have_usbhid = xyes; then
  20006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20007. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20008. have_usbhid_ucr_data=no
  20009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20010. /* end confdefs.h. */
  20011. #include <sys/types.h>
  20012. #if defined(HAVE_USB_H)
  20013. #include <usb.h>
  20014. #endif
  20015. #ifdef __DragonFly__
  20016. # include <bus/usb/usb.h>
  20017. # include <bus/usb/usbhid.h>
  20018. #else
  20019. # include <dev/usb/usb.h>
  20020. # include <dev/usb/usbhid.h>
  20021. #endif
  20022. #if defined(HAVE_USBHID_H)
  20023. #include <usbhid.h>
  20024. #elif defined(HAVE_LIBUSB_H)
  20025. #include <libusb.h>
  20026. #elif defined(HAVE_LIBUSBHID_H)
  20027. #include <libusbhid.h>
  20028. #endif
  20029. int
  20030. main ()
  20031. {
  20032. struct usb_ctl_report buf;
  20033. if (buf.ucr_data) { }
  20034. ;
  20035. return 0;
  20036. }
  20037. _ACEOF
  20038. if ac_fn_c_try_compile "$LINENO"; then :
  20039. have_usbhid_ucr_data=yes
  20040. fi
  20041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20042. if test x$have_usbhid_ucr_data = xyes; then
  20043. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20044. fi
  20045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20046. $as_echo "$have_usbhid_ucr_data" >&6; }
  20047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20048. $as_echo_n "checking for new usbhid API... " >&6; }
  20049. have_usbhid_new=no
  20050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20051. /* end confdefs.h. */
  20052. #include <sys/types.h>
  20053. #if defined(HAVE_USB_H)
  20054. #include <usb.h>
  20055. #endif
  20056. #ifdef __DragonFly__
  20057. #include <bus/usb/usb.h>
  20058. #include <bus/usb/usbhid.h>
  20059. #else
  20060. #include <dev/usb/usb.h>
  20061. #include <dev/usb/usbhid.h>
  20062. #endif
  20063. #if defined(HAVE_USBHID_H)
  20064. #include <usbhid.h>
  20065. #elif defined(HAVE_LIBUSB_H)
  20066. #include <libusb.h>
  20067. #elif defined(HAVE_LIBUSBHID_H)
  20068. #include <libusbhid.h>
  20069. #endif
  20070. int
  20071. main ()
  20072. {
  20073. report_desc_t d;
  20074. hid_start_parse(d, 1, 1);
  20075. ;
  20076. return 0;
  20077. }
  20078. _ACEOF
  20079. if ac_fn_c_try_compile "$LINENO"; then :
  20080. have_usbhid_new=yes
  20081. fi
  20082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20083. if test x$have_usbhid_new = xyes; then
  20084. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20085. fi
  20086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20087. $as_echo "$have_usbhid_new" >&6; }
  20088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20089. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20090. have_machine_joystick=no
  20091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20092. /* end confdefs.h. */
  20093. #include <machine/joystick.h>
  20094. int
  20095. main ()
  20096. {
  20097. struct joystick t;
  20098. ;
  20099. return 0;
  20100. }
  20101. _ACEOF
  20102. if ac_fn_c_try_compile "$LINENO"; then :
  20103. have_machine_joystick=yes
  20104. fi
  20105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20106. if test x$have_machine_joystick = xyes; then
  20107. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20108. fi
  20109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20110. $as_echo "$have_machine_joystick" >&6; }
  20111. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20112. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20113. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20114. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20115. have_joystick=yes
  20116. fi
  20117. CFLAGS="$save_CFLAGS"
  20118. fi
  20119. ;;
  20120. esac
  20121. }
  20122. CheckClockGettime()
  20123. {
  20124. # Check whether --enable-clock_gettime was given.
  20125. if test "${enable_clock_gettime+set}" = set; then :
  20126. enableval=$enable_clock_gettime;
  20127. else
  20128. enable_clock_gettime=yes
  20129. fi
  20130. if test x$enable_clock_gettime = xyes; then
  20131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20132. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20133. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20134. $as_echo_n "(cached) " >&6
  20135. else
  20136. ac_check_lib_save_LIBS=$LIBS
  20137. LIBS="-lrt $LIBS"
  20138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20139. /* end confdefs.h. */
  20140. /* Override any GCC internal prototype to avoid an error.
  20141. Use char because int might match the return type of a GCC
  20142. builtin and then its argument prototype would still apply. */
  20143. #ifdef __cplusplus
  20144. extern "C"
  20145. #endif
  20146. char clock_gettime ();
  20147. int
  20148. main ()
  20149. {
  20150. return clock_gettime ();
  20151. ;
  20152. return 0;
  20153. }
  20154. _ACEOF
  20155. if ac_fn_c_try_link "$LINENO"; then :
  20156. ac_cv_lib_rt_clock_gettime=yes
  20157. else
  20158. ac_cv_lib_rt_clock_gettime=no
  20159. fi
  20160. rm -f core conftest.err conftest.$ac_objext \
  20161. conftest$ac_exeext conftest.$ac_ext
  20162. LIBS=$ac_check_lib_save_LIBS
  20163. fi
  20164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20165. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20166. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20167. have_clock_gettime=yes
  20168. fi
  20169. if test x$have_clock_gettime = xyes; then
  20170. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20171. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20172. else
  20173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20174. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20175. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20176. $as_echo_n "(cached) " >&6
  20177. else
  20178. ac_check_lib_save_LIBS=$LIBS
  20179. LIBS="-lc $LIBS"
  20180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20181. /* end confdefs.h. */
  20182. /* Override any GCC internal prototype to avoid an error.
  20183. Use char because int might match the return type of a GCC
  20184. builtin and then its argument prototype would still apply. */
  20185. #ifdef __cplusplus
  20186. extern "C"
  20187. #endif
  20188. char clock_gettime ();
  20189. int
  20190. main ()
  20191. {
  20192. return clock_gettime ();
  20193. ;
  20194. return 0;
  20195. }
  20196. _ACEOF
  20197. if ac_fn_c_try_link "$LINENO"; then :
  20198. ac_cv_lib_c_clock_gettime=yes
  20199. else
  20200. ac_cv_lib_c_clock_gettime=no
  20201. fi
  20202. rm -f core conftest.err conftest.$ac_objext \
  20203. conftest$ac_exeext conftest.$ac_ext
  20204. LIBS=$ac_check_lib_save_LIBS
  20205. fi
  20206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20207. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20208. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20209. have_clock_gettime=yes
  20210. fi
  20211. if test x$have_clock_gettime = xyes; then
  20212. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20213. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20214. fi
  20215. fi
  20216. fi
  20217. }
  20218. CheckLinuxVersion()
  20219. {
  20220. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20221. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20222. have_linux_version_h=yes
  20223. fi
  20224. if test x$have_linux_version_h = xyes; then
  20225. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20226. fi
  20227. }
  20228. CheckRPATH()
  20229. {
  20230. # Check whether --enable-rpath was given.
  20231. if test "${enable_rpath+set}" = set; then :
  20232. enableval=$enable_rpath;
  20233. else
  20234. enable_rpath=yes
  20235. fi
  20236. }
  20237. CheckWarnAll
  20238. case "$host" in
  20239. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20240. case "$host" in
  20241. *-*-androideabi*)
  20242. # Android
  20243. ARCH=android
  20244. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20245. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20246. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20247. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20248. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20249. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20250. if test x$enable_video = xyes; then
  20251. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20252. # FIXME: confdefs? Not AC_DEFINE?
  20253. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20254. SUMMARY_video="${SUMMARY_video} android"
  20255. fi
  20256. ;;
  20257. *-*-linux*) ARCH=linux ;;
  20258. *-*-uclinux*) ARCH=linux ;;
  20259. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20260. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20261. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20262. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20263. *-*-bsdi*) ARCH=bsdi ;;
  20264. *-*-freebsd*) ARCH=freebsd ;;
  20265. *-*-dragonfly*) ARCH=freebsd ;;
  20266. *-*-netbsd*) ARCH=netbsd ;;
  20267. *-*-openbsd*) ARCH=openbsd ;;
  20268. *-*-sysv5*) ARCH=sysv5 ;;
  20269. *-*-solaris*) ARCH=solaris ;;
  20270. *-*-hpux*) ARCH=hpux ;;
  20271. *-*-aix*) ARCH=aix ;;
  20272. *-*-minix*) ARCH=minix ;;
  20273. *-*-nto*) ARCH=nto
  20274. CheckQNXVideo
  20275. ;;
  20276. esac
  20277. CheckVisibilityHidden
  20278. CheckDeclarationAfterStatement
  20279. CheckDummyVideo
  20280. CheckDiskAudio
  20281. CheckDummyAudio
  20282. CheckDLOPEN
  20283. CheckOSS
  20284. CheckALSA
  20285. CheckPulseAudio
  20286. CheckJACK
  20287. CheckARTSC
  20288. CheckESD
  20289. CheckNAS
  20290. CheckSNDIO
  20291. CheckFusionSound
  20292. CheckLibSampleRate
  20293. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20294. CheckRPI
  20295. CheckX11
  20296. CheckDirectFB
  20297. CheckKMSDRM
  20298. CheckOpenGLX11
  20299. CheckOpenGLESX11
  20300. CheckVulkan
  20301. CheckMir
  20302. CheckWayland
  20303. CheckLibUDev
  20304. CheckDBus
  20305. CheckIME
  20306. CheckIBus
  20307. CheckFcitx
  20308. case $ARCH in
  20309. linux)
  20310. CheckInputEvents
  20311. CheckInputKD
  20312. ;;
  20313. esac
  20314. CheckTslib
  20315. CheckUSBHID
  20316. CheckPTHREAD
  20317. CheckClockGettime
  20318. CheckLinuxVersion
  20319. CheckRPATH
  20320. CheckVivanteVideo
  20321. # Set up files for the audio library
  20322. if test x$enable_audio = xyes; then
  20323. case $ARCH in
  20324. sysv5|solaris|hpux)
  20325. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20326. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20327. SUMMARY_audio="${SUMMARY_audio} sun"
  20328. have_audio=yes
  20329. ;;
  20330. netbsd) # Don't use this on OpenBSD, it's busted.
  20331. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20332. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20333. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20334. have_audio=yes
  20335. ;;
  20336. aix)
  20337. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20338. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20339. SUMMARY_audio="${SUMMARY_audio} paudio"
  20340. have_audio=yes
  20341. ;;
  20342. android)
  20343. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20344. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20345. SUMMARY_audio="${SUMMARY_audio} android"
  20346. have_audio=yes
  20347. ;;
  20348. nto)
  20349. CheckQNXAudio
  20350. ;;
  20351. esac
  20352. fi
  20353. # Set up files for the joystick library
  20354. if test x$enable_joystick = xyes; then
  20355. case $ARCH in
  20356. linux)
  20357. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20358. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20359. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20360. have_joystick=yes
  20361. ;;
  20362. android)
  20363. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20364. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20365. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20366. have_joystick=yes
  20367. ;;
  20368. esac
  20369. fi
  20370. # Set up files for the haptic library
  20371. if test x$enable_haptic = xyes; then
  20372. if test x$use_input_events = xyes; then
  20373. case $ARCH in
  20374. linux)
  20375. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20376. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20377. have_haptic=yes
  20378. ;;
  20379. esac
  20380. fi
  20381. fi
  20382. # Set up files for the power library
  20383. if test x$enable_power = xyes; then
  20384. case $ARCH in
  20385. linux)
  20386. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20387. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20388. have_power=yes
  20389. ;;
  20390. android)
  20391. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20392. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20393. have_power=yes
  20394. ;;
  20395. esac
  20396. fi
  20397. # Set up files for the filesystem library
  20398. if test x$enable_filesystem = xyes; then
  20399. case $ARCH in
  20400. android)
  20401. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20402. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20403. have_filesystem=yes
  20404. ;;
  20405. *)
  20406. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20407. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20408. have_filesystem=yes
  20409. ;;
  20410. esac
  20411. fi
  20412. # Set up files for the timer library
  20413. if test x$enable_timers = xyes; then
  20414. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20415. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20416. have_timers=yes
  20417. fi
  20418. # Set up files for udev hotplugging support
  20419. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20420. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20421. fi
  20422. # Set up files for evdev input
  20423. if test x$use_input_events = xyes; then
  20424. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20425. fi
  20426. # Set up other core UNIX files
  20427. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20428. ;;
  20429. *-*-cygwin* | *-*-mingw32*)
  20430. ARCH=win32
  20431. if test "$build" != "$host"; then # cross-compiling
  20432. # Default cross-compile location
  20433. ac_default_prefix=/usr/local/cross-tools/$host
  20434. else
  20435. # Look for the location of the tools and install there
  20436. if test "$BUILD_PREFIX" != ""; then
  20437. ac_default_prefix=$BUILD_PREFIX
  20438. fi
  20439. fi
  20440. CheckDeclarationAfterStatement
  20441. CheckDummyVideo
  20442. CheckDiskAudio
  20443. CheckDummyAudio
  20444. CheckWINDOWS
  20445. CheckWINDOWSGL
  20446. CheckWINDOWSGLES
  20447. CheckVulkan
  20448. CheckDIRECTX
  20449. # Set up the core platform files
  20450. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20451. # Set up files for the video library
  20452. if test x$enable_video = xyes; then
  20453. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20454. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20455. have_video=yes
  20456. # Check whether --enable-render-d3d was given.
  20457. if test "${enable_render_d3d+set}" = set; then :
  20458. enableval=$enable_render_d3d;
  20459. else
  20460. enable_render_d3d=yes
  20461. fi
  20462. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20463. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20464. fi
  20465. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20466. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20467. fi
  20468. fi
  20469. # Set up files for the audio library
  20470. if test x$enable_audio = xyes; then
  20471. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20472. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20473. if test x$have_dsound = xyes; then
  20474. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20475. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20476. fi
  20477. if test x$have_xaudio2 = xyes; then
  20478. $as_echo "#define SDL_AUDIO_DRIVER_XAUDIO2 1" >>confdefs.h
  20479. SOURCES="$SOURCES $srcdir/src/audio/xaudio2/*.c"
  20480. fi
  20481. if test x$have_wasapi = xyes; then
  20482. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20483. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20484. fi
  20485. have_audio=yes
  20486. fi
  20487. # Set up files for the joystick library
  20488. if test x$enable_joystick = xyes; then
  20489. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20490. if test x$have_xinput = xyes; then
  20491. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20492. fi
  20493. if test x$have_dinput = xyes; then
  20494. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20495. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20496. fi
  20497. else
  20498. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20499. fi
  20500. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20501. have_joystick=yes
  20502. fi
  20503. if test x$enable_haptic = xyes; then
  20504. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20505. if test x$have_xinput = xyes; then
  20506. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20507. fi
  20508. if test x$have_dinput = xyes; then
  20509. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20510. fi
  20511. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20512. have_haptic=yes
  20513. fi
  20514. fi
  20515. if test x$enable_power = xyes; then
  20516. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20517. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20518. have_power=yes
  20519. fi
  20520. if test x$enable_filesystem = xyes; then
  20521. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20522. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20523. have_filesystem=yes
  20524. fi
  20525. # Set up files for the thread library
  20526. if test x$enable_threads = xyes; then
  20527. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20528. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20529. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20530. have_threads=yes
  20531. fi
  20532. # Set up files for the timer library
  20533. if test x$enable_timers = xyes; then
  20534. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20535. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20536. have_timers=yes
  20537. fi
  20538. # Set up files for the shared object loading library
  20539. if test x$enable_loadso = xyes; then
  20540. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20541. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20542. have_loadso=yes
  20543. fi
  20544. # Set up the system libraries we need
  20545. if test -f /lib/w32api/libuuid.a; then
  20546. LIBUUID=/lib/w32api/libuuid.a
  20547. else
  20548. LIBUUID=-luuid
  20549. fi
  20550. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20551. # The Windows platform requires special setup
  20552. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20553. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20554. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20555. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20556. # Check to see if this is a mingw or cygwin build
  20557. have_mingw32=
  20558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20559. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20560. if ${ac_cv_lib_mingw32_main+:} false; then :
  20561. $as_echo_n "(cached) " >&6
  20562. else
  20563. ac_check_lib_save_LIBS=$LIBS
  20564. LIBS="-lmingw32 $LIBS"
  20565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20566. /* end confdefs.h. */
  20567. int
  20568. main ()
  20569. {
  20570. return main ();
  20571. ;
  20572. return 0;
  20573. }
  20574. _ACEOF
  20575. if ac_fn_c_try_link "$LINENO"; then :
  20576. ac_cv_lib_mingw32_main=yes
  20577. else
  20578. ac_cv_lib_mingw32_main=no
  20579. fi
  20580. rm -f core conftest.err conftest.$ac_objext \
  20581. conftest$ac_exeext conftest.$ac_ext
  20582. LIBS=$ac_check_lib_save_LIBS
  20583. fi
  20584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20585. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20586. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20587. have_mingw32=yes
  20588. fi
  20589. if test x$have_mingw32 = xyes; then
  20590. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20591. else
  20592. SDL_LIBS="-lcygwin $SDL_LIBS"
  20593. fi
  20594. ;;
  20595. *-*-beos*)
  20596. as_fn_error $? "
  20597. *** BeOS support has been removed as of SDL 2.0.2.
  20598. " "$LINENO" 5
  20599. ;;
  20600. *-*-haiku*)
  20601. ARCH=haiku
  20602. ac_default_prefix=/boot/system
  20603. CheckDummyVideo
  20604. CheckDiskAudio
  20605. CheckDummyAudio
  20606. CheckDLOPEN
  20607. CheckHaikuVideo
  20608. CheckHaikuGL
  20609. CheckPTHREAD
  20610. # Set up files for the audio library
  20611. if test x$enable_audio = xyes; then
  20612. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20613. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20614. SUMMARY_audio="${SUMMARY_audio} haiku"
  20615. have_audio=yes
  20616. fi
  20617. # Set up files for the joystick library
  20618. if test x$enable_joystick = xyes; then
  20619. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20620. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20621. have_joystick=yes
  20622. fi
  20623. # Set up files for the timer library
  20624. if test x$enable_timers = xyes; then
  20625. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20626. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20627. have_timers=yes
  20628. fi
  20629. # Set up files for the system power library
  20630. if test x$enable_power = xyes; then
  20631. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20632. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20633. have_power=yes
  20634. fi
  20635. # Set up files for the system filesystem library
  20636. if test x$enable_filesystem = xyes; then
  20637. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20638. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20639. have_filesystem=yes
  20640. fi
  20641. # The Haiku platform requires special setup.
  20642. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20643. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20644. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20645. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20646. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20648. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20649. if eval \${$as_ac_File+:} false; then :
  20650. $as_echo_n "(cached) " >&6
  20651. else
  20652. test "$cross_compiling" = yes &&
  20653. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20654. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20655. eval "$as_ac_File=yes"
  20656. else
  20657. eval "$as_ac_File=no"
  20658. fi
  20659. fi
  20660. eval ac_res=\$$as_ac_File
  20661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20662. $as_echo "$ac_res" >&6; }
  20663. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20664. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20665. else
  20666. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20667. fi
  20668. ;;
  20669. arm*-apple-darwin*|*-ios-*)
  20670. ARCH=ios
  20671. CheckVisibilityHidden
  20672. CheckDeclarationAfterStatement
  20673. CheckDummyVideo
  20674. CheckDiskAudio
  20675. CheckDummyAudio
  20676. CheckDLOPEN
  20677. CheckPTHREAD
  20678. CheckVulkan
  20679. # Set up files for the audio library
  20680. if test x$enable_audio = xyes; then
  20681. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20682. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20683. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20684. have_audio=yes
  20685. fi
  20686. # Set up files for the joystick library
  20687. if test x$enable_joystick = xyes; then
  20688. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20689. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20690. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20691. have_joystick=yes
  20692. fi
  20693. # Set up files for the haptic library
  20694. #if test x$enable_haptic = xyes; then
  20695. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20696. # have_haptic=yes
  20697. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20698. #fi
  20699. # Set up files for the power library
  20700. if test x$enable_power = xyes; then
  20701. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20702. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20703. have_power=yes
  20704. fi
  20705. # Set up files for the filesystem library
  20706. if test x$enable_filesystem = xyes; then
  20707. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20708. have_filesystem=yes
  20709. fi
  20710. # Set up additional files for the file library
  20711. if test x$enable_file = xyes; then
  20712. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20713. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20714. fi
  20715. # Set up files for the timer library
  20716. if test x$enable_timers = xyes; then
  20717. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20718. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20719. have_timers=yes
  20720. fi
  20721. # Set up other core UNIX files
  20722. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20723. # The iOS platform requires special setup.
  20724. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20725. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20726. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20727. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20728. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20729. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20730. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20731. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20732. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20733. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20734. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20735. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20736. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20737. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20738. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20739. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20740. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20741. ;;
  20742. *-*-darwin* )
  20743. # This could be either full "Mac OS X", or plain "Darwin" which is
  20744. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20745. # Next line is broken, and a few files below require Mac OS X (full)
  20746. ARCH=macosx
  20747. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20748. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20749. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20750. CheckVisibilityHidden
  20751. CheckDeclarationAfterStatement
  20752. CheckDummyVideo
  20753. CheckDiskAudio
  20754. CheckDummyAudio
  20755. CheckDLOPEN
  20756. CheckCOCOA
  20757. CheckX11
  20758. CheckMacGL
  20759. CheckOpenGLX11
  20760. CheckVulkan
  20761. CheckPTHREAD
  20762. # Set up files for the audio library
  20763. if test x$enable_audio = xyes; then
  20764. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20765. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20766. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20767. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20768. have_audio=yes
  20769. fi
  20770. # Set up files for the joystick library
  20771. if test x$enable_joystick = xyes; then
  20772. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20773. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20774. have_joystick=yes
  20775. fi
  20776. # Set up files for the haptic library
  20777. if test x$enable_haptic = xyes; then
  20778. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20779. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20780. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20781. have_haptic=yes
  20782. fi
  20783. # Set up files for the power library
  20784. if test x$enable_power = xyes; then
  20785. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20786. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20787. have_power=yes
  20788. fi
  20789. # Set up files for the filesystem library
  20790. if test x$enable_filesystem = xyes; then
  20791. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20792. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20793. have_filesystem=yes
  20794. fi
  20795. # Set up files for the timer library
  20796. if test x$enable_timers = xyes; then
  20797. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20798. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20799. have_timers=yes
  20800. fi
  20801. # Set up additional files for the file library
  20802. if test x$enable_file = xyes; then
  20803. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20804. fi
  20805. # Set up other core UNIX files
  20806. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20807. # The Mac OS X platform requires special setup.
  20808. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  20809. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  20810. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  20811. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  20812. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  20813. ;;
  20814. *-nacl|*-pnacl)
  20815. ARCH=nacl
  20816. CheckNativeClient
  20817. CheckDummyAudio
  20818. CheckDummyVideo
  20819. CheckInputEvents
  20820. CheckPTHREAD
  20821. # Set up files for the timer library
  20822. if test x$enable_timers = xyes; then
  20823. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20824. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20825. have_timers=yes
  20826. fi
  20827. if test x$enable_filesystem = xyes; then
  20828. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  20829. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  20830. have_filesystem=yes
  20831. fi
  20832. ;;
  20833. *-*-emscripten* )
  20834. if test x$enable_video = xyes; then
  20835. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20836. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  20837. have_video=yes
  20838. SUMMARY_video="${SUMMARY_video} emscripten"
  20839. fi
  20840. if test x$enable_audio = xyes; then
  20841. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  20842. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  20843. have_audio=yes
  20844. SUMMARY_audio="${SUMMARY_audio} emscripten"
  20845. fi
  20846. CheckVisibilityHidden
  20847. CheckDeclarationAfterStatement
  20848. CheckDummyVideo
  20849. CheckDiskAudio
  20850. CheckDummyAudio
  20851. CheckDLOPEN
  20852. CheckClockGettime
  20853. CheckEmscriptenGLES
  20854. # Set up files for the power library
  20855. if test x$enable_power = xyes; then
  20856. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  20857. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  20858. have_power=yes
  20859. fi
  20860. # Set up files for the power library
  20861. if test x$enable_joystick = xyes; then
  20862. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  20863. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  20864. have_joystick=yes
  20865. fi
  20866. # Set up files for the filesystem library
  20867. if test x$enable_filesystem = xyes; then
  20868. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  20869. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  20870. have_filesystem=yes
  20871. fi
  20872. # Set up files for the timer library
  20873. if test x$enable_timers = xyes; then
  20874. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20875. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20876. have_timers=yes
  20877. fi
  20878. ;;
  20879. *)
  20880. as_fn_error $? "
  20881. *** Unsupported host: Please add to configure.in
  20882. " "$LINENO" 5
  20883. ;;
  20884. esac
  20885. # Verify that we have all the platform specific files we need
  20886. if test x$have_joystick != xyes; then
  20887. if test x$enable_joystick = xyes; then
  20888. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  20889. fi
  20890. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  20891. fi
  20892. if test x$have_haptic != xyes; then
  20893. if test x$enable_haptic = xyes; then
  20894. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  20895. fi
  20896. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  20897. fi
  20898. if test x$have_threads != xyes; then
  20899. if test x$enable_threads = xyes; then
  20900. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  20901. fi
  20902. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  20903. fi
  20904. if test x$have_timers != xyes; then
  20905. if test x$enable_timers = xyes; then
  20906. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  20907. fi
  20908. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  20909. fi
  20910. if test x$have_filesystem != xyes; then
  20911. if test x$enable_filesystem = xyes; then
  20912. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  20913. fi
  20914. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  20915. fi
  20916. if test x$have_loadso != xyes; then
  20917. if test x$enable_loadso = xyes; then
  20918. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  20919. fi
  20920. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  20921. fi
  20922. if test x$SDLMAIN_SOURCES = x; then
  20923. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  20924. fi
  20925. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  20926. if test x$video_wayland = xyes; then
  20927. WAYLAND_CORE_PROTOCOL_SOURCE='$(gen)/wayland-protocol.c'
  20928. WAYLAND_CORE_PROTOCOL_HEADER='$(gen)/wayland-client-protocol.h'
  20929. WAYLAND_PROTOCOLS_UNSTABLE_SOURCES=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20930. sed 's,[^ ]\+,\\$(gen)/&-protocol.c,g'`
  20931. WAYLAND_PROTOCOLS_UNSTABLE_HEADERS=`echo $WAYLAND_PROTOCOLS_UNSTABLE |\
  20932. sed 's,[^ ]\+,\\$(gen)/&-client-protocol.h,g'`
  20933. GEN_SOURCES="$GEN_SOURCES $WAYLAND_CORE_PROTOCOL_SOURCE $WAYLAND_PROTOCOLS_UNSTABLE_SOURCES"
  20934. GEN_HEADERS="$GEN_HEADERS $WAYLAND_CORE_PROTOCOL_HEADER $WAYLAND_PROTOCOLS_UNSTABLE_HEADERS"
  20935. WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS="
  20936. $WAYLAND_CORE_PROTOCOL_SOURCE: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20937. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20938. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) code \$< \$@"
  20939. WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS="
  20940. $WAYLAND_CORE_PROTOCOL_HEADER: $WAYLAND_CORE_PROTOCOL_DIR/wayland.xml
  20941. \$(SHELL) \$(auxdir)/mkinstalldirs \$(gen)
  20942. \$(RUN_CMD_GEN)\$(WAYLAND_SCANNER) client-header \$< \$@"
  20943. WAYLAND_CORE_PROTOCOL_OBJECT="
  20944. \$(objects)/`echo $WAYLAND_CORE_PROTOCOL_SOURCE | sed 's/\$(gen)\/\(.*\).c$/\1.lo/'`: $WAYLAND_CORE_PROTOCOL_SOURCE
  20945. \$(RUN_CMD_CC)\$(LIBTOOL) --tag=CC --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \$< -o \$@"
  20946. WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20947. do echo ; echo \$p | sed\
  20948. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-client-protocol.h: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20949. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20950. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@," ; done`
  20951. WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20952. do echo ; echo \$p | sed\
  20953. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\$(gen)/&-protocol.c: $WAYLAND_PROTOCOLS_DIR/unstable/\1/&.xml\\\\
  20954. \\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)\\\\
  20955. \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@," ; done`
  20956. WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE=`for p in $WAYLAND_PROTOCOLS_UNSTABLE;\
  20957. do echo ; echo \$p | sed\
  20958. "s,^\\([a-z\\-]\\+\\)-unstable-\\(v[0-9]\+\\)\$,\\\$(objects)/&-protocol.lo: \\$(gen)/&-protocol.c \\$(gen)/&-client-protocol.h\\\\
  20959. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@," ; done`
  20960. WAYLAND_PROTOCOLS_DEPENDS="
  20961. $WAYLAND_CORE_PROTOCOL_SOURCE_DEPENDS
  20962. $WAYLAND_CORE_PROTOCOL_HEADER_DEPENDS
  20963. $WAYLAND_CORE_PROTOCOL_OBJECT
  20964. $WAYLAND_PROTOCOLS_CLIENT_HEADER_UNSTABLE_DEPENDS
  20965. $WAYLAND_PROTOCOLS_CODE_UNSTABLE_DEPENDS
  20966. $WAYLAND_PROTOCOLS_OBJECTS_UNSTABLE
  20967. "
  20968. fi
  20969. OBJECTS=`echo $SOURCES`
  20970. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  20971. for EXT in asm cc m c S; do
  20972. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  20973. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  20974. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  20975. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20976. done
  20977. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20978. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  20979. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  20980. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  20981. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  20982. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  20983. \\$(WINDRES) \\$< \\$@,g"`
  20984. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  20985. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  20986. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20987. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20988. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20989. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20990. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  20991. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  20992. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  20993. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  20994. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  20995. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  20996. # Set runtime shared library paths as needed
  20997. if test "x$enable_rpath" = "xyes"; then
  20998. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  20999. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21001. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21002. have_enable_new_dtags=no
  21003. save_LDFLAGS="$LDFLAGS"
  21004. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21006. /* end confdefs.h. */
  21007. int
  21008. main ()
  21009. {
  21010. ;
  21011. return 0;
  21012. }
  21013. _ACEOF
  21014. if ac_fn_c_try_link "$LINENO"; then :
  21015. have_enable_new_dtags=yes
  21016. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21017. fi
  21018. rm -f core conftest.err conftest.$ac_objext \
  21019. conftest$ac_exeext conftest.$ac_ext
  21020. LDFLAGS="$save_LDFLAGS"
  21021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21022. $as_echo "$have_enable_new_dtags" >&6; }
  21023. fi
  21024. if test $ARCH = solaris; then
  21025. SDL_RLD_FLAGS="-R\${libdir}"
  21026. fi
  21027. else
  21028. SDL_RLD_FLAGS=""
  21029. fi
  21030. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21031. if test x$enable_shared = xyes; then
  21032. ENABLE_SHARED_TRUE=
  21033. ENABLE_SHARED_FALSE="#"
  21034. else
  21035. ENABLE_SHARED_TRUE="#"
  21036. ENABLE_SHARED_FALSE=
  21037. fi
  21038. if test x$enable_static = xyes; then
  21039. ENABLE_STATIC_TRUE=
  21040. ENABLE_STATIC_FALSE="#"
  21041. else
  21042. ENABLE_STATIC_TRUE="#"
  21043. ENABLE_STATIC_FALSE=
  21044. fi
  21045. cat >Makefile.rules <<__EOF__
  21046. # Build rules for objects
  21047. -include \$(OBJECTS:.lo=.d)
  21048. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21049. $srcdir/src/SDL.c: update-revision
  21050. $DEPENDS
  21051. $VERSION_DEPENDS
  21052. $SDLMAIN_DEPENDS
  21053. $SDLTEST_DEPENDS
  21054. $WAYLAND_PROTOCOLS_DEPENDS
  21055. __EOF__
  21056. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21057. ac_config_commands="$ac_config_commands sdl2_config"
  21058. SUMMARY="SDL2 Configure Summary:\n"
  21059. if test x$enable_shared = xyes; then
  21060. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21061. fi
  21062. if test x$enable_static = xyes; then
  21063. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21064. fi
  21065. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21066. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21067. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21068. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21069. if test x$have_x = xyes; then
  21070. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21071. fi
  21072. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21073. if test x$have_samplerate_h_hdr = xyes; then
  21074. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21075. else
  21076. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21077. fi
  21078. if test x$have_libudev_h_hdr = xyes; then
  21079. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21080. else
  21081. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21082. fi
  21083. if test x$have_dbus_dbus_h_hdr = xyes; then
  21084. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21085. else
  21086. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21087. fi
  21088. if test x$enable_ime = xyes; then
  21089. SUMMARY="${SUMMARY}Using ime : YES\n"
  21090. else
  21091. SUMMARY="${SUMMARY}Using ime : NO\n"
  21092. fi
  21093. if test x$have_ibus_ibus_h_hdr = xyes; then
  21094. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21095. else
  21096. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21097. fi
  21098. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21099. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21100. else
  21101. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21102. fi
  21103. ac_config_commands="$ac_config_commands summary"
  21104. cat >confcache <<\_ACEOF
  21105. # This file is a shell script that caches the results of configure
  21106. # tests run on this system so they can be shared between configure
  21107. # scripts and configure runs, see configure's option --config-cache.
  21108. # It is not useful on other systems. If it contains results you don't
  21109. # want to keep, you may remove or edit it.
  21110. #
  21111. # config.status only pays attention to the cache file if you give it
  21112. # the --recheck option to rerun configure.
  21113. #
  21114. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21115. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21116. # following values.
  21117. _ACEOF
  21118. # The following way of writing the cache mishandles newlines in values,
  21119. # but we know of no workaround that is simple, portable, and efficient.
  21120. # So, we kill variables containing newlines.
  21121. # Ultrix sh set writes to stderr and can't be redirected directly,
  21122. # and sets the high bit in the cache file unless we assign to the vars.
  21123. (
  21124. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21125. eval ac_val=\$$ac_var
  21126. case $ac_val in #(
  21127. *${as_nl}*)
  21128. case $ac_var in #(
  21129. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21130. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21131. esac
  21132. case $ac_var in #(
  21133. _ | IFS | as_nl) ;; #(
  21134. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21135. *) { eval $ac_var=; unset $ac_var;} ;;
  21136. esac ;;
  21137. esac
  21138. done
  21139. (set) 2>&1 |
  21140. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21141. *${as_nl}ac_space=\ *)
  21142. # `set' does not quote correctly, so add quotes: double-quote
  21143. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21144. sed -n \
  21145. "s/'/'\\\\''/g;
  21146. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21147. ;; #(
  21148. *)
  21149. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21150. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21151. ;;
  21152. esac |
  21153. sort
  21154. ) |
  21155. sed '
  21156. /^ac_cv_env_/b end
  21157. t clear
  21158. :clear
  21159. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21160. t end
  21161. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21162. :end' >>confcache
  21163. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21164. if test -w "$cache_file"; then
  21165. if test "x$cache_file" != "x/dev/null"; then
  21166. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21167. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21168. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21169. cat confcache >"$cache_file"
  21170. else
  21171. case $cache_file in #(
  21172. */* | ?:*)
  21173. mv -f confcache "$cache_file"$$ &&
  21174. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21175. *)
  21176. mv -f confcache "$cache_file" ;;
  21177. esac
  21178. fi
  21179. fi
  21180. else
  21181. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21182. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21183. fi
  21184. fi
  21185. rm -f confcache
  21186. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21187. # Let make expand exec_prefix.
  21188. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21189. DEFS=-DHAVE_CONFIG_H
  21190. ac_libobjs=
  21191. ac_ltlibobjs=
  21192. U=
  21193. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21194. # 1. Remove the extension, and $U if already installed.
  21195. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21196. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21197. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21198. # will be set to the directory where LIBOBJS objects are built.
  21199. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21200. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21201. done
  21202. LIBOBJS=$ac_libobjs
  21203. LTLIBOBJS=$ac_ltlibobjs
  21204. : "${CONFIG_STATUS=./config.status}"
  21205. ac_write_fail=0
  21206. ac_clean_files_save=$ac_clean_files
  21207. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21208. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21209. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21210. as_write_fail=0
  21211. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21212. #! $SHELL
  21213. # Generated by $as_me.
  21214. # Run this file to recreate the current configuration.
  21215. # Compiler output produced by configure, useful for debugging
  21216. # configure, is in config.log if it exists.
  21217. debug=false
  21218. ac_cs_recheck=false
  21219. ac_cs_silent=false
  21220. SHELL=\${CONFIG_SHELL-$SHELL}
  21221. export SHELL
  21222. _ASEOF
  21223. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21224. ## -------------------- ##
  21225. ## M4sh Initialization. ##
  21226. ## -------------------- ##
  21227. # Be more Bourne compatible
  21228. DUALCASE=1; export DUALCASE # for MKS sh
  21229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21230. emulate sh
  21231. NULLCMD=:
  21232. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21233. # is contrary to our usage. Disable this feature.
  21234. alias -g '${1+"$@"}'='"$@"'
  21235. setopt NO_GLOB_SUBST
  21236. else
  21237. case `(set -o) 2>/dev/null` in #(
  21238. *posix*) :
  21239. set -o posix ;; #(
  21240. *) :
  21241. ;;
  21242. esac
  21243. fi
  21244. as_nl='
  21245. '
  21246. export as_nl
  21247. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21248. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21249. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21250. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21251. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21252. # but without wasting forks for bash or zsh.
  21253. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21254. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21255. as_echo='print -r --'
  21256. as_echo_n='print -rn --'
  21257. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21258. as_echo='printf %s\n'
  21259. as_echo_n='printf %s'
  21260. else
  21261. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21262. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21263. as_echo_n='/usr/ucb/echo -n'
  21264. else
  21265. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21266. as_echo_n_body='eval
  21267. arg=$1;
  21268. case $arg in #(
  21269. *"$as_nl"*)
  21270. expr "X$arg" : "X\\(.*\\)$as_nl";
  21271. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21272. esac;
  21273. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21274. '
  21275. export as_echo_n_body
  21276. as_echo_n='sh -c $as_echo_n_body as_echo'
  21277. fi
  21278. export as_echo_body
  21279. as_echo='sh -c $as_echo_body as_echo'
  21280. fi
  21281. # The user is always right.
  21282. if test "${PATH_SEPARATOR+set}" != set; then
  21283. PATH_SEPARATOR=:
  21284. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21285. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21286. PATH_SEPARATOR=';'
  21287. }
  21288. fi
  21289. # IFS
  21290. # We need space, tab and new line, in precisely that order. Quoting is
  21291. # there to prevent editors from complaining about space-tab.
  21292. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21293. # splitting by setting IFS to empty value.)
  21294. IFS=" "" $as_nl"
  21295. # Find who we are. Look in the path if we contain no directory separator.
  21296. as_myself=
  21297. case $0 in #((
  21298. *[\\/]* ) as_myself=$0 ;;
  21299. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21300. for as_dir in $PATH
  21301. do
  21302. IFS=$as_save_IFS
  21303. test -z "$as_dir" && as_dir=.
  21304. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21305. done
  21306. IFS=$as_save_IFS
  21307. ;;
  21308. esac
  21309. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21310. # in which case we are not to be found in the path.
  21311. if test "x$as_myself" = x; then
  21312. as_myself=$0
  21313. fi
  21314. if test ! -f "$as_myself"; then
  21315. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21316. exit 1
  21317. fi
  21318. # Unset variables that we do not need and which cause bugs (e.g. in
  21319. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21320. # suppresses any "Segmentation fault" message there. '((' could
  21321. # trigger a bug in pdksh 5.2.14.
  21322. for as_var in BASH_ENV ENV MAIL MAILPATH
  21323. do eval test x\${$as_var+set} = xset \
  21324. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21325. done
  21326. PS1='$ '
  21327. PS2='> '
  21328. PS4='+ '
  21329. # NLS nuisances.
  21330. LC_ALL=C
  21331. export LC_ALL
  21332. LANGUAGE=C
  21333. export LANGUAGE
  21334. # CDPATH.
  21335. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21336. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21337. # ----------------------------------------
  21338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21340. # script with STATUS, using 1 if that was 0.
  21341. as_fn_error ()
  21342. {
  21343. as_status=$1; test $as_status -eq 0 && as_status=1
  21344. if test "$4"; then
  21345. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21347. fi
  21348. $as_echo "$as_me: error: $2" >&2
  21349. as_fn_exit $as_status
  21350. } # as_fn_error
  21351. # as_fn_set_status STATUS
  21352. # -----------------------
  21353. # Set $? to STATUS, without forking.
  21354. as_fn_set_status ()
  21355. {
  21356. return $1
  21357. } # as_fn_set_status
  21358. # as_fn_exit STATUS
  21359. # -----------------
  21360. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21361. as_fn_exit ()
  21362. {
  21363. set +e
  21364. as_fn_set_status $1
  21365. exit $1
  21366. } # as_fn_exit
  21367. # as_fn_unset VAR
  21368. # ---------------
  21369. # Portably unset VAR.
  21370. as_fn_unset ()
  21371. {
  21372. { eval $1=; unset $1;}
  21373. }
  21374. as_unset=as_fn_unset
  21375. # as_fn_append VAR VALUE
  21376. # ----------------------
  21377. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21378. # advantage of any shell optimizations that allow amortized linear growth over
  21379. # repeated appends, instead of the typical quadratic growth present in naive
  21380. # implementations.
  21381. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21382. eval 'as_fn_append ()
  21383. {
  21384. eval $1+=\$2
  21385. }'
  21386. else
  21387. as_fn_append ()
  21388. {
  21389. eval $1=\$$1\$2
  21390. }
  21391. fi # as_fn_append
  21392. # as_fn_arith ARG...
  21393. # ------------------
  21394. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21395. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21396. # must be portable across $(()) and expr.
  21397. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21398. eval 'as_fn_arith ()
  21399. {
  21400. as_val=$(( $* ))
  21401. }'
  21402. else
  21403. as_fn_arith ()
  21404. {
  21405. as_val=`expr "$@" || test $? -eq 1`
  21406. }
  21407. fi # as_fn_arith
  21408. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21409. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21410. as_expr=expr
  21411. else
  21412. as_expr=false
  21413. fi
  21414. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21415. as_basename=basename
  21416. else
  21417. as_basename=false
  21418. fi
  21419. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21420. as_dirname=dirname
  21421. else
  21422. as_dirname=false
  21423. fi
  21424. as_me=`$as_basename -- "$0" ||
  21425. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21426. X"$0" : 'X\(//\)$' \| \
  21427. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21428. $as_echo X/"$0" |
  21429. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21430. s//\1/
  21431. q
  21432. }
  21433. /^X\/\(\/\/\)$/{
  21434. s//\1/
  21435. q
  21436. }
  21437. /^X\/\(\/\).*/{
  21438. s//\1/
  21439. q
  21440. }
  21441. s/.*/./; q'`
  21442. # Avoid depending upon Character Ranges.
  21443. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21444. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21445. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21446. as_cr_digits='0123456789'
  21447. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21448. ECHO_C= ECHO_N= ECHO_T=
  21449. case `echo -n x` in #(((((
  21450. -n*)
  21451. case `echo 'xy\c'` in
  21452. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21453. xy) ECHO_C='\c';;
  21454. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21455. ECHO_T=' ';;
  21456. esac;;
  21457. *)
  21458. ECHO_N='-n';;
  21459. esac
  21460. rm -f conf$$ conf$$.exe conf$$.file
  21461. if test -d conf$$.dir; then
  21462. rm -f conf$$.dir/conf$$.file
  21463. else
  21464. rm -f conf$$.dir
  21465. mkdir conf$$.dir 2>/dev/null
  21466. fi
  21467. if (echo >conf$$.file) 2>/dev/null; then
  21468. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21469. as_ln_s='ln -s'
  21470. # ... but there are two gotchas:
  21471. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21472. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21473. # In both cases, we have to default to `cp -pR'.
  21474. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21475. as_ln_s='cp -pR'
  21476. elif ln conf$$.file conf$$ 2>/dev/null; then
  21477. as_ln_s=ln
  21478. else
  21479. as_ln_s='cp -pR'
  21480. fi
  21481. else
  21482. as_ln_s='cp -pR'
  21483. fi
  21484. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21485. rmdir conf$$.dir 2>/dev/null
  21486. # as_fn_mkdir_p
  21487. # -------------
  21488. # Create "$as_dir" as a directory, including parents if necessary.
  21489. as_fn_mkdir_p ()
  21490. {
  21491. case $as_dir in #(
  21492. -*) as_dir=./$as_dir;;
  21493. esac
  21494. test -d "$as_dir" || eval $as_mkdir_p || {
  21495. as_dirs=
  21496. while :; do
  21497. case $as_dir in #(
  21498. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21499. *) as_qdir=$as_dir;;
  21500. esac
  21501. as_dirs="'$as_qdir' $as_dirs"
  21502. as_dir=`$as_dirname -- "$as_dir" ||
  21503. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21504. X"$as_dir" : 'X\(//\)[^/]' \| \
  21505. X"$as_dir" : 'X\(//\)$' \| \
  21506. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21507. $as_echo X"$as_dir" |
  21508. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21509. s//\1/
  21510. q
  21511. }
  21512. /^X\(\/\/\)[^/].*/{
  21513. s//\1/
  21514. q
  21515. }
  21516. /^X\(\/\/\)$/{
  21517. s//\1/
  21518. q
  21519. }
  21520. /^X\(\/\).*/{
  21521. s//\1/
  21522. q
  21523. }
  21524. s/.*/./; q'`
  21525. test -d "$as_dir" && break
  21526. done
  21527. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21528. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21529. } # as_fn_mkdir_p
  21530. if mkdir -p . 2>/dev/null; then
  21531. as_mkdir_p='mkdir -p "$as_dir"'
  21532. else
  21533. test -d ./-p && rmdir ./-p
  21534. as_mkdir_p=false
  21535. fi
  21536. # as_fn_executable_p FILE
  21537. # -----------------------
  21538. # Test if FILE is an executable regular file.
  21539. as_fn_executable_p ()
  21540. {
  21541. test -f "$1" && test -x "$1"
  21542. } # as_fn_executable_p
  21543. as_test_x='test -x'
  21544. as_executable_p=as_fn_executable_p
  21545. # Sed expression to map a string onto a valid CPP name.
  21546. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21547. # Sed expression to map a string onto a valid variable name.
  21548. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21549. exec 6>&1
  21550. ## ----------------------------------- ##
  21551. ## Main body of $CONFIG_STATUS script. ##
  21552. ## ----------------------------------- ##
  21553. _ASEOF
  21554. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21555. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21556. # Save the log message, to keep $0 and so on meaningful, and to
  21557. # report actual input values of CONFIG_FILES etc. instead of their
  21558. # values after options handling.
  21559. ac_log="
  21560. This file was extended by $as_me, which was
  21561. generated by GNU Autoconf 2.69. Invocation command line was
  21562. CONFIG_FILES = $CONFIG_FILES
  21563. CONFIG_HEADERS = $CONFIG_HEADERS
  21564. CONFIG_LINKS = $CONFIG_LINKS
  21565. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21566. $ $0 $@
  21567. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21568. "
  21569. _ACEOF
  21570. case $ac_config_files in *"
  21571. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21572. esac
  21573. case $ac_config_headers in *"
  21574. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21575. esac
  21576. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21577. # Files that config.status was made for.
  21578. config_files="$ac_config_files"
  21579. config_headers="$ac_config_headers"
  21580. config_commands="$ac_config_commands"
  21581. _ACEOF
  21582. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21583. ac_cs_usage="\
  21584. \`$as_me' instantiates files and other configuration actions
  21585. from templates according to the current configuration. Unless the files
  21586. and actions are specified as TAGs, all are instantiated by default.
  21587. Usage: $0 [OPTION]... [TAG]...
  21588. -h, --help print this help, then exit
  21589. -V, --version print version number and configuration settings, then exit
  21590. --config print configuration, then exit
  21591. -q, --quiet, --silent
  21592. do not print progress messages
  21593. -d, --debug don't remove temporary files
  21594. --recheck update $as_me by reconfiguring in the same conditions
  21595. --file=FILE[:TEMPLATE]
  21596. instantiate the configuration file FILE
  21597. --header=FILE[:TEMPLATE]
  21598. instantiate the configuration header FILE
  21599. Configuration files:
  21600. $config_files
  21601. Configuration headers:
  21602. $config_headers
  21603. Configuration commands:
  21604. $config_commands
  21605. Report bugs to the package provider."
  21606. _ACEOF
  21607. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21608. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21609. ac_cs_version="\\
  21610. config.status
  21611. configured by $0, generated by GNU Autoconf 2.69,
  21612. with options \\"\$ac_cs_config\\"
  21613. Copyright (C) 2012 Free Software Foundation, Inc.
  21614. This config.status script is free software; the Free Software Foundation
  21615. gives unlimited permission to copy, distribute and modify it."
  21616. ac_pwd='$ac_pwd'
  21617. srcdir='$srcdir'
  21618. INSTALL='$INSTALL'
  21619. AWK='$AWK'
  21620. test -n "\$AWK" || AWK=awk
  21621. _ACEOF
  21622. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21623. # The default lists apply if the user does not specify any file.
  21624. ac_need_defaults=:
  21625. while test $# != 0
  21626. do
  21627. case $1 in
  21628. --*=?*)
  21629. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21630. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21631. ac_shift=:
  21632. ;;
  21633. --*=)
  21634. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21635. ac_optarg=
  21636. ac_shift=:
  21637. ;;
  21638. *)
  21639. ac_option=$1
  21640. ac_optarg=$2
  21641. ac_shift=shift
  21642. ;;
  21643. esac
  21644. case $ac_option in
  21645. # Handling of the options.
  21646. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21647. ac_cs_recheck=: ;;
  21648. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21649. $as_echo "$ac_cs_version"; exit ;;
  21650. --config | --confi | --conf | --con | --co | --c )
  21651. $as_echo "$ac_cs_config"; exit ;;
  21652. --debug | --debu | --deb | --de | --d | -d )
  21653. debug=: ;;
  21654. --file | --fil | --fi | --f )
  21655. $ac_shift
  21656. case $ac_optarg in
  21657. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21658. '') as_fn_error $? "missing file argument" ;;
  21659. esac
  21660. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21661. ac_need_defaults=false;;
  21662. --header | --heade | --head | --hea )
  21663. $ac_shift
  21664. case $ac_optarg in
  21665. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21666. esac
  21667. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21668. ac_need_defaults=false;;
  21669. --he | --h)
  21670. # Conflict between --help and --header
  21671. as_fn_error $? "ambiguous option: \`$1'
  21672. Try \`$0 --help' for more information.";;
  21673. --help | --hel | -h )
  21674. $as_echo "$ac_cs_usage"; exit ;;
  21675. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21676. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21677. ac_cs_silent=: ;;
  21678. # This is an error.
  21679. -*) as_fn_error $? "unrecognized option: \`$1'
  21680. Try \`$0 --help' for more information." ;;
  21681. *) as_fn_append ac_config_targets " $1"
  21682. ac_need_defaults=false ;;
  21683. esac
  21684. shift
  21685. done
  21686. ac_configure_extra_args=
  21687. if $ac_cs_silent; then
  21688. exec 6>/dev/null
  21689. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21690. fi
  21691. _ACEOF
  21692. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21693. if \$ac_cs_recheck; then
  21694. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21695. shift
  21696. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21697. CONFIG_SHELL='$SHELL'
  21698. export CONFIG_SHELL
  21699. exec "\$@"
  21700. fi
  21701. _ACEOF
  21702. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21703. exec 5>>config.log
  21704. {
  21705. echo
  21706. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21707. ## Running $as_me. ##
  21708. _ASBOX
  21709. $as_echo "$ac_log"
  21710. } >&5
  21711. _ACEOF
  21712. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21713. #
  21714. # INIT-COMMANDS
  21715. #
  21716. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21717. # if CDPATH is set.
  21718. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21719. sed_quote_subst='$sed_quote_subst'
  21720. double_quote_subst='$double_quote_subst'
  21721. delay_variable_subst='$delay_variable_subst'
  21722. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21723. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21724. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21725. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21726. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21727. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21728. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21729. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21730. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21731. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21732. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21733. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21734. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21735. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21736. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21737. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21738. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21739. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21740. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21741. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21742. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21743. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21744. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21745. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21746. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21747. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21748. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21749. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21750. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21751. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21752. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21753. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21754. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21755. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21756. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21757. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21758. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21759. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21760. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21761. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21762. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21763. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21764. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21765. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21766. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21767. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21768. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21769. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21770. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21771. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21772. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21773. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21774. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21775. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21776. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21777. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21778. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21779. 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"`'
  21780. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21781. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21782. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21783. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21784. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21785. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21786. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21787. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21788. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21789. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21790. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21791. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21792. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21793. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21794. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21795. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21796. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21797. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21798. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21799. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21800. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21801. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21802. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21803. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21804. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21805. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21806. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21807. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21808. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21809. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21810. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  21811. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21812. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  21813. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  21814. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  21815. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  21816. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  21817. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  21818. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21819. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  21820. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  21821. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  21822. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  21823. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  21824. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  21825. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  21826. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  21827. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  21828. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  21829. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  21830. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  21831. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  21832. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  21833. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  21834. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  21835. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  21836. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  21837. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  21838. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  21839. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  21840. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21841. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21842. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  21843. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  21844. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  21845. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  21846. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  21847. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  21848. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  21849. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  21850. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  21851. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  21852. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  21853. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  21854. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  21855. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  21856. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  21857. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  21858. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  21859. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  21860. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21861. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21862. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21863. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  21864. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  21865. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21866. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  21867. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  21868. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  21869. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  21870. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  21871. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  21872. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21873. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21874. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  21875. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21876. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21877. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21878. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21879. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21880. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21881. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  21882. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21883. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  21884. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21885. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  21886. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  21887. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  21888. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  21889. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  21890. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  21891. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  21892. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  21893. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  21894. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21895. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21896. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  21897. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21898. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  21899. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  21900. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  21901. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  21902. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21903. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  21904. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  21905. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  21906. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  21907. LTCC='$LTCC'
  21908. LTCFLAGS='$LTCFLAGS'
  21909. compiler='$compiler_DEFAULT'
  21910. # A function that is used when there is no print builtin or printf.
  21911. func_fallback_echo ()
  21912. {
  21913. eval 'cat <<_LTECHO_EOF
  21914. \$1
  21915. _LTECHO_EOF'
  21916. }
  21917. # Quote evaled strings.
  21918. for var in AS \
  21919. DLLTOOL \
  21920. OBJDUMP \
  21921. SHELL \
  21922. ECHO \
  21923. PATH_SEPARATOR \
  21924. SED \
  21925. GREP \
  21926. EGREP \
  21927. FGREP \
  21928. LD \
  21929. NM \
  21930. LN_S \
  21931. lt_SP2NL \
  21932. lt_NL2SP \
  21933. reload_flag \
  21934. deplibs_check_method \
  21935. file_magic_cmd \
  21936. file_magic_glob \
  21937. want_nocaseglob \
  21938. sharedlib_from_linklib_cmd \
  21939. AR \
  21940. AR_FLAGS \
  21941. archiver_list_spec \
  21942. STRIP \
  21943. RANLIB \
  21944. CC \
  21945. CFLAGS \
  21946. compiler \
  21947. lt_cv_sys_global_symbol_pipe \
  21948. lt_cv_sys_global_symbol_to_cdecl \
  21949. lt_cv_sys_global_symbol_to_c_name_address \
  21950. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  21951. nm_file_list_spec \
  21952. lt_prog_compiler_no_builtin_flag \
  21953. lt_prog_compiler_pic \
  21954. lt_prog_compiler_wl \
  21955. lt_prog_compiler_static \
  21956. lt_cv_prog_compiler_c_o \
  21957. need_locks \
  21958. MANIFEST_TOOL \
  21959. DSYMUTIL \
  21960. NMEDIT \
  21961. LIPO \
  21962. OTOOL \
  21963. OTOOL64 \
  21964. shrext_cmds \
  21965. export_dynamic_flag_spec \
  21966. whole_archive_flag_spec \
  21967. compiler_needs_object \
  21968. with_gnu_ld \
  21969. allow_undefined_flag \
  21970. no_undefined_flag \
  21971. hardcode_libdir_flag_spec \
  21972. hardcode_libdir_separator \
  21973. exclude_expsyms \
  21974. include_expsyms \
  21975. file_list_spec \
  21976. variables_saved_for_relink \
  21977. libname_spec \
  21978. library_names_spec \
  21979. soname_spec \
  21980. install_override_mode \
  21981. finish_eval \
  21982. old_striplib \
  21983. striplib \
  21984. compiler_lib_search_dirs \
  21985. predep_objects \
  21986. postdep_objects \
  21987. predeps \
  21988. postdeps \
  21989. compiler_lib_search_path \
  21990. LD_CXX \
  21991. reload_flag_CXX \
  21992. compiler_CXX \
  21993. lt_prog_compiler_no_builtin_flag_CXX \
  21994. lt_prog_compiler_pic_CXX \
  21995. lt_prog_compiler_wl_CXX \
  21996. lt_prog_compiler_static_CXX \
  21997. lt_cv_prog_compiler_c_o_CXX \
  21998. export_dynamic_flag_spec_CXX \
  21999. whole_archive_flag_spec_CXX \
  22000. compiler_needs_object_CXX \
  22001. with_gnu_ld_CXX \
  22002. allow_undefined_flag_CXX \
  22003. no_undefined_flag_CXX \
  22004. hardcode_libdir_flag_spec_CXX \
  22005. hardcode_libdir_separator_CXX \
  22006. exclude_expsyms_CXX \
  22007. include_expsyms_CXX \
  22008. file_list_spec_CXX \
  22009. compiler_lib_search_dirs_CXX \
  22010. predep_objects_CXX \
  22011. postdep_objects_CXX \
  22012. predeps_CXX \
  22013. postdeps_CXX \
  22014. compiler_lib_search_path_CXX; do
  22015. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22016. *[\\\\\\\`\\"\\\$]*)
  22017. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22018. ;;
  22019. *)
  22020. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22021. ;;
  22022. esac
  22023. done
  22024. # Double-quote double-evaled strings.
  22025. for var in reload_cmds \
  22026. old_postinstall_cmds \
  22027. old_postuninstall_cmds \
  22028. old_archive_cmds \
  22029. extract_expsyms_cmds \
  22030. old_archive_from_new_cmds \
  22031. old_archive_from_expsyms_cmds \
  22032. archive_cmds \
  22033. archive_expsym_cmds \
  22034. module_cmds \
  22035. module_expsym_cmds \
  22036. export_symbols_cmds \
  22037. prelink_cmds \
  22038. postlink_cmds \
  22039. postinstall_cmds \
  22040. postuninstall_cmds \
  22041. finish_cmds \
  22042. sys_lib_search_path_spec \
  22043. sys_lib_dlsearch_path_spec \
  22044. reload_cmds_CXX \
  22045. old_archive_cmds_CXX \
  22046. old_archive_from_new_cmds_CXX \
  22047. old_archive_from_expsyms_cmds_CXX \
  22048. archive_cmds_CXX \
  22049. archive_expsym_cmds_CXX \
  22050. module_cmds_CXX \
  22051. module_expsym_cmds_CXX \
  22052. export_symbols_cmds_CXX \
  22053. prelink_cmds_CXX \
  22054. postlink_cmds_CXX; do
  22055. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22056. *[\\\\\\\`\\"\\\$]*)
  22057. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22058. ;;
  22059. *)
  22060. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22061. ;;
  22062. esac
  22063. done
  22064. ac_aux_dir='$ac_aux_dir'
  22065. xsi_shell='$xsi_shell'
  22066. lt_shell_append='$lt_shell_append'
  22067. # See if we are running on zsh, and set the options which allow our
  22068. # commands through without removal of \ escapes INIT.
  22069. if test -n "\${ZSH_VERSION+set}" ; then
  22070. setopt NO_GLOB_SUBST
  22071. fi
  22072. PACKAGE='$PACKAGE'
  22073. VERSION='$VERSION'
  22074. TIMESTAMP='$TIMESTAMP'
  22075. RM='$RM'
  22076. ofile='$ofile'
  22077. SUMMARY="$SUMMARY"
  22078. _ACEOF
  22079. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22080. # Handling of arguments.
  22081. for ac_config_target in $ac_config_targets
  22082. do
  22083. case $ac_config_target in
  22084. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22085. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22086. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22087. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22088. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22089. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22090. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22091. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22092. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22093. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22094. esac
  22095. done
  22096. # If the user did not use the arguments to specify the items to instantiate,
  22097. # then the envvar interface is used. Set only those that are not.
  22098. # We use the long form for the default assignment because of an extremely
  22099. # bizarre bug on SunOS 4.1.3.
  22100. if $ac_need_defaults; then
  22101. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22102. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22103. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22104. fi
  22105. # Have a temporary directory for convenience. Make it in the build tree
  22106. # simply because there is no reason against having it here, and in addition,
  22107. # creating and moving files from /tmp can sometimes cause problems.
  22108. # Hook for its removal unless debugging.
  22109. # Note that there is a small window in which the directory will not be cleaned:
  22110. # after its creation but before its name has been assigned to `$tmp'.
  22111. $debug ||
  22112. {
  22113. tmp= ac_tmp=
  22114. trap 'exit_status=$?
  22115. : "${ac_tmp:=$tmp}"
  22116. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22117. ' 0
  22118. trap 'as_fn_exit 1' 1 2 13 15
  22119. }
  22120. # Create a (secure) tmp directory for tmp files.
  22121. {
  22122. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22123. test -d "$tmp"
  22124. } ||
  22125. {
  22126. tmp=./conf$$-$RANDOM
  22127. (umask 077 && mkdir "$tmp")
  22128. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22129. ac_tmp=$tmp
  22130. # Set up the scripts for CONFIG_FILES section.
  22131. # No need to generate them if there are no CONFIG_FILES.
  22132. # This happens for instance with `./config.status config.h'.
  22133. if test -n "$CONFIG_FILES"; then
  22134. ac_cr=`echo X | tr X '\015'`
  22135. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22136. # But we know of no other shell where ac_cr would be empty at this
  22137. # point, so we can use a bashism as a fallback.
  22138. if test "x$ac_cr" = x; then
  22139. eval ac_cr=\$\'\\r\'
  22140. fi
  22141. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22142. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22143. ac_cs_awk_cr='\\r'
  22144. else
  22145. ac_cs_awk_cr=$ac_cr
  22146. fi
  22147. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22148. _ACEOF
  22149. {
  22150. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22151. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22152. echo "_ACEOF"
  22153. } >conf$$subs.sh ||
  22154. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22155. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22156. ac_delim='%!_!# '
  22157. for ac_last_try in false false false false false :; do
  22158. . ./conf$$subs.sh ||
  22159. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22160. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22161. if test $ac_delim_n = $ac_delim_num; then
  22162. break
  22163. elif $ac_last_try; then
  22164. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22165. else
  22166. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22167. fi
  22168. done
  22169. rm -f conf$$subs.sh
  22170. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22171. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22172. _ACEOF
  22173. sed -n '
  22174. h
  22175. s/^/S["/; s/!.*/"]=/
  22176. p
  22177. g
  22178. s/^[^!]*!//
  22179. :repl
  22180. t repl
  22181. s/'"$ac_delim"'$//
  22182. t delim
  22183. :nl
  22184. h
  22185. s/\(.\{148\}\)..*/\1/
  22186. t more1
  22187. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22188. p
  22189. n
  22190. b repl
  22191. :more1
  22192. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22193. p
  22194. g
  22195. s/.\{148\}//
  22196. t nl
  22197. :delim
  22198. h
  22199. s/\(.\{148\}\)..*/\1/
  22200. t more2
  22201. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22202. p
  22203. b
  22204. :more2
  22205. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22206. p
  22207. g
  22208. s/.\{148\}//
  22209. t delim
  22210. ' <conf$$subs.awk | sed '
  22211. /^[^""]/{
  22212. N
  22213. s/\n//
  22214. }
  22215. ' >>$CONFIG_STATUS || ac_write_fail=1
  22216. rm -f conf$$subs.awk
  22217. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22218. _ACAWK
  22219. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22220. for (key in S) S_is_set[key] = 1
  22221. FS = ""
  22222. }
  22223. {
  22224. line = $ 0
  22225. nfields = split(line, field, "@")
  22226. substed = 0
  22227. len = length(field[1])
  22228. for (i = 2; i < nfields; i++) {
  22229. key = field[i]
  22230. keylen = length(key)
  22231. if (S_is_set[key]) {
  22232. value = S[key]
  22233. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22234. len += length(value) + length(field[++i])
  22235. substed = 1
  22236. } else
  22237. len += 1 + keylen
  22238. }
  22239. print line
  22240. }
  22241. _ACAWK
  22242. _ACEOF
  22243. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22244. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22245. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22246. else
  22247. cat
  22248. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22249. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22250. _ACEOF
  22251. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22252. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22253. # trailing colons and then remove the whole line if VPATH becomes empty
  22254. # (actually we leave an empty line to preserve line numbers).
  22255. if test "x$srcdir" = x.; then
  22256. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22257. h
  22258. s///
  22259. s/^/:/
  22260. s/[ ]*$/:/
  22261. s/:\$(srcdir):/:/g
  22262. s/:\${srcdir}:/:/g
  22263. s/:@srcdir@:/:/g
  22264. s/^:*//
  22265. s/:*$//
  22266. x
  22267. s/\(=[ ]*\).*/\1/
  22268. G
  22269. s/\n//
  22270. s/^[^=]*=[ ]*$//
  22271. }'
  22272. fi
  22273. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22274. fi # test -n "$CONFIG_FILES"
  22275. # Set up the scripts for CONFIG_HEADERS section.
  22276. # No need to generate them if there are no CONFIG_HEADERS.
  22277. # This happens for instance with `./config.status Makefile'.
  22278. if test -n "$CONFIG_HEADERS"; then
  22279. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22280. BEGIN {
  22281. _ACEOF
  22282. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22283. # here-document in config.status, that substitutes the proper values into
  22284. # config.h.in to produce config.h.
  22285. # Create a delimiter string that does not exist in confdefs.h, to ease
  22286. # handling of long lines.
  22287. ac_delim='%!_!# '
  22288. for ac_last_try in false false :; do
  22289. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22290. if test -z "$ac_tt"; then
  22291. break
  22292. elif $ac_last_try; then
  22293. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22294. else
  22295. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22296. fi
  22297. done
  22298. # For the awk script, D is an array of macro values keyed by name,
  22299. # likewise P contains macro parameters if any. Preserve backslash
  22300. # newline sequences.
  22301. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22302. sed -n '
  22303. s/.\{148\}/&'"$ac_delim"'/g
  22304. t rset
  22305. :rset
  22306. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22307. t def
  22308. d
  22309. :def
  22310. s/\\$//
  22311. t bsnl
  22312. s/["\\]/\\&/g
  22313. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22314. D["\1"]=" \3"/p
  22315. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22316. d
  22317. :bsnl
  22318. s/["\\]/\\&/g
  22319. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22320. D["\1"]=" \3\\\\\\n"\\/p
  22321. t cont
  22322. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22323. t cont
  22324. d
  22325. :cont
  22326. n
  22327. s/.\{148\}/&'"$ac_delim"'/g
  22328. t clear
  22329. :clear
  22330. s/\\$//
  22331. t bsnlc
  22332. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22333. d
  22334. :bsnlc
  22335. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22336. b cont
  22337. ' <confdefs.h | sed '
  22338. s/'"$ac_delim"'/"\\\
  22339. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22340. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22341. for (key in D) D_is_set[key] = 1
  22342. FS = ""
  22343. }
  22344. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22345. line = \$ 0
  22346. split(line, arg, " ")
  22347. if (arg[1] == "#") {
  22348. defundef = arg[2]
  22349. mac1 = arg[3]
  22350. } else {
  22351. defundef = substr(arg[1], 2)
  22352. mac1 = arg[2]
  22353. }
  22354. split(mac1, mac2, "(") #)
  22355. macro = mac2[1]
  22356. prefix = substr(line, 1, index(line, defundef) - 1)
  22357. if (D_is_set[macro]) {
  22358. # Preserve the white space surrounding the "#".
  22359. print prefix "define", macro P[macro] D[macro]
  22360. next
  22361. } else {
  22362. # Replace #undef with comments. This is necessary, for example,
  22363. # in the case of _POSIX_SOURCE, which is predefined and required
  22364. # on some systems where configure will not decide to define it.
  22365. if (defundef == "undef") {
  22366. print "/*", prefix defundef, macro, "*/"
  22367. next
  22368. }
  22369. }
  22370. }
  22371. { print }
  22372. _ACAWK
  22373. _ACEOF
  22374. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22375. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22376. fi # test -n "$CONFIG_HEADERS"
  22377. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22378. shift
  22379. for ac_tag
  22380. do
  22381. case $ac_tag in
  22382. :[FHLC]) ac_mode=$ac_tag; continue;;
  22383. esac
  22384. case $ac_mode$ac_tag in
  22385. :[FHL]*:*);;
  22386. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22387. :[FH]-) ac_tag=-:-;;
  22388. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22389. esac
  22390. ac_save_IFS=$IFS
  22391. IFS=:
  22392. set x $ac_tag
  22393. IFS=$ac_save_IFS
  22394. shift
  22395. ac_file=$1
  22396. shift
  22397. case $ac_mode in
  22398. :L) ac_source=$1;;
  22399. :[FH])
  22400. ac_file_inputs=
  22401. for ac_f
  22402. do
  22403. case $ac_f in
  22404. -) ac_f="$ac_tmp/stdin";;
  22405. *) # Look for the file first in the build tree, then in the source tree
  22406. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22407. # because $ac_f cannot contain `:'.
  22408. test -f "$ac_f" ||
  22409. case $ac_f in
  22410. [\\/$]*) false;;
  22411. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22412. esac ||
  22413. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22414. esac
  22415. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22416. as_fn_append ac_file_inputs " '$ac_f'"
  22417. done
  22418. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22419. # use $as_me), people would be surprised to read:
  22420. # /* config.h. Generated by config.status. */
  22421. configure_input='Generated from '`
  22422. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22423. `' by configure.'
  22424. if test x"$ac_file" != x-; then
  22425. configure_input="$ac_file. $configure_input"
  22426. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22427. $as_echo "$as_me: creating $ac_file" >&6;}
  22428. fi
  22429. # Neutralize special characters interpreted by sed in replacement strings.
  22430. case $configure_input in #(
  22431. *\&* | *\|* | *\\* )
  22432. ac_sed_conf_input=`$as_echo "$configure_input" |
  22433. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22434. *) ac_sed_conf_input=$configure_input;;
  22435. esac
  22436. case $ac_tag in
  22437. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22438. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22439. esac
  22440. ;;
  22441. esac
  22442. ac_dir=`$as_dirname -- "$ac_file" ||
  22443. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22444. X"$ac_file" : 'X\(//\)[^/]' \| \
  22445. X"$ac_file" : 'X\(//\)$' \| \
  22446. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22447. $as_echo X"$ac_file" |
  22448. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22449. s//\1/
  22450. q
  22451. }
  22452. /^X\(\/\/\)[^/].*/{
  22453. s//\1/
  22454. q
  22455. }
  22456. /^X\(\/\/\)$/{
  22457. s//\1/
  22458. q
  22459. }
  22460. /^X\(\/\).*/{
  22461. s//\1/
  22462. q
  22463. }
  22464. s/.*/./; q'`
  22465. as_dir="$ac_dir"; as_fn_mkdir_p
  22466. ac_builddir=.
  22467. case "$ac_dir" in
  22468. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22469. *)
  22470. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22471. # A ".." for each directory in $ac_dir_suffix.
  22472. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22473. case $ac_top_builddir_sub in
  22474. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22475. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22476. esac ;;
  22477. esac
  22478. ac_abs_top_builddir=$ac_pwd
  22479. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22480. # for backward compatibility:
  22481. ac_top_builddir=$ac_top_build_prefix
  22482. case $srcdir in
  22483. .) # We are building in place.
  22484. ac_srcdir=.
  22485. ac_top_srcdir=$ac_top_builddir_sub
  22486. ac_abs_top_srcdir=$ac_pwd ;;
  22487. [\\/]* | ?:[\\/]* ) # Absolute name.
  22488. ac_srcdir=$srcdir$ac_dir_suffix;
  22489. ac_top_srcdir=$srcdir
  22490. ac_abs_top_srcdir=$srcdir ;;
  22491. *) # Relative name.
  22492. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22493. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22494. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22495. esac
  22496. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22497. case $ac_mode in
  22498. :F)
  22499. #
  22500. # CONFIG_FILE
  22501. #
  22502. case $INSTALL in
  22503. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22504. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22505. esac
  22506. _ACEOF
  22507. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22508. # If the template does not know about datarootdir, expand it.
  22509. # FIXME: This hack should be removed a few years after 2.60.
  22510. ac_datarootdir_hack=; ac_datarootdir_seen=
  22511. ac_sed_dataroot='
  22512. /datarootdir/ {
  22513. p
  22514. q
  22515. }
  22516. /@datadir@/p
  22517. /@docdir@/p
  22518. /@infodir@/p
  22519. /@localedir@/p
  22520. /@mandir@/p'
  22521. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22522. *datarootdir*) ac_datarootdir_seen=yes;;
  22523. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22525. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22526. _ACEOF
  22527. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22528. ac_datarootdir_hack='
  22529. s&@datadir@&$datadir&g
  22530. s&@docdir@&$docdir&g
  22531. s&@infodir@&$infodir&g
  22532. s&@localedir@&$localedir&g
  22533. s&@mandir@&$mandir&g
  22534. s&\\\${datarootdir}&$datarootdir&g' ;;
  22535. esac
  22536. _ACEOF
  22537. # Neutralize VPATH when `$srcdir' = `.'.
  22538. # Shell code in configure.ac might set extrasub.
  22539. # FIXME: do we really want to maintain this feature?
  22540. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22541. ac_sed_extra="$ac_vpsub
  22542. $extrasub
  22543. _ACEOF
  22544. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22545. :t
  22546. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22547. s|@configure_input@|$ac_sed_conf_input|;t t
  22548. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22549. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22550. s&@srcdir@&$ac_srcdir&;t t
  22551. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22552. s&@top_srcdir@&$ac_top_srcdir&;t t
  22553. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22554. s&@builddir@&$ac_builddir&;t t
  22555. s&@abs_builddir@&$ac_abs_builddir&;t t
  22556. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22557. s&@INSTALL@&$ac_INSTALL&;t t
  22558. $ac_datarootdir_hack
  22559. "
  22560. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22561. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22562. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22563. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22564. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22565. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22567. which seems to be undefined. Please make sure it is defined" >&5
  22568. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22569. which seems to be undefined. Please make sure it is defined" >&2;}
  22570. rm -f "$ac_tmp/stdin"
  22571. case $ac_file in
  22572. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22573. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22574. esac \
  22575. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22576. ;;
  22577. :H)
  22578. #
  22579. # CONFIG_HEADER
  22580. #
  22581. if test x"$ac_file" != x-; then
  22582. {
  22583. $as_echo "/* $configure_input */" \
  22584. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22585. } >"$ac_tmp/config.h" \
  22586. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22587. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22588. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22589. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22590. else
  22591. rm -f "$ac_file"
  22592. mv "$ac_tmp/config.h" "$ac_file" \
  22593. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22594. fi
  22595. else
  22596. $as_echo "/* $configure_input */" \
  22597. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22598. || as_fn_error $? "could not create -" "$LINENO" 5
  22599. fi
  22600. ;;
  22601. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22602. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22603. ;;
  22604. esac
  22605. case $ac_file$ac_mode in
  22606. "libtool":C)
  22607. # See if we are running on zsh, and set the options which allow our
  22608. # commands through without removal of \ escapes.
  22609. if test -n "${ZSH_VERSION+set}" ; then
  22610. setopt NO_GLOB_SUBST
  22611. fi
  22612. cfgfile="${ofile}T"
  22613. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22614. $RM "$cfgfile"
  22615. cat <<_LT_EOF >> "$cfgfile"
  22616. #! $SHELL
  22617. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22618. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22619. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22620. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22621. #
  22622. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22623. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22624. # Foundation, Inc.
  22625. # Written by Gordon Matzigkeit, 1996
  22626. #
  22627. # This file is part of GNU Libtool.
  22628. #
  22629. # GNU Libtool is free software; you can redistribute it and/or
  22630. # modify it under the terms of the GNU General Public License as
  22631. # published by the Free Software Foundation; either version 2 of
  22632. # the License, or (at your option) any later version.
  22633. #
  22634. # As a special exception to the GNU General Public License,
  22635. # if you distribute this file as part of a program or library that
  22636. # is built using GNU Libtool, you may include this file under the
  22637. # same distribution terms that you use for the rest of that program.
  22638. #
  22639. # GNU Libtool is distributed in the hope that it will be useful,
  22640. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22641. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22642. # GNU General Public License for more details.
  22643. #
  22644. # You should have received a copy of the GNU General Public License
  22645. # along with GNU Libtool; see the file COPYING. If not, a copy
  22646. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22647. # obtained by writing to the Free Software Foundation, Inc.,
  22648. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22649. # The names of the tagged configurations supported by this script.
  22650. available_tags="CXX "
  22651. # ### BEGIN LIBTOOL CONFIG
  22652. # Which release of libtool.m4 was used?
  22653. macro_version=$macro_version
  22654. macro_revision=$macro_revision
  22655. # Assembler program.
  22656. AS=$lt_AS
  22657. # DLL creation program.
  22658. DLLTOOL=$lt_DLLTOOL
  22659. # Object dumper program.
  22660. OBJDUMP=$lt_OBJDUMP
  22661. # Whether or not to build shared libraries.
  22662. build_libtool_libs=$enable_shared
  22663. # Whether or not to build static libraries.
  22664. build_old_libs=$enable_static
  22665. # What type of objects to build.
  22666. pic_mode=$pic_mode
  22667. # Whether or not to optimize for fast installation.
  22668. fast_install=$enable_fast_install
  22669. # Shell to use when invoking shell scripts.
  22670. SHELL=$lt_SHELL
  22671. # An echo program that protects backslashes.
  22672. ECHO=$lt_ECHO
  22673. # The PATH separator for the build system.
  22674. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22675. # The host system.
  22676. host_alias=$host_alias
  22677. host=$host
  22678. host_os=$host_os
  22679. # The build system.
  22680. build_alias=$build_alias
  22681. build=$build
  22682. build_os=$build_os
  22683. # A sed program that does not truncate output.
  22684. SED=$lt_SED
  22685. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22686. Xsed="\$SED -e 1s/^X//"
  22687. # A grep program that handles long lines.
  22688. GREP=$lt_GREP
  22689. # An ERE matcher.
  22690. EGREP=$lt_EGREP
  22691. # A literal string matcher.
  22692. FGREP=$lt_FGREP
  22693. # A BSD- or MS-compatible name lister.
  22694. NM=$lt_NM
  22695. # Whether we need soft or hard links.
  22696. LN_S=$lt_LN_S
  22697. # What is the maximum length of a command?
  22698. max_cmd_len=$max_cmd_len
  22699. # Object file suffix (normally "o").
  22700. objext=$ac_objext
  22701. # Executable file suffix (normally "").
  22702. exeext=$exeext
  22703. # whether the shell understands "unset".
  22704. lt_unset=$lt_unset
  22705. # turn spaces into newlines.
  22706. SP2NL=$lt_lt_SP2NL
  22707. # turn newlines into spaces.
  22708. NL2SP=$lt_lt_NL2SP
  22709. # convert \$build file names to \$host format.
  22710. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22711. # convert \$build files to toolchain format.
  22712. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22713. # Method to check whether dependent libraries are shared objects.
  22714. deplibs_check_method=$lt_deplibs_check_method
  22715. # Command to use when deplibs_check_method = "file_magic".
  22716. file_magic_cmd=$lt_file_magic_cmd
  22717. # How to find potential files when deplibs_check_method = "file_magic".
  22718. file_magic_glob=$lt_file_magic_glob
  22719. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22720. want_nocaseglob=$lt_want_nocaseglob
  22721. # Command to associate shared and link libraries.
  22722. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22723. # The archiver.
  22724. AR=$lt_AR
  22725. # Flags to create an archive.
  22726. AR_FLAGS=$lt_AR_FLAGS
  22727. # How to feed a file listing to the archiver.
  22728. archiver_list_spec=$lt_archiver_list_spec
  22729. # A symbol stripping program.
  22730. STRIP=$lt_STRIP
  22731. # Commands used to install an old-style archive.
  22732. RANLIB=$lt_RANLIB
  22733. old_postinstall_cmds=$lt_old_postinstall_cmds
  22734. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22735. # Whether to use a lock for old archive extraction.
  22736. lock_old_archive_extraction=$lock_old_archive_extraction
  22737. # A C compiler.
  22738. LTCC=$lt_CC
  22739. # LTCC compiler flags.
  22740. LTCFLAGS=$lt_CFLAGS
  22741. # Take the output of nm and produce a listing of raw symbols and C names.
  22742. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22743. # Transform the output of nm in a proper C declaration.
  22744. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22745. # Transform the output of nm in a C name address pair.
  22746. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22747. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22748. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22749. # Specify filename containing input files for \$NM.
  22750. nm_file_list_spec=$lt_nm_file_list_spec
  22751. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22752. lt_sysroot=$lt_sysroot
  22753. # The name of the directory that contains temporary libtool files.
  22754. objdir=$objdir
  22755. # Used to examine libraries when file_magic_cmd begins with "file".
  22756. MAGIC_CMD=$MAGIC_CMD
  22757. # Must we lock files when doing compilation?
  22758. need_locks=$lt_need_locks
  22759. # Manifest tool.
  22760. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22761. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22762. DSYMUTIL=$lt_DSYMUTIL
  22763. # Tool to change global to local symbols on Mac OS X.
  22764. NMEDIT=$lt_NMEDIT
  22765. # Tool to manipulate fat objects and archives on Mac OS X.
  22766. LIPO=$lt_LIPO
  22767. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22768. OTOOL=$lt_OTOOL
  22769. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22770. OTOOL64=$lt_OTOOL64
  22771. # Old archive suffix (normally "a").
  22772. libext=$libext
  22773. # Shared library suffix (normally ".so").
  22774. shrext_cmds=$lt_shrext_cmds
  22775. # The commands to extract the exported symbol list from a shared archive.
  22776. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22777. # Variables whose values should be saved in libtool wrapper scripts and
  22778. # restored at link time.
  22779. variables_saved_for_relink=$lt_variables_saved_for_relink
  22780. # Do we need the "lib" prefix for modules?
  22781. need_lib_prefix=$need_lib_prefix
  22782. # Do we need a version for libraries?
  22783. need_version=$need_version
  22784. # Library versioning type.
  22785. version_type=$version_type
  22786. # Shared library runtime path variable.
  22787. runpath_var=$runpath_var
  22788. # Shared library path variable.
  22789. shlibpath_var=$shlibpath_var
  22790. # Is shlibpath searched before the hard-coded library search path?
  22791. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22792. # Format of library name prefix.
  22793. libname_spec=$lt_libname_spec
  22794. # List of archive names. First name is the real one, the rest are links.
  22795. # The last name is the one that the linker finds with -lNAME
  22796. library_names_spec=$lt_library_names_spec
  22797. # The coded name of the library, if different from the real name.
  22798. soname_spec=$lt_soname_spec
  22799. # Permission mode override for installation of shared libraries.
  22800. install_override_mode=$lt_install_override_mode
  22801. # Command to use after installation of a shared archive.
  22802. postinstall_cmds=$lt_postinstall_cmds
  22803. # Command to use after uninstallation of a shared archive.
  22804. postuninstall_cmds=$lt_postuninstall_cmds
  22805. # Commands used to finish a libtool library installation in a directory.
  22806. finish_cmds=$lt_finish_cmds
  22807. # As "finish_cmds", except a single script fragment to be evaled but
  22808. # not shown.
  22809. finish_eval=$lt_finish_eval
  22810. # Whether we should hardcode library paths into libraries.
  22811. hardcode_into_libs=$hardcode_into_libs
  22812. # Compile-time system search path for libraries.
  22813. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  22814. # Run-time system search path for libraries.
  22815. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  22816. # Whether dlopen is supported.
  22817. dlopen_support=$enable_dlopen
  22818. # Whether dlopen of programs is supported.
  22819. dlopen_self=$enable_dlopen_self
  22820. # Whether dlopen of statically linked programs is supported.
  22821. dlopen_self_static=$enable_dlopen_self_static
  22822. # Commands to strip libraries.
  22823. old_striplib=$lt_old_striplib
  22824. striplib=$lt_striplib
  22825. # The linker used to build libraries.
  22826. LD=$lt_LD
  22827. # How to create reloadable object files.
  22828. reload_flag=$lt_reload_flag
  22829. reload_cmds=$lt_reload_cmds
  22830. # Commands used to build an old-style archive.
  22831. old_archive_cmds=$lt_old_archive_cmds
  22832. # A language specific compiler.
  22833. CC=$lt_compiler
  22834. # Is the compiler the GNU compiler?
  22835. with_gcc=$GCC
  22836. # Compiler flag to turn off builtin functions.
  22837. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  22838. # Additional compiler flags for building library objects.
  22839. pic_flag=$lt_lt_prog_compiler_pic
  22840. # How to pass a linker flag through the compiler.
  22841. wl=$lt_lt_prog_compiler_wl
  22842. # Compiler flag to prevent dynamic linking.
  22843. link_static_flag=$lt_lt_prog_compiler_static
  22844. # Does compiler simultaneously support -c and -o options?
  22845. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  22846. # Whether or not to add -lc for building shared libraries.
  22847. build_libtool_need_lc=$archive_cmds_need_lc
  22848. # Whether or not to disallow shared libs when runtime libs are static.
  22849. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  22850. # Compiler flag to allow reflexive dlopens.
  22851. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  22852. # Compiler flag to generate shared objects directly from archives.
  22853. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  22854. # Whether the compiler copes with passing no objects directly.
  22855. compiler_needs_object=$lt_compiler_needs_object
  22856. # Create an old-style archive from a shared archive.
  22857. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  22858. # Create a temporary old-style archive to link instead of a shared archive.
  22859. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  22860. # Commands used to build a shared archive.
  22861. archive_cmds=$lt_archive_cmds
  22862. archive_expsym_cmds=$lt_archive_expsym_cmds
  22863. # Commands used to build a loadable module if different from building
  22864. # a shared archive.
  22865. module_cmds=$lt_module_cmds
  22866. module_expsym_cmds=$lt_module_expsym_cmds
  22867. # Whether we are building with GNU ld or not.
  22868. with_gnu_ld=$lt_with_gnu_ld
  22869. # Flag that allows shared libraries with undefined symbols to be built.
  22870. allow_undefined_flag=$lt_allow_undefined_flag
  22871. # Flag that enforces no undefined symbols.
  22872. no_undefined_flag=$lt_no_undefined_flag
  22873. # Flag to hardcode \$libdir into a binary during linking.
  22874. # This must work even if \$libdir does not exist
  22875. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  22876. # Whether we need a single "-rpath" flag with a separated argument.
  22877. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  22878. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22879. # DIR into the resulting binary.
  22880. hardcode_direct=$hardcode_direct
  22881. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  22882. # DIR into the resulting binary and the resulting library dependency is
  22883. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  22884. # library is relocated.
  22885. hardcode_direct_absolute=$hardcode_direct_absolute
  22886. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  22887. # into the resulting binary.
  22888. hardcode_minus_L=$hardcode_minus_L
  22889. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  22890. # into the resulting binary.
  22891. hardcode_shlibpath_var=$hardcode_shlibpath_var
  22892. # Set to "yes" if building a shared library automatically hardcodes DIR
  22893. # into the library and all subsequent libraries and executables linked
  22894. # against it.
  22895. hardcode_automatic=$hardcode_automatic
  22896. # Set to yes if linker adds runtime paths of dependent libraries
  22897. # to runtime path list.
  22898. inherit_rpath=$inherit_rpath
  22899. # Whether libtool must link a program against all its dependency libraries.
  22900. link_all_deplibs=$link_all_deplibs
  22901. # Set to "yes" if exported symbols are required.
  22902. always_export_symbols=$always_export_symbols
  22903. # The commands to list exported symbols.
  22904. export_symbols_cmds=$lt_export_symbols_cmds
  22905. # Symbols that should not be listed in the preloaded symbols.
  22906. exclude_expsyms=$lt_exclude_expsyms
  22907. # Symbols that must always be exported.
  22908. include_expsyms=$lt_include_expsyms
  22909. # Commands necessary for linking programs (against libraries) with templates.
  22910. prelink_cmds=$lt_prelink_cmds
  22911. # Commands necessary for finishing linking programs.
  22912. postlink_cmds=$lt_postlink_cmds
  22913. # Specify filename containing input files.
  22914. file_list_spec=$lt_file_list_spec
  22915. # How to hardcode a shared library path into an executable.
  22916. hardcode_action=$hardcode_action
  22917. # The directories searched by this compiler when creating a shared library.
  22918. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  22919. # Dependencies to place before and after the objects being linked to
  22920. # create a shared library.
  22921. predep_objects=$lt_predep_objects
  22922. postdep_objects=$lt_postdep_objects
  22923. predeps=$lt_predeps
  22924. postdeps=$lt_postdeps
  22925. # The library search path used internally by the compiler when linking
  22926. # a shared library.
  22927. compiler_lib_search_path=$lt_compiler_lib_search_path
  22928. # ### END LIBTOOL CONFIG
  22929. _LT_EOF
  22930. case $host_os in
  22931. aix3*)
  22932. cat <<\_LT_EOF >> "$cfgfile"
  22933. # AIX sometimes has problems with the GCC collect2 program. For some
  22934. # reason, if we set the COLLECT_NAMES environment variable, the problems
  22935. # vanish in a puff of smoke.
  22936. if test "X${COLLECT_NAMES+set}" != Xset; then
  22937. COLLECT_NAMES=
  22938. export COLLECT_NAMES
  22939. fi
  22940. _LT_EOF
  22941. ;;
  22942. esac
  22943. ltmain="$ac_aux_dir/ltmain.sh"
  22944. # We use sed instead of cat because bash on DJGPP gets confused if
  22945. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  22946. # text mode, it properly converts lines to CR/LF. This bash problem
  22947. # is reportedly fixed, but why not run on old versions too?
  22948. sed '$q' "$ltmain" >> "$cfgfile" \
  22949. || (rm -f "$cfgfile"; exit 1)
  22950. if test x"$xsi_shell" = xyes; then
  22951. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  22952. func_dirname ()\
  22953. {\
  22954. \ case ${1} in\
  22955. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22956. \ * ) func_dirname_result="${3}" ;;\
  22957. \ esac\
  22958. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  22959. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22960. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22961. test 0 -eq $? || _lt_function_replace_fail=:
  22962. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  22963. func_basename ()\
  22964. {\
  22965. \ func_basename_result="${1##*/}"\
  22966. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22967. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22968. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22969. test 0 -eq $? || _lt_function_replace_fail=:
  22970. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  22971. func_dirname_and_basename ()\
  22972. {\
  22973. \ case ${1} in\
  22974. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  22975. \ * ) func_dirname_result="${3}" ;;\
  22976. \ esac\
  22977. \ func_basename_result="${1##*/}"\
  22978. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  22979. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22980. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22981. test 0 -eq $? || _lt_function_replace_fail=:
  22982. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  22983. func_stripname ()\
  22984. {\
  22985. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  22986. \ # positional parameters, so assign one to ordinary parameter first.\
  22987. \ func_stripname_result=${3}\
  22988. \ func_stripname_result=${func_stripname_result#"${1}"}\
  22989. \ func_stripname_result=${func_stripname_result%"${2}"}\
  22990. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  22991. && mv -f "$cfgfile.tmp" "$cfgfile" \
  22992. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  22993. test 0 -eq $? || _lt_function_replace_fail=:
  22994. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  22995. func_split_long_opt ()\
  22996. {\
  22997. \ func_split_long_opt_name=${1%%=*}\
  22998. \ func_split_long_opt_arg=${1#*=}\
  22999. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23000. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23001. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23002. test 0 -eq $? || _lt_function_replace_fail=:
  23003. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23004. func_split_short_opt ()\
  23005. {\
  23006. \ func_split_short_opt_arg=${1#??}\
  23007. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23008. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23009. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23010. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23011. test 0 -eq $? || _lt_function_replace_fail=:
  23012. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23013. func_lo2o ()\
  23014. {\
  23015. \ case ${1} in\
  23016. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23017. \ *) func_lo2o_result=${1} ;;\
  23018. \ esac\
  23019. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23020. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23021. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23022. test 0 -eq $? || _lt_function_replace_fail=:
  23023. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23024. func_xform ()\
  23025. {\
  23026. func_xform_result=${1%.*}.lo\
  23027. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23028. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23029. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23030. test 0 -eq $? || _lt_function_replace_fail=:
  23031. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23032. func_arith ()\
  23033. {\
  23034. func_arith_result=$(( $* ))\
  23035. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23036. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23037. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23038. test 0 -eq $? || _lt_function_replace_fail=:
  23039. sed -e '/^func_len ()$/,/^} # func_len /c\
  23040. func_len ()\
  23041. {\
  23042. func_len_result=${#1}\
  23043. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23044. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23045. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23046. test 0 -eq $? || _lt_function_replace_fail=:
  23047. fi
  23048. if test x"$lt_shell_append" = xyes; then
  23049. sed -e '/^func_append ()$/,/^} # func_append /c\
  23050. func_append ()\
  23051. {\
  23052. eval "${1}+=\\${2}"\
  23053. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23054. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23055. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23056. test 0 -eq $? || _lt_function_replace_fail=:
  23057. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23058. func_append_quoted ()\
  23059. {\
  23060. \ func_quote_for_eval "${2}"\
  23061. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23062. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23063. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23064. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23065. test 0 -eq $? || _lt_function_replace_fail=:
  23066. # Save a `func_append' function call where possible by direct use of '+='
  23067. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23068. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23069. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23070. test 0 -eq $? || _lt_function_replace_fail=:
  23071. else
  23072. # Save a `func_append' function call even when '+=' is not available
  23073. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23074. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23075. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23076. test 0 -eq $? || _lt_function_replace_fail=:
  23077. fi
  23078. if test x"$_lt_function_replace_fail" = x":"; then
  23079. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23080. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23081. fi
  23082. mv -f "$cfgfile" "$ofile" ||
  23083. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23084. chmod +x "$ofile"
  23085. cat <<_LT_EOF >> "$ofile"
  23086. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23087. # The linker used to build libraries.
  23088. LD=$lt_LD_CXX
  23089. # How to create reloadable object files.
  23090. reload_flag=$lt_reload_flag_CXX
  23091. reload_cmds=$lt_reload_cmds_CXX
  23092. # Commands used to build an old-style archive.
  23093. old_archive_cmds=$lt_old_archive_cmds_CXX
  23094. # A language specific compiler.
  23095. CC=$lt_compiler_CXX
  23096. # Is the compiler the GNU compiler?
  23097. with_gcc=$GCC_CXX
  23098. # Compiler flag to turn off builtin functions.
  23099. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23100. # Additional compiler flags for building library objects.
  23101. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23102. # How to pass a linker flag through the compiler.
  23103. wl=$lt_lt_prog_compiler_wl_CXX
  23104. # Compiler flag to prevent dynamic linking.
  23105. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23106. # Does compiler simultaneously support -c and -o options?
  23107. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23108. # Whether or not to add -lc for building shared libraries.
  23109. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23110. # Whether or not to disallow shared libs when runtime libs are static.
  23111. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23112. # Compiler flag to allow reflexive dlopens.
  23113. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23114. # Compiler flag to generate shared objects directly from archives.
  23115. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23116. # Whether the compiler copes with passing no objects directly.
  23117. compiler_needs_object=$lt_compiler_needs_object_CXX
  23118. # Create an old-style archive from a shared archive.
  23119. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23120. # Create a temporary old-style archive to link instead of a shared archive.
  23121. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23122. # Commands used to build a shared archive.
  23123. archive_cmds=$lt_archive_cmds_CXX
  23124. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23125. # Commands used to build a loadable module if different from building
  23126. # a shared archive.
  23127. module_cmds=$lt_module_cmds_CXX
  23128. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23129. # Whether we are building with GNU ld or not.
  23130. with_gnu_ld=$lt_with_gnu_ld_CXX
  23131. # Flag that allows shared libraries with undefined symbols to be built.
  23132. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23133. # Flag that enforces no undefined symbols.
  23134. no_undefined_flag=$lt_no_undefined_flag_CXX
  23135. # Flag to hardcode \$libdir into a binary during linking.
  23136. # This must work even if \$libdir does not exist
  23137. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23138. # Whether we need a single "-rpath" flag with a separated argument.
  23139. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23140. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23141. # DIR into the resulting binary.
  23142. hardcode_direct=$hardcode_direct_CXX
  23143. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23144. # DIR into the resulting binary and the resulting library dependency is
  23145. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23146. # library is relocated.
  23147. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23148. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23149. # into the resulting binary.
  23150. hardcode_minus_L=$hardcode_minus_L_CXX
  23151. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23152. # into the resulting binary.
  23153. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23154. # Set to "yes" if building a shared library automatically hardcodes DIR
  23155. # into the library and all subsequent libraries and executables linked
  23156. # against it.
  23157. hardcode_automatic=$hardcode_automatic_CXX
  23158. # Set to yes if linker adds runtime paths of dependent libraries
  23159. # to runtime path list.
  23160. inherit_rpath=$inherit_rpath_CXX
  23161. # Whether libtool must link a program against all its dependency libraries.
  23162. link_all_deplibs=$link_all_deplibs_CXX
  23163. # Set to "yes" if exported symbols are required.
  23164. always_export_symbols=$always_export_symbols_CXX
  23165. # The commands to list exported symbols.
  23166. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23167. # Symbols that should not be listed in the preloaded symbols.
  23168. exclude_expsyms=$lt_exclude_expsyms_CXX
  23169. # Symbols that must always be exported.
  23170. include_expsyms=$lt_include_expsyms_CXX
  23171. # Commands necessary for linking programs (against libraries) with templates.
  23172. prelink_cmds=$lt_prelink_cmds_CXX
  23173. # Commands necessary for finishing linking programs.
  23174. postlink_cmds=$lt_postlink_cmds_CXX
  23175. # Specify filename containing input files.
  23176. file_list_spec=$lt_file_list_spec_CXX
  23177. # How to hardcode a shared library path into an executable.
  23178. hardcode_action=$hardcode_action_CXX
  23179. # The directories searched by this compiler when creating a shared library.
  23180. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23181. # Dependencies to place before and after the objects being linked to
  23182. # create a shared library.
  23183. predep_objects=$lt_predep_objects_CXX
  23184. postdep_objects=$lt_postdep_objects_CXX
  23185. predeps=$lt_predeps_CXX
  23186. postdeps=$lt_postdeps_CXX
  23187. # The library search path used internally by the compiler when linking
  23188. # a shared library.
  23189. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23190. # ### END LIBTOOL TAG CONFIG: CXX
  23191. _LT_EOF
  23192. ;;
  23193. "sdl2_config":C) chmod a+x sdl2-config ;;
  23194. "summary":C) echo -en "$SUMMARY" ;;
  23195. esac
  23196. done # for ac_tag
  23197. as_fn_exit 0
  23198. _ACEOF
  23199. ac_clean_files=$ac_clean_files_save
  23200. test $ac_write_fail = 0 ||
  23201. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23202. # configure is writing to config.log, and then calls config.status.
  23203. # config.status does its own redirection, appending to config.log.
  23204. # Unfortunately, on DOS this fails, as config.log is still kept open
  23205. # by configure, so config.status won't be able to write to it; its
  23206. # output is simply discarded. So we exec the FD to /dev/null,
  23207. # effectively closing config.log, so it can be properly (re)opened and
  23208. # appended to by config.status. When coming back to configure, we
  23209. # need to make the FD available again.
  23210. if test "$no_create" != yes; then
  23211. ac_cs_success=:
  23212. ac_config_status_args=
  23213. test "$silent" = yes &&
  23214. ac_config_status_args="$ac_config_status_args --quiet"
  23215. exec 5>/dev/null
  23216. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23217. exec 5>>config.log
  23218. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23219. # would make configure fail if this is the last instruction.
  23220. $ac_cs_success || as_fn_exit 1
  23221. fi
  23222. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23224. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23225. fi