configure 805 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME=
  539. PACKAGE_TARNAME=
  540. PACKAGE_VERSION=
  541. PACKAGE_STRING=
  542. PACKAGE_BUGREPORT=
  543. PACKAGE_URL=
  544. ac_unique_file="README.txt"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='LTLIBOBJS
  581. WAYLAND_SCANNER
  582. EXTRA_LDFLAGS
  583. BUILD_LDFLAGS
  584. EXTRA_CFLAGS
  585. BUILD_CFLAGS
  586. SDLTEST_OBJECTS
  587. SDLMAIN_OBJECTS
  588. VERSION_OBJECTS
  589. GEN_OBJECTS
  590. GEN_HEADERS
  591. OBJECTS
  592. INCLUDE
  593. ac_aux_dir
  594. ENABLE_STATIC_FALSE
  595. ENABLE_STATIC_TRUE
  596. ENABLE_SHARED_FALSE
  597. ENABLE_SHARED_TRUE
  598. SDL_RLD_FLAGS
  599. SDL_STATIC_LIBS
  600. SDL_LIBS
  601. SDL_CFLAGS
  602. DIRECTFBCONFIG
  603. X_EXTRA_LIBS
  604. X_LIBS
  605. X_PRE_LIBS
  606. X_CFLAGS
  607. XMKMF
  608. ARTSCONFIG
  609. ESD_LIBS
  610. ESD_CFLAGS
  611. ESD_CONFIG
  612. PKG_CONFIG
  613. ALSA_LIBS
  614. ALSA_CFLAGS
  615. POW_LIB
  616. LIBOBJS
  617. ALLOCA
  618. WINDRES
  619. SET_MAKE
  620. INSTALL_DATA
  621. INSTALL_SCRIPT
  622. INSTALL_PROGRAM
  623. CXXCPP
  624. ac_ct_CXX
  625. CXXFLAGS
  626. CXX
  627. LT_AGE
  628. LT_REVISION
  629. LT_CURRENT
  630. LT_RELEASE
  631. CPP
  632. OTOOL64
  633. OTOOL
  634. LIPO
  635. NMEDIT
  636. DSYMUTIL
  637. MANIFEST_TOOL
  638. AWK
  639. RANLIB
  640. STRIP
  641. ac_ct_AR
  642. AR
  643. LN_S
  644. NM
  645. ac_ct_DUMPBIN
  646. DUMPBIN
  647. LD
  648. FGREP
  649. EGREP
  650. GREP
  651. SED
  652. OBJEXT
  653. EXEEXT
  654. ac_ct_CC
  655. CPPFLAGS
  656. LDFLAGS
  657. CFLAGS
  658. CC
  659. host_os
  660. host_vendor
  661. host_cpu
  662. host
  663. build_os
  664. build_vendor
  665. build_cpu
  666. build
  667. LIBTOOL
  668. OBJDUMP
  669. DLLTOOL
  670. AS
  671. SDL_VERSION
  672. SDL_BINARY_AGE
  673. SDL_INTERFACE_AGE
  674. SDL_MICRO_VERSION
  675. SDL_MINOR_VERSION
  676. SDL_MAJOR_VERSION
  677. target_alias
  678. host_alias
  679. build_alias
  680. LIBS
  681. ECHO_T
  682. ECHO_N
  683. ECHO_C
  684. DEFS
  685. mandir
  686. localedir
  687. libdir
  688. psdir
  689. pdfdir
  690. dvidir
  691. htmldir
  692. infodir
  693. docdir
  694. oldincludedir
  695. includedir
  696. localstatedir
  697. sharedstatedir
  698. sysconfdir
  699. datadir
  700. datarootdir
  701. libexecdir
  702. sbindir
  703. bindir
  704. program_transform_name
  705. prefix
  706. exec_prefix
  707. PACKAGE_URL
  708. PACKAGE_BUGREPORT
  709. PACKAGE_STRING
  710. PACKAGE_VERSION
  711. PACKAGE_TARNAME
  712. PACKAGE_NAME
  713. PATH_SEPARATOR
  714. SHELL'
  715. ac_subst_files=''
  716. ac_user_opts='
  717. enable_option_checking
  718. enable_shared
  719. enable_static
  720. with_pic
  721. enable_fast_install
  722. with_gnu_ld
  723. with_sysroot
  724. enable_libtool_lock
  725. enable_assertions
  726. enable_dependency_tracking
  727. enable_libc
  728. enable_gcc_atomics
  729. enable_atomic
  730. enable_audio
  731. enable_video
  732. enable_render
  733. enable_events
  734. enable_joystick
  735. enable_haptic
  736. enable_sensor
  737. enable_power
  738. enable_filesystem
  739. enable_threads
  740. enable_timers
  741. enable_file
  742. enable_loadso
  743. enable_cpuinfo
  744. enable_assembly
  745. enable_ssemath
  746. enable_mmx
  747. enable_3dnow
  748. enable_sse
  749. enable_sse2
  750. enable_sse3
  751. enable_altivec
  752. enable_oss
  753. enable_alsa
  754. with_alsa_prefix
  755. with_alsa_inc_prefix
  756. enable_alsatest
  757. enable_alsa_shared
  758. enable_jack
  759. enable_jack_shared
  760. enable_esd
  761. with_esd_prefix
  762. with_esd_exec_prefix
  763. enable_esdtest
  764. enable_esd_shared
  765. enable_pulseaudio
  766. enable_pulseaudio_shared
  767. enable_arts
  768. enable_arts_shared
  769. enable_nas
  770. enable_nas_shared
  771. enable_sndio
  772. enable_sndio_shared
  773. enable_fusionsound
  774. enable_fusionsound_shared
  775. enable_diskaudio
  776. enable_dummyaudio
  777. enable_libsamplerate
  778. enable_libsamplerate_shared
  779. enable_video_wayland
  780. enable_video_wayland_qt_touch
  781. enable_wayland_shared
  782. enable_video_rpi
  783. enable_video_x11
  784. with_x
  785. enable_x11_shared
  786. enable_video_x11_xcursor
  787. enable_video_x11_xdbe
  788. enable_video_x11_xinerama
  789. enable_video_x11_xinput
  790. enable_video_x11_xrandr
  791. enable_video_x11_scrnsaver
  792. enable_video_x11_xshape
  793. enable_video_x11_vm
  794. enable_video_vivante
  795. enable_video_cocoa
  796. enable_render_metal
  797. enable_video_directfb
  798. enable_directfb_shared
  799. enable_video_kmsdrm
  800. enable_kmsdrm_shared
  801. enable_video_dummy
  802. enable_video_opengl
  803. enable_video_opengles
  804. enable_video_opengles1
  805. enable_video_opengles2
  806. enable_video_vulkan
  807. enable_libudev
  808. enable_dbus
  809. enable_ime
  810. enable_ibus
  811. enable_fcitx
  812. enable_input_tslib
  813. enable_pthreads
  814. enable_pthread_sem
  815. enable_directx
  816. enable_wasapi
  817. enable_sdl_dlopen
  818. enable_hidapi
  819. enable_clock_gettime
  820. enable_rpath
  821. enable_render_d3d
  822. '
  823. ac_precious_vars='build_alias
  824. host_alias
  825. target_alias
  826. CC
  827. CFLAGS
  828. LDFLAGS
  829. LIBS
  830. CPPFLAGS
  831. CPP
  832. CXX
  833. CXXFLAGS
  834. CCC
  835. CXXCPP
  836. XMKMF'
  837. # Initialize some variables set by options.
  838. ac_init_help=
  839. ac_init_version=false
  840. ac_unrecognized_opts=
  841. ac_unrecognized_sep=
  842. # The variables have the same names as the options, with
  843. # dashes changed to underlines.
  844. cache_file=/dev/null
  845. exec_prefix=NONE
  846. no_create=
  847. no_recursion=
  848. prefix=NONE
  849. program_prefix=NONE
  850. program_suffix=NONE
  851. program_transform_name=s,x,x,
  852. silent=
  853. site=
  854. srcdir=
  855. verbose=
  856. x_includes=NONE
  857. x_libraries=NONE
  858. # Installation directory options.
  859. # These are left unexpanded so users can "make install exec_prefix=/foo"
  860. # and all the variables that are supposed to be based on exec_prefix
  861. # by default will actually change.
  862. # Use braces instead of parens because sh, perl, etc. also accept them.
  863. # (The list follows the same order as the GNU Coding Standards.)
  864. bindir='${exec_prefix}/bin'
  865. sbindir='${exec_prefix}/sbin'
  866. libexecdir='${exec_prefix}/libexec'
  867. datarootdir='${prefix}/share'
  868. datadir='${datarootdir}'
  869. sysconfdir='${prefix}/etc'
  870. sharedstatedir='${prefix}/com'
  871. localstatedir='${prefix}/var'
  872. includedir='${prefix}/include'
  873. oldincludedir='/usr/include'
  874. docdir='${datarootdir}/doc/${PACKAGE}'
  875. infodir='${datarootdir}/info'
  876. htmldir='${docdir}'
  877. dvidir='${docdir}'
  878. pdfdir='${docdir}'
  879. psdir='${docdir}'
  880. libdir='${exec_prefix}/lib'
  881. localedir='${datarootdir}/locale'
  882. mandir='${datarootdir}/man'
  883. ac_prev=
  884. ac_dashdash=
  885. for ac_option
  886. do
  887. # If the previous option needs an argument, assign it.
  888. if test -n "$ac_prev"; then
  889. eval $ac_prev=\$ac_option
  890. ac_prev=
  891. continue
  892. fi
  893. case $ac_option in
  894. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  895. *=) ac_optarg= ;;
  896. *) ac_optarg=yes ;;
  897. esac
  898. # Accept the important Cygnus configure options, so we can diagnose typos.
  899. case $ac_dashdash$ac_option in
  900. --)
  901. ac_dashdash=yes ;;
  902. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  903. ac_prev=bindir ;;
  904. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  905. bindir=$ac_optarg ;;
  906. -build | --build | --buil | --bui | --bu)
  907. ac_prev=build_alias ;;
  908. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  909. build_alias=$ac_optarg ;;
  910. -cache-file | --cache-file | --cache-fil | --cache-fi \
  911. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  912. ac_prev=cache_file ;;
  913. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  914. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  915. cache_file=$ac_optarg ;;
  916. --config-cache | -C)
  917. cache_file=config.cache ;;
  918. -datadir | --datadir | --datadi | --datad)
  919. ac_prev=datadir ;;
  920. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  921. datadir=$ac_optarg ;;
  922. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  923. | --dataroo | --dataro | --datar)
  924. ac_prev=datarootdir ;;
  925. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  926. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  927. datarootdir=$ac_optarg ;;
  928. -disable-* | --disable-*)
  929. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  930. # Reject names that are not valid shell variable names.
  931. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  932. as_fn_error $? "invalid feature name: $ac_useropt"
  933. ac_useropt_orig=$ac_useropt
  934. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  935. case $ac_user_opts in
  936. *"
  937. "enable_$ac_useropt"
  938. "*) ;;
  939. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  940. ac_unrecognized_sep=', ';;
  941. esac
  942. eval enable_$ac_useropt=no ;;
  943. -docdir | --docdir | --docdi | --doc | --do)
  944. ac_prev=docdir ;;
  945. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  946. docdir=$ac_optarg ;;
  947. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  948. ac_prev=dvidir ;;
  949. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  950. dvidir=$ac_optarg ;;
  951. -enable-* | --enable-*)
  952. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  953. # Reject names that are not valid shell variable names.
  954. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  955. as_fn_error $? "invalid feature name: $ac_useropt"
  956. ac_useropt_orig=$ac_useropt
  957. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  958. case $ac_user_opts in
  959. *"
  960. "enable_$ac_useropt"
  961. "*) ;;
  962. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  963. ac_unrecognized_sep=', ';;
  964. esac
  965. eval enable_$ac_useropt=\$ac_optarg ;;
  966. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  967. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  968. | --exec | --exe | --ex)
  969. ac_prev=exec_prefix ;;
  970. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  971. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  972. | --exec=* | --exe=* | --ex=*)
  973. exec_prefix=$ac_optarg ;;
  974. -gas | --gas | --ga | --g)
  975. # Obsolete; use --with-gas.
  976. with_gas=yes ;;
  977. -help | --help | --hel | --he | -h)
  978. ac_init_help=long ;;
  979. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  980. ac_init_help=recursive ;;
  981. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  982. ac_init_help=short ;;
  983. -host | --host | --hos | --ho)
  984. ac_prev=host_alias ;;
  985. -host=* | --host=* | --hos=* | --ho=*)
  986. host_alias=$ac_optarg ;;
  987. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  988. ac_prev=htmldir ;;
  989. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  990. | --ht=*)
  991. htmldir=$ac_optarg ;;
  992. -includedir | --includedir | --includedi | --included | --include \
  993. | --includ | --inclu | --incl | --inc)
  994. ac_prev=includedir ;;
  995. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  996. | --includ=* | --inclu=* | --incl=* | --inc=*)
  997. includedir=$ac_optarg ;;
  998. -infodir | --infodir | --infodi | --infod | --info | --inf)
  999. ac_prev=infodir ;;
  1000. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1001. infodir=$ac_optarg ;;
  1002. -libdir | --libdir | --libdi | --libd)
  1003. ac_prev=libdir ;;
  1004. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1005. libdir=$ac_optarg ;;
  1006. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1007. | --libexe | --libex | --libe)
  1008. ac_prev=libexecdir ;;
  1009. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1010. | --libexe=* | --libex=* | --libe=*)
  1011. libexecdir=$ac_optarg ;;
  1012. -localedir | --localedir | --localedi | --localed | --locale)
  1013. ac_prev=localedir ;;
  1014. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1015. localedir=$ac_optarg ;;
  1016. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1017. | --localstate | --localstat | --localsta | --localst | --locals)
  1018. ac_prev=localstatedir ;;
  1019. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1020. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1021. localstatedir=$ac_optarg ;;
  1022. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1023. ac_prev=mandir ;;
  1024. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1025. mandir=$ac_optarg ;;
  1026. -nfp | --nfp | --nf)
  1027. # Obsolete; use --without-fp.
  1028. with_fp=no ;;
  1029. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1030. | --no-cr | --no-c | -n)
  1031. no_create=yes ;;
  1032. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1033. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1034. no_recursion=yes ;;
  1035. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1036. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1037. | --oldin | --oldi | --old | --ol | --o)
  1038. ac_prev=oldincludedir ;;
  1039. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1040. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1041. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1042. oldincludedir=$ac_optarg ;;
  1043. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1044. ac_prev=prefix ;;
  1045. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1046. prefix=$ac_optarg ;;
  1047. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1048. | --program-pre | --program-pr | --program-p)
  1049. ac_prev=program_prefix ;;
  1050. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1051. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1052. program_prefix=$ac_optarg ;;
  1053. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1054. | --program-suf | --program-su | --program-s)
  1055. ac_prev=program_suffix ;;
  1056. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1057. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1058. program_suffix=$ac_optarg ;;
  1059. -program-transform-name | --program-transform-name \
  1060. | --program-transform-nam | --program-transform-na \
  1061. | --program-transform-n | --program-transform- \
  1062. | --program-transform | --program-transfor \
  1063. | --program-transfo | --program-transf \
  1064. | --program-trans | --program-tran \
  1065. | --progr-tra | --program-tr | --program-t)
  1066. ac_prev=program_transform_name ;;
  1067. -program-transform-name=* | --program-transform-name=* \
  1068. | --program-transform-nam=* | --program-transform-na=* \
  1069. | --program-transform-n=* | --program-transform-=* \
  1070. | --program-transform=* | --program-transfor=* \
  1071. | --program-transfo=* | --program-transf=* \
  1072. | --program-trans=* | --program-tran=* \
  1073. | --progr-tra=* | --program-tr=* | --program-t=*)
  1074. program_transform_name=$ac_optarg ;;
  1075. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1076. ac_prev=pdfdir ;;
  1077. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1078. pdfdir=$ac_optarg ;;
  1079. -psdir | --psdir | --psdi | --psd | --ps)
  1080. ac_prev=psdir ;;
  1081. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1082. psdir=$ac_optarg ;;
  1083. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1084. | -silent | --silent | --silen | --sile | --sil)
  1085. silent=yes ;;
  1086. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1087. ac_prev=sbindir ;;
  1088. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1089. | --sbi=* | --sb=*)
  1090. sbindir=$ac_optarg ;;
  1091. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1092. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1093. | --sharedst | --shareds | --shared | --share | --shar \
  1094. | --sha | --sh)
  1095. ac_prev=sharedstatedir ;;
  1096. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1097. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1098. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1099. | --sha=* | --sh=*)
  1100. sharedstatedir=$ac_optarg ;;
  1101. -site | --site | --sit)
  1102. ac_prev=site ;;
  1103. -site=* | --site=* | --sit=*)
  1104. site=$ac_optarg ;;
  1105. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1106. ac_prev=srcdir ;;
  1107. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1108. srcdir=$ac_optarg ;;
  1109. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1110. | --syscon | --sysco | --sysc | --sys | --sy)
  1111. ac_prev=sysconfdir ;;
  1112. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1113. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1114. sysconfdir=$ac_optarg ;;
  1115. -target | --target | --targe | --targ | --tar | --ta | --t)
  1116. ac_prev=target_alias ;;
  1117. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1118. target_alias=$ac_optarg ;;
  1119. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1120. verbose=yes ;;
  1121. -version | --version | --versio | --versi | --vers | -V)
  1122. ac_init_version=: ;;
  1123. -with-* | --with-*)
  1124. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1125. # Reject names that are not valid shell variable names.
  1126. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1127. as_fn_error $? "invalid package name: $ac_useropt"
  1128. ac_useropt_orig=$ac_useropt
  1129. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1130. case $ac_user_opts in
  1131. *"
  1132. "with_$ac_useropt"
  1133. "*) ;;
  1134. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1135. ac_unrecognized_sep=', ';;
  1136. esac
  1137. eval with_$ac_useropt=\$ac_optarg ;;
  1138. -without-* | --without-*)
  1139. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1140. # Reject names that are not valid shell variable names.
  1141. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1142. as_fn_error $? "invalid package name: $ac_useropt"
  1143. ac_useropt_orig=$ac_useropt
  1144. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1145. case $ac_user_opts in
  1146. *"
  1147. "with_$ac_useropt"
  1148. "*) ;;
  1149. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1150. ac_unrecognized_sep=', ';;
  1151. esac
  1152. eval with_$ac_useropt=no ;;
  1153. --x)
  1154. # Obsolete; use --with-x.
  1155. with_x=yes ;;
  1156. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1157. | --x-incl | --x-inc | --x-in | --x-i)
  1158. ac_prev=x_includes ;;
  1159. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1160. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1161. x_includes=$ac_optarg ;;
  1162. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1163. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1164. ac_prev=x_libraries ;;
  1165. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1166. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1167. x_libraries=$ac_optarg ;;
  1168. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1169. Try \`$0 --help' for more information"
  1170. ;;
  1171. *=*)
  1172. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1173. # Reject names that are not valid shell variable names.
  1174. case $ac_envvar in #(
  1175. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1176. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1177. esac
  1178. eval $ac_envvar=\$ac_optarg
  1179. export $ac_envvar ;;
  1180. *)
  1181. # FIXME: should be removed in autoconf 3.0.
  1182. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1183. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1184. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1185. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1186. ;;
  1187. esac
  1188. done
  1189. if test -n "$ac_prev"; then
  1190. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1191. as_fn_error $? "missing argument to $ac_option"
  1192. fi
  1193. if test -n "$ac_unrecognized_opts"; then
  1194. case $enable_option_checking in
  1195. no) ;;
  1196. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1197. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1198. esac
  1199. fi
  1200. # Check all directory arguments for consistency.
  1201. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1202. datadir sysconfdir sharedstatedir localstatedir includedir \
  1203. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1204. libdir localedir mandir
  1205. do
  1206. eval ac_val=\$$ac_var
  1207. # Remove trailing slashes.
  1208. case $ac_val in
  1209. */ )
  1210. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1211. eval $ac_var=\$ac_val;;
  1212. esac
  1213. # Be sure to have absolute directory names.
  1214. case $ac_val in
  1215. [\\/$]* | ?:[\\/]* ) continue;;
  1216. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1217. esac
  1218. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1219. done
  1220. # There might be people who depend on the old broken behavior: `$host'
  1221. # used to hold the argument of --host etc.
  1222. # FIXME: To remove some day.
  1223. build=$build_alias
  1224. host=$host_alias
  1225. target=$target_alias
  1226. # FIXME: To remove some day.
  1227. if test "x$host_alias" != x; then
  1228. if test "x$build_alias" = x; then
  1229. cross_compiling=maybe
  1230. elif test "x$build_alias" != "x$host_alias"; then
  1231. cross_compiling=yes
  1232. fi
  1233. fi
  1234. ac_tool_prefix=
  1235. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1236. test "$silent" = yes && exec 6>/dev/null
  1237. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1238. ac_ls_di=`ls -di .` &&
  1239. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1240. as_fn_error $? "working directory cannot be determined"
  1241. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1242. as_fn_error $? "pwd does not report name of working directory"
  1243. # Find the source files, if location was not specified.
  1244. if test -z "$srcdir"; then
  1245. ac_srcdir_defaulted=yes
  1246. # Try the directory containing this script, then the parent directory.
  1247. ac_confdir=`$as_dirname -- "$as_myself" ||
  1248. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1249. X"$as_myself" : 'X\(//\)[^/]' \| \
  1250. X"$as_myself" : 'X\(//\)$' \| \
  1251. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1252. $as_echo X"$as_myself" |
  1253. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1254. s//\1/
  1255. q
  1256. }
  1257. /^X\(\/\/\)[^/].*/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\/\)$/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\).*/{
  1266. s//\1/
  1267. q
  1268. }
  1269. s/.*/./; q'`
  1270. srcdir=$ac_confdir
  1271. if test ! -r "$srcdir/$ac_unique_file"; then
  1272. srcdir=..
  1273. fi
  1274. else
  1275. ac_srcdir_defaulted=no
  1276. fi
  1277. if test ! -r "$srcdir/$ac_unique_file"; then
  1278. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1279. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1280. fi
  1281. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1282. ac_abs_confdir=`(
  1283. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1284. pwd)`
  1285. # When building in place, set srcdir=.
  1286. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1287. srcdir=.
  1288. fi
  1289. # Remove unnecessary trailing slashes from srcdir.
  1290. # Double slashes in file names in object file debugging info
  1291. # mess up M-x gdb in Emacs.
  1292. case $srcdir in
  1293. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1294. esac
  1295. for ac_var in $ac_precious_vars; do
  1296. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1297. eval ac_env_${ac_var}_value=\$${ac_var}
  1298. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1300. done
  1301. #
  1302. # Report the --help message.
  1303. #
  1304. if test "$ac_init_help" = "long"; then
  1305. # Omit some internal or obsolete options to make the list less imposing.
  1306. # This message is too long to be a string in the A/UX 3.1 sh.
  1307. cat <<_ACEOF
  1308. \`configure' configures this package to adapt to many kinds of systems.
  1309. Usage: $0 [OPTION]... [VAR=VALUE]...
  1310. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1311. VAR=VALUE. See below for descriptions of some of the useful variables.
  1312. Defaults for the options are specified in brackets.
  1313. Configuration:
  1314. -h, --help display this help and exit
  1315. --help=short display options specific to this package
  1316. --help=recursive display the short help of all the included packages
  1317. -V, --version display version information and exit
  1318. -q, --quiet, --silent do not print \`checking ...' messages
  1319. --cache-file=FILE cache test results in FILE [disabled]
  1320. -C, --config-cache alias for \`--cache-file=config.cache'
  1321. -n, --no-create do not create output files
  1322. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1323. Installation directories:
  1324. --prefix=PREFIX install architecture-independent files in PREFIX
  1325. [$ac_default_prefix]
  1326. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1327. [PREFIX]
  1328. By default, \`make install' will install all the files in
  1329. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1330. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1331. for instance \`--prefix=\$HOME'.
  1332. For better control, use the options below.
  1333. Fine tuning of the installation directories:
  1334. --bindir=DIR user executables [EPREFIX/bin]
  1335. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1336. --libexecdir=DIR program executables [EPREFIX/libexec]
  1337. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1338. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1339. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1340. --libdir=DIR object code libraries [EPREFIX/lib]
  1341. --includedir=DIR C header files [PREFIX/include]
  1342. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1343. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1344. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1345. --infodir=DIR info documentation [DATAROOTDIR/info]
  1346. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1347. --mandir=DIR man documentation [DATAROOTDIR/man]
  1348. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1349. --htmldir=DIR html documentation [DOCDIR]
  1350. --dvidir=DIR dvi documentation [DOCDIR]
  1351. --pdfdir=DIR pdf documentation [DOCDIR]
  1352. --psdir=DIR ps documentation [DOCDIR]
  1353. _ACEOF
  1354. cat <<\_ACEOF
  1355. X features:
  1356. --x-includes=DIR X include files are in DIR
  1357. --x-libraries=DIR X library files are in DIR
  1358. System types:
  1359. --build=BUILD configure for building on BUILD [guessed]
  1360. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1361. _ACEOF
  1362. fi
  1363. if test -n "$ac_init_help"; then
  1364. cat <<\_ACEOF
  1365. Optional Features:
  1366. --disable-option-checking ignore unrecognized --enable/--with options
  1367. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1368. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1369. --enable-shared[=PKGS] build shared libraries [default=yes]
  1370. --enable-static[=PKGS] build static libraries [default=yes]
  1371. --enable-fast-install[=PKGS]
  1372. optimize for fast installation [default=yes]
  1373. --disable-libtool-lock avoid locking (might break parallel builds)
  1374. --enable-assertions Enable internal sanity checks
  1375. (auto/disabled/release/enabled/paranoid)
  1376. [[default=auto]]
  1377. --enable-dependency-tracking
  1378. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1379. --enable-libc Use the system C library [[default=yes]]
  1380. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1381. --enable-atomic Enable the atomic operations subsystem
  1382. [[default=yes]]
  1383. --enable-audio Enable the audio subsystem [[default=yes]]
  1384. --enable-video Enable the video subsystem [[default=yes]]
  1385. --enable-render Enable the render subsystem [[default=yes]]
  1386. --enable-events Enable the events subsystem [[default=yes]]
  1387. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1388. --enable-haptic Enable the haptic (force feedback) subsystem
  1389. [[default=yes]]
  1390. --enable-sensor Enable the sensor subsystem [[default=yes]]
  1391. --enable-power Enable the power subsystem [[default=yes]]
  1392. --enable-filesystem Enable the filesystem subsystem [[default=yes]]
  1393. --enable-threads Enable the threading subsystem [[default=yes]]
  1394. --enable-timers Enable the timer subsystem [[default=yes]]
  1395. --enable-file Enable the file subsystem [[default=yes]]
  1396. --enable-loadso Enable the shared object loading subsystem
  1397. [[default=yes]]
  1398. --enable-cpuinfo Enable the cpuinfo subsystem [[default=yes]]
  1399. --enable-assembly Enable assembly routines [[default=yes]]
  1400. --enable-ssemath Allow GCC to use SSE floating point math
  1401. [[default=maybe]]
  1402. --enable-mmx use MMX assembly routines [[default=yes]]
  1403. --enable-3dnow use 3DNow! assembly routines [[default=yes]]
  1404. --enable-sse use SSE assembly routines [[default=yes]]
  1405. --enable-sse2 use SSE2 assembly routines [[default=maybe]]
  1406. --enable-sse3 use SSE3 assembly routines [[default=maybe]]
  1407. --enable-altivec use Altivec assembly routines [[default=yes]]
  1408. --enable-oss support the OSS audio API [[default=maybe]]
  1409. --enable-alsa support the ALSA audio API [[default=yes]]
  1410. --disable-alsatest Do not try to compile and run a test Alsa program
  1411. --enable-alsa-shared dynamically load ALSA audio support [[default=yes]]
  1412. --enable-jack use JACK audio [[default=yes]]
  1413. --enable-jack-shared dynamically load JACK audio support [[default=yes]]
  1414. --enable-esd support the Enlightened Sound Daemon [[default=yes]]
  1415. --disable-esdtest Do not try to compile and run a test ESD program
  1416. --enable-esd-shared dynamically load ESD audio support [[default=yes]]
  1417. --enable-pulseaudio use PulseAudio [[default=yes]]
  1418. --enable-pulseaudio-shared
  1419. dynamically load PulseAudio support [[default=yes]]
  1420. --enable-arts support the Analog Real Time Synthesizer
  1421. [[default=yes]]
  1422. --enable-arts-shared dynamically load aRts audio support [[default=yes]]
  1423. --enable-nas support the NAS audio API [[default=yes]]
  1424. --enable-nas-shared dynamically load NAS audio support [[default=yes]]
  1425. --enable-sndio support the sndio audio API [[default=yes]]
  1426. --enable-sndio-shared dynamically load sndio audio support [[default=yes]]
  1427. --enable-fusionsound use FusionSound audio driver [[default=no]]
  1428. --enable-fusionsound-shared
  1429. dynamically load fusionsound audio support
  1430. [[default=yes]]
  1431. --enable-diskaudio support the disk writer audio driver [[default=yes]]
  1432. --enable-dummyaudio support the dummy audio driver [[default=yes]]
  1433. --enable-libsamplerate use libsamplerate for audio rate conversion
  1434. [[default=yes]]
  1435. --enable-libsamplerate-shared
  1436. dynamically load libsamplerate [[default=yes]]
  1437. --enable-video-wayland use Wayland video driver [[default=yes]]
  1438. --enable-video-wayland-qt-touch
  1439. QtWayland server support for Wayland video driver
  1440. [[default=yes]]
  1441. --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1442. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1443. --enable-video-x11 use X11 video driver [[default=yes]]
  1444. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1445. --enable-video-x11-xcursor
  1446. enable X11 Xcursor support [[default=yes]]
  1447. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1448. --enable-video-x11-xinerama
  1449. enable X11 Xinerama support [[default=yes]]
  1450. --enable-video-x11-xinput
  1451. enable X11 XInput extension for manymouse, tablets,
  1452. etc [[default=yes]]
  1453. --enable-video-x11-xrandr
  1454. enable X11 Xrandr extension for fullscreen
  1455. [[default=yes]]
  1456. --enable-video-x11-scrnsaver
  1457. enable X11 screensaver extension [[default=yes]]
  1458. --enable-video-x11-xshape
  1459. enable X11 XShape support [[default=yes]]
  1460. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1461. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1462. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1463. --enable-render-metal enable the Metal render driver [[default=yes]]
  1464. --enable-video-directfb use DirectFB video driver [[default=no]]
  1465. --enable-directfb-shared
  1466. dynamically load directfb support [[default=yes]]
  1467. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1468. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1469. --enable-video-dummy use dummy video driver [[default=yes]]
  1470. --enable-video-opengl include OpenGL support [[default=yes]]
  1471. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1472. --enable-video-opengles1
  1473. include OpenGL ES 1.1 support [[default=yes]]
  1474. --enable-video-opengles2
  1475. include OpenGL ES 2.0 support [[default=yes]]
  1476. --enable-video-vulkan include Vulkan support [[default=yes]]
  1477. --enable-libudev enable libudev support [[default=yes]]
  1478. --enable-dbus enable D-Bus support [[default=yes]]
  1479. --enable-ime enable IME support [[default=yes]]
  1480. --enable-ibus enable IBus support [[default=yes]]
  1481. --enable-fcitx enable fcitx support [[default=yes]]
  1482. --enable-input-tslib use the Touchscreen library for input
  1483. [[default=yes]]
  1484. --enable-pthreads use POSIX threads for multi-threading
  1485. [[default=yes]]
  1486. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1487. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1488. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1489. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1490. --enable-hidapi use HIDAPI for low level joystick drivers
  1491. [[default=no]]
  1492. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1493. UNIX [[default=yes]]
  1494. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1495. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1496. Optional Packages:
  1497. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1498. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1499. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1500. both]
  1501. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1502. --with-sysroot=DIR Search for dependent libraries within DIR
  1503. (or the compiler's sysroot if not specified).
  1504. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1505. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1506. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1507. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1508. --with-x use the X Window System
  1509. Some influential environment variables:
  1510. CC C compiler command
  1511. CFLAGS C compiler flags
  1512. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1513. nonstandard directory <lib dir>
  1514. LIBS libraries to pass to the linker, e.g. -l<library>
  1515. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1516. you have headers in a nonstandard directory <include dir>
  1517. CPP C preprocessor
  1518. CXX C++ compiler command
  1519. CXXFLAGS C++ compiler flags
  1520. CXXCPP C++ preprocessor
  1521. XMKMF Path to xmkmf, Makefile generator for X Window System
  1522. Use these variables to override the choices made by `configure' or to help
  1523. it to find libraries and programs with nonstandard names/locations.
  1524. Report bugs to the package provider.
  1525. _ACEOF
  1526. ac_status=$?
  1527. fi
  1528. if test "$ac_init_help" = "recursive"; then
  1529. # If there are subdirs, report their specific --help.
  1530. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1531. test -d "$ac_dir" ||
  1532. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1533. continue
  1534. ac_builddir=.
  1535. case "$ac_dir" in
  1536. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1537. *)
  1538. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1539. # A ".." for each directory in $ac_dir_suffix.
  1540. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1541. case $ac_top_builddir_sub in
  1542. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1543. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1544. esac ;;
  1545. esac
  1546. ac_abs_top_builddir=$ac_pwd
  1547. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1548. # for backward compatibility:
  1549. ac_top_builddir=$ac_top_build_prefix
  1550. case $srcdir in
  1551. .) # We are building in place.
  1552. ac_srcdir=.
  1553. ac_top_srcdir=$ac_top_builddir_sub
  1554. ac_abs_top_srcdir=$ac_pwd ;;
  1555. [\\/]* | ?:[\\/]* ) # Absolute name.
  1556. ac_srcdir=$srcdir$ac_dir_suffix;
  1557. ac_top_srcdir=$srcdir
  1558. ac_abs_top_srcdir=$srcdir ;;
  1559. *) # Relative name.
  1560. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1561. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1562. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1563. esac
  1564. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1565. cd "$ac_dir" || { ac_status=$?; continue; }
  1566. # Check for guested configure.
  1567. if test -f "$ac_srcdir/configure.gnu"; then
  1568. echo &&
  1569. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1570. elif test -f "$ac_srcdir/configure"; then
  1571. echo &&
  1572. $SHELL "$ac_srcdir/configure" --help=recursive
  1573. else
  1574. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1575. fi || ac_status=$?
  1576. cd "$ac_pwd" || { ac_status=$?; break; }
  1577. done
  1578. fi
  1579. test -n "$ac_init_help" && exit $ac_status
  1580. if $ac_init_version; then
  1581. cat <<\_ACEOF
  1582. configure
  1583. generated by GNU Autoconf 2.69
  1584. Copyright (C) 2012 Free Software Foundation, Inc.
  1585. This configure script is free software; the Free Software Foundation
  1586. gives unlimited permission to copy, distribute and modify it.
  1587. _ACEOF
  1588. exit
  1589. fi
  1590. ## ------------------------ ##
  1591. ## Autoconf initialization. ##
  1592. ## ------------------------ ##
  1593. # ac_fn_c_try_compile LINENO
  1594. # --------------------------
  1595. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1596. ac_fn_c_try_compile ()
  1597. {
  1598. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1599. rm -f conftest.$ac_objext
  1600. if { { ac_try="$ac_compile"
  1601. case "(($ac_try" in
  1602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1603. *) ac_try_echo=$ac_try;;
  1604. esac
  1605. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1606. $as_echo "$ac_try_echo"; } >&5
  1607. (eval "$ac_compile") 2>conftest.err
  1608. ac_status=$?
  1609. if test -s conftest.err; then
  1610. grep -v '^ *+' conftest.err >conftest.er1
  1611. cat conftest.er1 >&5
  1612. mv -f conftest.er1 conftest.err
  1613. fi
  1614. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1615. test $ac_status = 0; } && {
  1616. test -z "$ac_c_werror_flag" ||
  1617. test ! -s conftest.err
  1618. } && test -s conftest.$ac_objext; then :
  1619. ac_retval=0
  1620. else
  1621. $as_echo "$as_me: failed program was:" >&5
  1622. sed 's/^/| /' conftest.$ac_ext >&5
  1623. ac_retval=1
  1624. fi
  1625. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1626. as_fn_set_status $ac_retval
  1627. } # ac_fn_c_try_compile
  1628. # ac_fn_c_try_link LINENO
  1629. # -----------------------
  1630. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1631. ac_fn_c_try_link ()
  1632. {
  1633. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1634. rm -f conftest.$ac_objext conftest$ac_exeext
  1635. if { { ac_try="$ac_link"
  1636. case "(($ac_try" in
  1637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1638. *) ac_try_echo=$ac_try;;
  1639. esac
  1640. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1641. $as_echo "$ac_try_echo"; } >&5
  1642. (eval "$ac_link") 2>conftest.err
  1643. ac_status=$?
  1644. if test -s conftest.err; then
  1645. grep -v '^ *+' conftest.err >conftest.er1
  1646. cat conftest.er1 >&5
  1647. mv -f conftest.er1 conftest.err
  1648. fi
  1649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1650. test $ac_status = 0; } && {
  1651. test -z "$ac_c_werror_flag" ||
  1652. test ! -s conftest.err
  1653. } && test -s conftest$ac_exeext && {
  1654. test "$cross_compiling" = yes ||
  1655. test -x conftest$ac_exeext
  1656. }; then :
  1657. ac_retval=0
  1658. else
  1659. $as_echo "$as_me: failed program was:" >&5
  1660. sed 's/^/| /' conftest.$ac_ext >&5
  1661. ac_retval=1
  1662. fi
  1663. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1664. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1665. # interfere with the next link command; also delete a directory that is
  1666. # left behind by Apple's compiler. We do this before executing the actions.
  1667. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1668. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1669. as_fn_set_status $ac_retval
  1670. } # ac_fn_c_try_link
  1671. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1672. # -------------------------------------------------------
  1673. # Tests whether HEADER exists and can be compiled using the include files in
  1674. # INCLUDES, setting the cache variable VAR accordingly.
  1675. ac_fn_c_check_header_compile ()
  1676. {
  1677. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1679. $as_echo_n "checking for $2... " >&6; }
  1680. if eval \${$3+:} false; then :
  1681. $as_echo_n "(cached) " >&6
  1682. else
  1683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1684. /* end confdefs.h. */
  1685. $4
  1686. #include <$2>
  1687. _ACEOF
  1688. if ac_fn_c_try_compile "$LINENO"; then :
  1689. eval "$3=yes"
  1690. else
  1691. eval "$3=no"
  1692. fi
  1693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1694. fi
  1695. eval ac_res=\$$3
  1696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1697. $as_echo "$ac_res" >&6; }
  1698. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1699. } # ac_fn_c_check_header_compile
  1700. # ac_fn_c_try_cpp LINENO
  1701. # ----------------------
  1702. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1703. ac_fn_c_try_cpp ()
  1704. {
  1705. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1706. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1707. case "(($ac_try" in
  1708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1709. *) ac_try_echo=$ac_try;;
  1710. esac
  1711. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1712. $as_echo "$ac_try_echo"; } >&5
  1713. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1714. ac_status=$?
  1715. if test -s conftest.err; then
  1716. grep -v '^ *+' conftest.err >conftest.er1
  1717. cat conftest.er1 >&5
  1718. mv -f conftest.er1 conftest.err
  1719. fi
  1720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1721. test $ac_status = 0; } > conftest.i && {
  1722. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1723. test ! -s conftest.err
  1724. }; then :
  1725. ac_retval=0
  1726. else
  1727. $as_echo "$as_me: failed program was:" >&5
  1728. sed 's/^/| /' conftest.$ac_ext >&5
  1729. ac_retval=1
  1730. fi
  1731. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1732. as_fn_set_status $ac_retval
  1733. } # ac_fn_c_try_cpp
  1734. # ac_fn_c_try_run LINENO
  1735. # ----------------------
  1736. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1737. # that executables *can* be run.
  1738. ac_fn_c_try_run ()
  1739. {
  1740. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1741. if { { ac_try="$ac_link"
  1742. case "(($ac_try" in
  1743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1744. *) ac_try_echo=$ac_try;;
  1745. esac
  1746. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1747. $as_echo "$ac_try_echo"; } >&5
  1748. (eval "$ac_link") 2>&5
  1749. ac_status=$?
  1750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1751. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1752. { { case "(($ac_try" in
  1753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1754. *) ac_try_echo=$ac_try;;
  1755. esac
  1756. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1757. $as_echo "$ac_try_echo"; } >&5
  1758. (eval "$ac_try") 2>&5
  1759. ac_status=$?
  1760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1761. test $ac_status = 0; }; }; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: program exited with status $ac_status" >&5
  1765. $as_echo "$as_me: failed program was:" >&5
  1766. sed 's/^/| /' conftest.$ac_ext >&5
  1767. ac_retval=$ac_status
  1768. fi
  1769. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1770. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1771. as_fn_set_status $ac_retval
  1772. } # ac_fn_c_try_run
  1773. # ac_fn_c_check_func LINENO FUNC VAR
  1774. # ----------------------------------
  1775. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1776. ac_fn_c_check_func ()
  1777. {
  1778. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1780. $as_echo_n "checking for $2... " >&6; }
  1781. if eval \${$3+:} false; then :
  1782. $as_echo_n "(cached) " >&6
  1783. else
  1784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1785. /* end confdefs.h. */
  1786. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1787. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1788. #define $2 innocuous_$2
  1789. /* System header to define __stub macros and hopefully few prototypes,
  1790. which can conflict with char $2 (); below.
  1791. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1792. <limits.h> exists even on freestanding compilers. */
  1793. #ifdef __STDC__
  1794. # include <limits.h>
  1795. #else
  1796. # include <assert.h>
  1797. #endif
  1798. #undef $2
  1799. /* Override any GCC internal prototype to avoid an error.
  1800. Use char because int might match the return type of a GCC
  1801. builtin and then its argument prototype would still apply. */
  1802. #ifdef __cplusplus
  1803. extern "C"
  1804. #endif
  1805. char $2 ();
  1806. /* The GNU C library defines this for functions which it implements
  1807. to always fail with ENOSYS. Some functions are actually named
  1808. something starting with __ and the normal name is an alias. */
  1809. #if defined __stub_$2 || defined __stub___$2
  1810. choke me
  1811. #endif
  1812. int
  1813. main ()
  1814. {
  1815. return $2 ();
  1816. ;
  1817. return 0;
  1818. }
  1819. _ACEOF
  1820. if ac_fn_c_try_link "$LINENO"; then :
  1821. eval "$3=yes"
  1822. else
  1823. eval "$3=no"
  1824. fi
  1825. rm -f core conftest.err conftest.$ac_objext \
  1826. conftest$ac_exeext conftest.$ac_ext
  1827. fi
  1828. eval ac_res=\$$3
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1830. $as_echo "$ac_res" >&6; }
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. } # ac_fn_c_check_func
  1833. # ac_fn_cxx_try_compile LINENO
  1834. # ----------------------------
  1835. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1836. ac_fn_cxx_try_compile ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. rm -f conftest.$ac_objext
  1840. if { { ac_try="$ac_compile"
  1841. case "(($ac_try" in
  1842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1843. *) ac_try_echo=$ac_try;;
  1844. esac
  1845. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1846. $as_echo "$ac_try_echo"; } >&5
  1847. (eval "$ac_compile") 2>conftest.err
  1848. ac_status=$?
  1849. if test -s conftest.err; then
  1850. grep -v '^ *+' conftest.err >conftest.er1
  1851. cat conftest.er1 >&5
  1852. mv -f conftest.er1 conftest.err
  1853. fi
  1854. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1855. test $ac_status = 0; } && {
  1856. test -z "$ac_cxx_werror_flag" ||
  1857. test ! -s conftest.err
  1858. } && test -s conftest.$ac_objext; then :
  1859. ac_retval=0
  1860. else
  1861. $as_echo "$as_me: failed program was:" >&5
  1862. sed 's/^/| /' conftest.$ac_ext >&5
  1863. ac_retval=1
  1864. fi
  1865. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1866. as_fn_set_status $ac_retval
  1867. } # ac_fn_cxx_try_compile
  1868. # ac_fn_cxx_try_cpp LINENO
  1869. # ------------------------
  1870. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1871. ac_fn_cxx_try_cpp ()
  1872. {
  1873. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1874. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1875. case "(($ac_try" in
  1876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1877. *) ac_try_echo=$ac_try;;
  1878. esac
  1879. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1880. $as_echo "$ac_try_echo"; } >&5
  1881. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1882. ac_status=$?
  1883. if test -s conftest.err; then
  1884. grep -v '^ *+' conftest.err >conftest.er1
  1885. cat conftest.er1 >&5
  1886. mv -f conftest.er1 conftest.err
  1887. fi
  1888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1889. test $ac_status = 0; } > conftest.i && {
  1890. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1891. test ! -s conftest.err
  1892. }; then :
  1893. ac_retval=0
  1894. else
  1895. $as_echo "$as_me: failed program was:" >&5
  1896. sed 's/^/| /' conftest.$ac_ext >&5
  1897. ac_retval=1
  1898. fi
  1899. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1900. as_fn_set_status $ac_retval
  1901. } # ac_fn_cxx_try_cpp
  1902. # ac_fn_cxx_try_link LINENO
  1903. # -------------------------
  1904. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1905. ac_fn_cxx_try_link ()
  1906. {
  1907. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1908. rm -f conftest.$ac_objext conftest$ac_exeext
  1909. if { { ac_try="$ac_link"
  1910. case "(($ac_try" in
  1911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1912. *) ac_try_echo=$ac_try;;
  1913. esac
  1914. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1915. $as_echo "$ac_try_echo"; } >&5
  1916. (eval "$ac_link") 2>conftest.err
  1917. ac_status=$?
  1918. if test -s conftest.err; then
  1919. grep -v '^ *+' conftest.err >conftest.er1
  1920. cat conftest.er1 >&5
  1921. mv -f conftest.er1 conftest.err
  1922. fi
  1923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1924. test $ac_status = 0; } && {
  1925. test -z "$ac_cxx_werror_flag" ||
  1926. test ! -s conftest.err
  1927. } && test -s conftest$ac_exeext && {
  1928. test "$cross_compiling" = yes ||
  1929. test -x conftest$ac_exeext
  1930. }; then :
  1931. ac_retval=0
  1932. else
  1933. $as_echo "$as_me: failed program was:" >&5
  1934. sed 's/^/| /' conftest.$ac_ext >&5
  1935. ac_retval=1
  1936. fi
  1937. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1938. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1939. # interfere with the next link command; also delete a directory that is
  1940. # left behind by Apple's compiler. We do this before executing the actions.
  1941. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1942. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1943. as_fn_set_status $ac_retval
  1944. } # ac_fn_cxx_try_link
  1945. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1946. # -------------------------------------------------------
  1947. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1948. # the include files in INCLUDES and setting the cache variable VAR
  1949. # accordingly.
  1950. ac_fn_c_check_header_mongrel ()
  1951. {
  1952. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1953. if eval \${$3+:} false; then :
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1955. $as_echo_n "checking for $2... " >&6; }
  1956. if eval \${$3+:} false; then :
  1957. $as_echo_n "(cached) " >&6
  1958. fi
  1959. eval ac_res=\$$3
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1961. $as_echo "$ac_res" >&6; }
  1962. else
  1963. # Is the header compilable?
  1964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1965. $as_echo_n "checking $2 usability... " >&6; }
  1966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1967. /* end confdefs.h. */
  1968. $4
  1969. #include <$2>
  1970. _ACEOF
  1971. if ac_fn_c_try_compile "$LINENO"; then :
  1972. ac_header_compiler=yes
  1973. else
  1974. ac_header_compiler=no
  1975. fi
  1976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1978. $as_echo "$ac_header_compiler" >&6; }
  1979. # Is the header present?
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1981. $as_echo_n "checking $2 presence... " >&6; }
  1982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1983. /* end confdefs.h. */
  1984. #include <$2>
  1985. _ACEOF
  1986. if ac_fn_c_try_cpp "$LINENO"; then :
  1987. ac_header_preproc=yes
  1988. else
  1989. ac_header_preproc=no
  1990. fi
  1991. rm -f conftest.err conftest.i conftest.$ac_ext
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1993. $as_echo "$ac_header_preproc" >&6; }
  1994. # So? What about this header?
  1995. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1996. yes:no: )
  1997. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1998. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2000. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2001. ;;
  2002. no:yes:* )
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2004. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2006. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2008. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2010. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2012. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2013. ;;
  2014. esac
  2015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2016. $as_echo_n "checking for $2... " >&6; }
  2017. if eval \${$3+:} false; then :
  2018. $as_echo_n "(cached) " >&6
  2019. else
  2020. eval "$3=\$ac_header_compiler"
  2021. fi
  2022. eval ac_res=\$$3
  2023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2024. $as_echo "$ac_res" >&6; }
  2025. fi
  2026. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2027. } # ac_fn_c_check_header_mongrel
  2028. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2029. # -------------------------------------------
  2030. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2031. # variable VAR accordingly.
  2032. ac_fn_c_check_type ()
  2033. {
  2034. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2036. $as_echo_n "checking for $2... " >&6; }
  2037. if eval \${$3+:} false; then :
  2038. $as_echo_n "(cached) " >&6
  2039. else
  2040. eval "$3=no"
  2041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2042. /* end confdefs.h. */
  2043. $4
  2044. int
  2045. main ()
  2046. {
  2047. if (sizeof ($2))
  2048. return 0;
  2049. ;
  2050. return 0;
  2051. }
  2052. _ACEOF
  2053. if ac_fn_c_try_compile "$LINENO"; then :
  2054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2055. /* end confdefs.h. */
  2056. $4
  2057. int
  2058. main ()
  2059. {
  2060. if (sizeof (($2)))
  2061. return 0;
  2062. ;
  2063. return 0;
  2064. }
  2065. _ACEOF
  2066. if ac_fn_c_try_compile "$LINENO"; then :
  2067. else
  2068. eval "$3=yes"
  2069. fi
  2070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2071. fi
  2072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2073. fi
  2074. eval ac_res=\$$3
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2076. $as_echo "$ac_res" >&6; }
  2077. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2078. } # ac_fn_c_check_type
  2079. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2080. # ----------------------------------------------------
  2081. # Tries to find if the field MEMBER exists in type AGGR, after including
  2082. # INCLUDES, setting cache variable VAR accordingly.
  2083. ac_fn_c_check_member ()
  2084. {
  2085. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2087. $as_echo_n "checking for $2.$3... " >&6; }
  2088. if eval \${$4+:} false; then :
  2089. $as_echo_n "(cached) " >&6
  2090. else
  2091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2092. /* end confdefs.h. */
  2093. $5
  2094. int
  2095. main ()
  2096. {
  2097. static $2 ac_aggr;
  2098. if (ac_aggr.$3)
  2099. return 0;
  2100. ;
  2101. return 0;
  2102. }
  2103. _ACEOF
  2104. if ac_fn_c_try_compile "$LINENO"; then :
  2105. eval "$4=yes"
  2106. else
  2107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2108. /* end confdefs.h. */
  2109. $5
  2110. int
  2111. main ()
  2112. {
  2113. static $2 ac_aggr;
  2114. if (sizeof ac_aggr.$3)
  2115. return 0;
  2116. ;
  2117. return 0;
  2118. }
  2119. _ACEOF
  2120. if ac_fn_c_try_compile "$LINENO"; then :
  2121. eval "$4=yes"
  2122. else
  2123. eval "$4=no"
  2124. fi
  2125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2126. fi
  2127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2128. fi
  2129. eval ac_res=\$$4
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2131. $as_echo "$ac_res" >&6; }
  2132. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2133. } # ac_fn_c_check_member
  2134. cat >config.log <<_ACEOF
  2135. This file contains any messages produced by compilers while
  2136. running configure, to aid debugging if configure makes a mistake.
  2137. It was created by $as_me, which was
  2138. generated by GNU Autoconf 2.69. Invocation command line was
  2139. $ $0 $@
  2140. _ACEOF
  2141. exec 5>>config.log
  2142. {
  2143. cat <<_ASUNAME
  2144. ## --------- ##
  2145. ## Platform. ##
  2146. ## --------- ##
  2147. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2148. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2149. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2150. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2151. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2152. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2153. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2154. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2155. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2156. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2157. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2158. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2159. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2160. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2161. _ASUNAME
  2162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2163. for as_dir in $PATH
  2164. do
  2165. IFS=$as_save_IFS
  2166. test -z "$as_dir" && as_dir=.
  2167. $as_echo "PATH: $as_dir"
  2168. done
  2169. IFS=$as_save_IFS
  2170. } >&5
  2171. cat >&5 <<_ACEOF
  2172. ## ----------- ##
  2173. ## Core tests. ##
  2174. ## ----------- ##
  2175. _ACEOF
  2176. # Keep a trace of the command line.
  2177. # Strip out --no-create and --no-recursion so they do not pile up.
  2178. # Strip out --silent because we don't want to record it for future runs.
  2179. # Also quote any args containing shell meta-characters.
  2180. # Make two passes to allow for proper duplicate-argument suppression.
  2181. ac_configure_args=
  2182. ac_configure_args0=
  2183. ac_configure_args1=
  2184. ac_must_keep_next=false
  2185. for ac_pass in 1 2
  2186. do
  2187. for ac_arg
  2188. do
  2189. case $ac_arg in
  2190. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2191. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2192. | -silent | --silent | --silen | --sile | --sil)
  2193. continue ;;
  2194. *\'*)
  2195. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2196. esac
  2197. case $ac_pass in
  2198. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2199. 2)
  2200. as_fn_append ac_configure_args1 " '$ac_arg'"
  2201. if test $ac_must_keep_next = true; then
  2202. ac_must_keep_next=false # Got value, back to normal.
  2203. else
  2204. case $ac_arg in
  2205. *=* | --config-cache | -C | -disable-* | --disable-* \
  2206. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2207. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2208. | -with-* | --with-* | -without-* | --without-* | --x)
  2209. case "$ac_configure_args0 " in
  2210. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2211. esac
  2212. ;;
  2213. -* ) ac_must_keep_next=true ;;
  2214. esac
  2215. fi
  2216. as_fn_append ac_configure_args " '$ac_arg'"
  2217. ;;
  2218. esac
  2219. done
  2220. done
  2221. { ac_configure_args0=; unset ac_configure_args0;}
  2222. { ac_configure_args1=; unset ac_configure_args1;}
  2223. # When interrupted or exit'd, cleanup temporary files, and complete
  2224. # config.log. We remove comments because anyway the quotes in there
  2225. # would cause problems or look ugly.
  2226. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2227. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2228. trap 'exit_status=$?
  2229. # Save into config.log some information that might help in debugging.
  2230. {
  2231. echo
  2232. $as_echo "## ---------------- ##
  2233. ## Cache variables. ##
  2234. ## ---------------- ##"
  2235. echo
  2236. # The following way of writing the cache mishandles newlines in values,
  2237. (
  2238. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2239. eval ac_val=\$$ac_var
  2240. case $ac_val in #(
  2241. *${as_nl}*)
  2242. case $ac_var in #(
  2243. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2244. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2245. esac
  2246. case $ac_var in #(
  2247. _ | IFS | as_nl) ;; #(
  2248. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2249. *) { eval $ac_var=; unset $ac_var;} ;;
  2250. esac ;;
  2251. esac
  2252. done
  2253. (set) 2>&1 |
  2254. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2255. *${as_nl}ac_space=\ *)
  2256. sed -n \
  2257. "s/'\''/'\''\\\\'\'''\''/g;
  2258. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2259. ;; #(
  2260. *)
  2261. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2262. ;;
  2263. esac |
  2264. sort
  2265. )
  2266. echo
  2267. $as_echo "## ----------------- ##
  2268. ## Output variables. ##
  2269. ## ----------------- ##"
  2270. echo
  2271. for ac_var in $ac_subst_vars
  2272. do
  2273. eval ac_val=\$$ac_var
  2274. case $ac_val in
  2275. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2276. esac
  2277. $as_echo "$ac_var='\''$ac_val'\''"
  2278. done | sort
  2279. echo
  2280. if test -n "$ac_subst_files"; then
  2281. $as_echo "## ------------------- ##
  2282. ## File substitutions. ##
  2283. ## ------------------- ##"
  2284. echo
  2285. for ac_var in $ac_subst_files
  2286. do
  2287. eval ac_val=\$$ac_var
  2288. case $ac_val in
  2289. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2290. esac
  2291. $as_echo "$ac_var='\''$ac_val'\''"
  2292. done | sort
  2293. echo
  2294. fi
  2295. if test -s confdefs.h; then
  2296. $as_echo "## ----------- ##
  2297. ## confdefs.h. ##
  2298. ## ----------- ##"
  2299. echo
  2300. cat confdefs.h
  2301. echo
  2302. fi
  2303. test "$ac_signal" != 0 &&
  2304. $as_echo "$as_me: caught signal $ac_signal"
  2305. $as_echo "$as_me: exit $exit_status"
  2306. } >&5
  2307. rm -f core *.core core.conftest.* &&
  2308. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2309. exit $exit_status
  2310. ' 0
  2311. for ac_signal in 1 2 13 15; do
  2312. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2313. done
  2314. ac_signal=0
  2315. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2316. rm -f -r conftest* confdefs.h
  2317. $as_echo "/* confdefs.h */" > confdefs.h
  2318. # Predefined preprocessor variables.
  2319. cat >>confdefs.h <<_ACEOF
  2320. #define PACKAGE_NAME "$PACKAGE_NAME"
  2321. _ACEOF
  2322. cat >>confdefs.h <<_ACEOF
  2323. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2324. _ACEOF
  2325. cat >>confdefs.h <<_ACEOF
  2326. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2327. _ACEOF
  2328. cat >>confdefs.h <<_ACEOF
  2329. #define PACKAGE_STRING "$PACKAGE_STRING"
  2330. _ACEOF
  2331. cat >>confdefs.h <<_ACEOF
  2332. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2333. _ACEOF
  2334. cat >>confdefs.h <<_ACEOF
  2335. #define PACKAGE_URL "$PACKAGE_URL"
  2336. _ACEOF
  2337. # Let the site file select an alternate cache file if it wants to.
  2338. # Prefer an explicitly selected file to automatically selected ones.
  2339. ac_site_file1=NONE
  2340. ac_site_file2=NONE
  2341. if test -n "$CONFIG_SITE"; then
  2342. # We do not want a PATH search for config.site.
  2343. case $CONFIG_SITE in #((
  2344. -*) ac_site_file1=./$CONFIG_SITE;;
  2345. */*) ac_site_file1=$CONFIG_SITE;;
  2346. *) ac_site_file1=./$CONFIG_SITE;;
  2347. esac
  2348. elif test "x$prefix" != xNONE; then
  2349. ac_site_file1=$prefix/share/config.site
  2350. ac_site_file2=$prefix/etc/config.site
  2351. else
  2352. ac_site_file1=$ac_default_prefix/share/config.site
  2353. ac_site_file2=$ac_default_prefix/etc/config.site
  2354. fi
  2355. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2356. do
  2357. test "x$ac_site_file" = xNONE && continue
  2358. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2360. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2361. sed 's/^/| /' "$ac_site_file" >&5
  2362. . "$ac_site_file" \
  2363. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2364. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2365. as_fn_error $? "failed to load site script $ac_site_file
  2366. See \`config.log' for more details" "$LINENO" 5; }
  2367. fi
  2368. done
  2369. if test -r "$cache_file"; then
  2370. # Some versions of bash will fail to source /dev/null (special files
  2371. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2372. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2374. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2375. case $cache_file in
  2376. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2377. *) . "./$cache_file";;
  2378. esac
  2379. fi
  2380. else
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2382. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2383. >$cache_file
  2384. fi
  2385. # Check that the precious variables saved in the cache have kept the same
  2386. # value.
  2387. ac_cache_corrupted=false
  2388. for ac_var in $ac_precious_vars; do
  2389. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2390. eval ac_new_set=\$ac_env_${ac_var}_set
  2391. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2392. eval ac_new_val=\$ac_env_${ac_var}_value
  2393. case $ac_old_set,$ac_new_set in
  2394. set,)
  2395. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2396. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2397. ac_cache_corrupted=: ;;
  2398. ,set)
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2400. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2401. ac_cache_corrupted=: ;;
  2402. ,);;
  2403. *)
  2404. if test "x$ac_old_val" != "x$ac_new_val"; then
  2405. # differences in whitespace do not lead to failure.
  2406. ac_old_val_w=`echo x $ac_old_val`
  2407. ac_new_val_w=`echo x $ac_new_val`
  2408. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2410. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2411. ac_cache_corrupted=:
  2412. else
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2414. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2415. eval $ac_var=\$ac_old_val
  2416. fi
  2417. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2418. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2420. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2421. fi;;
  2422. esac
  2423. # Pass precious variables to config.status.
  2424. if test "$ac_new_set" = set; then
  2425. case $ac_new_val in
  2426. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2427. *) ac_arg=$ac_var=$ac_new_val ;;
  2428. esac
  2429. case " $ac_configure_args " in
  2430. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2431. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2432. esac
  2433. fi
  2434. done
  2435. if $ac_cache_corrupted; then
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2437. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2439. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2440. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2441. fi
  2442. ## -------------------- ##
  2443. ## Main body of script. ##
  2444. ## -------------------- ##
  2445. ac_ext=c
  2446. ac_cpp='$CPP $CPPFLAGS'
  2447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2450. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2451. ac_aux_dir=
  2452. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2453. if test -f "$ac_dir/install-sh"; then
  2454. ac_aux_dir=$ac_dir
  2455. ac_install_sh="$ac_aux_dir/install-sh -c"
  2456. break
  2457. elif test -f "$ac_dir/install.sh"; then
  2458. ac_aux_dir=$ac_dir
  2459. ac_install_sh="$ac_aux_dir/install.sh -c"
  2460. break
  2461. elif test -f "$ac_dir/shtool"; then
  2462. ac_aux_dir=$ac_dir
  2463. ac_install_sh="$ac_aux_dir/shtool install -c"
  2464. break
  2465. fi
  2466. done
  2467. if test -z "$ac_aux_dir"; then
  2468. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2469. fi
  2470. # These three variables are undocumented and unsupported,
  2471. # and are intended to be withdrawn in a future Autoconf release.
  2472. # They can cause serious problems if a builder's source tree is in a directory
  2473. # whose full name contains unusual characters.
  2474. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2475. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2476. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2477. orig_CFLAGS="$CFLAGS"
  2478. #
  2479. # Making releases:
  2480. # Edit include/SDL_version.h and change the version, then:
  2481. # SDL_MICRO_VERSION += 1;
  2482. # SDL_INTERFACE_AGE += 1;
  2483. # SDL_BINARY_AGE += 1;
  2484. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2485. # if backwards compatibility has been broken,
  2486. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2487. #
  2488. SDL_MAJOR_VERSION=2
  2489. SDL_MINOR_VERSION=0
  2490. SDL_MICRO_VERSION=9
  2491. SDL_INTERFACE_AGE=0
  2492. SDL_BINARY_AGE=9
  2493. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2494. # libtool versioning
  2495. case `pwd` in
  2496. *\ * | *\ *)
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2498. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2499. esac
  2500. macro_version='2.4.2'
  2501. macro_revision='1.3337'
  2502. ltmain="$ac_aux_dir/ltmain.sh"
  2503. # Make sure we can run config.sub.
  2504. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2505. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2507. $as_echo_n "checking build system type... " >&6; }
  2508. if ${ac_cv_build+:} false; then :
  2509. $as_echo_n "(cached) " >&6
  2510. else
  2511. ac_build_alias=$build_alias
  2512. test "x$ac_build_alias" = x &&
  2513. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2514. test "x$ac_build_alias" = x &&
  2515. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2516. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2517. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2518. fi
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2520. $as_echo "$ac_cv_build" >&6; }
  2521. case $ac_cv_build in
  2522. *-*-*) ;;
  2523. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2524. esac
  2525. build=$ac_cv_build
  2526. ac_save_IFS=$IFS; IFS='-'
  2527. set x $ac_cv_build
  2528. shift
  2529. build_cpu=$1
  2530. build_vendor=$2
  2531. shift; shift
  2532. # Remember, the first character of IFS is used to create $*,
  2533. # except with old shells:
  2534. build_os=$*
  2535. IFS=$ac_save_IFS
  2536. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2538. $as_echo_n "checking host system type... " >&6; }
  2539. if ${ac_cv_host+:} false; then :
  2540. $as_echo_n "(cached) " >&6
  2541. else
  2542. if test "x$host_alias" = x; then
  2543. ac_cv_host=$ac_cv_build
  2544. else
  2545. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2546. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2547. fi
  2548. fi
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2550. $as_echo "$ac_cv_host" >&6; }
  2551. case $ac_cv_host in
  2552. *-*-*) ;;
  2553. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2554. esac
  2555. host=$ac_cv_host
  2556. ac_save_IFS=$IFS; IFS='-'
  2557. set x $ac_cv_host
  2558. shift
  2559. host_cpu=$1
  2560. host_vendor=$2
  2561. shift; shift
  2562. # Remember, the first character of IFS is used to create $*,
  2563. # except with old shells:
  2564. host_os=$*
  2565. IFS=$ac_save_IFS
  2566. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2567. # Backslashify metacharacters that are still active within
  2568. # double-quoted strings.
  2569. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2570. # Same as above, but do not quote variable references.
  2571. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2572. # Sed substitution to delay expansion of an escaped shell variable in a
  2573. # double_quote_subst'ed string.
  2574. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2575. # Sed substitution to delay expansion of an escaped single quote.
  2576. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2577. # Sed substitution to avoid accidental globbing in evaled expressions
  2578. no_glob_subst='s/\*/\\\*/g'
  2579. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2580. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2581. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2583. $as_echo_n "checking how to print strings... " >&6; }
  2584. # Test print first, because it will be a builtin if present.
  2585. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2586. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2587. ECHO='print -r --'
  2588. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2589. ECHO='printf %s\n'
  2590. else
  2591. # Use this function as a fallback that always works.
  2592. func_fallback_echo ()
  2593. {
  2594. eval 'cat <<_LTECHO_EOF
  2595. $1
  2596. _LTECHO_EOF'
  2597. }
  2598. ECHO='func_fallback_echo'
  2599. fi
  2600. # func_echo_all arg...
  2601. # Invoke $ECHO with all args, space-separated.
  2602. func_echo_all ()
  2603. {
  2604. $ECHO ""
  2605. }
  2606. case "$ECHO" in
  2607. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2608. $as_echo "printf" >&6; } ;;
  2609. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2610. $as_echo "print -r" >&6; } ;;
  2611. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2612. $as_echo "cat" >&6; } ;;
  2613. esac
  2614. ac_ext=c
  2615. ac_cpp='$CPP $CPPFLAGS'
  2616. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2617. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2618. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2619. if test -n "$ac_tool_prefix"; then
  2620. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2621. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2623. $as_echo_n "checking for $ac_word... " >&6; }
  2624. if ${ac_cv_prog_CC+:} false; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. if test -n "$CC"; then
  2628. ac_cv_prog_CC="$CC" # Let the user override the test.
  2629. else
  2630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2631. for as_dir in $PATH
  2632. do
  2633. IFS=$as_save_IFS
  2634. test -z "$as_dir" && as_dir=.
  2635. for ac_exec_ext in '' $ac_executable_extensions; do
  2636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2637. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2639. break 2
  2640. fi
  2641. done
  2642. done
  2643. IFS=$as_save_IFS
  2644. fi
  2645. fi
  2646. CC=$ac_cv_prog_CC
  2647. if test -n "$CC"; then
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2649. $as_echo "$CC" >&6; }
  2650. else
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2652. $as_echo "no" >&6; }
  2653. fi
  2654. fi
  2655. if test -z "$ac_cv_prog_CC"; then
  2656. ac_ct_CC=$CC
  2657. # Extract the first word of "gcc", so it can be a program name with args.
  2658. set dummy gcc; ac_word=$2
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2660. $as_echo_n "checking for $ac_word... " >&6; }
  2661. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2662. $as_echo_n "(cached) " >&6
  2663. else
  2664. if test -n "$ac_ct_CC"; then
  2665. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2666. else
  2667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2668. for as_dir in $PATH
  2669. do
  2670. IFS=$as_save_IFS
  2671. test -z "$as_dir" && as_dir=.
  2672. for ac_exec_ext in '' $ac_executable_extensions; do
  2673. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2674. ac_cv_prog_ac_ct_CC="gcc"
  2675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2676. break 2
  2677. fi
  2678. done
  2679. done
  2680. IFS=$as_save_IFS
  2681. fi
  2682. fi
  2683. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2684. if test -n "$ac_ct_CC"; then
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2686. $as_echo "$ac_ct_CC" >&6; }
  2687. else
  2688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2689. $as_echo "no" >&6; }
  2690. fi
  2691. if test "x$ac_ct_CC" = x; then
  2692. CC=""
  2693. else
  2694. case $cross_compiling:$ac_tool_warned in
  2695. yes:)
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2697. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2698. ac_tool_warned=yes ;;
  2699. esac
  2700. CC=$ac_ct_CC
  2701. fi
  2702. else
  2703. CC="$ac_cv_prog_CC"
  2704. fi
  2705. if test -z "$CC"; then
  2706. if test -n "$ac_tool_prefix"; then
  2707. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2708. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2710. $as_echo_n "checking for $ac_word... " >&6; }
  2711. if ${ac_cv_prog_CC+:} false; then :
  2712. $as_echo_n "(cached) " >&6
  2713. else
  2714. if test -n "$CC"; then
  2715. ac_cv_prog_CC="$CC" # Let the user override the test.
  2716. else
  2717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2718. for as_dir in $PATH
  2719. do
  2720. IFS=$as_save_IFS
  2721. test -z "$as_dir" && as_dir=.
  2722. for ac_exec_ext in '' $ac_executable_extensions; do
  2723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2724. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2726. break 2
  2727. fi
  2728. done
  2729. done
  2730. IFS=$as_save_IFS
  2731. fi
  2732. fi
  2733. CC=$ac_cv_prog_CC
  2734. if test -n "$CC"; then
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2736. $as_echo "$CC" >&6; }
  2737. else
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2739. $as_echo "no" >&6; }
  2740. fi
  2741. fi
  2742. fi
  2743. if test -z "$CC"; then
  2744. # Extract the first word of "cc", so it can be a program name with args.
  2745. set dummy cc; ac_word=$2
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2747. $as_echo_n "checking for $ac_word... " >&6; }
  2748. if ${ac_cv_prog_CC+:} false; then :
  2749. $as_echo_n "(cached) " >&6
  2750. else
  2751. if test -n "$CC"; then
  2752. ac_cv_prog_CC="$CC" # Let the user override the test.
  2753. else
  2754. ac_prog_rejected=no
  2755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2756. for as_dir in $PATH
  2757. do
  2758. IFS=$as_save_IFS
  2759. test -z "$as_dir" && as_dir=.
  2760. for ac_exec_ext in '' $ac_executable_extensions; do
  2761. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2762. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2763. ac_prog_rejected=yes
  2764. continue
  2765. fi
  2766. ac_cv_prog_CC="cc"
  2767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2768. break 2
  2769. fi
  2770. done
  2771. done
  2772. IFS=$as_save_IFS
  2773. if test $ac_prog_rejected = yes; then
  2774. # We found a bogon in the path, so make sure we never use it.
  2775. set dummy $ac_cv_prog_CC
  2776. shift
  2777. if test $# != 0; then
  2778. # We chose a different compiler from the bogus one.
  2779. # However, it has the same basename, so the bogon will be chosen
  2780. # first if we set CC to just the basename; use the full file name.
  2781. shift
  2782. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2783. fi
  2784. fi
  2785. fi
  2786. fi
  2787. CC=$ac_cv_prog_CC
  2788. if test -n "$CC"; then
  2789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2790. $as_echo "$CC" >&6; }
  2791. else
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2793. $as_echo "no" >&6; }
  2794. fi
  2795. fi
  2796. if test -z "$CC"; then
  2797. if test -n "$ac_tool_prefix"; then
  2798. for ac_prog in cl.exe
  2799. do
  2800. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2801. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2803. $as_echo_n "checking for $ac_word... " >&6; }
  2804. if ${ac_cv_prog_CC+:} false; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. if test -n "$CC"; then
  2808. ac_cv_prog_CC="$CC" # Let the user override the test.
  2809. else
  2810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2811. for as_dir in $PATH
  2812. do
  2813. IFS=$as_save_IFS
  2814. test -z "$as_dir" && as_dir=.
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2817. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2819. break 2
  2820. fi
  2821. done
  2822. done
  2823. IFS=$as_save_IFS
  2824. fi
  2825. fi
  2826. CC=$ac_cv_prog_CC
  2827. if test -n "$CC"; then
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2829. $as_echo "$CC" >&6; }
  2830. else
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2832. $as_echo "no" >&6; }
  2833. fi
  2834. test -n "$CC" && break
  2835. done
  2836. fi
  2837. if test -z "$CC"; then
  2838. ac_ct_CC=$CC
  2839. for ac_prog in cl.exe
  2840. do
  2841. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2842. set dummy $ac_prog; ac_word=$2
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2844. $as_echo_n "checking for $ac_word... " >&6; }
  2845. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2846. $as_echo_n "(cached) " >&6
  2847. else
  2848. if test -n "$ac_ct_CC"; then
  2849. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2850. else
  2851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2852. for as_dir in $PATH
  2853. do
  2854. IFS=$as_save_IFS
  2855. test -z "$as_dir" && as_dir=.
  2856. for ac_exec_ext in '' $ac_executable_extensions; do
  2857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2858. ac_cv_prog_ac_ct_CC="$ac_prog"
  2859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2860. break 2
  2861. fi
  2862. done
  2863. done
  2864. IFS=$as_save_IFS
  2865. fi
  2866. fi
  2867. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2868. if test -n "$ac_ct_CC"; then
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2870. $as_echo "$ac_ct_CC" >&6; }
  2871. else
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2873. $as_echo "no" >&6; }
  2874. fi
  2875. test -n "$ac_ct_CC" && break
  2876. done
  2877. if test "x$ac_ct_CC" = x; then
  2878. CC=""
  2879. else
  2880. case $cross_compiling:$ac_tool_warned in
  2881. yes:)
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2883. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2884. ac_tool_warned=yes ;;
  2885. esac
  2886. CC=$ac_ct_CC
  2887. fi
  2888. fi
  2889. fi
  2890. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2891. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2892. as_fn_error $? "no acceptable C compiler found in \$PATH
  2893. See \`config.log' for more details" "$LINENO" 5; }
  2894. # Provide some information about the compiler.
  2895. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2896. set X $ac_compile
  2897. ac_compiler=$2
  2898. for ac_option in --version -v -V -qversion; do
  2899. { { ac_try="$ac_compiler $ac_option >&5"
  2900. case "(($ac_try" in
  2901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2902. *) ac_try_echo=$ac_try;;
  2903. esac
  2904. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2905. $as_echo "$ac_try_echo"; } >&5
  2906. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2907. ac_status=$?
  2908. if test -s conftest.err; then
  2909. sed '10a\
  2910. ... rest of stderr output deleted ...
  2911. 10q' conftest.err >conftest.er1
  2912. cat conftest.er1 >&5
  2913. fi
  2914. rm -f conftest.er1 conftest.err
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2916. test $ac_status = 0; }
  2917. done
  2918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2919. /* end confdefs.h. */
  2920. int
  2921. main ()
  2922. {
  2923. ;
  2924. return 0;
  2925. }
  2926. _ACEOF
  2927. ac_clean_files_save=$ac_clean_files
  2928. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2929. # Try to create an executable without -o first, disregard a.out.
  2930. # It will help us diagnose broken compilers, and finding out an intuition
  2931. # of exeext.
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2933. $as_echo_n "checking whether the C compiler works... " >&6; }
  2934. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2935. # The possible output files:
  2936. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2937. ac_rmfiles=
  2938. for ac_file in $ac_files
  2939. do
  2940. case $ac_file in
  2941. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2942. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2943. esac
  2944. done
  2945. rm -f $ac_rmfiles
  2946. if { { ac_try="$ac_link_default"
  2947. case "(($ac_try" in
  2948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2949. *) ac_try_echo=$ac_try;;
  2950. esac
  2951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2952. $as_echo "$ac_try_echo"; } >&5
  2953. (eval "$ac_link_default") 2>&5
  2954. ac_status=$?
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2956. test $ac_status = 0; }; then :
  2957. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2958. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2959. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2960. # so that the user can short-circuit this test for compilers unknown to
  2961. # Autoconf.
  2962. for ac_file in $ac_files ''
  2963. do
  2964. test -f "$ac_file" || continue
  2965. case $ac_file in
  2966. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2967. ;;
  2968. [ab].out )
  2969. # We found the default executable, but exeext='' is most
  2970. # certainly right.
  2971. break;;
  2972. *.* )
  2973. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2974. then :; else
  2975. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2976. fi
  2977. # We set ac_cv_exeext here because the later test for it is not
  2978. # safe: cross compilers may not add the suffix if given an `-o'
  2979. # argument, so we may need to know it at that point already.
  2980. # Even if this section looks crufty: it has the advantage of
  2981. # actually working.
  2982. break;;
  2983. * )
  2984. break;;
  2985. esac
  2986. done
  2987. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2988. else
  2989. ac_file=''
  2990. fi
  2991. if test -z "$ac_file"; then :
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2993. $as_echo "no" >&6; }
  2994. $as_echo "$as_me: failed program was:" >&5
  2995. sed 's/^/| /' conftest.$ac_ext >&5
  2996. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2998. as_fn_error 77 "C compiler cannot create executables
  2999. See \`config.log' for more details" "$LINENO" 5; }
  3000. else
  3001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3002. $as_echo "yes" >&6; }
  3003. fi
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3005. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3007. $as_echo "$ac_file" >&6; }
  3008. ac_exeext=$ac_cv_exeext
  3009. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3010. ac_clean_files=$ac_clean_files_save
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3012. $as_echo_n "checking for suffix of executables... " >&6; }
  3013. if { { ac_try="$ac_link"
  3014. case "(($ac_try" in
  3015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3016. *) ac_try_echo=$ac_try;;
  3017. esac
  3018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3019. $as_echo "$ac_try_echo"; } >&5
  3020. (eval "$ac_link") 2>&5
  3021. ac_status=$?
  3022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3023. test $ac_status = 0; }; then :
  3024. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3025. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3026. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3027. # `rm'.
  3028. for ac_file in conftest.exe conftest conftest.*; do
  3029. test -f "$ac_file" || continue
  3030. case $ac_file in
  3031. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3032. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3033. break;;
  3034. * ) break;;
  3035. esac
  3036. done
  3037. else
  3038. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3039. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3040. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3041. See \`config.log' for more details" "$LINENO" 5; }
  3042. fi
  3043. rm -f conftest conftest$ac_cv_exeext
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3045. $as_echo "$ac_cv_exeext" >&6; }
  3046. rm -f conftest.$ac_ext
  3047. EXEEXT=$ac_cv_exeext
  3048. ac_exeext=$EXEEXT
  3049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3050. /* end confdefs.h. */
  3051. #include <stdio.h>
  3052. int
  3053. main ()
  3054. {
  3055. FILE *f = fopen ("conftest.out", "w");
  3056. return ferror (f) || fclose (f) != 0;
  3057. ;
  3058. return 0;
  3059. }
  3060. _ACEOF
  3061. ac_clean_files="$ac_clean_files conftest.out"
  3062. # Check that the compiler produces executables we can run. If not, either
  3063. # the compiler is broken, or we cross compile.
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3065. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3066. if test "$cross_compiling" != yes; then
  3067. { { ac_try="$ac_link"
  3068. case "(($ac_try" in
  3069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3070. *) ac_try_echo=$ac_try;;
  3071. esac
  3072. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3073. $as_echo "$ac_try_echo"; } >&5
  3074. (eval "$ac_link") 2>&5
  3075. ac_status=$?
  3076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3077. test $ac_status = 0; }
  3078. if { ac_try='./conftest$ac_cv_exeext'
  3079. { { case "(($ac_try" in
  3080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3081. *) ac_try_echo=$ac_try;;
  3082. esac
  3083. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3084. $as_echo "$ac_try_echo"; } >&5
  3085. (eval "$ac_try") 2>&5
  3086. ac_status=$?
  3087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3088. test $ac_status = 0; }; }; then
  3089. cross_compiling=no
  3090. else
  3091. if test "$cross_compiling" = maybe; then
  3092. cross_compiling=yes
  3093. else
  3094. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3095. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3096. as_fn_error $? "cannot run C compiled programs.
  3097. If you meant to cross compile, use \`--host'.
  3098. See \`config.log' for more details" "$LINENO" 5; }
  3099. fi
  3100. fi
  3101. fi
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3103. $as_echo "$cross_compiling" >&6; }
  3104. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3105. ac_clean_files=$ac_clean_files_save
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3107. $as_echo_n "checking for suffix of object files... " >&6; }
  3108. if ${ac_cv_objext+:} false; then :
  3109. $as_echo_n "(cached) " >&6
  3110. else
  3111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3112. /* end confdefs.h. */
  3113. int
  3114. main ()
  3115. {
  3116. ;
  3117. return 0;
  3118. }
  3119. _ACEOF
  3120. rm -f conftest.o conftest.obj
  3121. if { { ac_try="$ac_compile"
  3122. case "(($ac_try" in
  3123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3124. *) ac_try_echo=$ac_try;;
  3125. esac
  3126. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3127. $as_echo "$ac_try_echo"; } >&5
  3128. (eval "$ac_compile") 2>&5
  3129. ac_status=$?
  3130. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3131. test $ac_status = 0; }; then :
  3132. for ac_file in conftest.o conftest.obj conftest.*; do
  3133. test -f "$ac_file" || continue;
  3134. case $ac_file in
  3135. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3136. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3137. break;;
  3138. esac
  3139. done
  3140. else
  3141. $as_echo "$as_me: failed program was:" >&5
  3142. sed 's/^/| /' conftest.$ac_ext >&5
  3143. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3144. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3145. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3146. See \`config.log' for more details" "$LINENO" 5; }
  3147. fi
  3148. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3149. fi
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3151. $as_echo "$ac_cv_objext" >&6; }
  3152. OBJEXT=$ac_cv_objext
  3153. ac_objext=$OBJEXT
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3155. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3156. if ${ac_cv_c_compiler_gnu+:} false; then :
  3157. $as_echo_n "(cached) " >&6
  3158. else
  3159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3160. /* end confdefs.h. */
  3161. int
  3162. main ()
  3163. {
  3164. #ifndef __GNUC__
  3165. choke me
  3166. #endif
  3167. ;
  3168. return 0;
  3169. }
  3170. _ACEOF
  3171. if ac_fn_c_try_compile "$LINENO"; then :
  3172. ac_compiler_gnu=yes
  3173. else
  3174. ac_compiler_gnu=no
  3175. fi
  3176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3177. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3178. fi
  3179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3180. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3181. if test $ac_compiler_gnu = yes; then
  3182. GCC=yes
  3183. else
  3184. GCC=
  3185. fi
  3186. ac_test_CFLAGS=${CFLAGS+set}
  3187. ac_save_CFLAGS=$CFLAGS
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3189. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3190. if ${ac_cv_prog_cc_g+:} false; then :
  3191. $as_echo_n "(cached) " >&6
  3192. else
  3193. ac_save_c_werror_flag=$ac_c_werror_flag
  3194. ac_c_werror_flag=yes
  3195. ac_cv_prog_cc_g=no
  3196. CFLAGS="-g"
  3197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3198. /* end confdefs.h. */
  3199. int
  3200. main ()
  3201. {
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. if ac_fn_c_try_compile "$LINENO"; then :
  3207. ac_cv_prog_cc_g=yes
  3208. else
  3209. CFLAGS=""
  3210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3211. /* end confdefs.h. */
  3212. int
  3213. main ()
  3214. {
  3215. ;
  3216. return 0;
  3217. }
  3218. _ACEOF
  3219. if ac_fn_c_try_compile "$LINENO"; then :
  3220. else
  3221. ac_c_werror_flag=$ac_save_c_werror_flag
  3222. CFLAGS="-g"
  3223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h. */
  3225. int
  3226. main ()
  3227. {
  3228. ;
  3229. return 0;
  3230. }
  3231. _ACEOF
  3232. if ac_fn_c_try_compile "$LINENO"; then :
  3233. ac_cv_prog_cc_g=yes
  3234. fi
  3235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3236. fi
  3237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3238. fi
  3239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3240. ac_c_werror_flag=$ac_save_c_werror_flag
  3241. fi
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3243. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3244. if test "$ac_test_CFLAGS" = set; then
  3245. CFLAGS=$ac_save_CFLAGS
  3246. elif test $ac_cv_prog_cc_g = yes; then
  3247. if test "$GCC" = yes; then
  3248. CFLAGS="-g -O2"
  3249. else
  3250. CFLAGS="-g"
  3251. fi
  3252. else
  3253. if test "$GCC" = yes; then
  3254. CFLAGS="-O2"
  3255. else
  3256. CFLAGS=
  3257. fi
  3258. fi
  3259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3260. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3261. if ${ac_cv_prog_cc_c89+:} false; then :
  3262. $as_echo_n "(cached) " >&6
  3263. else
  3264. ac_cv_prog_cc_c89=no
  3265. ac_save_CC=$CC
  3266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3267. /* end confdefs.h. */
  3268. #include <stdarg.h>
  3269. #include <stdio.h>
  3270. struct stat;
  3271. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3272. struct buf { int x; };
  3273. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3274. static char *e (p, i)
  3275. char **p;
  3276. int i;
  3277. {
  3278. return p[i];
  3279. }
  3280. static char *f (char * (*g) (char **, int), char **p, ...)
  3281. {
  3282. char *s;
  3283. va_list v;
  3284. va_start (v,p);
  3285. s = g (p, va_arg (v,int));
  3286. va_end (v);
  3287. return s;
  3288. }
  3289. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3290. function prototypes and stuff, but not '\xHH' hex character constants.
  3291. These don't provoke an error unfortunately, instead are silently treated
  3292. as 'x'. The following induces an error, until -std is added to get
  3293. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3294. array size at least. It's necessary to write '\x00'==0 to get something
  3295. that's true only with -std. */
  3296. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3297. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3298. inside strings and character constants. */
  3299. #define FOO(x) 'x'
  3300. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3301. int test (int i, double x);
  3302. struct s1 {int (*f) (int a);};
  3303. struct s2 {int (*f) (double a);};
  3304. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3305. int argc;
  3306. char **argv;
  3307. int
  3308. main ()
  3309. {
  3310. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3311. ;
  3312. return 0;
  3313. }
  3314. _ACEOF
  3315. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3316. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3317. do
  3318. CC="$ac_save_CC $ac_arg"
  3319. if ac_fn_c_try_compile "$LINENO"; then :
  3320. ac_cv_prog_cc_c89=$ac_arg
  3321. fi
  3322. rm -f core conftest.err conftest.$ac_objext
  3323. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3324. done
  3325. rm -f conftest.$ac_ext
  3326. CC=$ac_save_CC
  3327. fi
  3328. # AC_CACHE_VAL
  3329. case "x$ac_cv_prog_cc_c89" in
  3330. x)
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3332. $as_echo "none needed" >&6; } ;;
  3333. xno)
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3335. $as_echo "unsupported" >&6; } ;;
  3336. *)
  3337. CC="$CC $ac_cv_prog_cc_c89"
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3339. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3340. esac
  3341. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3342. fi
  3343. ac_ext=c
  3344. ac_cpp='$CPP $CPPFLAGS'
  3345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3349. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3350. if ${ac_cv_path_SED+:} false; then :
  3351. $as_echo_n "(cached) " >&6
  3352. else
  3353. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3354. for ac_i in 1 2 3 4 5 6 7; do
  3355. ac_script="$ac_script$as_nl$ac_script"
  3356. done
  3357. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3358. { ac_script=; unset ac_script;}
  3359. if test -z "$SED"; then
  3360. ac_path_SED_found=false
  3361. # Loop through the user's path and test for each of PROGNAME-LIST
  3362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3363. for as_dir in $PATH
  3364. do
  3365. IFS=$as_save_IFS
  3366. test -z "$as_dir" && as_dir=.
  3367. for ac_prog in sed gsed; do
  3368. for ac_exec_ext in '' $ac_executable_extensions; do
  3369. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3370. as_fn_executable_p "$ac_path_SED" || continue
  3371. # Check for GNU ac_path_SED and select it if it is found.
  3372. # Check for GNU $ac_path_SED
  3373. case `"$ac_path_SED" --version 2>&1` in
  3374. *GNU*)
  3375. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3376. *)
  3377. ac_count=0
  3378. $as_echo_n 0123456789 >"conftest.in"
  3379. while :
  3380. do
  3381. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3382. mv "conftest.tmp" "conftest.in"
  3383. cp "conftest.in" "conftest.nl"
  3384. $as_echo '' >> "conftest.nl"
  3385. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3386. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3387. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3388. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3389. # Best one so far, save it but keep looking for a better one
  3390. ac_cv_path_SED="$ac_path_SED"
  3391. ac_path_SED_max=$ac_count
  3392. fi
  3393. # 10*(2^10) chars as input seems more than enough
  3394. test $ac_count -gt 10 && break
  3395. done
  3396. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3397. esac
  3398. $ac_path_SED_found && break 3
  3399. done
  3400. done
  3401. done
  3402. IFS=$as_save_IFS
  3403. if test -z "$ac_cv_path_SED"; then
  3404. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3405. fi
  3406. else
  3407. ac_cv_path_SED=$SED
  3408. fi
  3409. fi
  3410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3411. $as_echo "$ac_cv_path_SED" >&6; }
  3412. SED="$ac_cv_path_SED"
  3413. rm -f conftest.sed
  3414. test -z "$SED" && SED=sed
  3415. Xsed="$SED -e 1s/^X//"
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3417. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3418. if ${ac_cv_path_GREP+:} false; then :
  3419. $as_echo_n "(cached) " >&6
  3420. else
  3421. if test -z "$GREP"; then
  3422. ac_path_GREP_found=false
  3423. # Loop through the user's path and test for each of PROGNAME-LIST
  3424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3425. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3426. do
  3427. IFS=$as_save_IFS
  3428. test -z "$as_dir" && as_dir=.
  3429. for ac_prog in grep ggrep; do
  3430. for ac_exec_ext in '' $ac_executable_extensions; do
  3431. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3432. as_fn_executable_p "$ac_path_GREP" || continue
  3433. # Check for GNU ac_path_GREP and select it if it is found.
  3434. # Check for GNU $ac_path_GREP
  3435. case `"$ac_path_GREP" --version 2>&1` in
  3436. *GNU*)
  3437. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3438. *)
  3439. ac_count=0
  3440. $as_echo_n 0123456789 >"conftest.in"
  3441. while :
  3442. do
  3443. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3444. mv "conftest.tmp" "conftest.in"
  3445. cp "conftest.in" "conftest.nl"
  3446. $as_echo 'GREP' >> "conftest.nl"
  3447. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3448. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3449. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3450. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3451. # Best one so far, save it but keep looking for a better one
  3452. ac_cv_path_GREP="$ac_path_GREP"
  3453. ac_path_GREP_max=$ac_count
  3454. fi
  3455. # 10*(2^10) chars as input seems more than enough
  3456. test $ac_count -gt 10 && break
  3457. done
  3458. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3459. esac
  3460. $ac_path_GREP_found && break 3
  3461. done
  3462. done
  3463. done
  3464. IFS=$as_save_IFS
  3465. if test -z "$ac_cv_path_GREP"; then
  3466. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3467. fi
  3468. else
  3469. ac_cv_path_GREP=$GREP
  3470. fi
  3471. fi
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3473. $as_echo "$ac_cv_path_GREP" >&6; }
  3474. GREP="$ac_cv_path_GREP"
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3476. $as_echo_n "checking for egrep... " >&6; }
  3477. if ${ac_cv_path_EGREP+:} false; then :
  3478. $as_echo_n "(cached) " >&6
  3479. else
  3480. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3481. then ac_cv_path_EGREP="$GREP -E"
  3482. else
  3483. if test -z "$EGREP"; then
  3484. ac_path_EGREP_found=false
  3485. # Loop through the user's path and test for each of PROGNAME-LIST
  3486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3487. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3488. do
  3489. IFS=$as_save_IFS
  3490. test -z "$as_dir" && as_dir=.
  3491. for ac_prog in egrep; do
  3492. for ac_exec_ext in '' $ac_executable_extensions; do
  3493. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3494. as_fn_executable_p "$ac_path_EGREP" || continue
  3495. # Check for GNU ac_path_EGREP and select it if it is found.
  3496. # Check for GNU $ac_path_EGREP
  3497. case `"$ac_path_EGREP" --version 2>&1` in
  3498. *GNU*)
  3499. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3500. *)
  3501. ac_count=0
  3502. $as_echo_n 0123456789 >"conftest.in"
  3503. while :
  3504. do
  3505. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3506. mv "conftest.tmp" "conftest.in"
  3507. cp "conftest.in" "conftest.nl"
  3508. $as_echo 'EGREP' >> "conftest.nl"
  3509. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3510. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3511. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3512. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3513. # Best one so far, save it but keep looking for a better one
  3514. ac_cv_path_EGREP="$ac_path_EGREP"
  3515. ac_path_EGREP_max=$ac_count
  3516. fi
  3517. # 10*(2^10) chars as input seems more than enough
  3518. test $ac_count -gt 10 && break
  3519. done
  3520. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3521. esac
  3522. $ac_path_EGREP_found && break 3
  3523. done
  3524. done
  3525. done
  3526. IFS=$as_save_IFS
  3527. if test -z "$ac_cv_path_EGREP"; then
  3528. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3529. fi
  3530. else
  3531. ac_cv_path_EGREP=$EGREP
  3532. fi
  3533. fi
  3534. fi
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3536. $as_echo "$ac_cv_path_EGREP" >&6; }
  3537. EGREP="$ac_cv_path_EGREP"
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3539. $as_echo_n "checking for fgrep... " >&6; }
  3540. if ${ac_cv_path_FGREP+:} false; then :
  3541. $as_echo_n "(cached) " >&6
  3542. else
  3543. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3544. then ac_cv_path_FGREP="$GREP -F"
  3545. else
  3546. if test -z "$FGREP"; then
  3547. ac_path_FGREP_found=false
  3548. # Loop through the user's path and test for each of PROGNAME-LIST
  3549. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3550. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3551. do
  3552. IFS=$as_save_IFS
  3553. test -z "$as_dir" && as_dir=.
  3554. for ac_prog in fgrep; do
  3555. for ac_exec_ext in '' $ac_executable_extensions; do
  3556. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3557. as_fn_executable_p "$ac_path_FGREP" || continue
  3558. # Check for GNU ac_path_FGREP and select it if it is found.
  3559. # Check for GNU $ac_path_FGREP
  3560. case `"$ac_path_FGREP" --version 2>&1` in
  3561. *GNU*)
  3562. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3563. *)
  3564. ac_count=0
  3565. $as_echo_n 0123456789 >"conftest.in"
  3566. while :
  3567. do
  3568. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3569. mv "conftest.tmp" "conftest.in"
  3570. cp "conftest.in" "conftest.nl"
  3571. $as_echo 'FGREP' >> "conftest.nl"
  3572. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3573. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3574. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3575. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3576. # Best one so far, save it but keep looking for a better one
  3577. ac_cv_path_FGREP="$ac_path_FGREP"
  3578. ac_path_FGREP_max=$ac_count
  3579. fi
  3580. # 10*(2^10) chars as input seems more than enough
  3581. test $ac_count -gt 10 && break
  3582. done
  3583. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3584. esac
  3585. $ac_path_FGREP_found && break 3
  3586. done
  3587. done
  3588. done
  3589. IFS=$as_save_IFS
  3590. if test -z "$ac_cv_path_FGREP"; then
  3591. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3592. fi
  3593. else
  3594. ac_cv_path_FGREP=$FGREP
  3595. fi
  3596. fi
  3597. fi
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3599. $as_echo "$ac_cv_path_FGREP" >&6; }
  3600. FGREP="$ac_cv_path_FGREP"
  3601. test -z "$GREP" && GREP=grep
  3602. # Check whether --with-gnu-ld was given.
  3603. if test "${with_gnu_ld+set}" = set; then :
  3604. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3605. else
  3606. with_gnu_ld=no
  3607. fi
  3608. ac_prog=ld
  3609. if test "$GCC" = yes; then
  3610. # Check if gcc -print-prog-name=ld gives a path.
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3612. $as_echo_n "checking for ld used by $CC... " >&6; }
  3613. case $host in
  3614. *-*-mingw*)
  3615. # gcc leaves a trailing carriage return which upsets mingw
  3616. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3617. *)
  3618. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3619. esac
  3620. case $ac_prog in
  3621. # Accept absolute paths.
  3622. [\\/]* | ?:[\\/]*)
  3623. re_direlt='/[^/][^/]*/\.\./'
  3624. # Canonicalize the pathname of ld
  3625. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3626. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3627. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3628. done
  3629. test -z "$LD" && LD="$ac_prog"
  3630. ;;
  3631. "")
  3632. # If it fails, then pretend we aren't using GCC.
  3633. ac_prog=ld
  3634. ;;
  3635. *)
  3636. # If it is relative, then search for the first ld in PATH.
  3637. with_gnu_ld=unknown
  3638. ;;
  3639. esac
  3640. elif test "$with_gnu_ld" = yes; then
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3642. $as_echo_n "checking for GNU ld... " >&6; }
  3643. else
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3645. $as_echo_n "checking for non-GNU ld... " >&6; }
  3646. fi
  3647. if ${lt_cv_path_LD+:} false; then :
  3648. $as_echo_n "(cached) " >&6
  3649. else
  3650. if test -z "$LD"; then
  3651. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3652. for ac_dir in $PATH; do
  3653. IFS="$lt_save_ifs"
  3654. test -z "$ac_dir" && ac_dir=.
  3655. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3656. lt_cv_path_LD="$ac_dir/$ac_prog"
  3657. # Check to see if the program is GNU ld. I'd rather use --version,
  3658. # but apparently some variants of GNU ld only accept -v.
  3659. # Break only if it was the GNU/non-GNU ld that we prefer.
  3660. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3661. *GNU* | *'with BFD'*)
  3662. test "$with_gnu_ld" != no && break
  3663. ;;
  3664. *)
  3665. test "$with_gnu_ld" != yes && break
  3666. ;;
  3667. esac
  3668. fi
  3669. done
  3670. IFS="$lt_save_ifs"
  3671. else
  3672. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3673. fi
  3674. fi
  3675. LD="$lt_cv_path_LD"
  3676. if test -n "$LD"; then
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3678. $as_echo "$LD" >&6; }
  3679. else
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3681. $as_echo "no" >&6; }
  3682. fi
  3683. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3685. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3686. if ${lt_cv_prog_gnu_ld+:} false; then :
  3687. $as_echo_n "(cached) " >&6
  3688. else
  3689. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3690. case `$LD -v 2>&1 </dev/null` in
  3691. *GNU* | *'with BFD'*)
  3692. lt_cv_prog_gnu_ld=yes
  3693. ;;
  3694. *)
  3695. lt_cv_prog_gnu_ld=no
  3696. ;;
  3697. esac
  3698. fi
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3700. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3701. with_gnu_ld=$lt_cv_prog_gnu_ld
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3703. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3704. if ${lt_cv_path_NM+:} false; then :
  3705. $as_echo_n "(cached) " >&6
  3706. else
  3707. if test -n "$NM"; then
  3708. # Let the user override the test.
  3709. lt_cv_path_NM="$NM"
  3710. else
  3711. lt_nm_to_check="${ac_tool_prefix}nm"
  3712. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3713. lt_nm_to_check="$lt_nm_to_check nm"
  3714. fi
  3715. for lt_tmp_nm in $lt_nm_to_check; do
  3716. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3717. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3718. IFS="$lt_save_ifs"
  3719. test -z "$ac_dir" && ac_dir=.
  3720. tmp_nm="$ac_dir/$lt_tmp_nm"
  3721. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3722. # Check to see if the nm accepts a BSD-compat flag.
  3723. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3724. # nm: unknown option "B" ignored
  3725. # Tru64's nm complains that /dev/null is an invalid object file
  3726. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3727. */dev/null* | *'Invalid file or object type'*)
  3728. lt_cv_path_NM="$tmp_nm -B"
  3729. break
  3730. ;;
  3731. *)
  3732. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3733. */dev/null*)
  3734. lt_cv_path_NM="$tmp_nm -p"
  3735. break
  3736. ;;
  3737. *)
  3738. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3739. continue # so that we can try to find one that supports BSD flags
  3740. ;;
  3741. esac
  3742. ;;
  3743. esac
  3744. fi
  3745. done
  3746. IFS="$lt_save_ifs"
  3747. done
  3748. : ${lt_cv_path_NM=no}
  3749. fi
  3750. fi
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3752. $as_echo "$lt_cv_path_NM" >&6; }
  3753. if test "$lt_cv_path_NM" != "no"; then
  3754. NM="$lt_cv_path_NM"
  3755. else
  3756. # Didn't find any BSD compatible name lister, look for dumpbin.
  3757. if test -n "$DUMPBIN"; then :
  3758. # Let the user override the test.
  3759. else
  3760. if test -n "$ac_tool_prefix"; then
  3761. for ac_prog in dumpbin "link -dump"
  3762. do
  3763. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3764. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3766. $as_echo_n "checking for $ac_word... " >&6; }
  3767. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3768. $as_echo_n "(cached) " >&6
  3769. else
  3770. if test -n "$DUMPBIN"; then
  3771. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3772. else
  3773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3774. for as_dir in $PATH
  3775. do
  3776. IFS=$as_save_IFS
  3777. test -z "$as_dir" && as_dir=.
  3778. for ac_exec_ext in '' $ac_executable_extensions; do
  3779. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3780. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3781. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3782. break 2
  3783. fi
  3784. done
  3785. done
  3786. IFS=$as_save_IFS
  3787. fi
  3788. fi
  3789. DUMPBIN=$ac_cv_prog_DUMPBIN
  3790. if test -n "$DUMPBIN"; then
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3792. $as_echo "$DUMPBIN" >&6; }
  3793. else
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3795. $as_echo "no" >&6; }
  3796. fi
  3797. test -n "$DUMPBIN" && break
  3798. done
  3799. fi
  3800. if test -z "$DUMPBIN"; then
  3801. ac_ct_DUMPBIN=$DUMPBIN
  3802. for ac_prog in dumpbin "link -dump"
  3803. do
  3804. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3805. set dummy $ac_prog; ac_word=$2
  3806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3807. $as_echo_n "checking for $ac_word... " >&6; }
  3808. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3809. $as_echo_n "(cached) " >&6
  3810. else
  3811. if test -n "$ac_ct_DUMPBIN"; then
  3812. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3813. else
  3814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3815. for as_dir in $PATH
  3816. do
  3817. IFS=$as_save_IFS
  3818. test -z "$as_dir" && as_dir=.
  3819. for ac_exec_ext in '' $ac_executable_extensions; do
  3820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3821. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3823. break 2
  3824. fi
  3825. done
  3826. done
  3827. IFS=$as_save_IFS
  3828. fi
  3829. fi
  3830. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3831. if test -n "$ac_ct_DUMPBIN"; then
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3833. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3834. else
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3836. $as_echo "no" >&6; }
  3837. fi
  3838. test -n "$ac_ct_DUMPBIN" && break
  3839. done
  3840. if test "x$ac_ct_DUMPBIN" = x; then
  3841. DUMPBIN=":"
  3842. else
  3843. case $cross_compiling:$ac_tool_warned in
  3844. yes:)
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3847. ac_tool_warned=yes ;;
  3848. esac
  3849. DUMPBIN=$ac_ct_DUMPBIN
  3850. fi
  3851. fi
  3852. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3853. *COFF*)
  3854. DUMPBIN="$DUMPBIN -symbols"
  3855. ;;
  3856. *)
  3857. DUMPBIN=:
  3858. ;;
  3859. esac
  3860. fi
  3861. if test "$DUMPBIN" != ":"; then
  3862. NM="$DUMPBIN"
  3863. fi
  3864. fi
  3865. test -z "$NM" && NM=nm
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3867. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3868. if ${lt_cv_nm_interface+:} false; then :
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. lt_cv_nm_interface="BSD nm"
  3872. echo "int some_variable = 0;" > conftest.$ac_ext
  3873. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3874. (eval "$ac_compile" 2>conftest.err)
  3875. cat conftest.err >&5
  3876. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3877. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3878. cat conftest.err >&5
  3879. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3880. cat conftest.out >&5
  3881. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3882. lt_cv_nm_interface="MS dumpbin"
  3883. fi
  3884. rm -f conftest*
  3885. fi
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3887. $as_echo "$lt_cv_nm_interface" >&6; }
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3889. $as_echo_n "checking whether ln -s works... " >&6; }
  3890. LN_S=$as_ln_s
  3891. if test "$LN_S" = "ln -s"; then
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3893. $as_echo "yes" >&6; }
  3894. else
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3896. $as_echo "no, using $LN_S" >&6; }
  3897. fi
  3898. # find the maximum length of command line arguments
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3900. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3901. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3902. $as_echo_n "(cached) " >&6
  3903. else
  3904. i=0
  3905. teststring="ABCD"
  3906. case $build_os in
  3907. msdosdjgpp*)
  3908. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3909. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3910. # during glob expansion). Even if it were fixed, the result of this
  3911. # check would be larger than it should be.
  3912. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3913. ;;
  3914. gnu*)
  3915. # Under GNU Hurd, this test is not required because there is
  3916. # no limit to the length of command line arguments.
  3917. # Libtool will interpret -1 as no limit whatsoever
  3918. lt_cv_sys_max_cmd_len=-1;
  3919. ;;
  3920. cygwin* | mingw* | cegcc*)
  3921. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3922. # about 5 minutes as the teststring grows exponentially.
  3923. # Worse, since 9x/ME are not pre-emptively multitasking,
  3924. # you end up with a "frozen" computer, even though with patience
  3925. # the test eventually succeeds (with a max line length of 256k).
  3926. # Instead, let's just punt: use the minimum linelength reported by
  3927. # all of the supported platforms: 8192 (on NT/2K/XP).
  3928. lt_cv_sys_max_cmd_len=8192;
  3929. ;;
  3930. mint*)
  3931. # On MiNT this can take a long time and run out of memory.
  3932. lt_cv_sys_max_cmd_len=8192;
  3933. ;;
  3934. amigaos*)
  3935. # On AmigaOS with pdksh, this test takes hours, literally.
  3936. # So we just punt and use a minimum line length of 8192.
  3937. lt_cv_sys_max_cmd_len=8192;
  3938. ;;
  3939. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3940. # This has been around since 386BSD, at least. Likely further.
  3941. if test -x /sbin/sysctl; then
  3942. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3943. elif test -x /usr/sbin/sysctl; then
  3944. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3945. else
  3946. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3947. fi
  3948. # And add a safety zone
  3949. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3950. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3951. ;;
  3952. interix*)
  3953. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3954. lt_cv_sys_max_cmd_len=196608
  3955. ;;
  3956. os2*)
  3957. # The test takes a long time on OS/2.
  3958. lt_cv_sys_max_cmd_len=8192
  3959. ;;
  3960. osf*)
  3961. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3962. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3963. # nice to cause kernel panics so lets avoid the loop below.
  3964. # First set a reasonable default.
  3965. lt_cv_sys_max_cmd_len=16384
  3966. #
  3967. if test -x /sbin/sysconfig; then
  3968. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3969. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3970. esac
  3971. fi
  3972. ;;
  3973. sco3.2v5*)
  3974. lt_cv_sys_max_cmd_len=102400
  3975. ;;
  3976. sysv5* | sco5v6* | sysv4.2uw2*)
  3977. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3978. if test -n "$kargmax"; then
  3979. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3980. else
  3981. lt_cv_sys_max_cmd_len=32768
  3982. fi
  3983. ;;
  3984. *)
  3985. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3986. if test -n "$lt_cv_sys_max_cmd_len"; then
  3987. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3988. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3989. else
  3990. # Make teststring a little bigger before we do anything with it.
  3991. # a 1K string should be a reasonable start.
  3992. for i in 1 2 3 4 5 6 7 8 ; do
  3993. teststring=$teststring$teststring
  3994. done
  3995. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3996. # If test is not a shell built-in, we'll probably end up computing a
  3997. # maximum length that is only half of the actual maximum length, but
  3998. # we can't tell.
  3999. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4000. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4001. test $i != 17 # 1/2 MB should be enough
  4002. do
  4003. i=`expr $i + 1`
  4004. teststring=$teststring$teststring
  4005. done
  4006. # Only check the string length outside the loop.
  4007. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4008. teststring=
  4009. # Add a significant safety factor because C++ compilers can tack on
  4010. # massive amounts of additional arguments before passing them to the
  4011. # linker. It appears as though 1/2 is a usable value.
  4012. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4013. fi
  4014. ;;
  4015. esac
  4016. fi
  4017. if test -n $lt_cv_sys_max_cmd_len ; then
  4018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4019. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4020. else
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4022. $as_echo "none" >&6; }
  4023. fi
  4024. max_cmd_len=$lt_cv_sys_max_cmd_len
  4025. : ${CP="cp -f"}
  4026. : ${MV="mv -f"}
  4027. : ${RM="rm -f"}
  4028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4029. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4030. # Try some XSI features
  4031. xsi_shell=no
  4032. ( _lt_dummy="a/b/c"
  4033. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4034. = c,a/b,b/c, \
  4035. && eval 'test $(( 1 + 1 )) -eq 2 \
  4036. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4037. && xsi_shell=yes
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4039. $as_echo "$xsi_shell" >&6; }
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4041. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4042. lt_shell_append=no
  4043. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4044. >/dev/null 2>&1 \
  4045. && lt_shell_append=yes
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4047. $as_echo "$lt_shell_append" >&6; }
  4048. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4049. lt_unset=unset
  4050. else
  4051. lt_unset=false
  4052. fi
  4053. # test EBCDIC or ASCII
  4054. case `echo X|tr X '\101'` in
  4055. A) # ASCII based system
  4056. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4057. lt_SP2NL='tr \040 \012'
  4058. lt_NL2SP='tr \015\012 \040\040'
  4059. ;;
  4060. *) # EBCDIC based system
  4061. lt_SP2NL='tr \100 \n'
  4062. lt_NL2SP='tr \r\n \100\100'
  4063. ;;
  4064. esac
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4066. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4067. if ${lt_cv_to_host_file_cmd+:} false; then :
  4068. $as_echo_n "(cached) " >&6
  4069. else
  4070. case $host in
  4071. *-*-mingw* )
  4072. case $build in
  4073. *-*-mingw* ) # actually msys
  4074. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4075. ;;
  4076. *-*-cygwin* )
  4077. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4078. ;;
  4079. * ) # otherwise, assume *nix
  4080. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4081. ;;
  4082. esac
  4083. ;;
  4084. *-*-cygwin* )
  4085. case $build in
  4086. *-*-mingw* ) # actually msys
  4087. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4088. ;;
  4089. *-*-cygwin* )
  4090. lt_cv_to_host_file_cmd=func_convert_file_noop
  4091. ;;
  4092. * ) # otherwise, assume *nix
  4093. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4094. ;;
  4095. esac
  4096. ;;
  4097. * ) # unhandled hosts (and "normal" native builds)
  4098. lt_cv_to_host_file_cmd=func_convert_file_noop
  4099. ;;
  4100. esac
  4101. fi
  4102. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4104. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4106. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4107. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4108. $as_echo_n "(cached) " >&6
  4109. else
  4110. #assume ordinary cross tools, or native build.
  4111. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4112. case $host in
  4113. *-*-mingw* )
  4114. case $build in
  4115. *-*-mingw* ) # actually msys
  4116. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4117. ;;
  4118. esac
  4119. ;;
  4120. esac
  4121. fi
  4122. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4124. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4126. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4127. if ${lt_cv_ld_reload_flag+:} false; then :
  4128. $as_echo_n "(cached) " >&6
  4129. else
  4130. lt_cv_ld_reload_flag='-r'
  4131. fi
  4132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4133. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4134. reload_flag=$lt_cv_ld_reload_flag
  4135. case $reload_flag in
  4136. "" | " "*) ;;
  4137. *) reload_flag=" $reload_flag" ;;
  4138. esac
  4139. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4140. case $host_os in
  4141. cygwin* | mingw* | pw32* | cegcc*)
  4142. if test "$GCC" != yes; then
  4143. reload_cmds=false
  4144. fi
  4145. ;;
  4146. darwin*)
  4147. if test "$GCC" = yes; then
  4148. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4149. else
  4150. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4151. fi
  4152. ;;
  4153. esac
  4154. if test -n "$ac_tool_prefix"; then
  4155. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4156. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4158. $as_echo_n "checking for $ac_word... " >&6; }
  4159. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4160. $as_echo_n "(cached) " >&6
  4161. else
  4162. if test -n "$OBJDUMP"; then
  4163. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4164. else
  4165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4166. for as_dir in $PATH
  4167. do
  4168. IFS=$as_save_IFS
  4169. test -z "$as_dir" && as_dir=.
  4170. for ac_exec_ext in '' $ac_executable_extensions; do
  4171. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4172. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4173. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4174. break 2
  4175. fi
  4176. done
  4177. done
  4178. IFS=$as_save_IFS
  4179. fi
  4180. fi
  4181. OBJDUMP=$ac_cv_prog_OBJDUMP
  4182. if test -n "$OBJDUMP"; then
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4184. $as_echo "$OBJDUMP" >&6; }
  4185. else
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4187. $as_echo "no" >&6; }
  4188. fi
  4189. fi
  4190. if test -z "$ac_cv_prog_OBJDUMP"; then
  4191. ac_ct_OBJDUMP=$OBJDUMP
  4192. # Extract the first word of "objdump", so it can be a program name with args.
  4193. set dummy objdump; ac_word=$2
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4195. $as_echo_n "checking for $ac_word... " >&6; }
  4196. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4197. $as_echo_n "(cached) " >&6
  4198. else
  4199. if test -n "$ac_ct_OBJDUMP"; then
  4200. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4201. else
  4202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4203. for as_dir in $PATH
  4204. do
  4205. IFS=$as_save_IFS
  4206. test -z "$as_dir" && as_dir=.
  4207. for ac_exec_ext in '' $ac_executable_extensions; do
  4208. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4209. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4211. break 2
  4212. fi
  4213. done
  4214. done
  4215. IFS=$as_save_IFS
  4216. fi
  4217. fi
  4218. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4219. if test -n "$ac_ct_OBJDUMP"; then
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4221. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4222. else
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4224. $as_echo "no" >&6; }
  4225. fi
  4226. if test "x$ac_ct_OBJDUMP" = x; then
  4227. OBJDUMP="false"
  4228. else
  4229. case $cross_compiling:$ac_tool_warned in
  4230. yes:)
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4232. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4233. ac_tool_warned=yes ;;
  4234. esac
  4235. OBJDUMP=$ac_ct_OBJDUMP
  4236. fi
  4237. else
  4238. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4239. fi
  4240. test -z "$OBJDUMP" && OBJDUMP=objdump
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4242. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4243. if ${lt_cv_deplibs_check_method+:} false; then :
  4244. $as_echo_n "(cached) " >&6
  4245. else
  4246. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4247. lt_cv_file_magic_test_file=
  4248. lt_cv_deplibs_check_method='unknown'
  4249. # Need to set the preceding variable on all platforms that support
  4250. # interlibrary dependencies.
  4251. # 'none' -- dependencies not supported.
  4252. # `unknown' -- same as none, but documents that we really don't know.
  4253. # 'pass_all' -- all dependencies passed with no checks.
  4254. # 'test_compile' -- check by making test program.
  4255. # 'file_magic [[regex]]' -- check by looking for files in library path
  4256. # which responds to the $file_magic_cmd with a given extended regex.
  4257. # If you have `file' or equivalent on your system and you're not sure
  4258. # whether `pass_all' will *always* work, you probably want this one.
  4259. case $host_os in
  4260. aix[4-9]*)
  4261. lt_cv_deplibs_check_method=pass_all
  4262. ;;
  4263. beos*)
  4264. lt_cv_deplibs_check_method=pass_all
  4265. ;;
  4266. bsdi[45]*)
  4267. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4268. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4269. lt_cv_file_magic_test_file=/shlib/libc.so
  4270. ;;
  4271. cygwin*)
  4272. # func_win32_libid is a shell function defined in ltmain.sh
  4273. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4274. lt_cv_file_magic_cmd='func_win32_libid'
  4275. lt_cv_deplibs_check_method=pass_all
  4276. ;;
  4277. mingw* | pw32*)
  4278. # Base MSYS/MinGW do not provide the 'file' command needed by
  4279. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4280. # unless we find 'file', for example because we are cross-compiling.
  4281. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4282. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4283. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4284. lt_cv_file_magic_cmd='func_win32_libid'
  4285. else
  4286. # Keep this pattern in sync with the one in func_win32_libid.
  4287. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4288. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4289. fi
  4290. lt_cv_deplibs_check_method=pass_all
  4291. ;;
  4292. cegcc*)
  4293. # use the weaker test based on 'objdump'. See mingw*.
  4294. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4295. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4296. ;;
  4297. darwin* | rhapsody*)
  4298. lt_cv_deplibs_check_method=pass_all
  4299. ;;
  4300. freebsd* | dragonfly*)
  4301. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4302. case $host_cpu in
  4303. i*86 )
  4304. # Not sure whether the presence of OpenBSD here was a mistake.
  4305. # Let's accept both of them until this is cleared up.
  4306. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4307. lt_cv_file_magic_cmd=/usr/bin/file
  4308. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4309. ;;
  4310. esac
  4311. else
  4312. lt_cv_deplibs_check_method=pass_all
  4313. fi
  4314. ;;
  4315. gnu*)
  4316. lt_cv_deplibs_check_method=pass_all
  4317. ;;
  4318. haiku*)
  4319. lt_cv_deplibs_check_method=pass_all
  4320. ;;
  4321. hpux10.20* | hpux11*)
  4322. lt_cv_file_magic_cmd=/usr/bin/file
  4323. case $host_cpu in
  4324. ia64*)
  4325. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4326. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4327. ;;
  4328. hppa*64*)
  4329. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4330. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4331. ;;
  4332. *)
  4333. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4334. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4335. ;;
  4336. esac
  4337. ;;
  4338. interix[3-9]*)
  4339. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4340. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4341. ;;
  4342. irix5* | irix6* | nonstopux*)
  4343. case $LD in
  4344. *-32|*"-32 ") libmagic=32-bit;;
  4345. *-n32|*"-n32 ") libmagic=N32;;
  4346. *-64|*"-64 ") libmagic=64-bit;;
  4347. *) libmagic=never-match;;
  4348. esac
  4349. lt_cv_deplibs_check_method=pass_all
  4350. ;;
  4351. # This must be glibc/ELF.
  4352. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4353. lt_cv_deplibs_check_method=pass_all
  4354. ;;
  4355. netbsd*)
  4356. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4357. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4358. else
  4359. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4360. fi
  4361. ;;
  4362. newos6*)
  4363. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4364. lt_cv_file_magic_cmd=/usr/bin/file
  4365. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4366. ;;
  4367. *nto* | *qnx*)
  4368. lt_cv_deplibs_check_method=pass_all
  4369. ;;
  4370. openbsd*)
  4371. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4372. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4373. else
  4374. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4375. fi
  4376. ;;
  4377. osf3* | osf4* | osf5*)
  4378. lt_cv_deplibs_check_method=pass_all
  4379. ;;
  4380. rdos*)
  4381. lt_cv_deplibs_check_method=pass_all
  4382. ;;
  4383. solaris*)
  4384. lt_cv_deplibs_check_method=pass_all
  4385. ;;
  4386. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4387. lt_cv_deplibs_check_method=pass_all
  4388. ;;
  4389. sysv4 | sysv4.3*)
  4390. case $host_vendor in
  4391. motorola)
  4392. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4393. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4394. ;;
  4395. ncr)
  4396. lt_cv_deplibs_check_method=pass_all
  4397. ;;
  4398. sequent)
  4399. lt_cv_file_magic_cmd='/bin/file'
  4400. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4401. ;;
  4402. sni)
  4403. lt_cv_file_magic_cmd='/bin/file'
  4404. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4405. lt_cv_file_magic_test_file=/lib/libc.so
  4406. ;;
  4407. siemens)
  4408. lt_cv_deplibs_check_method=pass_all
  4409. ;;
  4410. pc)
  4411. lt_cv_deplibs_check_method=pass_all
  4412. ;;
  4413. esac
  4414. ;;
  4415. tpf*)
  4416. lt_cv_deplibs_check_method=pass_all
  4417. ;;
  4418. esac
  4419. fi
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4421. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4422. file_magic_glob=
  4423. want_nocaseglob=no
  4424. if test "$build" = "$host"; then
  4425. case $host_os in
  4426. mingw* | pw32*)
  4427. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4428. want_nocaseglob=yes
  4429. else
  4430. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4431. fi
  4432. ;;
  4433. esac
  4434. fi
  4435. file_magic_cmd=$lt_cv_file_magic_cmd
  4436. deplibs_check_method=$lt_cv_deplibs_check_method
  4437. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4438. if test -n "$ac_tool_prefix"; then
  4439. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4440. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4442. $as_echo_n "checking for $ac_word... " >&6; }
  4443. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4444. $as_echo_n "(cached) " >&6
  4445. else
  4446. if test -n "$DLLTOOL"; then
  4447. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4448. else
  4449. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4450. for as_dir in $PATH
  4451. do
  4452. IFS=$as_save_IFS
  4453. test -z "$as_dir" && as_dir=.
  4454. for ac_exec_ext in '' $ac_executable_extensions; do
  4455. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4456. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4457. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4458. break 2
  4459. fi
  4460. done
  4461. done
  4462. IFS=$as_save_IFS
  4463. fi
  4464. fi
  4465. DLLTOOL=$ac_cv_prog_DLLTOOL
  4466. if test -n "$DLLTOOL"; then
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4468. $as_echo "$DLLTOOL" >&6; }
  4469. else
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4471. $as_echo "no" >&6; }
  4472. fi
  4473. fi
  4474. if test -z "$ac_cv_prog_DLLTOOL"; then
  4475. ac_ct_DLLTOOL=$DLLTOOL
  4476. # Extract the first word of "dlltool", so it can be a program name with args.
  4477. set dummy dlltool; ac_word=$2
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4479. $as_echo_n "checking for $ac_word... " >&6; }
  4480. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4481. $as_echo_n "(cached) " >&6
  4482. else
  4483. if test -n "$ac_ct_DLLTOOL"; then
  4484. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4485. else
  4486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4487. for as_dir in $PATH
  4488. do
  4489. IFS=$as_save_IFS
  4490. test -z "$as_dir" && as_dir=.
  4491. for ac_exec_ext in '' $ac_executable_extensions; do
  4492. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4493. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4495. break 2
  4496. fi
  4497. done
  4498. done
  4499. IFS=$as_save_IFS
  4500. fi
  4501. fi
  4502. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4503. if test -n "$ac_ct_DLLTOOL"; then
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4505. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4506. else
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4508. $as_echo "no" >&6; }
  4509. fi
  4510. if test "x$ac_ct_DLLTOOL" = x; then
  4511. DLLTOOL="false"
  4512. else
  4513. case $cross_compiling:$ac_tool_warned in
  4514. yes:)
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4516. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4517. ac_tool_warned=yes ;;
  4518. esac
  4519. DLLTOOL=$ac_ct_DLLTOOL
  4520. fi
  4521. else
  4522. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4523. fi
  4524. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4526. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4527. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4531. case $host_os in
  4532. cygwin* | mingw* | pw32* | cegcc*)
  4533. # two different shell functions defined in ltmain.sh
  4534. # decide which to use based on capabilities of $DLLTOOL
  4535. case `$DLLTOOL --help 2>&1` in
  4536. *--identify-strict*)
  4537. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4538. ;;
  4539. *)
  4540. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4541. ;;
  4542. esac
  4543. ;;
  4544. *)
  4545. # fallback: assume linklib IS sharedlib
  4546. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4547. ;;
  4548. esac
  4549. fi
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4551. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4552. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4553. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4554. if test -n "$ac_tool_prefix"; then
  4555. for ac_prog in ar
  4556. do
  4557. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4558. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4560. $as_echo_n "checking for $ac_word... " >&6; }
  4561. if ${ac_cv_prog_AR+:} false; then :
  4562. $as_echo_n "(cached) " >&6
  4563. else
  4564. if test -n "$AR"; then
  4565. ac_cv_prog_AR="$AR" # Let the user override the test.
  4566. else
  4567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4568. for as_dir in $PATH
  4569. do
  4570. IFS=$as_save_IFS
  4571. test -z "$as_dir" && as_dir=.
  4572. for ac_exec_ext in '' $ac_executable_extensions; do
  4573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4574. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4576. break 2
  4577. fi
  4578. done
  4579. done
  4580. IFS=$as_save_IFS
  4581. fi
  4582. fi
  4583. AR=$ac_cv_prog_AR
  4584. if test -n "$AR"; then
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4586. $as_echo "$AR" >&6; }
  4587. else
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4589. $as_echo "no" >&6; }
  4590. fi
  4591. test -n "$AR" && break
  4592. done
  4593. fi
  4594. if test -z "$AR"; then
  4595. ac_ct_AR=$AR
  4596. for ac_prog in ar
  4597. do
  4598. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4599. set dummy $ac_prog; ac_word=$2
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4601. $as_echo_n "checking for $ac_word... " >&6; }
  4602. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. if test -n "$ac_ct_AR"; then
  4606. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4607. else
  4608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4609. for as_dir in $PATH
  4610. do
  4611. IFS=$as_save_IFS
  4612. test -z "$as_dir" && as_dir=.
  4613. for ac_exec_ext in '' $ac_executable_extensions; do
  4614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4615. ac_cv_prog_ac_ct_AR="$ac_prog"
  4616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4617. break 2
  4618. fi
  4619. done
  4620. done
  4621. IFS=$as_save_IFS
  4622. fi
  4623. fi
  4624. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4625. if test -n "$ac_ct_AR"; then
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4627. $as_echo "$ac_ct_AR" >&6; }
  4628. else
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4630. $as_echo "no" >&6; }
  4631. fi
  4632. test -n "$ac_ct_AR" && break
  4633. done
  4634. if test "x$ac_ct_AR" = x; then
  4635. AR="false"
  4636. else
  4637. case $cross_compiling:$ac_tool_warned in
  4638. yes:)
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4640. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4641. ac_tool_warned=yes ;;
  4642. esac
  4643. AR=$ac_ct_AR
  4644. fi
  4645. fi
  4646. : ${AR=ar}
  4647. : ${AR_FLAGS=cru}
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4649. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4650. if ${lt_cv_ar_at_file+:} false; then :
  4651. $as_echo_n "(cached) " >&6
  4652. else
  4653. lt_cv_ar_at_file=no
  4654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4655. /* end confdefs.h. */
  4656. int
  4657. main ()
  4658. {
  4659. ;
  4660. return 0;
  4661. }
  4662. _ACEOF
  4663. if ac_fn_c_try_compile "$LINENO"; then :
  4664. echo conftest.$ac_objext > conftest.lst
  4665. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4666. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4667. (eval $lt_ar_try) 2>&5
  4668. ac_status=$?
  4669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4670. test $ac_status = 0; }
  4671. if test "$ac_status" -eq 0; then
  4672. # Ensure the archiver fails upon bogus file names.
  4673. rm -f conftest.$ac_objext libconftest.a
  4674. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4675. (eval $lt_ar_try) 2>&5
  4676. ac_status=$?
  4677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4678. test $ac_status = 0; }
  4679. if test "$ac_status" -ne 0; then
  4680. lt_cv_ar_at_file=@
  4681. fi
  4682. fi
  4683. rm -f conftest.* libconftest.a
  4684. fi
  4685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4686. fi
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4688. $as_echo "$lt_cv_ar_at_file" >&6; }
  4689. if test "x$lt_cv_ar_at_file" = xno; then
  4690. archiver_list_spec=
  4691. else
  4692. archiver_list_spec=$lt_cv_ar_at_file
  4693. fi
  4694. if test -n "$ac_tool_prefix"; then
  4695. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4696. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4698. $as_echo_n "checking for $ac_word... " >&6; }
  4699. if ${ac_cv_prog_STRIP+:} false; then :
  4700. $as_echo_n "(cached) " >&6
  4701. else
  4702. if test -n "$STRIP"; then
  4703. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4704. else
  4705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4706. for as_dir in $PATH
  4707. do
  4708. IFS=$as_save_IFS
  4709. test -z "$as_dir" && as_dir=.
  4710. for ac_exec_ext in '' $ac_executable_extensions; do
  4711. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4712. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4714. break 2
  4715. fi
  4716. done
  4717. done
  4718. IFS=$as_save_IFS
  4719. fi
  4720. fi
  4721. STRIP=$ac_cv_prog_STRIP
  4722. if test -n "$STRIP"; then
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4724. $as_echo "$STRIP" >&6; }
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4727. $as_echo "no" >&6; }
  4728. fi
  4729. fi
  4730. if test -z "$ac_cv_prog_STRIP"; then
  4731. ac_ct_STRIP=$STRIP
  4732. # Extract the first word of "strip", so it can be a program name with args.
  4733. set dummy strip; ac_word=$2
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4735. $as_echo_n "checking for $ac_word... " >&6; }
  4736. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. if test -n "$ac_ct_STRIP"; then
  4740. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4741. else
  4742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4743. for as_dir in $PATH
  4744. do
  4745. IFS=$as_save_IFS
  4746. test -z "$as_dir" && as_dir=.
  4747. for ac_exec_ext in '' $ac_executable_extensions; do
  4748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4749. ac_cv_prog_ac_ct_STRIP="strip"
  4750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4751. break 2
  4752. fi
  4753. done
  4754. done
  4755. IFS=$as_save_IFS
  4756. fi
  4757. fi
  4758. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4759. if test -n "$ac_ct_STRIP"; then
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4761. $as_echo "$ac_ct_STRIP" >&6; }
  4762. else
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4764. $as_echo "no" >&6; }
  4765. fi
  4766. if test "x$ac_ct_STRIP" = x; then
  4767. STRIP=":"
  4768. else
  4769. case $cross_compiling:$ac_tool_warned in
  4770. yes:)
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4773. ac_tool_warned=yes ;;
  4774. esac
  4775. STRIP=$ac_ct_STRIP
  4776. fi
  4777. else
  4778. STRIP="$ac_cv_prog_STRIP"
  4779. fi
  4780. test -z "$STRIP" && STRIP=:
  4781. if test -n "$ac_tool_prefix"; then
  4782. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4783. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4785. $as_echo_n "checking for $ac_word... " >&6; }
  4786. if ${ac_cv_prog_RANLIB+:} false; then :
  4787. $as_echo_n "(cached) " >&6
  4788. else
  4789. if test -n "$RANLIB"; then
  4790. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4791. else
  4792. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4793. for as_dir in $PATH
  4794. do
  4795. IFS=$as_save_IFS
  4796. test -z "$as_dir" && as_dir=.
  4797. for ac_exec_ext in '' $ac_executable_extensions; do
  4798. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4799. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4800. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4801. break 2
  4802. fi
  4803. done
  4804. done
  4805. IFS=$as_save_IFS
  4806. fi
  4807. fi
  4808. RANLIB=$ac_cv_prog_RANLIB
  4809. if test -n "$RANLIB"; then
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4811. $as_echo "$RANLIB" >&6; }
  4812. else
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4814. $as_echo "no" >&6; }
  4815. fi
  4816. fi
  4817. if test -z "$ac_cv_prog_RANLIB"; then
  4818. ac_ct_RANLIB=$RANLIB
  4819. # Extract the first word of "ranlib", so it can be a program name with args.
  4820. set dummy ranlib; ac_word=$2
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4822. $as_echo_n "checking for $ac_word... " >&6; }
  4823. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4824. $as_echo_n "(cached) " >&6
  4825. else
  4826. if test -n "$ac_ct_RANLIB"; then
  4827. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4828. else
  4829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4830. for as_dir in $PATH
  4831. do
  4832. IFS=$as_save_IFS
  4833. test -z "$as_dir" && as_dir=.
  4834. for ac_exec_ext in '' $ac_executable_extensions; do
  4835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4836. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4838. break 2
  4839. fi
  4840. done
  4841. done
  4842. IFS=$as_save_IFS
  4843. fi
  4844. fi
  4845. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4846. if test -n "$ac_ct_RANLIB"; then
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4848. $as_echo "$ac_ct_RANLIB" >&6; }
  4849. else
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4851. $as_echo "no" >&6; }
  4852. fi
  4853. if test "x$ac_ct_RANLIB" = x; then
  4854. RANLIB=":"
  4855. else
  4856. case $cross_compiling:$ac_tool_warned in
  4857. yes:)
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4859. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4860. ac_tool_warned=yes ;;
  4861. esac
  4862. RANLIB=$ac_ct_RANLIB
  4863. fi
  4864. else
  4865. RANLIB="$ac_cv_prog_RANLIB"
  4866. fi
  4867. test -z "$RANLIB" && RANLIB=:
  4868. # Determine commands to create old-style static archives.
  4869. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4870. old_postinstall_cmds='chmod 644 $oldlib'
  4871. old_postuninstall_cmds=
  4872. if test -n "$RANLIB"; then
  4873. case $host_os in
  4874. openbsd*)
  4875. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4876. ;;
  4877. *)
  4878. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4879. ;;
  4880. esac
  4881. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4882. fi
  4883. case $host_os in
  4884. darwin*)
  4885. lock_old_archive_extraction=yes ;;
  4886. *)
  4887. lock_old_archive_extraction=no ;;
  4888. esac
  4889. for ac_prog in gawk mawk nawk awk
  4890. do
  4891. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4892. set dummy $ac_prog; ac_word=$2
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4894. $as_echo_n "checking for $ac_word... " >&6; }
  4895. if ${ac_cv_prog_AWK+:} false; then :
  4896. $as_echo_n "(cached) " >&6
  4897. else
  4898. if test -n "$AWK"; then
  4899. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4900. else
  4901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4902. for as_dir in $PATH
  4903. do
  4904. IFS=$as_save_IFS
  4905. test -z "$as_dir" && as_dir=.
  4906. for ac_exec_ext in '' $ac_executable_extensions; do
  4907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4908. ac_cv_prog_AWK="$ac_prog"
  4909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4910. break 2
  4911. fi
  4912. done
  4913. done
  4914. IFS=$as_save_IFS
  4915. fi
  4916. fi
  4917. AWK=$ac_cv_prog_AWK
  4918. if test -n "$AWK"; then
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4920. $as_echo "$AWK" >&6; }
  4921. else
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4923. $as_echo "no" >&6; }
  4924. fi
  4925. test -n "$AWK" && break
  4926. done
  4927. # If no C compiler was specified, use CC.
  4928. LTCC=${LTCC-"$CC"}
  4929. # If no C compiler flags were specified, use CFLAGS.
  4930. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4931. # Allow CC to be a program name with arguments.
  4932. compiler=$CC
  4933. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4935. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4936. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4937. $as_echo_n "(cached) " >&6
  4938. else
  4939. # These are sane defaults that work on at least a few old systems.
  4940. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4941. # Character class describing NM global symbol codes.
  4942. symcode='[BCDEGRST]'
  4943. # Regexp to match symbols that can be accessed directly from C.
  4944. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4945. # Define system-specific variables.
  4946. case $host_os in
  4947. aix*)
  4948. symcode='[BCDT]'
  4949. ;;
  4950. cygwin* | mingw* | pw32* | cegcc*)
  4951. symcode='[ABCDGISTW]'
  4952. ;;
  4953. hpux*)
  4954. if test "$host_cpu" = ia64; then
  4955. symcode='[ABCDEGRST]'
  4956. fi
  4957. ;;
  4958. irix* | nonstopux*)
  4959. symcode='[BCDEGRST]'
  4960. ;;
  4961. osf*)
  4962. symcode='[BCDEGQRST]'
  4963. ;;
  4964. solaris*)
  4965. symcode='[BDRT]'
  4966. ;;
  4967. sco3.2v5*)
  4968. symcode='[DT]'
  4969. ;;
  4970. sysv4.2uw2*)
  4971. symcode='[DT]'
  4972. ;;
  4973. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4974. symcode='[ABDT]'
  4975. ;;
  4976. sysv4)
  4977. symcode='[DFNSTU]'
  4978. ;;
  4979. esac
  4980. # If we're using GNU nm, then use its standard symbol codes.
  4981. case `$NM -V 2>&1` in
  4982. *GNU* | *'with BFD'*)
  4983. symcode='[ABCDGIRSTW]' ;;
  4984. esac
  4985. # Transform an extracted symbol line into a proper C declaration.
  4986. # Some systems (esp. on ia64) link data and code symbols differently,
  4987. # so use this general approach.
  4988. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4989. # Transform an extracted symbol line into symbol name and symbol address
  4990. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4991. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  4992. # Handle CRLF in mingw tool chain
  4993. opt_cr=
  4994. case $build_os in
  4995. mingw*)
  4996. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4997. ;;
  4998. esac
  4999. # Try without a prefix underscore, then with it.
  5000. for ac_symprfx in "" "_"; do
  5001. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5002. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5003. # Write the raw and C identifiers.
  5004. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5005. # Fake it for dumpbin and say T for any non-static function
  5006. # and D for any global variable.
  5007. # Also find C++ and __fastcall symbols from MSVC++,
  5008. # which start with @ or ?.
  5009. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5010. " {last_section=section; section=\$ 3};"\
  5011. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5012. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5013. " \$ 0!~/External *\|/{next};"\
  5014. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5015. " {if(hide[section]) next};"\
  5016. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5017. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5018. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5019. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5020. " ' prfx=^$ac_symprfx"
  5021. else
  5022. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5023. fi
  5024. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5025. # Check to see that the pipe works correctly.
  5026. pipe_works=no
  5027. rm -f conftest*
  5028. cat > conftest.$ac_ext <<_LT_EOF
  5029. #ifdef __cplusplus
  5030. extern "C" {
  5031. #endif
  5032. char nm_test_var;
  5033. void nm_test_func(void);
  5034. void nm_test_func(void){}
  5035. #ifdef __cplusplus
  5036. }
  5037. #endif
  5038. int main(){nm_test_var='a';nm_test_func();return(0);}
  5039. _LT_EOF
  5040. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5041. (eval $ac_compile) 2>&5
  5042. ac_status=$?
  5043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5044. test $ac_status = 0; }; then
  5045. # Now try to grab the symbols.
  5046. nlist=conftest.nm
  5047. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5048. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5049. ac_status=$?
  5050. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5051. test $ac_status = 0; } && test -s "$nlist"; then
  5052. # Try sorting and uniquifying the output.
  5053. if sort "$nlist" | uniq > "$nlist"T; then
  5054. mv -f "$nlist"T "$nlist"
  5055. else
  5056. rm -f "$nlist"T
  5057. fi
  5058. # Make sure that we snagged all the symbols we need.
  5059. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5060. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5061. cat <<_LT_EOF > conftest.$ac_ext
  5062. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5063. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5064. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5065. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5066. # define LT_DLSYM_CONST
  5067. #elif defined(__osf__)
  5068. /* This system does not cope well with relocations in const data. */
  5069. # define LT_DLSYM_CONST
  5070. #else
  5071. # define LT_DLSYM_CONST const
  5072. #endif
  5073. #ifdef __cplusplus
  5074. extern "C" {
  5075. #endif
  5076. _LT_EOF
  5077. # Now generate the symbol file.
  5078. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5079. cat <<_LT_EOF >> conftest.$ac_ext
  5080. /* The mapping between symbol names and symbols. */
  5081. LT_DLSYM_CONST struct {
  5082. const char *name;
  5083. void *address;
  5084. }
  5085. lt__PROGRAM__LTX_preloaded_symbols[] =
  5086. {
  5087. { "@PROGRAM@", (void *) 0 },
  5088. _LT_EOF
  5089. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5090. cat <<\_LT_EOF >> conftest.$ac_ext
  5091. {0, (void *) 0}
  5092. };
  5093. /* This works around a problem in FreeBSD linker */
  5094. #ifdef FREEBSD_WORKAROUND
  5095. static const void *lt_preloaded_setup() {
  5096. return lt__PROGRAM__LTX_preloaded_symbols;
  5097. }
  5098. #endif
  5099. #ifdef __cplusplus
  5100. }
  5101. #endif
  5102. _LT_EOF
  5103. # Now try linking the two files.
  5104. mv conftest.$ac_objext conftstm.$ac_objext
  5105. lt_globsym_save_LIBS=$LIBS
  5106. lt_globsym_save_CFLAGS=$CFLAGS
  5107. LIBS="conftstm.$ac_objext"
  5108. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5109. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5110. (eval $ac_link) 2>&5
  5111. ac_status=$?
  5112. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5113. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5114. pipe_works=yes
  5115. fi
  5116. LIBS=$lt_globsym_save_LIBS
  5117. CFLAGS=$lt_globsym_save_CFLAGS
  5118. else
  5119. echo "cannot find nm_test_func in $nlist" >&5
  5120. fi
  5121. else
  5122. echo "cannot find nm_test_var in $nlist" >&5
  5123. fi
  5124. else
  5125. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5126. fi
  5127. else
  5128. echo "$progname: failed program was:" >&5
  5129. cat conftest.$ac_ext >&5
  5130. fi
  5131. rm -rf conftest* conftst*
  5132. # Do not use the global_symbol_pipe unless it works.
  5133. if test "$pipe_works" = yes; then
  5134. break
  5135. else
  5136. lt_cv_sys_global_symbol_pipe=
  5137. fi
  5138. done
  5139. fi
  5140. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5141. lt_cv_sys_global_symbol_to_cdecl=
  5142. fi
  5143. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5145. $as_echo "failed" >&6; }
  5146. else
  5147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5148. $as_echo "ok" >&6; }
  5149. fi
  5150. # Response file support.
  5151. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5152. nm_file_list_spec='@'
  5153. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5154. nm_file_list_spec='@'
  5155. fi
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5157. $as_echo_n "checking for sysroot... " >&6; }
  5158. # Check whether --with-sysroot was given.
  5159. if test "${with_sysroot+set}" = set; then :
  5160. withval=$with_sysroot;
  5161. else
  5162. with_sysroot=no
  5163. fi
  5164. lt_sysroot=
  5165. case ${with_sysroot} in #(
  5166. yes)
  5167. if test "$GCC" = yes; then
  5168. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5169. fi
  5170. ;; #(
  5171. /*)
  5172. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5173. ;; #(
  5174. no|'')
  5175. ;; #(
  5176. *)
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5178. $as_echo "${with_sysroot}" >&6; }
  5179. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5180. ;;
  5181. esac
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5183. $as_echo "${lt_sysroot:-no}" >&6; }
  5184. # Check whether --enable-libtool-lock was given.
  5185. if test "${enable_libtool_lock+set}" = set; then :
  5186. enableval=$enable_libtool_lock;
  5187. fi
  5188. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5189. # Some flags need to be propagated to the compiler or linker for good
  5190. # libtool support.
  5191. case $host in
  5192. ia64-*-hpux*)
  5193. # Find out which ABI we are using.
  5194. echo 'int i;' > conftest.$ac_ext
  5195. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5196. (eval $ac_compile) 2>&5
  5197. ac_status=$?
  5198. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5199. test $ac_status = 0; }; then
  5200. case `/usr/bin/file conftest.$ac_objext` in
  5201. *ELF-32*)
  5202. HPUX_IA64_MODE="32"
  5203. ;;
  5204. *ELF-64*)
  5205. HPUX_IA64_MODE="64"
  5206. ;;
  5207. esac
  5208. fi
  5209. rm -rf conftest*
  5210. ;;
  5211. *-*-irix6*)
  5212. # Find out which ABI we are using.
  5213. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5214. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5215. (eval $ac_compile) 2>&5
  5216. ac_status=$?
  5217. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5218. test $ac_status = 0; }; then
  5219. if test "$lt_cv_prog_gnu_ld" = yes; then
  5220. case `/usr/bin/file conftest.$ac_objext` in
  5221. *32-bit*)
  5222. LD="${LD-ld} -melf32bsmip"
  5223. ;;
  5224. *N32*)
  5225. LD="${LD-ld} -melf32bmipn32"
  5226. ;;
  5227. *64-bit*)
  5228. LD="${LD-ld} -melf64bmip"
  5229. ;;
  5230. esac
  5231. else
  5232. case `/usr/bin/file conftest.$ac_objext` in
  5233. *32-bit*)
  5234. LD="${LD-ld} -32"
  5235. ;;
  5236. *N32*)
  5237. LD="${LD-ld} -n32"
  5238. ;;
  5239. *64-bit*)
  5240. LD="${LD-ld} -64"
  5241. ;;
  5242. esac
  5243. fi
  5244. fi
  5245. rm -rf conftest*
  5246. ;;
  5247. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5248. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5249. # Find out which ABI we are using.
  5250. echo 'int i;' > conftest.$ac_ext
  5251. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5252. (eval $ac_compile) 2>&5
  5253. ac_status=$?
  5254. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5255. test $ac_status = 0; }; then
  5256. case `/usr/bin/file conftest.o` in
  5257. *32-bit*)
  5258. case $host in
  5259. x86_64-*kfreebsd*-gnu)
  5260. LD="${LD-ld} -m elf_i386_fbsd"
  5261. ;;
  5262. x86_64-*linux*)
  5263. LD="${LD-ld} -m elf_i386"
  5264. ;;
  5265. ppc64-*linux*|powerpc64-*linux*)
  5266. LD="${LD-ld} -m elf32ppclinux"
  5267. ;;
  5268. s390x-*linux*)
  5269. LD="${LD-ld} -m elf_s390"
  5270. ;;
  5271. sparc64-*linux*)
  5272. LD="${LD-ld} -m elf32_sparc"
  5273. ;;
  5274. esac
  5275. ;;
  5276. *64-bit*)
  5277. case $host in
  5278. x86_64-*kfreebsd*-gnu)
  5279. LD="${LD-ld} -m elf_x86_64_fbsd"
  5280. ;;
  5281. x86_64-*linux*)
  5282. LD="${LD-ld} -m elf_x86_64"
  5283. ;;
  5284. powerpc64le-*linux*)
  5285. LD="${LD-ld} -m elf64lppc"
  5286. ;;
  5287. powerpc64-*linux*)
  5288. LD="${LD-ld} -m elf64ppc"
  5289. ;;
  5290. s390*-*linux*|s390*-*tpf*)
  5291. LD="${LD-ld} -m elf64_s390"
  5292. ;;
  5293. sparc*-*linux*)
  5294. LD="${LD-ld} -m elf64_sparc"
  5295. ;;
  5296. esac
  5297. ;;
  5298. esac
  5299. fi
  5300. rm -rf conftest*
  5301. ;;
  5302. *-*-sco3.2v5*)
  5303. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5304. SAVE_CFLAGS="$CFLAGS"
  5305. CFLAGS="$CFLAGS -belf"
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5307. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5308. if ${lt_cv_cc_needs_belf+:} false; then :
  5309. $as_echo_n "(cached) " >&6
  5310. else
  5311. ac_ext=c
  5312. ac_cpp='$CPP $CPPFLAGS'
  5313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5317. /* end confdefs.h. */
  5318. int
  5319. main ()
  5320. {
  5321. ;
  5322. return 0;
  5323. }
  5324. _ACEOF
  5325. if ac_fn_c_try_link "$LINENO"; then :
  5326. lt_cv_cc_needs_belf=yes
  5327. else
  5328. lt_cv_cc_needs_belf=no
  5329. fi
  5330. rm -f core conftest.err conftest.$ac_objext \
  5331. conftest$ac_exeext conftest.$ac_ext
  5332. ac_ext=c
  5333. ac_cpp='$CPP $CPPFLAGS'
  5334. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5335. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5336. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5337. fi
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5339. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5340. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5341. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5342. CFLAGS="$SAVE_CFLAGS"
  5343. fi
  5344. ;;
  5345. *-*solaris*)
  5346. # Find out which ABI we are using.
  5347. echo 'int i;' > conftest.$ac_ext
  5348. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5349. (eval $ac_compile) 2>&5
  5350. ac_status=$?
  5351. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5352. test $ac_status = 0; }; then
  5353. case `/usr/bin/file conftest.o` in
  5354. *64-bit*)
  5355. case $lt_cv_prog_gnu_ld in
  5356. yes*)
  5357. case $host in
  5358. i?86-*-solaris*)
  5359. LD="${LD-ld} -m elf_x86_64"
  5360. ;;
  5361. sparc*-*-solaris*)
  5362. LD="${LD-ld} -m elf64_sparc"
  5363. ;;
  5364. esac
  5365. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5366. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5367. LD="${LD-ld}_sol2"
  5368. fi
  5369. ;;
  5370. *)
  5371. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5372. LD="${LD-ld} -64"
  5373. fi
  5374. ;;
  5375. esac
  5376. ;;
  5377. esac
  5378. fi
  5379. rm -rf conftest*
  5380. ;;
  5381. esac
  5382. need_locks="$enable_libtool_lock"
  5383. if test -n "$ac_tool_prefix"; then
  5384. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5385. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5387. $as_echo_n "checking for $ac_word... " >&6; }
  5388. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5389. $as_echo_n "(cached) " >&6
  5390. else
  5391. if test -n "$MANIFEST_TOOL"; then
  5392. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5393. else
  5394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5395. for as_dir in $PATH
  5396. do
  5397. IFS=$as_save_IFS
  5398. test -z "$as_dir" && as_dir=.
  5399. for ac_exec_ext in '' $ac_executable_extensions; do
  5400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5401. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5403. break 2
  5404. fi
  5405. done
  5406. done
  5407. IFS=$as_save_IFS
  5408. fi
  5409. fi
  5410. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5411. if test -n "$MANIFEST_TOOL"; then
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5413. $as_echo "$MANIFEST_TOOL" >&6; }
  5414. else
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5416. $as_echo "no" >&6; }
  5417. fi
  5418. fi
  5419. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5420. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5421. # Extract the first word of "mt", so it can be a program name with args.
  5422. set dummy mt; ac_word=$2
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5424. $as_echo_n "checking for $ac_word... " >&6; }
  5425. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5426. $as_echo_n "(cached) " >&6
  5427. else
  5428. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5429. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5430. else
  5431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5432. for as_dir in $PATH
  5433. do
  5434. IFS=$as_save_IFS
  5435. test -z "$as_dir" && as_dir=.
  5436. for ac_exec_ext in '' $ac_executable_extensions; do
  5437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5438. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5440. break 2
  5441. fi
  5442. done
  5443. done
  5444. IFS=$as_save_IFS
  5445. fi
  5446. fi
  5447. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5448. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5450. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5451. else
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5453. $as_echo "no" >&6; }
  5454. fi
  5455. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5456. MANIFEST_TOOL=":"
  5457. else
  5458. case $cross_compiling:$ac_tool_warned in
  5459. yes:)
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5461. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5462. ac_tool_warned=yes ;;
  5463. esac
  5464. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5465. fi
  5466. else
  5467. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5468. fi
  5469. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5471. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5472. if ${lt_cv_path_mainfest_tool+:} false; then :
  5473. $as_echo_n "(cached) " >&6
  5474. else
  5475. lt_cv_path_mainfest_tool=no
  5476. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5477. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5478. cat conftest.err >&5
  5479. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5480. lt_cv_path_mainfest_tool=yes
  5481. fi
  5482. rm -f conftest*
  5483. fi
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5485. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5486. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5487. MANIFEST_TOOL=:
  5488. fi
  5489. case $host_os in
  5490. rhapsody* | darwin*)
  5491. if test -n "$ac_tool_prefix"; then
  5492. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5493. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5495. $as_echo_n "checking for $ac_word... " >&6; }
  5496. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5497. $as_echo_n "(cached) " >&6
  5498. else
  5499. if test -n "$DSYMUTIL"; then
  5500. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5501. else
  5502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5503. for as_dir in $PATH
  5504. do
  5505. IFS=$as_save_IFS
  5506. test -z "$as_dir" && as_dir=.
  5507. for ac_exec_ext in '' $ac_executable_extensions; do
  5508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5509. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5511. break 2
  5512. fi
  5513. done
  5514. done
  5515. IFS=$as_save_IFS
  5516. fi
  5517. fi
  5518. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5519. if test -n "$DSYMUTIL"; then
  5520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5521. $as_echo "$DSYMUTIL" >&6; }
  5522. else
  5523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5524. $as_echo "no" >&6; }
  5525. fi
  5526. fi
  5527. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5528. ac_ct_DSYMUTIL=$DSYMUTIL
  5529. # Extract the first word of "dsymutil", so it can be a program name with args.
  5530. set dummy dsymutil; ac_word=$2
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5532. $as_echo_n "checking for $ac_word... " >&6; }
  5533. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. if test -n "$ac_ct_DSYMUTIL"; then
  5537. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5538. else
  5539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5540. for as_dir in $PATH
  5541. do
  5542. IFS=$as_save_IFS
  5543. test -z "$as_dir" && as_dir=.
  5544. for ac_exec_ext in '' $ac_executable_extensions; do
  5545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5546. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5548. break 2
  5549. fi
  5550. done
  5551. done
  5552. IFS=$as_save_IFS
  5553. fi
  5554. fi
  5555. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5556. if test -n "$ac_ct_DSYMUTIL"; then
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5558. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5559. else
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5561. $as_echo "no" >&6; }
  5562. fi
  5563. if test "x$ac_ct_DSYMUTIL" = x; then
  5564. DSYMUTIL=":"
  5565. else
  5566. case $cross_compiling:$ac_tool_warned in
  5567. yes:)
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5570. ac_tool_warned=yes ;;
  5571. esac
  5572. DSYMUTIL=$ac_ct_DSYMUTIL
  5573. fi
  5574. else
  5575. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5576. fi
  5577. if test -n "$ac_tool_prefix"; then
  5578. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5579. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5581. $as_echo_n "checking for $ac_word... " >&6; }
  5582. if ${ac_cv_prog_NMEDIT+:} false; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. if test -n "$NMEDIT"; then
  5586. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5587. else
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5595. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. IFS=$as_save_IFS
  5602. fi
  5603. fi
  5604. NMEDIT=$ac_cv_prog_NMEDIT
  5605. if test -n "$NMEDIT"; then
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5607. $as_echo "$NMEDIT" >&6; }
  5608. else
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. $as_echo "no" >&6; }
  5611. fi
  5612. fi
  5613. if test -z "$ac_cv_prog_NMEDIT"; then
  5614. ac_ct_NMEDIT=$NMEDIT
  5615. # Extract the first word of "nmedit", so it can be a program name with args.
  5616. set dummy nmedit; ac_word=$2
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5618. $as_echo_n "checking for $ac_word... " >&6; }
  5619. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5620. $as_echo_n "(cached) " >&6
  5621. else
  5622. if test -n "$ac_ct_NMEDIT"; then
  5623. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5624. else
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH
  5627. do
  5628. IFS=$as_save_IFS
  5629. test -z "$as_dir" && as_dir=.
  5630. for ac_exec_ext in '' $ac_executable_extensions; do
  5631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5632. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5634. break 2
  5635. fi
  5636. done
  5637. done
  5638. IFS=$as_save_IFS
  5639. fi
  5640. fi
  5641. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5642. if test -n "$ac_ct_NMEDIT"; then
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5644. $as_echo "$ac_ct_NMEDIT" >&6; }
  5645. else
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5647. $as_echo "no" >&6; }
  5648. fi
  5649. if test "x$ac_ct_NMEDIT" = x; then
  5650. NMEDIT=":"
  5651. else
  5652. case $cross_compiling:$ac_tool_warned in
  5653. yes:)
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5656. ac_tool_warned=yes ;;
  5657. esac
  5658. NMEDIT=$ac_ct_NMEDIT
  5659. fi
  5660. else
  5661. NMEDIT="$ac_cv_prog_NMEDIT"
  5662. fi
  5663. if test -n "$ac_tool_prefix"; then
  5664. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5665. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5667. $as_echo_n "checking for $ac_word... " >&6; }
  5668. if ${ac_cv_prog_LIPO+:} false; then :
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. if test -n "$LIPO"; then
  5672. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5673. else
  5674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5675. for as_dir in $PATH
  5676. do
  5677. IFS=$as_save_IFS
  5678. test -z "$as_dir" && as_dir=.
  5679. for ac_exec_ext in '' $ac_executable_extensions; do
  5680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5681. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5683. break 2
  5684. fi
  5685. done
  5686. done
  5687. IFS=$as_save_IFS
  5688. fi
  5689. fi
  5690. LIPO=$ac_cv_prog_LIPO
  5691. if test -n "$LIPO"; then
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5693. $as_echo "$LIPO" >&6; }
  5694. else
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5696. $as_echo "no" >&6; }
  5697. fi
  5698. fi
  5699. if test -z "$ac_cv_prog_LIPO"; then
  5700. ac_ct_LIPO=$LIPO
  5701. # Extract the first word of "lipo", so it can be a program name with args.
  5702. set dummy lipo; ac_word=$2
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5704. $as_echo_n "checking for $ac_word... " >&6; }
  5705. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5706. $as_echo_n "(cached) " >&6
  5707. else
  5708. if test -n "$ac_ct_LIPO"; then
  5709. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5710. else
  5711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5712. for as_dir in $PATH
  5713. do
  5714. IFS=$as_save_IFS
  5715. test -z "$as_dir" && as_dir=.
  5716. for ac_exec_ext in '' $ac_executable_extensions; do
  5717. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5718. ac_cv_prog_ac_ct_LIPO="lipo"
  5719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5720. break 2
  5721. fi
  5722. done
  5723. done
  5724. IFS=$as_save_IFS
  5725. fi
  5726. fi
  5727. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5728. if test -n "$ac_ct_LIPO"; then
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5730. $as_echo "$ac_ct_LIPO" >&6; }
  5731. else
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5733. $as_echo "no" >&6; }
  5734. fi
  5735. if test "x$ac_ct_LIPO" = x; then
  5736. LIPO=":"
  5737. else
  5738. case $cross_compiling:$ac_tool_warned in
  5739. yes:)
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5741. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5742. ac_tool_warned=yes ;;
  5743. esac
  5744. LIPO=$ac_ct_LIPO
  5745. fi
  5746. else
  5747. LIPO="$ac_cv_prog_LIPO"
  5748. fi
  5749. if test -n "$ac_tool_prefix"; then
  5750. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5751. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5753. $as_echo_n "checking for $ac_word... " >&6; }
  5754. if ${ac_cv_prog_OTOOL+:} false; then :
  5755. $as_echo_n "(cached) " >&6
  5756. else
  5757. if test -n "$OTOOL"; then
  5758. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5759. else
  5760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5761. for as_dir in $PATH
  5762. do
  5763. IFS=$as_save_IFS
  5764. test -z "$as_dir" && as_dir=.
  5765. for ac_exec_ext in '' $ac_executable_extensions; do
  5766. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5767. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5769. break 2
  5770. fi
  5771. done
  5772. done
  5773. IFS=$as_save_IFS
  5774. fi
  5775. fi
  5776. OTOOL=$ac_cv_prog_OTOOL
  5777. if test -n "$OTOOL"; then
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5779. $as_echo "$OTOOL" >&6; }
  5780. else
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5782. $as_echo "no" >&6; }
  5783. fi
  5784. fi
  5785. if test -z "$ac_cv_prog_OTOOL"; then
  5786. ac_ct_OTOOL=$OTOOL
  5787. # Extract the first word of "otool", so it can be a program name with args.
  5788. set dummy otool; ac_word=$2
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5790. $as_echo_n "checking for $ac_word... " >&6; }
  5791. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. if test -n "$ac_ct_OTOOL"; then
  5795. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5796. else
  5797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5798. for as_dir in $PATH
  5799. do
  5800. IFS=$as_save_IFS
  5801. test -z "$as_dir" && as_dir=.
  5802. for ac_exec_ext in '' $ac_executable_extensions; do
  5803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5804. ac_cv_prog_ac_ct_OTOOL="otool"
  5805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5806. break 2
  5807. fi
  5808. done
  5809. done
  5810. IFS=$as_save_IFS
  5811. fi
  5812. fi
  5813. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5814. if test -n "$ac_ct_OTOOL"; then
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5816. $as_echo "$ac_ct_OTOOL" >&6; }
  5817. else
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5819. $as_echo "no" >&6; }
  5820. fi
  5821. if test "x$ac_ct_OTOOL" = x; then
  5822. OTOOL=":"
  5823. else
  5824. case $cross_compiling:$ac_tool_warned in
  5825. yes:)
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5828. ac_tool_warned=yes ;;
  5829. esac
  5830. OTOOL=$ac_ct_OTOOL
  5831. fi
  5832. else
  5833. OTOOL="$ac_cv_prog_OTOOL"
  5834. fi
  5835. if test -n "$ac_tool_prefix"; then
  5836. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5837. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5839. $as_echo_n "checking for $ac_word... " >&6; }
  5840. if ${ac_cv_prog_OTOOL64+:} false; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. if test -n "$OTOOL64"; then
  5844. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. test -z "$as_dir" && as_dir=.
  5851. for ac_exec_ext in '' $ac_executable_extensions; do
  5852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5853. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5855. break 2
  5856. fi
  5857. done
  5858. done
  5859. IFS=$as_save_IFS
  5860. fi
  5861. fi
  5862. OTOOL64=$ac_cv_prog_OTOOL64
  5863. if test -n "$OTOOL64"; then
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5865. $as_echo "$OTOOL64" >&6; }
  5866. else
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5868. $as_echo "no" >&6; }
  5869. fi
  5870. fi
  5871. if test -z "$ac_cv_prog_OTOOL64"; then
  5872. ac_ct_OTOOL64=$OTOOL64
  5873. # Extract the first word of "otool64", so it can be a program name with args.
  5874. set dummy otool64; ac_word=$2
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5876. $as_echo_n "checking for $ac_word... " >&6; }
  5877. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5878. $as_echo_n "(cached) " >&6
  5879. else
  5880. if test -n "$ac_ct_OTOOL64"; then
  5881. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5882. else
  5883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5884. for as_dir in $PATH
  5885. do
  5886. IFS=$as_save_IFS
  5887. test -z "$as_dir" && as_dir=.
  5888. for ac_exec_ext in '' $ac_executable_extensions; do
  5889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5890. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5892. break 2
  5893. fi
  5894. done
  5895. done
  5896. IFS=$as_save_IFS
  5897. fi
  5898. fi
  5899. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5900. if test -n "$ac_ct_OTOOL64"; then
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5902. $as_echo "$ac_ct_OTOOL64" >&6; }
  5903. else
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5905. $as_echo "no" >&6; }
  5906. fi
  5907. if test "x$ac_ct_OTOOL64" = x; then
  5908. OTOOL64=":"
  5909. else
  5910. case $cross_compiling:$ac_tool_warned in
  5911. yes:)
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5913. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5914. ac_tool_warned=yes ;;
  5915. esac
  5916. OTOOL64=$ac_ct_OTOOL64
  5917. fi
  5918. else
  5919. OTOOL64="$ac_cv_prog_OTOOL64"
  5920. fi
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5922. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5923. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5924. $as_echo_n "(cached) " >&6
  5925. else
  5926. lt_cv_apple_cc_single_mod=no
  5927. if test -z "${LT_MULTI_MODULE}"; then
  5928. # By default we will add the -single_module flag. You can override
  5929. # by either setting the environment variable LT_MULTI_MODULE
  5930. # non-empty at configure time, or by adding -multi_module to the
  5931. # link flags.
  5932. rm -rf libconftest.dylib*
  5933. echo "int foo(void){return 1;}" > conftest.c
  5934. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5935. -dynamiclib -Wl,-single_module conftest.c" >&5
  5936. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5937. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5938. _lt_result=$?
  5939. # If there is a non-empty error log, and "single_module"
  5940. # appears in it, assume the flag caused a linker warning
  5941. if test -s conftest.err && $GREP single_module conftest.err; then
  5942. cat conftest.err >&5
  5943. # Otherwise, if the output was created with a 0 exit code from
  5944. # the compiler, it worked.
  5945. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5946. lt_cv_apple_cc_single_mod=yes
  5947. else
  5948. cat conftest.err >&5
  5949. fi
  5950. rm -rf libconftest.dylib*
  5951. rm -f conftest.*
  5952. fi
  5953. fi
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5955. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5957. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5958. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5959. $as_echo_n "(cached) " >&6
  5960. else
  5961. lt_cv_ld_exported_symbols_list=no
  5962. save_LDFLAGS=$LDFLAGS
  5963. echo "_main" > conftest.sym
  5964. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5966. /* end confdefs.h. */
  5967. int
  5968. main ()
  5969. {
  5970. ;
  5971. return 0;
  5972. }
  5973. _ACEOF
  5974. if ac_fn_c_try_link "$LINENO"; then :
  5975. lt_cv_ld_exported_symbols_list=yes
  5976. else
  5977. lt_cv_ld_exported_symbols_list=no
  5978. fi
  5979. rm -f core conftest.err conftest.$ac_objext \
  5980. conftest$ac_exeext conftest.$ac_ext
  5981. LDFLAGS="$save_LDFLAGS"
  5982. fi
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5984. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5986. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5987. if ${lt_cv_ld_force_load+:} false; then :
  5988. $as_echo_n "(cached) " >&6
  5989. else
  5990. lt_cv_ld_force_load=no
  5991. cat > conftest.c << _LT_EOF
  5992. int forced_loaded() { return 2;}
  5993. _LT_EOF
  5994. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5995. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5996. echo "$AR cru libconftest.a conftest.o" >&5
  5997. $AR cru libconftest.a conftest.o 2>&5
  5998. echo "$RANLIB libconftest.a" >&5
  5999. $RANLIB libconftest.a 2>&5
  6000. cat > conftest.c << _LT_EOF
  6001. int main() { return 0;}
  6002. _LT_EOF
  6003. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6004. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6005. _lt_result=$?
  6006. if test -s conftest.err && $GREP force_load conftest.err; then
  6007. cat conftest.err >&5
  6008. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6009. lt_cv_ld_force_load=yes
  6010. else
  6011. cat conftest.err >&5
  6012. fi
  6013. rm -f conftest.err libconftest.a conftest conftest.c
  6014. rm -rf conftest.dSYM
  6015. fi
  6016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6017. $as_echo "$lt_cv_ld_force_load" >&6; }
  6018. case $host_os in
  6019. rhapsody* | darwin1.[012])
  6020. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6021. darwin1.*)
  6022. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6023. darwin*) # darwin 5.x on
  6024. # if running on 10.5 or later, the deployment target defaults
  6025. # to the OS version, if on x86, and 10.4, the deployment
  6026. # target defaults to 10.4. Don't you love it?
  6027. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6028. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6029. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6030. 10.[012]*)
  6031. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6032. 10.*)
  6033. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6034. esac
  6035. ;;
  6036. esac
  6037. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6038. _lt_dar_single_mod='$single_module'
  6039. fi
  6040. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6041. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6042. else
  6043. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6044. fi
  6045. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6046. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6047. else
  6048. _lt_dsymutil=
  6049. fi
  6050. ;;
  6051. esac
  6052. ac_ext=c
  6053. ac_cpp='$CPP $CPPFLAGS'
  6054. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6055. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6056. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6058. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6059. # On Suns, sometimes $CPP names a directory.
  6060. if test -n "$CPP" && test -d "$CPP"; then
  6061. CPP=
  6062. fi
  6063. if test -z "$CPP"; then
  6064. if ${ac_cv_prog_CPP+:} false; then :
  6065. $as_echo_n "(cached) " >&6
  6066. else
  6067. # Double quotes because CPP needs to be expanded
  6068. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6069. do
  6070. ac_preproc_ok=false
  6071. for ac_c_preproc_warn_flag in '' yes
  6072. do
  6073. # Use a header file that comes with gcc, so configuring glibc
  6074. # with a fresh cross-compiler works.
  6075. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6076. # <limits.h> exists even on freestanding compilers.
  6077. # On the NeXT, cc -E runs the code through the compiler's parser,
  6078. # not just through cpp. "Syntax error" is here to catch this case.
  6079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6080. /* end confdefs.h. */
  6081. #ifdef __STDC__
  6082. # include <limits.h>
  6083. #else
  6084. # include <assert.h>
  6085. #endif
  6086. Syntax error
  6087. _ACEOF
  6088. if ac_fn_c_try_cpp "$LINENO"; then :
  6089. else
  6090. # Broken: fails on valid input.
  6091. continue
  6092. fi
  6093. rm -f conftest.err conftest.i conftest.$ac_ext
  6094. # OK, works on sane cases. Now check whether nonexistent headers
  6095. # can be detected and how.
  6096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6097. /* end confdefs.h. */
  6098. #include <ac_nonexistent.h>
  6099. _ACEOF
  6100. if ac_fn_c_try_cpp "$LINENO"; then :
  6101. # Broken: success on invalid input.
  6102. continue
  6103. else
  6104. # Passes both tests.
  6105. ac_preproc_ok=:
  6106. break
  6107. fi
  6108. rm -f conftest.err conftest.i conftest.$ac_ext
  6109. done
  6110. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6111. rm -f conftest.i conftest.err conftest.$ac_ext
  6112. if $ac_preproc_ok; then :
  6113. break
  6114. fi
  6115. done
  6116. ac_cv_prog_CPP=$CPP
  6117. fi
  6118. CPP=$ac_cv_prog_CPP
  6119. else
  6120. ac_cv_prog_CPP=$CPP
  6121. fi
  6122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6123. $as_echo "$CPP" >&6; }
  6124. ac_preproc_ok=false
  6125. for ac_c_preproc_warn_flag in '' yes
  6126. do
  6127. # Use a header file that comes with gcc, so configuring glibc
  6128. # with a fresh cross-compiler works.
  6129. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6130. # <limits.h> exists even on freestanding compilers.
  6131. # On the NeXT, cc -E runs the code through the compiler's parser,
  6132. # not just through cpp. "Syntax error" is here to catch this case.
  6133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6134. /* end confdefs.h. */
  6135. #ifdef __STDC__
  6136. # include <limits.h>
  6137. #else
  6138. # include <assert.h>
  6139. #endif
  6140. Syntax error
  6141. _ACEOF
  6142. if ac_fn_c_try_cpp "$LINENO"; then :
  6143. else
  6144. # Broken: fails on valid input.
  6145. continue
  6146. fi
  6147. rm -f conftest.err conftest.i conftest.$ac_ext
  6148. # OK, works on sane cases. Now check whether nonexistent headers
  6149. # can be detected and how.
  6150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6151. /* end confdefs.h. */
  6152. #include <ac_nonexistent.h>
  6153. _ACEOF
  6154. if ac_fn_c_try_cpp "$LINENO"; then :
  6155. # Broken: success on invalid input.
  6156. continue
  6157. else
  6158. # Passes both tests.
  6159. ac_preproc_ok=:
  6160. break
  6161. fi
  6162. rm -f conftest.err conftest.i conftest.$ac_ext
  6163. done
  6164. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6165. rm -f conftest.i conftest.err conftest.$ac_ext
  6166. if $ac_preproc_ok; then :
  6167. else
  6168. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6169. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6170. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6171. See \`config.log' for more details" "$LINENO" 5; }
  6172. fi
  6173. ac_ext=c
  6174. ac_cpp='$CPP $CPPFLAGS'
  6175. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6176. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6177. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6179. $as_echo_n "checking for ANSI C header files... " >&6; }
  6180. if ${ac_cv_header_stdc+:} false; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6184. /* end confdefs.h. */
  6185. #include <stdlib.h>
  6186. #include <stdarg.h>
  6187. #include <string.h>
  6188. #include <float.h>
  6189. int
  6190. main ()
  6191. {
  6192. ;
  6193. return 0;
  6194. }
  6195. _ACEOF
  6196. if ac_fn_c_try_compile "$LINENO"; then :
  6197. ac_cv_header_stdc=yes
  6198. else
  6199. ac_cv_header_stdc=no
  6200. fi
  6201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6202. if test $ac_cv_header_stdc = yes; then
  6203. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6205. /* end confdefs.h. */
  6206. #include <string.h>
  6207. _ACEOF
  6208. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6209. $EGREP "memchr" >/dev/null 2>&1; then :
  6210. else
  6211. ac_cv_header_stdc=no
  6212. fi
  6213. rm -f conftest*
  6214. fi
  6215. if test $ac_cv_header_stdc = yes; then
  6216. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6218. /* end confdefs.h. */
  6219. #include <stdlib.h>
  6220. _ACEOF
  6221. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6222. $EGREP "free" >/dev/null 2>&1; then :
  6223. else
  6224. ac_cv_header_stdc=no
  6225. fi
  6226. rm -f conftest*
  6227. fi
  6228. if test $ac_cv_header_stdc = yes; then
  6229. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6230. if test "$cross_compiling" = yes; then :
  6231. :
  6232. else
  6233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6234. /* end confdefs.h. */
  6235. #include <ctype.h>
  6236. #include <stdlib.h>
  6237. #if ((' ' & 0x0FF) == 0x020)
  6238. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6239. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6240. #else
  6241. # define ISLOWER(c) \
  6242. (('a' <= (c) && (c) <= 'i') \
  6243. || ('j' <= (c) && (c) <= 'r') \
  6244. || ('s' <= (c) && (c) <= 'z'))
  6245. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6246. #endif
  6247. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6248. int
  6249. main ()
  6250. {
  6251. int i;
  6252. for (i = 0; i < 256; i++)
  6253. if (XOR (islower (i), ISLOWER (i))
  6254. || toupper (i) != TOUPPER (i))
  6255. return 2;
  6256. return 0;
  6257. }
  6258. _ACEOF
  6259. if ac_fn_c_try_run "$LINENO"; then :
  6260. else
  6261. ac_cv_header_stdc=no
  6262. fi
  6263. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6264. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6265. fi
  6266. fi
  6267. fi
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6269. $as_echo "$ac_cv_header_stdc" >&6; }
  6270. if test $ac_cv_header_stdc = yes; then
  6271. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6272. fi
  6273. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6274. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6275. inttypes.h stdint.h unistd.h
  6276. do :
  6277. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6278. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6279. "
  6280. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6281. cat >>confdefs.h <<_ACEOF
  6282. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6283. _ACEOF
  6284. fi
  6285. done
  6286. for ac_header in dlfcn.h
  6287. do :
  6288. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6289. "
  6290. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6291. cat >>confdefs.h <<_ACEOF
  6292. #define HAVE_DLFCN_H 1
  6293. _ACEOF
  6294. fi
  6295. done
  6296. # Set options
  6297. enable_win32_dll=yes
  6298. case $host in
  6299. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6300. if test -n "$ac_tool_prefix"; then
  6301. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6302. set dummy ${ac_tool_prefix}as; ac_word=$2
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6304. $as_echo_n "checking for $ac_word... " >&6; }
  6305. if ${ac_cv_prog_AS+:} false; then :
  6306. $as_echo_n "(cached) " >&6
  6307. else
  6308. if test -n "$AS"; then
  6309. ac_cv_prog_AS="$AS" # Let the user override the test.
  6310. else
  6311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6312. for as_dir in $PATH
  6313. do
  6314. IFS=$as_save_IFS
  6315. test -z "$as_dir" && as_dir=.
  6316. for ac_exec_ext in '' $ac_executable_extensions; do
  6317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6318. ac_cv_prog_AS="${ac_tool_prefix}as"
  6319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6320. break 2
  6321. fi
  6322. done
  6323. done
  6324. IFS=$as_save_IFS
  6325. fi
  6326. fi
  6327. AS=$ac_cv_prog_AS
  6328. if test -n "$AS"; then
  6329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6330. $as_echo "$AS" >&6; }
  6331. else
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6333. $as_echo "no" >&6; }
  6334. fi
  6335. fi
  6336. if test -z "$ac_cv_prog_AS"; then
  6337. ac_ct_AS=$AS
  6338. # Extract the first word of "as", so it can be a program name with args.
  6339. set dummy as; ac_word=$2
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6341. $as_echo_n "checking for $ac_word... " >&6; }
  6342. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6343. $as_echo_n "(cached) " >&6
  6344. else
  6345. if test -n "$ac_ct_AS"; then
  6346. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6347. else
  6348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6349. for as_dir in $PATH
  6350. do
  6351. IFS=$as_save_IFS
  6352. test -z "$as_dir" && as_dir=.
  6353. for ac_exec_ext in '' $ac_executable_extensions; do
  6354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6355. ac_cv_prog_ac_ct_AS="as"
  6356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6357. break 2
  6358. fi
  6359. done
  6360. done
  6361. IFS=$as_save_IFS
  6362. fi
  6363. fi
  6364. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6365. if test -n "$ac_ct_AS"; then
  6366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6367. $as_echo "$ac_ct_AS" >&6; }
  6368. else
  6369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6370. $as_echo "no" >&6; }
  6371. fi
  6372. if test "x$ac_ct_AS" = x; then
  6373. AS="false"
  6374. else
  6375. case $cross_compiling:$ac_tool_warned in
  6376. yes:)
  6377. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6378. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6379. ac_tool_warned=yes ;;
  6380. esac
  6381. AS=$ac_ct_AS
  6382. fi
  6383. else
  6384. AS="$ac_cv_prog_AS"
  6385. fi
  6386. if test -n "$ac_tool_prefix"; then
  6387. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6388. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6390. $as_echo_n "checking for $ac_word... " >&6; }
  6391. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6392. $as_echo_n "(cached) " >&6
  6393. else
  6394. if test -n "$DLLTOOL"; then
  6395. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6396. else
  6397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6398. for as_dir in $PATH
  6399. do
  6400. IFS=$as_save_IFS
  6401. test -z "$as_dir" && as_dir=.
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6404. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6406. break 2
  6407. fi
  6408. done
  6409. done
  6410. IFS=$as_save_IFS
  6411. fi
  6412. fi
  6413. DLLTOOL=$ac_cv_prog_DLLTOOL
  6414. if test -n "$DLLTOOL"; then
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6416. $as_echo "$DLLTOOL" >&6; }
  6417. else
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6419. $as_echo "no" >&6; }
  6420. fi
  6421. fi
  6422. if test -z "$ac_cv_prog_DLLTOOL"; then
  6423. ac_ct_DLLTOOL=$DLLTOOL
  6424. # Extract the first word of "dlltool", so it can be a program name with args.
  6425. set dummy dlltool; ac_word=$2
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6427. $as_echo_n "checking for $ac_word... " >&6; }
  6428. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6429. $as_echo_n "(cached) " >&6
  6430. else
  6431. if test -n "$ac_ct_DLLTOOL"; then
  6432. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6433. else
  6434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6435. for as_dir in $PATH
  6436. do
  6437. IFS=$as_save_IFS
  6438. test -z "$as_dir" && as_dir=.
  6439. for ac_exec_ext in '' $ac_executable_extensions; do
  6440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6441. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6443. break 2
  6444. fi
  6445. done
  6446. done
  6447. IFS=$as_save_IFS
  6448. fi
  6449. fi
  6450. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6451. if test -n "$ac_ct_DLLTOOL"; then
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6453. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6454. else
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6456. $as_echo "no" >&6; }
  6457. fi
  6458. if test "x$ac_ct_DLLTOOL" = x; then
  6459. DLLTOOL="false"
  6460. else
  6461. case $cross_compiling:$ac_tool_warned in
  6462. yes:)
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6464. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6465. ac_tool_warned=yes ;;
  6466. esac
  6467. DLLTOOL=$ac_ct_DLLTOOL
  6468. fi
  6469. else
  6470. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6471. fi
  6472. if test -n "$ac_tool_prefix"; then
  6473. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6474. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6476. $as_echo_n "checking for $ac_word... " >&6; }
  6477. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6478. $as_echo_n "(cached) " >&6
  6479. else
  6480. if test -n "$OBJDUMP"; then
  6481. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6482. else
  6483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6484. for as_dir in $PATH
  6485. do
  6486. IFS=$as_save_IFS
  6487. test -z "$as_dir" && as_dir=.
  6488. for ac_exec_ext in '' $ac_executable_extensions; do
  6489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6490. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6492. break 2
  6493. fi
  6494. done
  6495. done
  6496. IFS=$as_save_IFS
  6497. fi
  6498. fi
  6499. OBJDUMP=$ac_cv_prog_OBJDUMP
  6500. if test -n "$OBJDUMP"; then
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6502. $as_echo "$OBJDUMP" >&6; }
  6503. else
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6505. $as_echo "no" >&6; }
  6506. fi
  6507. fi
  6508. if test -z "$ac_cv_prog_OBJDUMP"; then
  6509. ac_ct_OBJDUMP=$OBJDUMP
  6510. # Extract the first word of "objdump", so it can be a program name with args.
  6511. set dummy objdump; ac_word=$2
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6513. $as_echo_n "checking for $ac_word... " >&6; }
  6514. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. if test -n "$ac_ct_OBJDUMP"; then
  6518. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6519. else
  6520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6521. for as_dir in $PATH
  6522. do
  6523. IFS=$as_save_IFS
  6524. test -z "$as_dir" && as_dir=.
  6525. for ac_exec_ext in '' $ac_executable_extensions; do
  6526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6527. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6529. break 2
  6530. fi
  6531. done
  6532. done
  6533. IFS=$as_save_IFS
  6534. fi
  6535. fi
  6536. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6537. if test -n "$ac_ct_OBJDUMP"; then
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6539. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6540. else
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6542. $as_echo "no" >&6; }
  6543. fi
  6544. if test "x$ac_ct_OBJDUMP" = x; then
  6545. OBJDUMP="false"
  6546. else
  6547. case $cross_compiling:$ac_tool_warned in
  6548. yes:)
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6550. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6551. ac_tool_warned=yes ;;
  6552. esac
  6553. OBJDUMP=$ac_ct_OBJDUMP
  6554. fi
  6555. else
  6556. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6557. fi
  6558. ;;
  6559. esac
  6560. test -z "$AS" && AS=as
  6561. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6562. test -z "$OBJDUMP" && OBJDUMP=objdump
  6563. enable_dlopen=no
  6564. # Check whether --enable-shared was given.
  6565. if test "${enable_shared+set}" = set; then :
  6566. enableval=$enable_shared; p=${PACKAGE-default}
  6567. case $enableval in
  6568. yes) enable_shared=yes ;;
  6569. no) enable_shared=no ;;
  6570. *)
  6571. enable_shared=no
  6572. # Look at the argument we got. We use all the common list separators.
  6573. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6574. for pkg in $enableval; do
  6575. IFS="$lt_save_ifs"
  6576. if test "X$pkg" = "X$p"; then
  6577. enable_shared=yes
  6578. fi
  6579. done
  6580. IFS="$lt_save_ifs"
  6581. ;;
  6582. esac
  6583. else
  6584. enable_shared=yes
  6585. fi
  6586. # Check whether --enable-static was given.
  6587. if test "${enable_static+set}" = set; then :
  6588. enableval=$enable_static; p=${PACKAGE-default}
  6589. case $enableval in
  6590. yes) enable_static=yes ;;
  6591. no) enable_static=no ;;
  6592. *)
  6593. enable_static=no
  6594. # Look at the argument we got. We use all the common list separators.
  6595. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6596. for pkg in $enableval; do
  6597. IFS="$lt_save_ifs"
  6598. if test "X$pkg" = "X$p"; then
  6599. enable_static=yes
  6600. fi
  6601. done
  6602. IFS="$lt_save_ifs"
  6603. ;;
  6604. esac
  6605. else
  6606. enable_static=yes
  6607. fi
  6608. # Check whether --with-pic was given.
  6609. if test "${with_pic+set}" = set; then :
  6610. withval=$with_pic; lt_p=${PACKAGE-default}
  6611. case $withval in
  6612. yes|no) pic_mode=$withval ;;
  6613. *)
  6614. pic_mode=default
  6615. # Look at the argument we got. We use all the common list separators.
  6616. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6617. for lt_pkg in $withval; do
  6618. IFS="$lt_save_ifs"
  6619. if test "X$lt_pkg" = "X$lt_p"; then
  6620. pic_mode=yes
  6621. fi
  6622. done
  6623. IFS="$lt_save_ifs"
  6624. ;;
  6625. esac
  6626. else
  6627. pic_mode=default
  6628. fi
  6629. test -z "$pic_mode" && pic_mode=default
  6630. # Check whether --enable-fast-install was given.
  6631. if test "${enable_fast_install+set}" = set; then :
  6632. enableval=$enable_fast_install; p=${PACKAGE-default}
  6633. case $enableval in
  6634. yes) enable_fast_install=yes ;;
  6635. no) enable_fast_install=no ;;
  6636. *)
  6637. enable_fast_install=no
  6638. # Look at the argument we got. We use all the common list separators.
  6639. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6640. for pkg in $enableval; do
  6641. IFS="$lt_save_ifs"
  6642. if test "X$pkg" = "X$p"; then
  6643. enable_fast_install=yes
  6644. fi
  6645. done
  6646. IFS="$lt_save_ifs"
  6647. ;;
  6648. esac
  6649. else
  6650. enable_fast_install=yes
  6651. fi
  6652. # This can be used to rebuild libtool when needed
  6653. LIBTOOL_DEPS="$ltmain"
  6654. # Always use our own libtool.
  6655. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6656. test -z "$LN_S" && LN_S="ln -s"
  6657. if test -n "${ZSH_VERSION+set}" ; then
  6658. setopt NO_GLOB_SUBST
  6659. fi
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6661. $as_echo_n "checking for objdir... " >&6; }
  6662. if ${lt_cv_objdir+:} false; then :
  6663. $as_echo_n "(cached) " >&6
  6664. else
  6665. rm -f .libs 2>/dev/null
  6666. mkdir .libs 2>/dev/null
  6667. if test -d .libs; then
  6668. lt_cv_objdir=.libs
  6669. else
  6670. # MS-DOS does not allow filenames that begin with a dot.
  6671. lt_cv_objdir=_libs
  6672. fi
  6673. rmdir .libs 2>/dev/null
  6674. fi
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6676. $as_echo "$lt_cv_objdir" >&6; }
  6677. objdir=$lt_cv_objdir
  6678. cat >>confdefs.h <<_ACEOF
  6679. #define LT_OBJDIR "$lt_cv_objdir/"
  6680. _ACEOF
  6681. case $host_os in
  6682. aix3*)
  6683. # AIX sometimes has problems with the GCC collect2 program. For some
  6684. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6685. # vanish in a puff of smoke.
  6686. if test "X${COLLECT_NAMES+set}" != Xset; then
  6687. COLLECT_NAMES=
  6688. export COLLECT_NAMES
  6689. fi
  6690. ;;
  6691. esac
  6692. # Global variables:
  6693. ofile=libtool
  6694. can_build_shared=yes
  6695. # All known linkers require a `.a' archive for static linking (except MSVC,
  6696. # which needs '.lib').
  6697. libext=a
  6698. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6699. old_CC="$CC"
  6700. old_CFLAGS="$CFLAGS"
  6701. # Set sane defaults for various variables
  6702. test -z "$CC" && CC=cc
  6703. test -z "$LTCC" && LTCC=$CC
  6704. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6705. test -z "$LD" && LD=ld
  6706. test -z "$ac_objext" && ac_objext=o
  6707. for cc_temp in $compiler""; do
  6708. case $cc_temp in
  6709. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6710. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6711. \-*) ;;
  6712. *) break;;
  6713. esac
  6714. done
  6715. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6716. # Only perform the check for file, if the check method requires it
  6717. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6718. case $deplibs_check_method in
  6719. file_magic*)
  6720. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6722. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6723. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6724. $as_echo_n "(cached) " >&6
  6725. else
  6726. case $MAGIC_CMD in
  6727. [\\/*] | ?:[\\/]*)
  6728. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6729. ;;
  6730. *)
  6731. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6732. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6733. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6734. for ac_dir in $ac_dummy; do
  6735. IFS="$lt_save_ifs"
  6736. test -z "$ac_dir" && ac_dir=.
  6737. if test -f $ac_dir/${ac_tool_prefix}file; then
  6738. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6739. if test -n "$file_magic_test_file"; then
  6740. case $deplibs_check_method in
  6741. "file_magic "*)
  6742. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6743. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6744. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6745. $EGREP "$file_magic_regex" > /dev/null; then
  6746. :
  6747. else
  6748. cat <<_LT_EOF 1>&2
  6749. *** Warning: the command libtool uses to detect shared libraries,
  6750. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6751. *** The result is that libtool may fail to recognize shared libraries
  6752. *** as such. This will affect the creation of libtool libraries that
  6753. *** depend on shared libraries, but programs linked with such libtool
  6754. *** libraries will work regardless of this problem. Nevertheless, you
  6755. *** may want to report the problem to your system manager and/or to
  6756. *** bug-libtool@gnu.org
  6757. _LT_EOF
  6758. fi ;;
  6759. esac
  6760. fi
  6761. break
  6762. fi
  6763. done
  6764. IFS="$lt_save_ifs"
  6765. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6766. ;;
  6767. esac
  6768. fi
  6769. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6770. if test -n "$MAGIC_CMD"; then
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6772. $as_echo "$MAGIC_CMD" >&6; }
  6773. else
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6775. $as_echo "no" >&6; }
  6776. fi
  6777. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6778. if test -n "$ac_tool_prefix"; then
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6780. $as_echo_n "checking for file... " >&6; }
  6781. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6782. $as_echo_n "(cached) " >&6
  6783. else
  6784. case $MAGIC_CMD in
  6785. [\\/*] | ?:[\\/]*)
  6786. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6787. ;;
  6788. *)
  6789. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6790. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6791. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6792. for ac_dir in $ac_dummy; do
  6793. IFS="$lt_save_ifs"
  6794. test -z "$ac_dir" && ac_dir=.
  6795. if test -f $ac_dir/file; then
  6796. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6797. if test -n "$file_magic_test_file"; then
  6798. case $deplibs_check_method in
  6799. "file_magic "*)
  6800. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6801. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6802. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6803. $EGREP "$file_magic_regex" > /dev/null; then
  6804. :
  6805. else
  6806. cat <<_LT_EOF 1>&2
  6807. *** Warning: the command libtool uses to detect shared libraries,
  6808. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6809. *** The result is that libtool may fail to recognize shared libraries
  6810. *** as such. This will affect the creation of libtool libraries that
  6811. *** depend on shared libraries, but programs linked with such libtool
  6812. *** libraries will work regardless of this problem. Nevertheless, you
  6813. *** may want to report the problem to your system manager and/or to
  6814. *** bug-libtool@gnu.org
  6815. _LT_EOF
  6816. fi ;;
  6817. esac
  6818. fi
  6819. break
  6820. fi
  6821. done
  6822. IFS="$lt_save_ifs"
  6823. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6824. ;;
  6825. esac
  6826. fi
  6827. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6828. if test -n "$MAGIC_CMD"; then
  6829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6830. $as_echo "$MAGIC_CMD" >&6; }
  6831. else
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6833. $as_echo "no" >&6; }
  6834. fi
  6835. else
  6836. MAGIC_CMD=:
  6837. fi
  6838. fi
  6839. fi
  6840. ;;
  6841. esac
  6842. # Use C for the default configuration in the libtool script
  6843. lt_save_CC="$CC"
  6844. ac_ext=c
  6845. ac_cpp='$CPP $CPPFLAGS'
  6846. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6847. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6848. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6849. # Source file extension for C test sources.
  6850. ac_ext=c
  6851. # Object file extension for compiled C test sources.
  6852. objext=o
  6853. objext=$objext
  6854. # Code to be used in simple compile tests
  6855. lt_simple_compile_test_code="int some_variable = 0;"
  6856. # Code to be used in simple link tests
  6857. lt_simple_link_test_code='int main(){return(0);}'
  6858. # If no C compiler was specified, use CC.
  6859. LTCC=${LTCC-"$CC"}
  6860. # If no C compiler flags were specified, use CFLAGS.
  6861. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6862. # Allow CC to be a program name with arguments.
  6863. compiler=$CC
  6864. # Save the default compiler, since it gets overwritten when the other
  6865. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6866. compiler_DEFAULT=$CC
  6867. # save warnings/boilerplate of simple test code
  6868. ac_outfile=conftest.$ac_objext
  6869. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6870. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6871. _lt_compiler_boilerplate=`cat conftest.err`
  6872. $RM conftest*
  6873. ac_outfile=conftest.$ac_objext
  6874. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6875. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6876. _lt_linker_boilerplate=`cat conftest.err`
  6877. $RM -r conftest*
  6878. ## CAVEAT EMPTOR:
  6879. ## There is no encapsulation within the following macros, do not change
  6880. ## the running order or otherwise move them around unless you know exactly
  6881. ## what you are doing...
  6882. if test -n "$compiler"; then
  6883. lt_prog_compiler_no_builtin_flag=
  6884. if test "$GCC" = yes; then
  6885. case $cc_basename in
  6886. nvcc*)
  6887. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6888. *)
  6889. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6890. esac
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6892. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6893. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6894. $as_echo_n "(cached) " >&6
  6895. else
  6896. lt_cv_prog_compiler_rtti_exceptions=no
  6897. ac_outfile=conftest.$ac_objext
  6898. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6899. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6900. # Insert the option either (1) after the last *FLAGS variable, or
  6901. # (2) before a word containing "conftest.", or (3) at the end.
  6902. # Note that $ac_compile itself does not contain backslashes and begins
  6903. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6904. # The option is referenced via a variable to avoid confusing sed.
  6905. lt_compile=`echo "$ac_compile" | $SED \
  6906. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6907. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6908. -e 's:$: $lt_compiler_flag:'`
  6909. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6910. (eval "$lt_compile" 2>conftest.err)
  6911. ac_status=$?
  6912. cat conftest.err >&5
  6913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6914. if (exit $ac_status) && test -s "$ac_outfile"; then
  6915. # The compiler can only warn and ignore the option if not recognized
  6916. # So say no if there are warnings other than the usual output.
  6917. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6918. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6919. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6920. lt_cv_prog_compiler_rtti_exceptions=yes
  6921. fi
  6922. fi
  6923. $RM conftest*
  6924. fi
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6926. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6927. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6928. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6929. else
  6930. :
  6931. fi
  6932. fi
  6933. lt_prog_compiler_wl=
  6934. lt_prog_compiler_pic=
  6935. lt_prog_compiler_static=
  6936. if test "$GCC" = yes; then
  6937. lt_prog_compiler_wl='-Wl,'
  6938. lt_prog_compiler_static='-static'
  6939. case $host_os in
  6940. aix*)
  6941. # All AIX code is PIC.
  6942. if test "$host_cpu" = ia64; then
  6943. # AIX 5 now supports IA64 processor
  6944. lt_prog_compiler_static='-Bstatic'
  6945. fi
  6946. ;;
  6947. amigaos*)
  6948. case $host_cpu in
  6949. powerpc)
  6950. # see comment about AmigaOS4 .so support
  6951. lt_prog_compiler_pic='-fPIC'
  6952. ;;
  6953. m68k)
  6954. # FIXME: we need at least 68020 code to build shared libraries, but
  6955. # adding the `-m68020' flag to GCC prevents building anything better,
  6956. # like `-m68040'.
  6957. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6958. ;;
  6959. esac
  6960. ;;
  6961. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6962. # PIC is the default for these OSes.
  6963. ;;
  6964. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6965. # This hack is so that the source file can tell whether it is being
  6966. # built for inclusion in a dll (and should export symbols for example).
  6967. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6968. # (--disable-auto-import) libraries
  6969. lt_prog_compiler_pic='-DDLL_EXPORT'
  6970. ;;
  6971. darwin* | rhapsody*)
  6972. # PIC is the default on this platform
  6973. # Common symbols not allowed in MH_DYLIB files
  6974. lt_prog_compiler_pic='-fno-common'
  6975. ;;
  6976. haiku*)
  6977. # PIC is the default for Haiku.
  6978. # The "-static" flag exists, but is broken.
  6979. lt_prog_compiler_static=
  6980. ;;
  6981. hpux*)
  6982. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6983. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6984. # sets the default TLS model and affects inlining.
  6985. case $host_cpu in
  6986. hppa*64*)
  6987. # +Z the default
  6988. ;;
  6989. *)
  6990. lt_prog_compiler_pic='-fPIC'
  6991. ;;
  6992. esac
  6993. ;;
  6994. interix[3-9]*)
  6995. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6996. # Instead, we relocate shared libraries at runtime.
  6997. ;;
  6998. msdosdjgpp*)
  6999. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7000. # on systems that don't support them.
  7001. lt_prog_compiler_can_build_shared=no
  7002. enable_shared=no
  7003. ;;
  7004. *nto* | *qnx*)
  7005. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7006. # it will coredump.
  7007. lt_prog_compiler_pic='-fPIC -shared'
  7008. ;;
  7009. sysv4*MP*)
  7010. if test -d /usr/nec; then
  7011. lt_prog_compiler_pic=-Kconform_pic
  7012. fi
  7013. ;;
  7014. *)
  7015. lt_prog_compiler_pic='-fPIC'
  7016. ;;
  7017. esac
  7018. case $cc_basename in
  7019. nvcc*) # Cuda Compiler Driver 2.2
  7020. lt_prog_compiler_wl='-Xlinker '
  7021. if test -n "$lt_prog_compiler_pic"; then
  7022. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7023. fi
  7024. ;;
  7025. esac
  7026. else
  7027. # PORTME Check for flag to pass linker flags through the system compiler.
  7028. case $host_os in
  7029. aix*)
  7030. lt_prog_compiler_wl='-Wl,'
  7031. if test "$host_cpu" = ia64; then
  7032. # AIX 5 now supports IA64 processor
  7033. lt_prog_compiler_static='-Bstatic'
  7034. else
  7035. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7036. fi
  7037. ;;
  7038. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7039. # This hack is so that the source file can tell whether it is being
  7040. # built for inclusion in a dll (and should export symbols for example).
  7041. lt_prog_compiler_pic='-DDLL_EXPORT'
  7042. ;;
  7043. hpux9* | hpux10* | hpux11*)
  7044. lt_prog_compiler_wl='-Wl,'
  7045. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7046. # not for PA HP-UX.
  7047. case $host_cpu in
  7048. hppa*64*|ia64*)
  7049. # +Z the default
  7050. ;;
  7051. *)
  7052. lt_prog_compiler_pic='+Z'
  7053. ;;
  7054. esac
  7055. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7056. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7057. ;;
  7058. irix5* | irix6* | nonstopux*)
  7059. lt_prog_compiler_wl='-Wl,'
  7060. # PIC (with -KPIC) is the default.
  7061. lt_prog_compiler_static='-non_shared'
  7062. ;;
  7063. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7064. case $cc_basename in
  7065. # old Intel for x86_64 which still supported -KPIC.
  7066. ecc*)
  7067. lt_prog_compiler_wl='-Wl,'
  7068. lt_prog_compiler_pic='-KPIC'
  7069. lt_prog_compiler_static='-static'
  7070. ;;
  7071. # icc used to be incompatible with GCC.
  7072. # ICC 10 doesn't accept -KPIC any more.
  7073. icc* | ifort*)
  7074. lt_prog_compiler_wl='-Wl,'
  7075. lt_prog_compiler_pic='-fPIC'
  7076. lt_prog_compiler_static='-static'
  7077. ;;
  7078. # Lahey Fortran 8.1.
  7079. lf95*)
  7080. lt_prog_compiler_wl='-Wl,'
  7081. lt_prog_compiler_pic='--shared'
  7082. lt_prog_compiler_static='--static'
  7083. ;;
  7084. nagfor*)
  7085. # NAG Fortran compiler
  7086. lt_prog_compiler_wl='-Wl,-Wl,,'
  7087. lt_prog_compiler_pic='-PIC'
  7088. lt_prog_compiler_static='-Bstatic'
  7089. ;;
  7090. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7091. # Portland Group compilers (*not* the Pentium gcc compiler,
  7092. # which looks to be a dead project)
  7093. lt_prog_compiler_wl='-Wl,'
  7094. lt_prog_compiler_pic='-fpic'
  7095. lt_prog_compiler_static='-Bstatic'
  7096. ;;
  7097. ccc*)
  7098. lt_prog_compiler_wl='-Wl,'
  7099. # All Alpha code is PIC.
  7100. lt_prog_compiler_static='-non_shared'
  7101. ;;
  7102. xl* | bgxl* | bgf* | mpixl*)
  7103. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7104. lt_prog_compiler_wl='-Wl,'
  7105. lt_prog_compiler_pic='-qpic'
  7106. lt_prog_compiler_static='-qstaticlink'
  7107. ;;
  7108. *)
  7109. case `$CC -V 2>&1 | sed 5q` in
  7110. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7111. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7112. lt_prog_compiler_pic='-KPIC'
  7113. lt_prog_compiler_static='-Bstatic'
  7114. lt_prog_compiler_wl=''
  7115. ;;
  7116. *Sun\ F* | *Sun*Fortran*)
  7117. lt_prog_compiler_pic='-KPIC'
  7118. lt_prog_compiler_static='-Bstatic'
  7119. lt_prog_compiler_wl='-Qoption ld '
  7120. ;;
  7121. *Sun\ C*)
  7122. # Sun C 5.9
  7123. lt_prog_compiler_pic='-KPIC'
  7124. lt_prog_compiler_static='-Bstatic'
  7125. lt_prog_compiler_wl='-Wl,'
  7126. ;;
  7127. *Intel*\ [CF]*Compiler*)
  7128. lt_prog_compiler_wl='-Wl,'
  7129. lt_prog_compiler_pic='-fPIC'
  7130. lt_prog_compiler_static='-static'
  7131. ;;
  7132. *Portland\ Group*)
  7133. lt_prog_compiler_wl='-Wl,'
  7134. lt_prog_compiler_pic='-fpic'
  7135. lt_prog_compiler_static='-Bstatic'
  7136. ;;
  7137. esac
  7138. ;;
  7139. esac
  7140. ;;
  7141. newsos6)
  7142. lt_prog_compiler_pic='-KPIC'
  7143. lt_prog_compiler_static='-Bstatic'
  7144. ;;
  7145. *nto* | *qnx*)
  7146. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7147. # it will coredump.
  7148. lt_prog_compiler_pic='-fPIC -shared'
  7149. ;;
  7150. osf3* | osf4* | osf5*)
  7151. lt_prog_compiler_wl='-Wl,'
  7152. # All OSF/1 code is PIC.
  7153. lt_prog_compiler_static='-non_shared'
  7154. ;;
  7155. rdos*)
  7156. lt_prog_compiler_static='-non_shared'
  7157. ;;
  7158. solaris*)
  7159. lt_prog_compiler_pic='-KPIC'
  7160. lt_prog_compiler_static='-Bstatic'
  7161. case $cc_basename in
  7162. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7163. lt_prog_compiler_wl='-Qoption ld ';;
  7164. *)
  7165. lt_prog_compiler_wl='-Wl,';;
  7166. esac
  7167. ;;
  7168. sunos4*)
  7169. lt_prog_compiler_wl='-Qoption ld '
  7170. lt_prog_compiler_pic='-PIC'
  7171. lt_prog_compiler_static='-Bstatic'
  7172. ;;
  7173. sysv4 | sysv4.2uw2* | sysv4.3*)
  7174. lt_prog_compiler_wl='-Wl,'
  7175. lt_prog_compiler_pic='-KPIC'
  7176. lt_prog_compiler_static='-Bstatic'
  7177. ;;
  7178. sysv4*MP*)
  7179. if test -d /usr/nec ;then
  7180. lt_prog_compiler_pic='-Kconform_pic'
  7181. lt_prog_compiler_static='-Bstatic'
  7182. fi
  7183. ;;
  7184. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7185. lt_prog_compiler_wl='-Wl,'
  7186. lt_prog_compiler_pic='-KPIC'
  7187. lt_prog_compiler_static='-Bstatic'
  7188. ;;
  7189. unicos*)
  7190. lt_prog_compiler_wl='-Wl,'
  7191. lt_prog_compiler_can_build_shared=no
  7192. ;;
  7193. uts4*)
  7194. lt_prog_compiler_pic='-pic'
  7195. lt_prog_compiler_static='-Bstatic'
  7196. ;;
  7197. *)
  7198. lt_prog_compiler_can_build_shared=no
  7199. ;;
  7200. esac
  7201. fi
  7202. case $host_os in
  7203. # For platforms which do not support PIC, -DPIC is meaningless:
  7204. *djgpp*)
  7205. lt_prog_compiler_pic=
  7206. ;;
  7207. *)
  7208. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7209. ;;
  7210. esac
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7212. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7213. if ${lt_cv_prog_compiler_pic+:} false; then :
  7214. $as_echo_n "(cached) " >&6
  7215. else
  7216. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7217. fi
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7219. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7220. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7221. #
  7222. # Check to make sure the PIC flag actually works.
  7223. #
  7224. if test -n "$lt_prog_compiler_pic"; then
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7226. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7227. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7228. $as_echo_n "(cached) " >&6
  7229. else
  7230. lt_cv_prog_compiler_pic_works=no
  7231. ac_outfile=conftest.$ac_objext
  7232. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7233. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7234. # Insert the option either (1) after the last *FLAGS variable, or
  7235. # (2) before a word containing "conftest.", or (3) at the end.
  7236. # Note that $ac_compile itself does not contain backslashes and begins
  7237. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7238. # The option is referenced via a variable to avoid confusing sed.
  7239. lt_compile=`echo "$ac_compile" | $SED \
  7240. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7241. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7242. -e 's:$: $lt_compiler_flag:'`
  7243. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7244. (eval "$lt_compile" 2>conftest.err)
  7245. ac_status=$?
  7246. cat conftest.err >&5
  7247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7248. if (exit $ac_status) && test -s "$ac_outfile"; then
  7249. # The compiler can only warn and ignore the option if not recognized
  7250. # So say no if there are warnings other than the usual output.
  7251. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7252. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7253. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7254. lt_cv_prog_compiler_pic_works=yes
  7255. fi
  7256. fi
  7257. $RM conftest*
  7258. fi
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7260. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7261. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7262. case $lt_prog_compiler_pic in
  7263. "" | " "*) ;;
  7264. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7265. esac
  7266. else
  7267. lt_prog_compiler_pic=
  7268. lt_prog_compiler_can_build_shared=no
  7269. fi
  7270. fi
  7271. #
  7272. # Check to make sure the static flag actually works.
  7273. #
  7274. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7276. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7277. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7278. $as_echo_n "(cached) " >&6
  7279. else
  7280. lt_cv_prog_compiler_static_works=no
  7281. save_LDFLAGS="$LDFLAGS"
  7282. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7283. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7284. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7285. # The linker can only warn and ignore the option if not recognized
  7286. # So say no if there are warnings
  7287. if test -s conftest.err; then
  7288. # Append any errors to the config.log.
  7289. cat conftest.err 1>&5
  7290. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7291. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7292. if diff conftest.exp conftest.er2 >/dev/null; then
  7293. lt_cv_prog_compiler_static_works=yes
  7294. fi
  7295. else
  7296. lt_cv_prog_compiler_static_works=yes
  7297. fi
  7298. fi
  7299. $RM -r conftest*
  7300. LDFLAGS="$save_LDFLAGS"
  7301. fi
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7303. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7304. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7305. :
  7306. else
  7307. lt_prog_compiler_static=
  7308. fi
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7310. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7311. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7312. $as_echo_n "(cached) " >&6
  7313. else
  7314. lt_cv_prog_compiler_c_o=no
  7315. $RM -r conftest 2>/dev/null
  7316. mkdir conftest
  7317. cd conftest
  7318. mkdir out
  7319. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7320. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7321. # Insert the option either (1) after the last *FLAGS variable, or
  7322. # (2) before a word containing "conftest.", or (3) at the end.
  7323. # Note that $ac_compile itself does not contain backslashes and begins
  7324. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7325. lt_compile=`echo "$ac_compile" | $SED \
  7326. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7327. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7328. -e 's:$: $lt_compiler_flag:'`
  7329. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7330. (eval "$lt_compile" 2>out/conftest.err)
  7331. ac_status=$?
  7332. cat out/conftest.err >&5
  7333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7334. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7335. then
  7336. # The compiler can only warn and ignore the option if not recognized
  7337. # So say no if there are warnings
  7338. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7339. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7340. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7341. lt_cv_prog_compiler_c_o=yes
  7342. fi
  7343. fi
  7344. chmod u+w . 2>&5
  7345. $RM conftest*
  7346. # SGI C++ compiler will create directory out/ii_files/ for
  7347. # template instantiation
  7348. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7349. $RM out/* && rmdir out
  7350. cd ..
  7351. $RM -r conftest
  7352. $RM conftest*
  7353. fi
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7355. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7357. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7358. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7359. $as_echo_n "(cached) " >&6
  7360. else
  7361. lt_cv_prog_compiler_c_o=no
  7362. $RM -r conftest 2>/dev/null
  7363. mkdir conftest
  7364. cd conftest
  7365. mkdir out
  7366. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7367. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7368. # Insert the option either (1) after the last *FLAGS variable, or
  7369. # (2) before a word containing "conftest.", or (3) at the end.
  7370. # Note that $ac_compile itself does not contain backslashes and begins
  7371. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7372. lt_compile=`echo "$ac_compile" | $SED \
  7373. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7374. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7375. -e 's:$: $lt_compiler_flag:'`
  7376. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7377. (eval "$lt_compile" 2>out/conftest.err)
  7378. ac_status=$?
  7379. cat out/conftest.err >&5
  7380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7381. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7382. then
  7383. # The compiler can only warn and ignore the option if not recognized
  7384. # So say no if there are warnings
  7385. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7386. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7387. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7388. lt_cv_prog_compiler_c_o=yes
  7389. fi
  7390. fi
  7391. chmod u+w . 2>&5
  7392. $RM conftest*
  7393. # SGI C++ compiler will create directory out/ii_files/ for
  7394. # template instantiation
  7395. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7396. $RM out/* && rmdir out
  7397. cd ..
  7398. $RM -r conftest
  7399. $RM conftest*
  7400. fi
  7401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7402. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7403. hard_links="nottested"
  7404. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7405. # do not overwrite the value of need_locks provided by the user
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7407. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7408. hard_links=yes
  7409. $RM conftest*
  7410. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7411. touch conftest.a
  7412. ln conftest.a conftest.b 2>&5 || hard_links=no
  7413. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7415. $as_echo "$hard_links" >&6; }
  7416. if test "$hard_links" = no; then
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7418. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7419. need_locks=warn
  7420. fi
  7421. else
  7422. need_locks=no
  7423. fi
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7425. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7426. runpath_var=
  7427. allow_undefined_flag=
  7428. always_export_symbols=no
  7429. archive_cmds=
  7430. archive_expsym_cmds=
  7431. compiler_needs_object=no
  7432. enable_shared_with_static_runtimes=no
  7433. export_dynamic_flag_spec=
  7434. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7435. hardcode_automatic=no
  7436. hardcode_direct=no
  7437. hardcode_direct_absolute=no
  7438. hardcode_libdir_flag_spec=
  7439. hardcode_libdir_separator=
  7440. hardcode_minus_L=no
  7441. hardcode_shlibpath_var=unsupported
  7442. inherit_rpath=no
  7443. link_all_deplibs=unknown
  7444. module_cmds=
  7445. module_expsym_cmds=
  7446. old_archive_from_new_cmds=
  7447. old_archive_from_expsyms_cmds=
  7448. thread_safe_flag_spec=
  7449. whole_archive_flag_spec=
  7450. # include_expsyms should be a list of space-separated symbols to be *always*
  7451. # included in the symbol list
  7452. include_expsyms=
  7453. # exclude_expsyms can be an extended regexp of symbols to exclude
  7454. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7455. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7456. # as well as any symbol that contains `d'.
  7457. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7458. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7459. # platforms (ab)use it in PIC code, but their linkers get confused if
  7460. # the symbol is explicitly referenced. Since portable code cannot
  7461. # rely on this symbol name, it's probably fine to never include it in
  7462. # preloaded symbol tables.
  7463. # Exclude shared library initialization/finalization symbols.
  7464. extract_expsyms_cmds=
  7465. case $host_os in
  7466. cygwin* | mingw* | pw32* | cegcc*)
  7467. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7468. # When not using gcc, we currently assume that we are using
  7469. # Microsoft Visual C++.
  7470. if test "$GCC" != yes; then
  7471. with_gnu_ld=no
  7472. fi
  7473. ;;
  7474. interix*)
  7475. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7476. with_gnu_ld=yes
  7477. ;;
  7478. openbsd*)
  7479. with_gnu_ld=no
  7480. ;;
  7481. esac
  7482. ld_shlibs=yes
  7483. # On some targets, GNU ld is compatible enough with the native linker
  7484. # that we're better off using the native interface for both.
  7485. lt_use_gnu_ld_interface=no
  7486. if test "$with_gnu_ld" = yes; then
  7487. case $host_os in
  7488. aix*)
  7489. # The AIX port of GNU ld has always aspired to compatibility
  7490. # with the native linker. However, as the warning in the GNU ld
  7491. # block says, versions before 2.19.5* couldn't really create working
  7492. # shared libraries, regardless of the interface used.
  7493. case `$LD -v 2>&1` in
  7494. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7495. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7496. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7497. *)
  7498. lt_use_gnu_ld_interface=yes
  7499. ;;
  7500. esac
  7501. ;;
  7502. *)
  7503. lt_use_gnu_ld_interface=yes
  7504. ;;
  7505. esac
  7506. fi
  7507. if test "$lt_use_gnu_ld_interface" = yes; then
  7508. # If archive_cmds runs LD, not CC, wlarc should be empty
  7509. wlarc='${wl}'
  7510. # Set some defaults for GNU ld with shared library support. These
  7511. # are reset later if shared libraries are not supported. Putting them
  7512. # here allows them to be overridden if necessary.
  7513. runpath_var=LD_RUN_PATH
  7514. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7515. export_dynamic_flag_spec='${wl}--export-dynamic'
  7516. # ancient GNU ld didn't support --whole-archive et. al.
  7517. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7518. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7519. else
  7520. whole_archive_flag_spec=
  7521. fi
  7522. supports_anon_versioning=no
  7523. case `$LD -v 2>&1` in
  7524. *GNU\ gold*) supports_anon_versioning=yes ;;
  7525. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7526. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7527. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7528. *\ 2.11.*) ;; # other 2.11 versions
  7529. *) supports_anon_versioning=yes ;;
  7530. esac
  7531. # See if GNU ld supports shared libraries.
  7532. case $host_os in
  7533. aix[3-9]*)
  7534. # On AIX/PPC, the GNU linker is very broken
  7535. if test "$host_cpu" != ia64; then
  7536. ld_shlibs=no
  7537. cat <<_LT_EOF 1>&2
  7538. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7539. *** to be unable to reliably create shared libraries on AIX.
  7540. *** Therefore, libtool is disabling shared libraries support. If you
  7541. *** really care for shared libraries, you may want to install binutils
  7542. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7543. *** You will then need to restart the configuration process.
  7544. _LT_EOF
  7545. fi
  7546. ;;
  7547. amigaos*)
  7548. case $host_cpu in
  7549. powerpc)
  7550. # see comment about AmigaOS4 .so support
  7551. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7552. archive_expsym_cmds=''
  7553. ;;
  7554. m68k)
  7555. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7556. hardcode_libdir_flag_spec='-L$libdir'
  7557. hardcode_minus_L=yes
  7558. ;;
  7559. esac
  7560. ;;
  7561. beos*)
  7562. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7563. allow_undefined_flag=unsupported
  7564. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7565. # support --undefined. This deserves some investigation. FIXME
  7566. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7567. else
  7568. ld_shlibs=no
  7569. fi
  7570. ;;
  7571. cygwin* | mingw* | pw32* | cegcc*)
  7572. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7573. # as there is no search path for DLLs.
  7574. hardcode_libdir_flag_spec='-L$libdir'
  7575. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7576. allow_undefined_flag=unsupported
  7577. always_export_symbols=no
  7578. enable_shared_with_static_runtimes=yes
  7579. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7580. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7581. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7582. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7583. # If the export-symbols file already is a .def file (1st line
  7584. # is EXPORTS), use it as is; otherwise, prepend...
  7585. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7586. cp $export_symbols $output_objdir/$soname.def;
  7587. else
  7588. echo EXPORTS > $output_objdir/$soname.def;
  7589. cat $export_symbols >> $output_objdir/$soname.def;
  7590. fi~
  7591. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7592. else
  7593. ld_shlibs=no
  7594. fi
  7595. ;;
  7596. haiku*)
  7597. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7598. link_all_deplibs=yes
  7599. ;;
  7600. interix[3-9]*)
  7601. hardcode_direct=no
  7602. hardcode_shlibpath_var=no
  7603. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7604. export_dynamic_flag_spec='${wl}-E'
  7605. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7606. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7607. # default) and relocated if they conflict, which is a slow very memory
  7608. # consuming and fragmenting process. To avoid this, we pick a random,
  7609. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7610. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7611. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7612. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7613. ;;
  7614. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7615. tmp_diet=no
  7616. if test "$host_os" = linux-dietlibc; then
  7617. case $cc_basename in
  7618. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7619. esac
  7620. fi
  7621. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7622. && test "$tmp_diet" = no
  7623. then
  7624. tmp_addflag=' $pic_flag'
  7625. tmp_sharedflag='-shared'
  7626. case $cc_basename,$host_cpu in
  7627. pgcc*) # Portland Group C compiler
  7628. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7629. tmp_addflag=' $pic_flag'
  7630. ;;
  7631. pgf77* | pgf90* | pgf95* | pgfortran*)
  7632. # Portland Group f77 and f90 compilers
  7633. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7634. tmp_addflag=' $pic_flag -Mnomain' ;;
  7635. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7636. tmp_addflag=' -i_dynamic' ;;
  7637. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7638. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7639. ifc* | ifort*) # Intel Fortran compiler
  7640. tmp_addflag=' -nofor_main' ;;
  7641. lf95*) # Lahey Fortran 8.1
  7642. whole_archive_flag_spec=
  7643. tmp_sharedflag='--shared' ;;
  7644. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7645. tmp_sharedflag='-qmkshrobj'
  7646. tmp_addflag= ;;
  7647. nvcc*) # Cuda Compiler Driver 2.2
  7648. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7649. compiler_needs_object=yes
  7650. ;;
  7651. esac
  7652. case `$CC -V 2>&1 | sed 5q` in
  7653. *Sun\ C*) # Sun C 5.9
  7654. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7655. compiler_needs_object=yes
  7656. tmp_sharedflag='-G' ;;
  7657. *Sun\ F*) # Sun Fortran 8.3
  7658. tmp_sharedflag='-G' ;;
  7659. esac
  7660. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7661. if test "x$supports_anon_versioning" = xyes; then
  7662. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7663. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7664. echo "local: *; };" >> $output_objdir/$libname.ver~
  7665. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7666. fi
  7667. case $cc_basename in
  7668. xlf* | bgf* | bgxlf* | mpixlf*)
  7669. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7670. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7671. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7672. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7673. if test "x$supports_anon_versioning" = xyes; then
  7674. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7675. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7676. echo "local: *; };" >> $output_objdir/$libname.ver~
  7677. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7678. fi
  7679. ;;
  7680. esac
  7681. else
  7682. ld_shlibs=no
  7683. fi
  7684. ;;
  7685. netbsd*)
  7686. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7687. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7688. wlarc=
  7689. else
  7690. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7691. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7692. fi
  7693. ;;
  7694. solaris*)
  7695. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7696. ld_shlibs=no
  7697. cat <<_LT_EOF 1>&2
  7698. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7699. *** create shared libraries on Solaris systems. Therefore, libtool
  7700. *** is disabling shared libraries support. We urge you to upgrade GNU
  7701. *** binutils to release 2.9.1 or newer. Another option is to modify
  7702. *** your PATH or compiler configuration so that the native linker is
  7703. *** used, and then restart.
  7704. _LT_EOF
  7705. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7706. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7707. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7708. else
  7709. ld_shlibs=no
  7710. fi
  7711. ;;
  7712. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7713. case `$LD -v 2>&1` in
  7714. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7715. ld_shlibs=no
  7716. cat <<_LT_EOF 1>&2
  7717. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7718. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7719. *** is disabling shared libraries support. We urge you to upgrade GNU
  7720. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7721. *** your PATH or compiler configuration so that the native linker is
  7722. *** used, and then restart.
  7723. _LT_EOF
  7724. ;;
  7725. *)
  7726. # For security reasons, it is highly recommended that you always
  7727. # use absolute paths for naming shared libraries, and exclude the
  7728. # DT_RUNPATH tag from executables and libraries. But doing so
  7729. # requires that you compile everything twice, which is a pain.
  7730. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7731. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7732. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7733. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7734. else
  7735. ld_shlibs=no
  7736. fi
  7737. ;;
  7738. esac
  7739. ;;
  7740. sunos4*)
  7741. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7742. wlarc=
  7743. hardcode_direct=yes
  7744. hardcode_shlibpath_var=no
  7745. ;;
  7746. *)
  7747. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7748. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7749. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7750. else
  7751. ld_shlibs=no
  7752. fi
  7753. ;;
  7754. esac
  7755. if test "$ld_shlibs" = no; then
  7756. runpath_var=
  7757. hardcode_libdir_flag_spec=
  7758. export_dynamic_flag_spec=
  7759. whole_archive_flag_spec=
  7760. fi
  7761. else
  7762. # PORTME fill in a description of your system's linker (not GNU ld)
  7763. case $host_os in
  7764. aix3*)
  7765. allow_undefined_flag=unsupported
  7766. always_export_symbols=yes
  7767. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7768. # Note: this linker hardcodes the directories in LIBPATH if there
  7769. # are no directories specified by -L.
  7770. hardcode_minus_L=yes
  7771. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7772. # Neither direct hardcoding nor static linking is supported with a
  7773. # broken collect2.
  7774. hardcode_direct=unsupported
  7775. fi
  7776. ;;
  7777. aix[4-9]*)
  7778. if test "$host_cpu" = ia64; then
  7779. # On IA64, the linker does run time linking by default, so we don't
  7780. # have to do anything special.
  7781. aix_use_runtimelinking=no
  7782. exp_sym_flag='-Bexport'
  7783. no_entry_flag=""
  7784. else
  7785. # If we're using GNU nm, then we don't want the "-C" option.
  7786. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7787. # Also, AIX nm treats weak defined symbols like other global
  7788. # defined symbols, whereas GNU nm marks them as "W".
  7789. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7790. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7791. else
  7792. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7793. fi
  7794. aix_use_runtimelinking=no
  7795. # Test if we are trying to use run time linking or normal
  7796. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7797. # need to do runtime linking.
  7798. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7799. for ld_flag in $LDFLAGS; do
  7800. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7801. aix_use_runtimelinking=yes
  7802. break
  7803. fi
  7804. done
  7805. ;;
  7806. esac
  7807. exp_sym_flag='-bexport'
  7808. no_entry_flag='-bnoentry'
  7809. fi
  7810. # When large executables or shared objects are built, AIX ld can
  7811. # have problems creating the table of contents. If linking a library
  7812. # or program results in "error TOC overflow" add -mminimal-toc to
  7813. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7814. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7815. archive_cmds=''
  7816. hardcode_direct=yes
  7817. hardcode_direct_absolute=yes
  7818. hardcode_libdir_separator=':'
  7819. link_all_deplibs=yes
  7820. file_list_spec='${wl}-f,'
  7821. if test "$GCC" = yes; then
  7822. case $host_os in aix4.[012]|aix4.[012].*)
  7823. # We only want to do this on AIX 4.2 and lower, the check
  7824. # below for broken collect2 doesn't work under 4.3+
  7825. collect2name=`${CC} -print-prog-name=collect2`
  7826. if test -f "$collect2name" &&
  7827. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7828. then
  7829. # We have reworked collect2
  7830. :
  7831. else
  7832. # We have old collect2
  7833. hardcode_direct=unsupported
  7834. # It fails to find uninstalled libraries when the uninstalled
  7835. # path is not listed in the libpath. Setting hardcode_minus_L
  7836. # to unsupported forces relinking
  7837. hardcode_minus_L=yes
  7838. hardcode_libdir_flag_spec='-L$libdir'
  7839. hardcode_libdir_separator=
  7840. fi
  7841. ;;
  7842. esac
  7843. shared_flag='-shared'
  7844. if test "$aix_use_runtimelinking" = yes; then
  7845. shared_flag="$shared_flag "'${wl}-G'
  7846. fi
  7847. else
  7848. # not using gcc
  7849. if test "$host_cpu" = ia64; then
  7850. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7851. # chokes on -Wl,-G. The following line is correct:
  7852. shared_flag='-G'
  7853. else
  7854. if test "$aix_use_runtimelinking" = yes; then
  7855. shared_flag='${wl}-G'
  7856. else
  7857. shared_flag='${wl}-bM:SRE'
  7858. fi
  7859. fi
  7860. fi
  7861. export_dynamic_flag_spec='${wl}-bexpall'
  7862. # It seems that -bexpall does not export symbols beginning with
  7863. # underscore (_), so it is better to generate a list of symbols to export.
  7864. always_export_symbols=yes
  7865. if test "$aix_use_runtimelinking" = yes; then
  7866. # Warning - without using the other runtime loading flags (-brtl),
  7867. # -berok will link without error, but may produce a broken library.
  7868. allow_undefined_flag='-berok'
  7869. # Determine the default libpath from the value encoded in an
  7870. # empty executable.
  7871. if test "${lt_cv_aix_libpath+set}" = set; then
  7872. aix_libpath=$lt_cv_aix_libpath
  7873. else
  7874. if ${lt_cv_aix_libpath_+:} false; then :
  7875. $as_echo_n "(cached) " >&6
  7876. else
  7877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7878. /* end confdefs.h. */
  7879. int
  7880. main ()
  7881. {
  7882. ;
  7883. return 0;
  7884. }
  7885. _ACEOF
  7886. if ac_fn_c_try_link "$LINENO"; then :
  7887. lt_aix_libpath_sed='
  7888. /Import File Strings/,/^$/ {
  7889. /^0/ {
  7890. s/^0 *\([^ ]*\) *$/\1/
  7891. p
  7892. }
  7893. }'
  7894. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7895. # Check for a 64-bit object if we didn't find anything.
  7896. if test -z "$lt_cv_aix_libpath_"; then
  7897. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7898. fi
  7899. fi
  7900. rm -f core conftest.err conftest.$ac_objext \
  7901. conftest$ac_exeext conftest.$ac_ext
  7902. if test -z "$lt_cv_aix_libpath_"; then
  7903. lt_cv_aix_libpath_="/usr/lib:/lib"
  7904. fi
  7905. fi
  7906. aix_libpath=$lt_cv_aix_libpath_
  7907. fi
  7908. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7909. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7910. else
  7911. if test "$host_cpu" = ia64; then
  7912. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7913. allow_undefined_flag="-z nodefs"
  7914. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7915. else
  7916. # Determine the default libpath from the value encoded in an
  7917. # empty executable.
  7918. if test "${lt_cv_aix_libpath+set}" = set; then
  7919. aix_libpath=$lt_cv_aix_libpath
  7920. else
  7921. if ${lt_cv_aix_libpath_+:} false; then :
  7922. $as_echo_n "(cached) " >&6
  7923. else
  7924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7925. /* end confdefs.h. */
  7926. int
  7927. main ()
  7928. {
  7929. ;
  7930. return 0;
  7931. }
  7932. _ACEOF
  7933. if ac_fn_c_try_link "$LINENO"; then :
  7934. lt_aix_libpath_sed='
  7935. /Import File Strings/,/^$/ {
  7936. /^0/ {
  7937. s/^0 *\([^ ]*\) *$/\1/
  7938. p
  7939. }
  7940. }'
  7941. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7942. # Check for a 64-bit object if we didn't find anything.
  7943. if test -z "$lt_cv_aix_libpath_"; then
  7944. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7945. fi
  7946. fi
  7947. rm -f core conftest.err conftest.$ac_objext \
  7948. conftest$ac_exeext conftest.$ac_ext
  7949. if test -z "$lt_cv_aix_libpath_"; then
  7950. lt_cv_aix_libpath_="/usr/lib:/lib"
  7951. fi
  7952. fi
  7953. aix_libpath=$lt_cv_aix_libpath_
  7954. fi
  7955. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7956. # Warning - without using the other run time loading flags,
  7957. # -berok will link without error, but may produce a broken library.
  7958. no_undefined_flag=' ${wl}-bernotok'
  7959. allow_undefined_flag=' ${wl}-berok'
  7960. if test "$with_gnu_ld" = yes; then
  7961. # We only use this code for GNU lds that support --whole-archive.
  7962. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7963. else
  7964. # Exported symbols can be pulled into shared objects from archives
  7965. whole_archive_flag_spec='$convenience'
  7966. fi
  7967. archive_cmds_need_lc=yes
  7968. # This is similar to how AIX traditionally builds its shared libraries.
  7969. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7970. fi
  7971. fi
  7972. ;;
  7973. amigaos*)
  7974. case $host_cpu in
  7975. powerpc)
  7976. # see comment about AmigaOS4 .so support
  7977. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7978. archive_expsym_cmds=''
  7979. ;;
  7980. m68k)
  7981. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7982. hardcode_libdir_flag_spec='-L$libdir'
  7983. hardcode_minus_L=yes
  7984. ;;
  7985. esac
  7986. ;;
  7987. bsdi[45]*)
  7988. export_dynamic_flag_spec=-rdynamic
  7989. ;;
  7990. cygwin* | mingw* | pw32* | cegcc*)
  7991. # When not using gcc, we currently assume that we are using
  7992. # Microsoft Visual C++.
  7993. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7994. # no search path for DLLs.
  7995. case $cc_basename in
  7996. cl*)
  7997. # Native MSVC
  7998. hardcode_libdir_flag_spec=' '
  7999. allow_undefined_flag=unsupported
  8000. always_export_symbols=yes
  8001. file_list_spec='@'
  8002. # Tell ltmain to make .lib files, not .a files.
  8003. libext=lib
  8004. # Tell ltmain to make .dll files, not .so files.
  8005. shrext_cmds=".dll"
  8006. # FIXME: Setting linknames here is a bad hack.
  8007. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8008. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8009. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8010. else
  8011. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8012. fi~
  8013. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8014. linknames='
  8015. # The linker will not automatically build a static lib if we build a DLL.
  8016. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8017. enable_shared_with_static_runtimes=yes
  8018. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8019. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8020. # Don't use ranlib
  8021. old_postinstall_cmds='chmod 644 $oldlib'
  8022. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8023. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8024. case $lt_outputfile in
  8025. *.exe|*.EXE) ;;
  8026. *)
  8027. lt_outputfile="$lt_outputfile.exe"
  8028. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8029. ;;
  8030. esac~
  8031. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8032. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8033. $RM "$lt_outputfile.manifest";
  8034. fi'
  8035. ;;
  8036. *)
  8037. # Assume MSVC wrapper
  8038. hardcode_libdir_flag_spec=' '
  8039. allow_undefined_flag=unsupported
  8040. # Tell ltmain to make .lib files, not .a files.
  8041. libext=lib
  8042. # Tell ltmain to make .dll files, not .so files.
  8043. shrext_cmds=".dll"
  8044. # FIXME: Setting linknames here is a bad hack.
  8045. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8046. # The linker will automatically build a .lib file if we build a DLL.
  8047. old_archive_from_new_cmds='true'
  8048. # FIXME: Should let the user specify the lib program.
  8049. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8050. enable_shared_with_static_runtimes=yes
  8051. ;;
  8052. esac
  8053. ;;
  8054. darwin* | rhapsody*)
  8055. archive_cmds_need_lc=no
  8056. hardcode_direct=no
  8057. hardcode_automatic=yes
  8058. hardcode_shlibpath_var=unsupported
  8059. if test "$lt_cv_ld_force_load" = "yes"; then
  8060. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8061. else
  8062. whole_archive_flag_spec=''
  8063. fi
  8064. link_all_deplibs=yes
  8065. allow_undefined_flag="$_lt_dar_allow_undefined"
  8066. case $cc_basename in
  8067. ifort*) _lt_dar_can_shared=yes ;;
  8068. *) _lt_dar_can_shared=$GCC ;;
  8069. esac
  8070. if test "$_lt_dar_can_shared" = "yes"; then
  8071. output_verbose_link_cmd=func_echo_all
  8072. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8073. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8074. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8075. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8076. else
  8077. ld_shlibs=no
  8078. fi
  8079. ;;
  8080. dgux*)
  8081. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8082. hardcode_libdir_flag_spec='-L$libdir'
  8083. hardcode_shlibpath_var=no
  8084. ;;
  8085. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8086. # support. Future versions do this automatically, but an explicit c++rt0.o
  8087. # does not break anything, and helps significantly (at the cost of a little
  8088. # extra space).
  8089. freebsd2.2*)
  8090. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8091. hardcode_libdir_flag_spec='-R$libdir'
  8092. hardcode_direct=yes
  8093. hardcode_shlibpath_var=no
  8094. ;;
  8095. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8096. freebsd2.*)
  8097. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8098. hardcode_direct=yes
  8099. hardcode_minus_L=yes
  8100. hardcode_shlibpath_var=no
  8101. ;;
  8102. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8103. freebsd* | dragonfly*)
  8104. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8105. hardcode_libdir_flag_spec='-R$libdir'
  8106. hardcode_direct=yes
  8107. hardcode_shlibpath_var=no
  8108. ;;
  8109. hpux9*)
  8110. if test "$GCC" = yes; then
  8111. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8112. else
  8113. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8114. fi
  8115. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8116. hardcode_libdir_separator=:
  8117. hardcode_direct=yes
  8118. # hardcode_minus_L: Not really in the search PATH,
  8119. # but as the default location of the library.
  8120. hardcode_minus_L=yes
  8121. export_dynamic_flag_spec='${wl}-E'
  8122. ;;
  8123. hpux10*)
  8124. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8125. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8126. else
  8127. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8128. fi
  8129. if test "$with_gnu_ld" = no; then
  8130. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8131. hardcode_libdir_separator=:
  8132. hardcode_direct=yes
  8133. hardcode_direct_absolute=yes
  8134. export_dynamic_flag_spec='${wl}-E'
  8135. # hardcode_minus_L: Not really in the search PATH,
  8136. # but as the default location of the library.
  8137. hardcode_minus_L=yes
  8138. fi
  8139. ;;
  8140. hpux11*)
  8141. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8142. case $host_cpu in
  8143. hppa*64*)
  8144. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8145. ;;
  8146. ia64*)
  8147. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8148. ;;
  8149. *)
  8150. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8151. ;;
  8152. esac
  8153. else
  8154. case $host_cpu in
  8155. hppa*64*)
  8156. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8157. ;;
  8158. ia64*)
  8159. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8160. ;;
  8161. *)
  8162. # Older versions of the 11.00 compiler do not understand -b yet
  8163. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8165. $as_echo_n "checking if $CC understands -b... " >&6; }
  8166. if ${lt_cv_prog_compiler__b+:} false; then :
  8167. $as_echo_n "(cached) " >&6
  8168. else
  8169. lt_cv_prog_compiler__b=no
  8170. save_LDFLAGS="$LDFLAGS"
  8171. LDFLAGS="$LDFLAGS -b"
  8172. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8173. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8174. # The linker can only warn and ignore the option if not recognized
  8175. # So say no if there are warnings
  8176. if test -s conftest.err; then
  8177. # Append any errors to the config.log.
  8178. cat conftest.err 1>&5
  8179. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8180. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8181. if diff conftest.exp conftest.er2 >/dev/null; then
  8182. lt_cv_prog_compiler__b=yes
  8183. fi
  8184. else
  8185. lt_cv_prog_compiler__b=yes
  8186. fi
  8187. fi
  8188. $RM -r conftest*
  8189. LDFLAGS="$save_LDFLAGS"
  8190. fi
  8191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8192. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8193. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8194. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8195. else
  8196. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8197. fi
  8198. ;;
  8199. esac
  8200. fi
  8201. if test "$with_gnu_ld" = no; then
  8202. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8203. hardcode_libdir_separator=:
  8204. case $host_cpu in
  8205. hppa*64*|ia64*)
  8206. hardcode_direct=no
  8207. hardcode_shlibpath_var=no
  8208. ;;
  8209. *)
  8210. hardcode_direct=yes
  8211. hardcode_direct_absolute=yes
  8212. export_dynamic_flag_spec='${wl}-E'
  8213. # hardcode_minus_L: Not really in the search PATH,
  8214. # but as the default location of the library.
  8215. hardcode_minus_L=yes
  8216. ;;
  8217. esac
  8218. fi
  8219. ;;
  8220. irix5* | irix6* | nonstopux*)
  8221. if test "$GCC" = yes; then
  8222. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8223. # Try to use the -exported_symbol ld option, if it does not
  8224. # work, assume that -exports_file does not work either and
  8225. # implicitly export all symbols.
  8226. # This should be the same for all languages, so no per-tag cache variable.
  8227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8228. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8229. if ${lt_cv_irix_exported_symbol+:} false; then :
  8230. $as_echo_n "(cached) " >&6
  8231. else
  8232. save_LDFLAGS="$LDFLAGS"
  8233. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8235. /* end confdefs.h. */
  8236. int foo (void) { return 0; }
  8237. _ACEOF
  8238. if ac_fn_c_try_link "$LINENO"; then :
  8239. lt_cv_irix_exported_symbol=yes
  8240. else
  8241. lt_cv_irix_exported_symbol=no
  8242. fi
  8243. rm -f core conftest.err conftest.$ac_objext \
  8244. conftest$ac_exeext conftest.$ac_ext
  8245. LDFLAGS="$save_LDFLAGS"
  8246. fi
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8248. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8249. if test "$lt_cv_irix_exported_symbol" = yes; then
  8250. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8251. fi
  8252. else
  8253. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8254. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8255. fi
  8256. archive_cmds_need_lc='no'
  8257. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8258. hardcode_libdir_separator=:
  8259. inherit_rpath=yes
  8260. link_all_deplibs=yes
  8261. ;;
  8262. netbsd*)
  8263. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8264. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8265. else
  8266. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8267. fi
  8268. hardcode_libdir_flag_spec='-R$libdir'
  8269. hardcode_direct=yes
  8270. hardcode_shlibpath_var=no
  8271. ;;
  8272. newsos6)
  8273. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8274. hardcode_direct=yes
  8275. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8276. hardcode_libdir_separator=:
  8277. hardcode_shlibpath_var=no
  8278. ;;
  8279. *nto* | *qnx*)
  8280. ;;
  8281. openbsd*)
  8282. if test -f /usr/libexec/ld.so; then
  8283. hardcode_direct=yes
  8284. hardcode_shlibpath_var=no
  8285. hardcode_direct_absolute=yes
  8286. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8287. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8288. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8289. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8290. export_dynamic_flag_spec='${wl}-E'
  8291. else
  8292. case $host_os in
  8293. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8294. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8295. hardcode_libdir_flag_spec='-R$libdir'
  8296. ;;
  8297. *)
  8298. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8299. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8300. ;;
  8301. esac
  8302. fi
  8303. else
  8304. ld_shlibs=no
  8305. fi
  8306. ;;
  8307. os2*)
  8308. hardcode_libdir_flag_spec='-L$libdir'
  8309. hardcode_minus_L=yes
  8310. allow_undefined_flag=unsupported
  8311. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8312. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8313. ;;
  8314. osf3*)
  8315. if test "$GCC" = yes; then
  8316. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8317. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8318. else
  8319. allow_undefined_flag=' -expect_unresolved \*'
  8320. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8321. fi
  8322. archive_cmds_need_lc='no'
  8323. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8324. hardcode_libdir_separator=:
  8325. ;;
  8326. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8327. if test "$GCC" = yes; then
  8328. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8329. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8330. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8331. else
  8332. allow_undefined_flag=' -expect_unresolved \*'
  8333. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8334. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8335. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8336. # Both c and cxx compiler support -rpath directly
  8337. hardcode_libdir_flag_spec='-rpath $libdir'
  8338. fi
  8339. archive_cmds_need_lc='no'
  8340. hardcode_libdir_separator=:
  8341. ;;
  8342. solaris*)
  8343. no_undefined_flag=' -z defs'
  8344. if test "$GCC" = yes; then
  8345. wlarc='${wl}'
  8346. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8347. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8348. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8349. else
  8350. case `$CC -V 2>&1` in
  8351. *"Compilers 5.0"*)
  8352. wlarc=''
  8353. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8354. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8355. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8356. ;;
  8357. *)
  8358. wlarc='${wl}'
  8359. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8360. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8361. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8362. ;;
  8363. esac
  8364. fi
  8365. hardcode_libdir_flag_spec='-R$libdir'
  8366. hardcode_shlibpath_var=no
  8367. case $host_os in
  8368. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8369. *)
  8370. # The compiler driver will combine and reorder linker options,
  8371. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8372. # but is careful enough not to reorder.
  8373. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8374. if test "$GCC" = yes; then
  8375. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8376. else
  8377. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8378. fi
  8379. ;;
  8380. esac
  8381. link_all_deplibs=yes
  8382. ;;
  8383. sunos4*)
  8384. if test "x$host_vendor" = xsequent; then
  8385. # Use $CC to link under sequent, because it throws in some extra .o
  8386. # files that make .init and .fini sections work.
  8387. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8388. else
  8389. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8390. fi
  8391. hardcode_libdir_flag_spec='-L$libdir'
  8392. hardcode_direct=yes
  8393. hardcode_minus_L=yes
  8394. hardcode_shlibpath_var=no
  8395. ;;
  8396. sysv4)
  8397. case $host_vendor in
  8398. sni)
  8399. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8400. hardcode_direct=yes # is this really true???
  8401. ;;
  8402. siemens)
  8403. ## LD is ld it makes a PLAMLIB
  8404. ## CC just makes a GrossModule.
  8405. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8406. reload_cmds='$CC -r -o $output$reload_objs'
  8407. hardcode_direct=no
  8408. ;;
  8409. motorola)
  8410. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8411. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8412. ;;
  8413. esac
  8414. runpath_var='LD_RUN_PATH'
  8415. hardcode_shlibpath_var=no
  8416. ;;
  8417. sysv4.3*)
  8418. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8419. hardcode_shlibpath_var=no
  8420. export_dynamic_flag_spec='-Bexport'
  8421. ;;
  8422. sysv4*MP*)
  8423. if test -d /usr/nec; then
  8424. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8425. hardcode_shlibpath_var=no
  8426. runpath_var=LD_RUN_PATH
  8427. hardcode_runpath_var=yes
  8428. ld_shlibs=yes
  8429. fi
  8430. ;;
  8431. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8432. no_undefined_flag='${wl}-z,text'
  8433. archive_cmds_need_lc=no
  8434. hardcode_shlibpath_var=no
  8435. runpath_var='LD_RUN_PATH'
  8436. if test "$GCC" = yes; then
  8437. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8438. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8439. else
  8440. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8441. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8442. fi
  8443. ;;
  8444. sysv5* | sco3.2v5* | sco5v6*)
  8445. # Note: We can NOT use -z defs as we might desire, because we do not
  8446. # link with -lc, and that would cause any symbols used from libc to
  8447. # always be unresolved, which means just about no library would
  8448. # ever link correctly. If we're not using GNU ld we use -z text
  8449. # though, which does catch some bad symbols but isn't as heavy-handed
  8450. # as -z defs.
  8451. no_undefined_flag='${wl}-z,text'
  8452. allow_undefined_flag='${wl}-z,nodefs'
  8453. archive_cmds_need_lc=no
  8454. hardcode_shlibpath_var=no
  8455. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8456. hardcode_libdir_separator=':'
  8457. link_all_deplibs=yes
  8458. export_dynamic_flag_spec='${wl}-Bexport'
  8459. runpath_var='LD_RUN_PATH'
  8460. if test "$GCC" = yes; then
  8461. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8462. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8463. else
  8464. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8465. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8466. fi
  8467. ;;
  8468. uts4*)
  8469. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8470. hardcode_libdir_flag_spec='-L$libdir'
  8471. hardcode_shlibpath_var=no
  8472. ;;
  8473. *)
  8474. ld_shlibs=no
  8475. ;;
  8476. esac
  8477. if test x$host_vendor = xsni; then
  8478. case $host in
  8479. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8480. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8481. ;;
  8482. esac
  8483. fi
  8484. fi
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8486. $as_echo "$ld_shlibs" >&6; }
  8487. test "$ld_shlibs" = no && can_build_shared=no
  8488. with_gnu_ld=$with_gnu_ld
  8489. #
  8490. # Do we need to explicitly link libc?
  8491. #
  8492. case "x$archive_cmds_need_lc" in
  8493. x|xyes)
  8494. # Assume -lc should be added
  8495. archive_cmds_need_lc=yes
  8496. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8497. case $archive_cmds in
  8498. *'~'*)
  8499. # FIXME: we may have to deal with multi-command sequences.
  8500. ;;
  8501. '$CC '*)
  8502. # Test whether the compiler implicitly links with -lc since on some
  8503. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8504. # to ld, don't add -lc before -lgcc.
  8505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8506. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8507. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8508. $as_echo_n "(cached) " >&6
  8509. else
  8510. $RM conftest*
  8511. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8512. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8513. (eval $ac_compile) 2>&5
  8514. ac_status=$?
  8515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8516. test $ac_status = 0; } 2>conftest.err; then
  8517. soname=conftest
  8518. lib=conftest
  8519. libobjs=conftest.$ac_objext
  8520. deplibs=
  8521. wl=$lt_prog_compiler_wl
  8522. pic_flag=$lt_prog_compiler_pic
  8523. compiler_flags=-v
  8524. linker_flags=-v
  8525. verstring=
  8526. output_objdir=.
  8527. libname=conftest
  8528. lt_save_allow_undefined_flag=$allow_undefined_flag
  8529. allow_undefined_flag=
  8530. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8531. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8532. ac_status=$?
  8533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8534. test $ac_status = 0; }
  8535. then
  8536. lt_cv_archive_cmds_need_lc=no
  8537. else
  8538. lt_cv_archive_cmds_need_lc=yes
  8539. fi
  8540. allow_undefined_flag=$lt_save_allow_undefined_flag
  8541. else
  8542. cat conftest.err 1>&5
  8543. fi
  8544. $RM conftest*
  8545. fi
  8546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8547. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8548. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8549. ;;
  8550. esac
  8551. fi
  8552. ;;
  8553. esac
  8554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8555. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8556. if test "$GCC" = yes; then
  8557. case $host_os in
  8558. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8559. *) lt_awk_arg="/^libraries:/" ;;
  8560. esac
  8561. case $host_os in
  8562. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8563. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8564. esac
  8565. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8566. case $lt_search_path_spec in
  8567. *\;*)
  8568. # if the path contains ";" then we assume it to be the separator
  8569. # otherwise default to the standard path separator (i.e. ":") - it is
  8570. # assumed that no part of a normal pathname contains ";" but that should
  8571. # okay in the real world where ";" in dirpaths is itself problematic.
  8572. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8573. ;;
  8574. *)
  8575. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8576. ;;
  8577. esac
  8578. # Ok, now we have the path, separated by spaces, we can step through it
  8579. # and add multilib dir if necessary...
  8580. lt_tmp_lt_search_path_spec=
  8581. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8582. # ...but if some path already ends with the multilib dir we assume
  8583. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8584. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8585. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8586. lt_multi_os_dir=
  8587. ;;
  8588. esac
  8589. for lt_sys_path in $lt_search_path_spec; do
  8590. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8591. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8592. elif test -n "$lt_multi_os_dir"; then
  8593. test -d "$lt_sys_path" && \
  8594. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8595. fi
  8596. done
  8597. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8598. BEGIN {RS=" "; FS="/|\n";} {
  8599. lt_foo="";
  8600. lt_count=0;
  8601. for (lt_i = NF; lt_i > 0; lt_i--) {
  8602. if ($lt_i != "" && $lt_i != ".") {
  8603. if ($lt_i == "..") {
  8604. lt_count++;
  8605. } else {
  8606. if (lt_count == 0) {
  8607. lt_foo="/" $lt_i lt_foo;
  8608. } else {
  8609. lt_count--;
  8610. }
  8611. }
  8612. }
  8613. }
  8614. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8615. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8616. }'`
  8617. # AWK program above erroneously prepends '/' to C:/dos/paths
  8618. # for these hosts.
  8619. case $host_os in
  8620. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8621. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8622. esac
  8623. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8624. else
  8625. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8626. fi
  8627. library_names_spec=
  8628. libname_spec='lib$name'
  8629. soname_spec=
  8630. shrext_cmds=".so"
  8631. postinstall_cmds=
  8632. postuninstall_cmds=
  8633. finish_cmds=
  8634. finish_eval=
  8635. shlibpath_var=
  8636. shlibpath_overrides_runpath=unknown
  8637. version_type=none
  8638. dynamic_linker="$host_os ld.so"
  8639. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8640. need_lib_prefix=unknown
  8641. hardcode_into_libs=no
  8642. # when you set need_version to no, make sure it does not cause -set_version
  8643. # flags to be left without arguments
  8644. need_version=unknown
  8645. case $host_os in
  8646. aix3*)
  8647. version_type=linux # correct to gnu/linux during the next big refactor
  8648. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8649. shlibpath_var=LIBPATH
  8650. # AIX 3 has no versioning support, so we append a major version to the name.
  8651. soname_spec='${libname}${release}${shared_ext}$major'
  8652. ;;
  8653. aix[4-9]*)
  8654. version_type=linux # correct to gnu/linux during the next big refactor
  8655. need_lib_prefix=no
  8656. need_version=no
  8657. hardcode_into_libs=yes
  8658. if test "$host_cpu" = ia64; then
  8659. # AIX 5 supports IA64
  8660. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8661. shlibpath_var=LD_LIBRARY_PATH
  8662. else
  8663. # With GCC up to 2.95.x, collect2 would create an import file
  8664. # for dependence libraries. The import file would start with
  8665. # the line `#! .'. This would cause the generated library to
  8666. # depend on `.', always an invalid library. This was fixed in
  8667. # development snapshots of GCC prior to 3.0.
  8668. case $host_os in
  8669. aix4 | aix4.[01] | aix4.[01].*)
  8670. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8671. echo ' yes '
  8672. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8673. :
  8674. else
  8675. can_build_shared=no
  8676. fi
  8677. ;;
  8678. esac
  8679. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8680. # soname into executable. Probably we can add versioning support to
  8681. # collect2, so additional links can be useful in future.
  8682. if test "$aix_use_runtimelinking" = yes; then
  8683. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8684. # instead of lib<name>.a to let people know that these are not
  8685. # typical AIX shared libraries.
  8686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8687. else
  8688. # We preserve .a as extension for shared libraries through AIX4.2
  8689. # and later when we are not doing run time linking.
  8690. library_names_spec='${libname}${release}.a $libname.a'
  8691. soname_spec='${libname}${release}${shared_ext}$major'
  8692. fi
  8693. shlibpath_var=LIBPATH
  8694. fi
  8695. ;;
  8696. amigaos*)
  8697. case $host_cpu in
  8698. powerpc)
  8699. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8700. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8702. ;;
  8703. m68k)
  8704. library_names_spec='$libname.ixlibrary $libname.a'
  8705. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8706. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8707. ;;
  8708. esac
  8709. ;;
  8710. beos*)
  8711. library_names_spec='${libname}${shared_ext}'
  8712. dynamic_linker="$host_os ld.so"
  8713. shlibpath_var=LIBRARY_PATH
  8714. ;;
  8715. bsdi[45]*)
  8716. version_type=linux # correct to gnu/linux during the next big refactor
  8717. need_version=no
  8718. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8719. soname_spec='${libname}${release}${shared_ext}$major'
  8720. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8721. shlibpath_var=LD_LIBRARY_PATH
  8722. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8723. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8724. # the default ld.so.conf also contains /usr/contrib/lib and
  8725. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8726. # libtool to hard-code these into programs
  8727. ;;
  8728. cygwin* | mingw* | pw32* | cegcc*)
  8729. version_type=windows
  8730. shrext_cmds=".dll"
  8731. need_version=no
  8732. need_lib_prefix=no
  8733. case $GCC,$cc_basename in
  8734. yes,*)
  8735. # gcc
  8736. library_names_spec='$libname.dll.a'
  8737. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8738. postinstall_cmds='base_file=`basename \${file}`~
  8739. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8740. dldir=$destdir/`dirname \$dlpath`~
  8741. test -d \$dldir || mkdir -p \$dldir~
  8742. $install_prog $dir/$dlname \$dldir/$dlname~
  8743. chmod a+x \$dldir/$dlname~
  8744. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8745. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8746. fi'
  8747. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8748. dlpath=$dir/\$dldll~
  8749. $RM \$dlpath'
  8750. shlibpath_overrides_runpath=yes
  8751. case $host_os in
  8752. cygwin*)
  8753. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8754. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8755. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8756. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8757. ;;
  8758. mingw* | cegcc*)
  8759. # MinGW DLLs use traditional 'lib' prefix
  8760. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8761. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8762. ;;
  8763. pw32*)
  8764. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8765. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8766. ;;
  8767. esac
  8768. dynamic_linker='Win32 ld.exe'
  8769. ;;
  8770. *,cl*)
  8771. # Native MSVC
  8772. libname_spec='$name'
  8773. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8774. library_names_spec='${libname}.dll.lib'
  8775. case $build_os in
  8776. mingw*)
  8777. sys_lib_search_path_spec=
  8778. lt_save_ifs=$IFS
  8779. IFS=';'
  8780. for lt_path in $LIB
  8781. do
  8782. IFS=$lt_save_ifs
  8783. # Let DOS variable expansion print the short 8.3 style file name.
  8784. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8785. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8786. done
  8787. IFS=$lt_save_ifs
  8788. # Convert to MSYS style.
  8789. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8790. ;;
  8791. cygwin*)
  8792. # Convert to unix form, then to dos form, then back to unix form
  8793. # but this time dos style (no spaces!) so that the unix form looks
  8794. # like /cygdrive/c/PROGRA~1:/cygdr...
  8795. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8796. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8797. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8798. ;;
  8799. *)
  8800. sys_lib_search_path_spec="$LIB"
  8801. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8802. # It is most probably a Windows format PATH.
  8803. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8804. else
  8805. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8806. fi
  8807. # FIXME: find the short name or the path components, as spaces are
  8808. # common. (e.g. "Program Files" -> "PROGRA~1")
  8809. ;;
  8810. esac
  8811. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8812. postinstall_cmds='base_file=`basename \${file}`~
  8813. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8814. dldir=$destdir/`dirname \$dlpath`~
  8815. test -d \$dldir || mkdir -p \$dldir~
  8816. $install_prog $dir/$dlname \$dldir/$dlname'
  8817. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8818. dlpath=$dir/\$dldll~
  8819. $RM \$dlpath'
  8820. shlibpath_overrides_runpath=yes
  8821. dynamic_linker='Win32 link.exe'
  8822. ;;
  8823. *)
  8824. # Assume MSVC wrapper
  8825. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8826. dynamic_linker='Win32 ld.exe'
  8827. ;;
  8828. esac
  8829. # FIXME: first we should search . and the directory the executable is in
  8830. shlibpath_var=PATH
  8831. ;;
  8832. darwin* | rhapsody*)
  8833. dynamic_linker="$host_os dyld"
  8834. version_type=darwin
  8835. need_lib_prefix=no
  8836. need_version=no
  8837. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8838. soname_spec='${libname}${release}${major}$shared_ext'
  8839. shlibpath_overrides_runpath=yes
  8840. shlibpath_var=DYLD_LIBRARY_PATH
  8841. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8842. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8843. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8844. ;;
  8845. dgux*)
  8846. version_type=linux # correct to gnu/linux during the next big refactor
  8847. need_lib_prefix=no
  8848. need_version=no
  8849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8850. soname_spec='${libname}${release}${shared_ext}$major'
  8851. shlibpath_var=LD_LIBRARY_PATH
  8852. ;;
  8853. freebsd* | dragonfly*)
  8854. # DragonFly does not have aout. When/if they implement a new
  8855. # versioning mechanism, adjust this.
  8856. if test -x /usr/bin/objformat; then
  8857. objformat=`/usr/bin/objformat`
  8858. else
  8859. case $host_os in
  8860. freebsd[23].*) objformat=aout ;;
  8861. *) objformat=elf ;;
  8862. esac
  8863. fi
  8864. version_type=freebsd-$objformat
  8865. case $version_type in
  8866. freebsd-elf*)
  8867. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8868. need_version=no
  8869. need_lib_prefix=no
  8870. ;;
  8871. freebsd-*)
  8872. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8873. need_version=yes
  8874. ;;
  8875. esac
  8876. shlibpath_var=LD_LIBRARY_PATH
  8877. case $host_os in
  8878. freebsd2.*)
  8879. shlibpath_overrides_runpath=yes
  8880. ;;
  8881. freebsd3.[01]* | freebsdelf3.[01]*)
  8882. shlibpath_overrides_runpath=yes
  8883. hardcode_into_libs=yes
  8884. ;;
  8885. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8886. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8887. shlibpath_overrides_runpath=no
  8888. hardcode_into_libs=yes
  8889. ;;
  8890. *) # from 4.6 on, and DragonFly
  8891. shlibpath_overrides_runpath=yes
  8892. hardcode_into_libs=yes
  8893. ;;
  8894. esac
  8895. ;;
  8896. gnu*)
  8897. version_type=linux # correct to gnu/linux during the next big refactor
  8898. need_lib_prefix=no
  8899. need_version=no
  8900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8901. soname_spec='${libname}${release}${shared_ext}$major'
  8902. shlibpath_var=LD_LIBRARY_PATH
  8903. shlibpath_overrides_runpath=no
  8904. hardcode_into_libs=yes
  8905. ;;
  8906. haiku*)
  8907. version_type=linux # correct to gnu/linux during the next big refactor
  8908. need_lib_prefix=no
  8909. need_version=no
  8910. dynamic_linker="$host_os runtime_loader"
  8911. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8912. soname_spec='${libname}${release}${shared_ext}$major'
  8913. shlibpath_var=LIBRARY_PATH
  8914. shlibpath_overrides_runpath=yes
  8915. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8916. hardcode_into_libs=yes
  8917. ;;
  8918. hpux9* | hpux10* | hpux11*)
  8919. # Give a soname corresponding to the major version so that dld.sl refuses to
  8920. # link against other versions.
  8921. version_type=sunos
  8922. need_lib_prefix=no
  8923. need_version=no
  8924. case $host_cpu in
  8925. ia64*)
  8926. shrext_cmds='.so'
  8927. hardcode_into_libs=yes
  8928. dynamic_linker="$host_os dld.so"
  8929. shlibpath_var=LD_LIBRARY_PATH
  8930. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8931. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8932. soname_spec='${libname}${release}${shared_ext}$major'
  8933. if test "X$HPUX_IA64_MODE" = X32; then
  8934. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8935. else
  8936. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8937. fi
  8938. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8939. ;;
  8940. hppa*64*)
  8941. shrext_cmds='.sl'
  8942. hardcode_into_libs=yes
  8943. dynamic_linker="$host_os dld.sl"
  8944. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8945. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8947. soname_spec='${libname}${release}${shared_ext}$major'
  8948. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8949. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8950. ;;
  8951. *)
  8952. shrext_cmds='.sl'
  8953. dynamic_linker="$host_os dld.sl"
  8954. shlibpath_var=SHLIB_PATH
  8955. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8957. soname_spec='${libname}${release}${shared_ext}$major'
  8958. ;;
  8959. esac
  8960. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8961. postinstall_cmds='chmod 555 $lib'
  8962. # or fails outright, so override atomically:
  8963. install_override_mode=555
  8964. ;;
  8965. interix[3-9]*)
  8966. version_type=linux # correct to gnu/linux during the next big refactor
  8967. need_lib_prefix=no
  8968. need_version=no
  8969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8970. soname_spec='${libname}${release}${shared_ext}$major'
  8971. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8972. shlibpath_var=LD_LIBRARY_PATH
  8973. shlibpath_overrides_runpath=no
  8974. hardcode_into_libs=yes
  8975. ;;
  8976. irix5* | irix6* | nonstopux*)
  8977. case $host_os in
  8978. nonstopux*) version_type=nonstopux ;;
  8979. *)
  8980. if test "$lt_cv_prog_gnu_ld" = yes; then
  8981. version_type=linux # correct to gnu/linux during the next big refactor
  8982. else
  8983. version_type=irix
  8984. fi ;;
  8985. esac
  8986. need_lib_prefix=no
  8987. need_version=no
  8988. soname_spec='${libname}${release}${shared_ext}$major'
  8989. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8990. case $host_os in
  8991. irix5* | nonstopux*)
  8992. libsuff= shlibsuff=
  8993. ;;
  8994. *)
  8995. case $LD in # libtool.m4 will add one of these switches to LD
  8996. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8997. libsuff= shlibsuff= libmagic=32-bit;;
  8998. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8999. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9000. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9001. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9002. *) libsuff= shlibsuff= libmagic=never-match;;
  9003. esac
  9004. ;;
  9005. esac
  9006. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9007. shlibpath_overrides_runpath=no
  9008. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9009. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9010. hardcode_into_libs=yes
  9011. ;;
  9012. # No shared lib support for Linux oldld, aout, or coff.
  9013. linux*oldld* | linux*aout* | linux*coff*)
  9014. dynamic_linker=no
  9015. ;;
  9016. # This must be glibc/ELF.
  9017. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9018. version_type=linux # correct to gnu/linux during the next big refactor
  9019. need_lib_prefix=no
  9020. need_version=no
  9021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9022. soname_spec='${libname}${release}${shared_ext}$major'
  9023. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9024. shlibpath_var=LD_LIBRARY_PATH
  9025. shlibpath_overrides_runpath=no
  9026. # Some binutils ld are patched to set DT_RUNPATH
  9027. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9028. $as_echo_n "(cached) " >&6
  9029. else
  9030. lt_cv_shlibpath_overrides_runpath=no
  9031. save_LDFLAGS=$LDFLAGS
  9032. save_libdir=$libdir
  9033. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9034. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9036. /* end confdefs.h. */
  9037. int
  9038. main ()
  9039. {
  9040. ;
  9041. return 0;
  9042. }
  9043. _ACEOF
  9044. if ac_fn_c_try_link "$LINENO"; then :
  9045. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9046. lt_cv_shlibpath_overrides_runpath=yes
  9047. fi
  9048. fi
  9049. rm -f core conftest.err conftest.$ac_objext \
  9050. conftest$ac_exeext conftest.$ac_ext
  9051. LDFLAGS=$save_LDFLAGS
  9052. libdir=$save_libdir
  9053. fi
  9054. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9055. # This implies no fast_install, which is unacceptable.
  9056. # Some rework will be needed to allow for fast_install
  9057. # before this can be enabled.
  9058. hardcode_into_libs=yes
  9059. # Append ld.so.conf contents to the search path
  9060. if test -f /etc/ld.so.conf; then
  9061. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9062. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9063. fi
  9064. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9065. # powerpc, because MkLinux only supported shared libraries with the
  9066. # GNU dynamic linker. Since this was broken with cross compilers,
  9067. # most powerpc-linux boxes support dynamic linking these days and
  9068. # people can always --disable-shared, the test was removed, and we
  9069. # assume the GNU/Linux dynamic linker is in use.
  9070. dynamic_linker='GNU/Linux ld.so'
  9071. ;;
  9072. netbsd*)
  9073. version_type=sunos
  9074. need_lib_prefix=no
  9075. need_version=no
  9076. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9078. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9079. dynamic_linker='NetBSD (a.out) ld.so'
  9080. else
  9081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9082. soname_spec='${libname}${release}${shared_ext}$major'
  9083. dynamic_linker='NetBSD ld.elf_so'
  9084. fi
  9085. shlibpath_var=LD_LIBRARY_PATH
  9086. shlibpath_overrides_runpath=yes
  9087. hardcode_into_libs=yes
  9088. ;;
  9089. newsos6)
  9090. version_type=linux # correct to gnu/linux during the next big refactor
  9091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9092. shlibpath_var=LD_LIBRARY_PATH
  9093. shlibpath_overrides_runpath=yes
  9094. ;;
  9095. *nto* | *qnx*)
  9096. version_type=qnx
  9097. need_lib_prefix=no
  9098. need_version=no
  9099. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9100. soname_spec='${libname}${release}${shared_ext}$major'
  9101. shlibpath_var=LD_LIBRARY_PATH
  9102. shlibpath_overrides_runpath=no
  9103. hardcode_into_libs=yes
  9104. dynamic_linker='ldqnx.so'
  9105. ;;
  9106. openbsd*)
  9107. version_type=sunos
  9108. sys_lib_dlsearch_path_spec="/usr/lib"
  9109. need_lib_prefix=no
  9110. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9111. case $host_os in
  9112. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9113. *) need_version=no ;;
  9114. esac
  9115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9116. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9117. shlibpath_var=LD_LIBRARY_PATH
  9118. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9119. case $host_os in
  9120. openbsd2.[89] | openbsd2.[89].*)
  9121. shlibpath_overrides_runpath=no
  9122. ;;
  9123. *)
  9124. shlibpath_overrides_runpath=yes
  9125. ;;
  9126. esac
  9127. else
  9128. shlibpath_overrides_runpath=yes
  9129. fi
  9130. ;;
  9131. os2*)
  9132. libname_spec='$name'
  9133. shrext_cmds=".dll"
  9134. need_lib_prefix=no
  9135. library_names_spec='$libname${shared_ext} $libname.a'
  9136. dynamic_linker='OS/2 ld.exe'
  9137. shlibpath_var=LIBPATH
  9138. ;;
  9139. osf3* | osf4* | osf5*)
  9140. version_type=osf
  9141. need_lib_prefix=no
  9142. need_version=no
  9143. soname_spec='${libname}${release}${shared_ext}$major'
  9144. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9145. shlibpath_var=LD_LIBRARY_PATH
  9146. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9147. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9148. ;;
  9149. rdos*)
  9150. dynamic_linker=no
  9151. ;;
  9152. solaris*)
  9153. version_type=linux # correct to gnu/linux during the next big refactor
  9154. need_lib_prefix=no
  9155. need_version=no
  9156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9157. soname_spec='${libname}${release}${shared_ext}$major'
  9158. shlibpath_var=LD_LIBRARY_PATH
  9159. shlibpath_overrides_runpath=yes
  9160. hardcode_into_libs=yes
  9161. # ldd complains unless libraries are executable
  9162. postinstall_cmds='chmod +x $lib'
  9163. ;;
  9164. sunos4*)
  9165. version_type=sunos
  9166. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9167. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9168. shlibpath_var=LD_LIBRARY_PATH
  9169. shlibpath_overrides_runpath=yes
  9170. if test "$with_gnu_ld" = yes; then
  9171. need_lib_prefix=no
  9172. fi
  9173. need_version=yes
  9174. ;;
  9175. sysv4 | sysv4.3*)
  9176. version_type=linux # correct to gnu/linux during the next big refactor
  9177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9178. soname_spec='${libname}${release}${shared_ext}$major'
  9179. shlibpath_var=LD_LIBRARY_PATH
  9180. case $host_vendor in
  9181. sni)
  9182. shlibpath_overrides_runpath=no
  9183. need_lib_prefix=no
  9184. runpath_var=LD_RUN_PATH
  9185. ;;
  9186. siemens)
  9187. need_lib_prefix=no
  9188. ;;
  9189. motorola)
  9190. need_lib_prefix=no
  9191. need_version=no
  9192. shlibpath_overrides_runpath=no
  9193. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9194. ;;
  9195. esac
  9196. ;;
  9197. sysv4*MP*)
  9198. if test -d /usr/nec ;then
  9199. version_type=linux # correct to gnu/linux during the next big refactor
  9200. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9201. soname_spec='$libname${shared_ext}.$major'
  9202. shlibpath_var=LD_LIBRARY_PATH
  9203. fi
  9204. ;;
  9205. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9206. version_type=freebsd-elf
  9207. need_lib_prefix=no
  9208. need_version=no
  9209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9210. soname_spec='${libname}${release}${shared_ext}$major'
  9211. shlibpath_var=LD_LIBRARY_PATH
  9212. shlibpath_overrides_runpath=yes
  9213. hardcode_into_libs=yes
  9214. if test "$with_gnu_ld" = yes; then
  9215. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9216. else
  9217. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9218. case $host_os in
  9219. sco3.2v5*)
  9220. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9221. ;;
  9222. esac
  9223. fi
  9224. sys_lib_dlsearch_path_spec='/usr/lib'
  9225. ;;
  9226. tpf*)
  9227. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9228. version_type=linux # correct to gnu/linux during the next big refactor
  9229. need_lib_prefix=no
  9230. need_version=no
  9231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9232. shlibpath_var=LD_LIBRARY_PATH
  9233. shlibpath_overrides_runpath=no
  9234. hardcode_into_libs=yes
  9235. ;;
  9236. uts4*)
  9237. version_type=linux # correct to gnu/linux during the next big refactor
  9238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9239. soname_spec='${libname}${release}${shared_ext}$major'
  9240. shlibpath_var=LD_LIBRARY_PATH
  9241. ;;
  9242. *)
  9243. dynamic_linker=no
  9244. ;;
  9245. esac
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9247. $as_echo "$dynamic_linker" >&6; }
  9248. test "$dynamic_linker" = no && can_build_shared=no
  9249. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9250. if test "$GCC" = yes; then
  9251. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9252. fi
  9253. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9254. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9255. fi
  9256. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9257. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9258. fi
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9260. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9261. hardcode_action=
  9262. if test -n "$hardcode_libdir_flag_spec" ||
  9263. test -n "$runpath_var" ||
  9264. test "X$hardcode_automatic" = "Xyes" ; then
  9265. # We can hardcode non-existent directories.
  9266. if test "$hardcode_direct" != no &&
  9267. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9268. # have to relink, otherwise we might link with an installed library
  9269. # when we should be linking with a yet-to-be-installed one
  9270. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9271. test "$hardcode_minus_L" != no; then
  9272. # Linking always hardcodes the temporary library directory.
  9273. hardcode_action=relink
  9274. else
  9275. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9276. hardcode_action=immediate
  9277. fi
  9278. else
  9279. # We cannot hardcode anything, or else we can only hardcode existing
  9280. # directories.
  9281. hardcode_action=unsupported
  9282. fi
  9283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9284. $as_echo "$hardcode_action" >&6; }
  9285. if test "$hardcode_action" = relink ||
  9286. test "$inherit_rpath" = yes; then
  9287. # Fast installation is not supported
  9288. enable_fast_install=no
  9289. elif test "$shlibpath_overrides_runpath" = yes ||
  9290. test "$enable_shared" = no; then
  9291. # Fast installation is not necessary
  9292. enable_fast_install=needless
  9293. fi
  9294. if test "x$enable_dlopen" != xyes; then
  9295. enable_dlopen=unknown
  9296. enable_dlopen_self=unknown
  9297. enable_dlopen_self_static=unknown
  9298. else
  9299. lt_cv_dlopen=no
  9300. lt_cv_dlopen_libs=
  9301. case $host_os in
  9302. beos*)
  9303. lt_cv_dlopen="load_add_on"
  9304. lt_cv_dlopen_libs=
  9305. lt_cv_dlopen_self=yes
  9306. ;;
  9307. mingw* | pw32* | cegcc*)
  9308. lt_cv_dlopen="LoadLibrary"
  9309. lt_cv_dlopen_libs=
  9310. ;;
  9311. cygwin*)
  9312. lt_cv_dlopen="dlopen"
  9313. lt_cv_dlopen_libs=
  9314. ;;
  9315. darwin*)
  9316. # if libdl is installed we need to link against it
  9317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9318. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9319. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9320. $as_echo_n "(cached) " >&6
  9321. else
  9322. ac_check_lib_save_LIBS=$LIBS
  9323. LIBS="-ldl $LIBS"
  9324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9325. /* end confdefs.h. */
  9326. /* Override any GCC internal prototype to avoid an error.
  9327. Use char because int might match the return type of a GCC
  9328. builtin and then its argument prototype would still apply. */
  9329. #ifdef __cplusplus
  9330. extern "C"
  9331. #endif
  9332. char dlopen ();
  9333. int
  9334. main ()
  9335. {
  9336. return dlopen ();
  9337. ;
  9338. return 0;
  9339. }
  9340. _ACEOF
  9341. if ac_fn_c_try_link "$LINENO"; then :
  9342. ac_cv_lib_dl_dlopen=yes
  9343. else
  9344. ac_cv_lib_dl_dlopen=no
  9345. fi
  9346. rm -f core conftest.err conftest.$ac_objext \
  9347. conftest$ac_exeext conftest.$ac_ext
  9348. LIBS=$ac_check_lib_save_LIBS
  9349. fi
  9350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9351. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9352. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9353. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9354. else
  9355. lt_cv_dlopen="dyld"
  9356. lt_cv_dlopen_libs=
  9357. lt_cv_dlopen_self=yes
  9358. fi
  9359. ;;
  9360. *)
  9361. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9362. if test "x$ac_cv_func_shl_load" = xyes; then :
  9363. lt_cv_dlopen="shl_load"
  9364. else
  9365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9366. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9367. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9368. $as_echo_n "(cached) " >&6
  9369. else
  9370. ac_check_lib_save_LIBS=$LIBS
  9371. LIBS="-ldld $LIBS"
  9372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9373. /* end confdefs.h. */
  9374. /* Override any GCC internal prototype to avoid an error.
  9375. Use char because int might match the return type of a GCC
  9376. builtin and then its argument prototype would still apply. */
  9377. #ifdef __cplusplus
  9378. extern "C"
  9379. #endif
  9380. char shl_load ();
  9381. int
  9382. main ()
  9383. {
  9384. return shl_load ();
  9385. ;
  9386. return 0;
  9387. }
  9388. _ACEOF
  9389. if ac_fn_c_try_link "$LINENO"; then :
  9390. ac_cv_lib_dld_shl_load=yes
  9391. else
  9392. ac_cv_lib_dld_shl_load=no
  9393. fi
  9394. rm -f core conftest.err conftest.$ac_objext \
  9395. conftest$ac_exeext conftest.$ac_ext
  9396. LIBS=$ac_check_lib_save_LIBS
  9397. fi
  9398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9399. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9400. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9401. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9402. else
  9403. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9404. if test "x$ac_cv_func_dlopen" = xyes; then :
  9405. lt_cv_dlopen="dlopen"
  9406. else
  9407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9408. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9409. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9410. $as_echo_n "(cached) " >&6
  9411. else
  9412. ac_check_lib_save_LIBS=$LIBS
  9413. LIBS="-ldl $LIBS"
  9414. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9415. /* end confdefs.h. */
  9416. /* Override any GCC internal prototype to avoid an error.
  9417. Use char because int might match the return type of a GCC
  9418. builtin and then its argument prototype would still apply. */
  9419. #ifdef __cplusplus
  9420. extern "C"
  9421. #endif
  9422. char dlopen ();
  9423. int
  9424. main ()
  9425. {
  9426. return dlopen ();
  9427. ;
  9428. return 0;
  9429. }
  9430. _ACEOF
  9431. if ac_fn_c_try_link "$LINENO"; then :
  9432. ac_cv_lib_dl_dlopen=yes
  9433. else
  9434. ac_cv_lib_dl_dlopen=no
  9435. fi
  9436. rm -f core conftest.err conftest.$ac_objext \
  9437. conftest$ac_exeext conftest.$ac_ext
  9438. LIBS=$ac_check_lib_save_LIBS
  9439. fi
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9441. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9442. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9443. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9444. else
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9446. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9447. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9448. $as_echo_n "(cached) " >&6
  9449. else
  9450. ac_check_lib_save_LIBS=$LIBS
  9451. LIBS="-lsvld $LIBS"
  9452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9453. /* end confdefs.h. */
  9454. /* Override any GCC internal prototype to avoid an error.
  9455. Use char because int might match the return type of a GCC
  9456. builtin and then its argument prototype would still apply. */
  9457. #ifdef __cplusplus
  9458. extern "C"
  9459. #endif
  9460. char dlopen ();
  9461. int
  9462. main ()
  9463. {
  9464. return dlopen ();
  9465. ;
  9466. return 0;
  9467. }
  9468. _ACEOF
  9469. if ac_fn_c_try_link "$LINENO"; then :
  9470. ac_cv_lib_svld_dlopen=yes
  9471. else
  9472. ac_cv_lib_svld_dlopen=no
  9473. fi
  9474. rm -f core conftest.err conftest.$ac_objext \
  9475. conftest$ac_exeext conftest.$ac_ext
  9476. LIBS=$ac_check_lib_save_LIBS
  9477. fi
  9478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9479. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9480. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9481. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9482. else
  9483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9484. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9485. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9486. $as_echo_n "(cached) " >&6
  9487. else
  9488. ac_check_lib_save_LIBS=$LIBS
  9489. LIBS="-ldld $LIBS"
  9490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9491. /* end confdefs.h. */
  9492. /* Override any GCC internal prototype to avoid an error.
  9493. Use char because int might match the return type of a GCC
  9494. builtin and then its argument prototype would still apply. */
  9495. #ifdef __cplusplus
  9496. extern "C"
  9497. #endif
  9498. char dld_link ();
  9499. int
  9500. main ()
  9501. {
  9502. return dld_link ();
  9503. ;
  9504. return 0;
  9505. }
  9506. _ACEOF
  9507. if ac_fn_c_try_link "$LINENO"; then :
  9508. ac_cv_lib_dld_dld_link=yes
  9509. else
  9510. ac_cv_lib_dld_dld_link=no
  9511. fi
  9512. rm -f core conftest.err conftest.$ac_objext \
  9513. conftest$ac_exeext conftest.$ac_ext
  9514. LIBS=$ac_check_lib_save_LIBS
  9515. fi
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9517. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9518. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9519. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9520. fi
  9521. fi
  9522. fi
  9523. fi
  9524. fi
  9525. fi
  9526. ;;
  9527. esac
  9528. if test "x$lt_cv_dlopen" != xno; then
  9529. enable_dlopen=yes
  9530. else
  9531. enable_dlopen=no
  9532. fi
  9533. case $lt_cv_dlopen in
  9534. dlopen)
  9535. save_CPPFLAGS="$CPPFLAGS"
  9536. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9537. save_LDFLAGS="$LDFLAGS"
  9538. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9539. save_LIBS="$LIBS"
  9540. LIBS="$lt_cv_dlopen_libs $LIBS"
  9541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9542. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9543. if ${lt_cv_dlopen_self+:} false; then :
  9544. $as_echo_n "(cached) " >&6
  9545. else
  9546. if test "$cross_compiling" = yes; then :
  9547. lt_cv_dlopen_self=cross
  9548. else
  9549. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9550. lt_status=$lt_dlunknown
  9551. cat > conftest.$ac_ext <<_LT_EOF
  9552. #line $LINENO "configure"
  9553. #include "confdefs.h"
  9554. #if HAVE_DLFCN_H
  9555. #include <dlfcn.h>
  9556. #endif
  9557. #include <stdio.h>
  9558. #ifdef RTLD_GLOBAL
  9559. # define LT_DLGLOBAL RTLD_GLOBAL
  9560. #else
  9561. # ifdef DL_GLOBAL
  9562. # define LT_DLGLOBAL DL_GLOBAL
  9563. # else
  9564. # define LT_DLGLOBAL 0
  9565. # endif
  9566. #endif
  9567. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9568. find out it does not work in some platform. */
  9569. #ifndef LT_DLLAZY_OR_NOW
  9570. # ifdef RTLD_LAZY
  9571. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9572. # else
  9573. # ifdef DL_LAZY
  9574. # define LT_DLLAZY_OR_NOW DL_LAZY
  9575. # else
  9576. # ifdef RTLD_NOW
  9577. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9578. # else
  9579. # ifdef DL_NOW
  9580. # define LT_DLLAZY_OR_NOW DL_NOW
  9581. # else
  9582. # define LT_DLLAZY_OR_NOW 0
  9583. # endif
  9584. # endif
  9585. # endif
  9586. # endif
  9587. #endif
  9588. /* When -fvisbility=hidden is used, assume the code has been annotated
  9589. correspondingly for the symbols needed. */
  9590. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9591. int fnord () __attribute__((visibility("default")));
  9592. #endif
  9593. int fnord () { return 42; }
  9594. int main ()
  9595. {
  9596. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9597. int status = $lt_dlunknown;
  9598. if (self)
  9599. {
  9600. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9601. else
  9602. {
  9603. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9604. else puts (dlerror ());
  9605. }
  9606. /* dlclose (self); */
  9607. }
  9608. else
  9609. puts (dlerror ());
  9610. return status;
  9611. }
  9612. _LT_EOF
  9613. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9614. (eval $ac_link) 2>&5
  9615. ac_status=$?
  9616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9617. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9618. (./conftest; exit; ) >&5 2>/dev/null
  9619. lt_status=$?
  9620. case x$lt_status in
  9621. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9622. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9623. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9624. esac
  9625. else :
  9626. # compilation failed
  9627. lt_cv_dlopen_self=no
  9628. fi
  9629. fi
  9630. rm -fr conftest*
  9631. fi
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9633. $as_echo "$lt_cv_dlopen_self" >&6; }
  9634. if test "x$lt_cv_dlopen_self" = xyes; then
  9635. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9637. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9638. if ${lt_cv_dlopen_self_static+:} false; then :
  9639. $as_echo_n "(cached) " >&6
  9640. else
  9641. if test "$cross_compiling" = yes; then :
  9642. lt_cv_dlopen_self_static=cross
  9643. else
  9644. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9645. lt_status=$lt_dlunknown
  9646. cat > conftest.$ac_ext <<_LT_EOF
  9647. #line $LINENO "configure"
  9648. #include "confdefs.h"
  9649. #if HAVE_DLFCN_H
  9650. #include <dlfcn.h>
  9651. #endif
  9652. #include <stdio.h>
  9653. #ifdef RTLD_GLOBAL
  9654. # define LT_DLGLOBAL RTLD_GLOBAL
  9655. #else
  9656. # ifdef DL_GLOBAL
  9657. # define LT_DLGLOBAL DL_GLOBAL
  9658. # else
  9659. # define LT_DLGLOBAL 0
  9660. # endif
  9661. #endif
  9662. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9663. find out it does not work in some platform. */
  9664. #ifndef LT_DLLAZY_OR_NOW
  9665. # ifdef RTLD_LAZY
  9666. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9667. # else
  9668. # ifdef DL_LAZY
  9669. # define LT_DLLAZY_OR_NOW DL_LAZY
  9670. # else
  9671. # ifdef RTLD_NOW
  9672. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9673. # else
  9674. # ifdef DL_NOW
  9675. # define LT_DLLAZY_OR_NOW DL_NOW
  9676. # else
  9677. # define LT_DLLAZY_OR_NOW 0
  9678. # endif
  9679. # endif
  9680. # endif
  9681. # endif
  9682. #endif
  9683. /* When -fvisbility=hidden is used, assume the code has been annotated
  9684. correspondingly for the symbols needed. */
  9685. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9686. int fnord () __attribute__((visibility("default")));
  9687. #endif
  9688. int fnord () { return 42; }
  9689. int main ()
  9690. {
  9691. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9692. int status = $lt_dlunknown;
  9693. if (self)
  9694. {
  9695. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9696. else
  9697. {
  9698. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9699. else puts (dlerror ());
  9700. }
  9701. /* dlclose (self); */
  9702. }
  9703. else
  9704. puts (dlerror ());
  9705. return status;
  9706. }
  9707. _LT_EOF
  9708. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9709. (eval $ac_link) 2>&5
  9710. ac_status=$?
  9711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9712. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9713. (./conftest; exit; ) >&5 2>/dev/null
  9714. lt_status=$?
  9715. case x$lt_status in
  9716. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9717. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9718. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9719. esac
  9720. else :
  9721. # compilation failed
  9722. lt_cv_dlopen_self_static=no
  9723. fi
  9724. fi
  9725. rm -fr conftest*
  9726. fi
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9728. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9729. fi
  9730. CPPFLAGS="$save_CPPFLAGS"
  9731. LDFLAGS="$save_LDFLAGS"
  9732. LIBS="$save_LIBS"
  9733. ;;
  9734. esac
  9735. case $lt_cv_dlopen_self in
  9736. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9737. *) enable_dlopen_self=unknown ;;
  9738. esac
  9739. case $lt_cv_dlopen_self_static in
  9740. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9741. *) enable_dlopen_self_static=unknown ;;
  9742. esac
  9743. fi
  9744. striplib=
  9745. old_striplib=
  9746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9747. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9748. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9749. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9750. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9752. $as_echo "yes" >&6; }
  9753. else
  9754. # FIXME - insert some real tests, host_os isn't really good enough
  9755. case $host_os in
  9756. darwin*)
  9757. if test -n "$STRIP" ; then
  9758. striplib="$STRIP -x"
  9759. old_striplib="$STRIP -S"
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9761. $as_echo "yes" >&6; }
  9762. else
  9763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9764. $as_echo "no" >&6; }
  9765. fi
  9766. ;;
  9767. *)
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9769. $as_echo "no" >&6; }
  9770. ;;
  9771. esac
  9772. fi
  9773. # Report which library types will actually be built
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9775. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9777. $as_echo "$can_build_shared" >&6; }
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9779. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9780. test "$can_build_shared" = "no" && enable_shared=no
  9781. # On AIX, shared libraries and static libraries use the same namespace, and
  9782. # are all built from PIC.
  9783. case $host_os in
  9784. aix3*)
  9785. test "$enable_shared" = yes && enable_static=no
  9786. if test -n "$RANLIB"; then
  9787. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9788. postinstall_cmds='$RANLIB $lib'
  9789. fi
  9790. ;;
  9791. aix[4-9]*)
  9792. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9793. test "$enable_shared" = yes && enable_static=no
  9794. fi
  9795. ;;
  9796. esac
  9797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9798. $as_echo "$enable_shared" >&6; }
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9800. $as_echo_n "checking whether to build static libraries... " >&6; }
  9801. # Make sure either enable_shared or enable_static is yes.
  9802. test "$enable_shared" = yes || enable_static=yes
  9803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9804. $as_echo "$enable_static" >&6; }
  9805. fi
  9806. ac_ext=c
  9807. ac_cpp='$CPP $CPPFLAGS'
  9808. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9809. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9810. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9811. CC="$lt_save_CC"
  9812. ac_config_commands="$ac_config_commands libtool"
  9813. # Only expand once:
  9814. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9815. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9816. LT_REVISION=$SDL_INTERFACE_AGE
  9817. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9818. ac_ext=c
  9819. ac_cpp='$CPP $CPPFLAGS'
  9820. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9821. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9822. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9823. if test -n "$ac_tool_prefix"; then
  9824. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9825. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9827. $as_echo_n "checking for $ac_word... " >&6; }
  9828. if ${ac_cv_prog_CC+:} false; then :
  9829. $as_echo_n "(cached) " >&6
  9830. else
  9831. if test -n "$CC"; then
  9832. ac_cv_prog_CC="$CC" # Let the user override the test.
  9833. else
  9834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9835. for as_dir in $PATH
  9836. do
  9837. IFS=$as_save_IFS
  9838. test -z "$as_dir" && as_dir=.
  9839. for ac_exec_ext in '' $ac_executable_extensions; do
  9840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9841. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9843. break 2
  9844. fi
  9845. done
  9846. done
  9847. IFS=$as_save_IFS
  9848. fi
  9849. fi
  9850. CC=$ac_cv_prog_CC
  9851. if test -n "$CC"; then
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9853. $as_echo "$CC" >&6; }
  9854. else
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9856. $as_echo "no" >&6; }
  9857. fi
  9858. fi
  9859. if test -z "$ac_cv_prog_CC"; then
  9860. ac_ct_CC=$CC
  9861. # Extract the first word of "gcc", so it can be a program name with args.
  9862. set dummy gcc; ac_word=$2
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9864. $as_echo_n "checking for $ac_word... " >&6; }
  9865. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9866. $as_echo_n "(cached) " >&6
  9867. else
  9868. if test -n "$ac_ct_CC"; then
  9869. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9870. else
  9871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9872. for as_dir in $PATH
  9873. do
  9874. IFS=$as_save_IFS
  9875. test -z "$as_dir" && as_dir=.
  9876. for ac_exec_ext in '' $ac_executable_extensions; do
  9877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9878. ac_cv_prog_ac_ct_CC="gcc"
  9879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9880. break 2
  9881. fi
  9882. done
  9883. done
  9884. IFS=$as_save_IFS
  9885. fi
  9886. fi
  9887. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9888. if test -n "$ac_ct_CC"; then
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9890. $as_echo "$ac_ct_CC" >&6; }
  9891. else
  9892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9893. $as_echo "no" >&6; }
  9894. fi
  9895. if test "x$ac_ct_CC" = x; then
  9896. CC=""
  9897. else
  9898. case $cross_compiling:$ac_tool_warned in
  9899. yes:)
  9900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9901. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9902. ac_tool_warned=yes ;;
  9903. esac
  9904. CC=$ac_ct_CC
  9905. fi
  9906. else
  9907. CC="$ac_cv_prog_CC"
  9908. fi
  9909. if test -z "$CC"; then
  9910. if test -n "$ac_tool_prefix"; then
  9911. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9912. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9914. $as_echo_n "checking for $ac_word... " >&6; }
  9915. if ${ac_cv_prog_CC+:} false; then :
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. if test -n "$CC"; then
  9919. ac_cv_prog_CC="$CC" # Let the user override the test.
  9920. else
  9921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9922. for as_dir in $PATH
  9923. do
  9924. IFS=$as_save_IFS
  9925. test -z "$as_dir" && as_dir=.
  9926. for ac_exec_ext in '' $ac_executable_extensions; do
  9927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9928. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9930. break 2
  9931. fi
  9932. done
  9933. done
  9934. IFS=$as_save_IFS
  9935. fi
  9936. fi
  9937. CC=$ac_cv_prog_CC
  9938. if test -n "$CC"; then
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9940. $as_echo "$CC" >&6; }
  9941. else
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9943. $as_echo "no" >&6; }
  9944. fi
  9945. fi
  9946. fi
  9947. if test -z "$CC"; then
  9948. # Extract the first word of "cc", so it can be a program name with args.
  9949. set dummy cc; ac_word=$2
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9951. $as_echo_n "checking for $ac_word... " >&6; }
  9952. if ${ac_cv_prog_CC+:} false; then :
  9953. $as_echo_n "(cached) " >&6
  9954. else
  9955. if test -n "$CC"; then
  9956. ac_cv_prog_CC="$CC" # Let the user override the test.
  9957. else
  9958. ac_prog_rejected=no
  9959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9960. for as_dir in $PATH
  9961. do
  9962. IFS=$as_save_IFS
  9963. test -z "$as_dir" && as_dir=.
  9964. for ac_exec_ext in '' $ac_executable_extensions; do
  9965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9966. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9967. ac_prog_rejected=yes
  9968. continue
  9969. fi
  9970. ac_cv_prog_CC="cc"
  9971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9972. break 2
  9973. fi
  9974. done
  9975. done
  9976. IFS=$as_save_IFS
  9977. if test $ac_prog_rejected = yes; then
  9978. # We found a bogon in the path, so make sure we never use it.
  9979. set dummy $ac_cv_prog_CC
  9980. shift
  9981. if test $# != 0; then
  9982. # We chose a different compiler from the bogus one.
  9983. # However, it has the same basename, so the bogon will be chosen
  9984. # first if we set CC to just the basename; use the full file name.
  9985. shift
  9986. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9987. fi
  9988. fi
  9989. fi
  9990. fi
  9991. CC=$ac_cv_prog_CC
  9992. if test -n "$CC"; then
  9993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9994. $as_echo "$CC" >&6; }
  9995. else
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9997. $as_echo "no" >&6; }
  9998. fi
  9999. fi
  10000. if test -z "$CC"; then
  10001. if test -n "$ac_tool_prefix"; then
  10002. for ac_prog in cl.exe
  10003. do
  10004. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10005. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10007. $as_echo_n "checking for $ac_word... " >&6; }
  10008. if ${ac_cv_prog_CC+:} false; then :
  10009. $as_echo_n "(cached) " >&6
  10010. else
  10011. if test -n "$CC"; then
  10012. ac_cv_prog_CC="$CC" # Let the user override the test.
  10013. else
  10014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10015. for as_dir in $PATH
  10016. do
  10017. IFS=$as_save_IFS
  10018. test -z "$as_dir" && as_dir=.
  10019. for ac_exec_ext in '' $ac_executable_extensions; do
  10020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10021. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10023. break 2
  10024. fi
  10025. done
  10026. done
  10027. IFS=$as_save_IFS
  10028. fi
  10029. fi
  10030. CC=$ac_cv_prog_CC
  10031. if test -n "$CC"; then
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10033. $as_echo "$CC" >&6; }
  10034. else
  10035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10036. $as_echo "no" >&6; }
  10037. fi
  10038. test -n "$CC" && break
  10039. done
  10040. fi
  10041. if test -z "$CC"; then
  10042. ac_ct_CC=$CC
  10043. for ac_prog in cl.exe
  10044. do
  10045. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10046. set dummy $ac_prog; ac_word=$2
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10048. $as_echo_n "checking for $ac_word... " >&6; }
  10049. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10050. $as_echo_n "(cached) " >&6
  10051. else
  10052. if test -n "$ac_ct_CC"; then
  10053. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10054. else
  10055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10056. for as_dir in $PATH
  10057. do
  10058. IFS=$as_save_IFS
  10059. test -z "$as_dir" && as_dir=.
  10060. for ac_exec_ext in '' $ac_executable_extensions; do
  10061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10062. ac_cv_prog_ac_ct_CC="$ac_prog"
  10063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10064. break 2
  10065. fi
  10066. done
  10067. done
  10068. IFS=$as_save_IFS
  10069. fi
  10070. fi
  10071. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10072. if test -n "$ac_ct_CC"; then
  10073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10074. $as_echo "$ac_ct_CC" >&6; }
  10075. else
  10076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10077. $as_echo "no" >&6; }
  10078. fi
  10079. test -n "$ac_ct_CC" && break
  10080. done
  10081. if test "x$ac_ct_CC" = x; then
  10082. CC=""
  10083. else
  10084. case $cross_compiling:$ac_tool_warned in
  10085. yes:)
  10086. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10087. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10088. ac_tool_warned=yes ;;
  10089. esac
  10090. CC=$ac_ct_CC
  10091. fi
  10092. fi
  10093. fi
  10094. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10095. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10096. as_fn_error $? "no acceptable C compiler found in \$PATH
  10097. See \`config.log' for more details" "$LINENO" 5; }
  10098. # Provide some information about the compiler.
  10099. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10100. set X $ac_compile
  10101. ac_compiler=$2
  10102. for ac_option in --version -v -V -qversion; do
  10103. { { ac_try="$ac_compiler $ac_option >&5"
  10104. case "(($ac_try" in
  10105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10106. *) ac_try_echo=$ac_try;;
  10107. esac
  10108. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10109. $as_echo "$ac_try_echo"; } >&5
  10110. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10111. ac_status=$?
  10112. if test -s conftest.err; then
  10113. sed '10a\
  10114. ... rest of stderr output deleted ...
  10115. 10q' conftest.err >conftest.er1
  10116. cat conftest.er1 >&5
  10117. fi
  10118. rm -f conftest.er1 conftest.err
  10119. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10120. test $ac_status = 0; }
  10121. done
  10122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10123. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10124. if ${ac_cv_c_compiler_gnu+:} false; then :
  10125. $as_echo_n "(cached) " >&6
  10126. else
  10127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10128. /* end confdefs.h. */
  10129. int
  10130. main ()
  10131. {
  10132. #ifndef __GNUC__
  10133. choke me
  10134. #endif
  10135. ;
  10136. return 0;
  10137. }
  10138. _ACEOF
  10139. if ac_fn_c_try_compile "$LINENO"; then :
  10140. ac_compiler_gnu=yes
  10141. else
  10142. ac_compiler_gnu=no
  10143. fi
  10144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10145. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10146. fi
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10148. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10149. if test $ac_compiler_gnu = yes; then
  10150. GCC=yes
  10151. else
  10152. GCC=
  10153. fi
  10154. ac_test_CFLAGS=${CFLAGS+set}
  10155. ac_save_CFLAGS=$CFLAGS
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10157. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10158. if ${ac_cv_prog_cc_g+:} false; then :
  10159. $as_echo_n "(cached) " >&6
  10160. else
  10161. ac_save_c_werror_flag=$ac_c_werror_flag
  10162. ac_c_werror_flag=yes
  10163. ac_cv_prog_cc_g=no
  10164. CFLAGS="-g"
  10165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10166. /* end confdefs.h. */
  10167. int
  10168. main ()
  10169. {
  10170. ;
  10171. return 0;
  10172. }
  10173. _ACEOF
  10174. if ac_fn_c_try_compile "$LINENO"; then :
  10175. ac_cv_prog_cc_g=yes
  10176. else
  10177. CFLAGS=""
  10178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10179. /* end confdefs.h. */
  10180. int
  10181. main ()
  10182. {
  10183. ;
  10184. return 0;
  10185. }
  10186. _ACEOF
  10187. if ac_fn_c_try_compile "$LINENO"; then :
  10188. else
  10189. ac_c_werror_flag=$ac_save_c_werror_flag
  10190. CFLAGS="-g"
  10191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10192. /* end confdefs.h. */
  10193. int
  10194. main ()
  10195. {
  10196. ;
  10197. return 0;
  10198. }
  10199. _ACEOF
  10200. if ac_fn_c_try_compile "$LINENO"; then :
  10201. ac_cv_prog_cc_g=yes
  10202. fi
  10203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10204. fi
  10205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10206. fi
  10207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10208. ac_c_werror_flag=$ac_save_c_werror_flag
  10209. fi
  10210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10211. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10212. if test "$ac_test_CFLAGS" = set; then
  10213. CFLAGS=$ac_save_CFLAGS
  10214. elif test $ac_cv_prog_cc_g = yes; then
  10215. if test "$GCC" = yes; then
  10216. CFLAGS="-g -O2"
  10217. else
  10218. CFLAGS="-g"
  10219. fi
  10220. else
  10221. if test "$GCC" = yes; then
  10222. CFLAGS="-O2"
  10223. else
  10224. CFLAGS=
  10225. fi
  10226. fi
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10228. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10229. if ${ac_cv_prog_cc_c89+:} false; then :
  10230. $as_echo_n "(cached) " >&6
  10231. else
  10232. ac_cv_prog_cc_c89=no
  10233. ac_save_CC=$CC
  10234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10235. /* end confdefs.h. */
  10236. #include <stdarg.h>
  10237. #include <stdio.h>
  10238. struct stat;
  10239. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10240. struct buf { int x; };
  10241. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10242. static char *e (p, i)
  10243. char **p;
  10244. int i;
  10245. {
  10246. return p[i];
  10247. }
  10248. static char *f (char * (*g) (char **, int), char **p, ...)
  10249. {
  10250. char *s;
  10251. va_list v;
  10252. va_start (v,p);
  10253. s = g (p, va_arg (v,int));
  10254. va_end (v);
  10255. return s;
  10256. }
  10257. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10258. function prototypes and stuff, but not '\xHH' hex character constants.
  10259. These don't provoke an error unfortunately, instead are silently treated
  10260. as 'x'. The following induces an error, until -std is added to get
  10261. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10262. array size at least. It's necessary to write '\x00'==0 to get something
  10263. that's true only with -std. */
  10264. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10265. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10266. inside strings and character constants. */
  10267. #define FOO(x) 'x'
  10268. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10269. int test (int i, double x);
  10270. struct s1 {int (*f) (int a);};
  10271. struct s2 {int (*f) (double a);};
  10272. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10273. int argc;
  10274. char **argv;
  10275. int
  10276. main ()
  10277. {
  10278. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10279. ;
  10280. return 0;
  10281. }
  10282. _ACEOF
  10283. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10284. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10285. do
  10286. CC="$ac_save_CC $ac_arg"
  10287. if ac_fn_c_try_compile "$LINENO"; then :
  10288. ac_cv_prog_cc_c89=$ac_arg
  10289. fi
  10290. rm -f core conftest.err conftest.$ac_objext
  10291. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10292. done
  10293. rm -f conftest.$ac_ext
  10294. CC=$ac_save_CC
  10295. fi
  10296. # AC_CACHE_VAL
  10297. case "x$ac_cv_prog_cc_c89" in
  10298. x)
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10300. $as_echo "none needed" >&6; } ;;
  10301. xno)
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10303. $as_echo "unsupported" >&6; } ;;
  10304. *)
  10305. CC="$CC $ac_cv_prog_cc_c89"
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10307. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10308. esac
  10309. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10310. fi
  10311. ac_ext=c
  10312. ac_cpp='$CPP $CPPFLAGS'
  10313. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10314. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10315. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10316. ac_ext=cpp
  10317. ac_cpp='$CXXCPP $CPPFLAGS'
  10318. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10319. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10320. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10321. if test -z "$CXX"; then
  10322. if test -n "$CCC"; then
  10323. CXX=$CCC
  10324. else
  10325. if test -n "$ac_tool_prefix"; then
  10326. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10327. do
  10328. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10329. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10331. $as_echo_n "checking for $ac_word... " >&6; }
  10332. if ${ac_cv_prog_CXX+:} false; then :
  10333. $as_echo_n "(cached) " >&6
  10334. else
  10335. if test -n "$CXX"; then
  10336. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10337. else
  10338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10339. for as_dir in $PATH
  10340. do
  10341. IFS=$as_save_IFS
  10342. test -z "$as_dir" && as_dir=.
  10343. for ac_exec_ext in '' $ac_executable_extensions; do
  10344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10345. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10347. break 2
  10348. fi
  10349. done
  10350. done
  10351. IFS=$as_save_IFS
  10352. fi
  10353. fi
  10354. CXX=$ac_cv_prog_CXX
  10355. if test -n "$CXX"; then
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10357. $as_echo "$CXX" >&6; }
  10358. else
  10359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10360. $as_echo "no" >&6; }
  10361. fi
  10362. test -n "$CXX" && break
  10363. done
  10364. fi
  10365. if test -z "$CXX"; then
  10366. ac_ct_CXX=$CXX
  10367. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10368. do
  10369. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10370. set dummy $ac_prog; ac_word=$2
  10371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10372. $as_echo_n "checking for $ac_word... " >&6; }
  10373. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10374. $as_echo_n "(cached) " >&6
  10375. else
  10376. if test -n "$ac_ct_CXX"; then
  10377. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10378. else
  10379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10380. for as_dir in $PATH
  10381. do
  10382. IFS=$as_save_IFS
  10383. test -z "$as_dir" && as_dir=.
  10384. for ac_exec_ext in '' $ac_executable_extensions; do
  10385. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10386. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10388. break 2
  10389. fi
  10390. done
  10391. done
  10392. IFS=$as_save_IFS
  10393. fi
  10394. fi
  10395. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10396. if test -n "$ac_ct_CXX"; then
  10397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10398. $as_echo "$ac_ct_CXX" >&6; }
  10399. else
  10400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10401. $as_echo "no" >&6; }
  10402. fi
  10403. test -n "$ac_ct_CXX" && break
  10404. done
  10405. if test "x$ac_ct_CXX" = x; then
  10406. CXX="g++"
  10407. else
  10408. case $cross_compiling:$ac_tool_warned in
  10409. yes:)
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10411. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10412. ac_tool_warned=yes ;;
  10413. esac
  10414. CXX=$ac_ct_CXX
  10415. fi
  10416. fi
  10417. fi
  10418. fi
  10419. # Provide some information about the compiler.
  10420. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10421. set X $ac_compile
  10422. ac_compiler=$2
  10423. for ac_option in --version -v -V -qversion; do
  10424. { { ac_try="$ac_compiler $ac_option >&5"
  10425. case "(($ac_try" in
  10426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10427. *) ac_try_echo=$ac_try;;
  10428. esac
  10429. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10430. $as_echo "$ac_try_echo"; } >&5
  10431. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10432. ac_status=$?
  10433. if test -s conftest.err; then
  10434. sed '10a\
  10435. ... rest of stderr output deleted ...
  10436. 10q' conftest.err >conftest.er1
  10437. cat conftest.er1 >&5
  10438. fi
  10439. rm -f conftest.er1 conftest.err
  10440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10441. test $ac_status = 0; }
  10442. done
  10443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10444. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10445. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10446. $as_echo_n "(cached) " >&6
  10447. else
  10448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10449. /* end confdefs.h. */
  10450. int
  10451. main ()
  10452. {
  10453. #ifndef __GNUC__
  10454. choke me
  10455. #endif
  10456. ;
  10457. return 0;
  10458. }
  10459. _ACEOF
  10460. if ac_fn_cxx_try_compile "$LINENO"; then :
  10461. ac_compiler_gnu=yes
  10462. else
  10463. ac_compiler_gnu=no
  10464. fi
  10465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10466. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10467. fi
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10469. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10470. if test $ac_compiler_gnu = yes; then
  10471. GXX=yes
  10472. else
  10473. GXX=
  10474. fi
  10475. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10476. ac_save_CXXFLAGS=$CXXFLAGS
  10477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10478. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10479. if ${ac_cv_prog_cxx_g+:} false; then :
  10480. $as_echo_n "(cached) " >&6
  10481. else
  10482. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10483. ac_cxx_werror_flag=yes
  10484. ac_cv_prog_cxx_g=no
  10485. CXXFLAGS="-g"
  10486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10487. /* end confdefs.h. */
  10488. int
  10489. main ()
  10490. {
  10491. ;
  10492. return 0;
  10493. }
  10494. _ACEOF
  10495. if ac_fn_cxx_try_compile "$LINENO"; then :
  10496. ac_cv_prog_cxx_g=yes
  10497. else
  10498. CXXFLAGS=""
  10499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10500. /* end confdefs.h. */
  10501. int
  10502. main ()
  10503. {
  10504. ;
  10505. return 0;
  10506. }
  10507. _ACEOF
  10508. if ac_fn_cxx_try_compile "$LINENO"; then :
  10509. else
  10510. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10511. CXXFLAGS="-g"
  10512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10513. /* end confdefs.h. */
  10514. int
  10515. main ()
  10516. {
  10517. ;
  10518. return 0;
  10519. }
  10520. _ACEOF
  10521. if ac_fn_cxx_try_compile "$LINENO"; then :
  10522. ac_cv_prog_cxx_g=yes
  10523. fi
  10524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10525. fi
  10526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10527. fi
  10528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10529. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10530. fi
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10532. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10533. if test "$ac_test_CXXFLAGS" = set; then
  10534. CXXFLAGS=$ac_save_CXXFLAGS
  10535. elif test $ac_cv_prog_cxx_g = yes; then
  10536. if test "$GXX" = yes; then
  10537. CXXFLAGS="-g -O2"
  10538. else
  10539. CXXFLAGS="-g"
  10540. fi
  10541. else
  10542. if test "$GXX" = yes; then
  10543. CXXFLAGS="-O2"
  10544. else
  10545. CXXFLAGS=
  10546. fi
  10547. fi
  10548. ac_ext=c
  10549. ac_cpp='$CPP $CPPFLAGS'
  10550. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10551. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10552. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10553. func_stripname_cnf ()
  10554. {
  10555. case ${2} in
  10556. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10557. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10558. esac
  10559. } # func_stripname_cnf
  10560. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10561. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10562. (test "X$CXX" != "Xg++"))) ; then
  10563. ac_ext=cpp
  10564. ac_cpp='$CXXCPP $CPPFLAGS'
  10565. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10566. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10567. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10569. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10570. if test -z "$CXXCPP"; then
  10571. if ${ac_cv_prog_CXXCPP+:} false; then :
  10572. $as_echo_n "(cached) " >&6
  10573. else
  10574. # Double quotes because CXXCPP needs to be expanded
  10575. for CXXCPP in "$CXX -E" "/lib/cpp"
  10576. do
  10577. ac_preproc_ok=false
  10578. for ac_cxx_preproc_warn_flag in '' yes
  10579. do
  10580. # Use a header file that comes with gcc, so configuring glibc
  10581. # with a fresh cross-compiler works.
  10582. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10583. # <limits.h> exists even on freestanding compilers.
  10584. # On the NeXT, cc -E runs the code through the compiler's parser,
  10585. # not just through cpp. "Syntax error" is here to catch this case.
  10586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10587. /* end confdefs.h. */
  10588. #ifdef __STDC__
  10589. # include <limits.h>
  10590. #else
  10591. # include <assert.h>
  10592. #endif
  10593. Syntax error
  10594. _ACEOF
  10595. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10596. else
  10597. # Broken: fails on valid input.
  10598. continue
  10599. fi
  10600. rm -f conftest.err conftest.i conftest.$ac_ext
  10601. # OK, works on sane cases. Now check whether nonexistent headers
  10602. # can be detected and how.
  10603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10604. /* end confdefs.h. */
  10605. #include <ac_nonexistent.h>
  10606. _ACEOF
  10607. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10608. # Broken: success on invalid input.
  10609. continue
  10610. else
  10611. # Passes both tests.
  10612. ac_preproc_ok=:
  10613. break
  10614. fi
  10615. rm -f conftest.err conftest.i conftest.$ac_ext
  10616. done
  10617. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10618. rm -f conftest.i conftest.err conftest.$ac_ext
  10619. if $ac_preproc_ok; then :
  10620. break
  10621. fi
  10622. done
  10623. ac_cv_prog_CXXCPP=$CXXCPP
  10624. fi
  10625. CXXCPP=$ac_cv_prog_CXXCPP
  10626. else
  10627. ac_cv_prog_CXXCPP=$CXXCPP
  10628. fi
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10630. $as_echo "$CXXCPP" >&6; }
  10631. ac_preproc_ok=false
  10632. for ac_cxx_preproc_warn_flag in '' yes
  10633. do
  10634. # Use a header file that comes with gcc, so configuring glibc
  10635. # with a fresh cross-compiler works.
  10636. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10637. # <limits.h> exists even on freestanding compilers.
  10638. # On the NeXT, cc -E runs the code through the compiler's parser,
  10639. # not just through cpp. "Syntax error" is here to catch this case.
  10640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10641. /* end confdefs.h. */
  10642. #ifdef __STDC__
  10643. # include <limits.h>
  10644. #else
  10645. # include <assert.h>
  10646. #endif
  10647. Syntax error
  10648. _ACEOF
  10649. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10650. else
  10651. # Broken: fails on valid input.
  10652. continue
  10653. fi
  10654. rm -f conftest.err conftest.i conftest.$ac_ext
  10655. # OK, works on sane cases. Now check whether nonexistent headers
  10656. # can be detected and how.
  10657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10658. /* end confdefs.h. */
  10659. #include <ac_nonexistent.h>
  10660. _ACEOF
  10661. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10662. # Broken: success on invalid input.
  10663. continue
  10664. else
  10665. # Passes both tests.
  10666. ac_preproc_ok=:
  10667. break
  10668. fi
  10669. rm -f conftest.err conftest.i conftest.$ac_ext
  10670. done
  10671. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10672. rm -f conftest.i conftest.err conftest.$ac_ext
  10673. if $ac_preproc_ok; then :
  10674. else
  10675. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10676. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10677. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10678. See \`config.log' for more details" "$LINENO" 5; }
  10679. fi
  10680. ac_ext=c
  10681. ac_cpp='$CPP $CPPFLAGS'
  10682. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10683. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10684. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10685. else
  10686. _lt_caught_CXX_error=yes
  10687. fi
  10688. ac_ext=cpp
  10689. ac_cpp='$CXXCPP $CPPFLAGS'
  10690. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10691. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10692. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10693. archive_cmds_need_lc_CXX=no
  10694. allow_undefined_flag_CXX=
  10695. always_export_symbols_CXX=no
  10696. archive_expsym_cmds_CXX=
  10697. compiler_needs_object_CXX=no
  10698. export_dynamic_flag_spec_CXX=
  10699. hardcode_direct_CXX=no
  10700. hardcode_direct_absolute_CXX=no
  10701. hardcode_libdir_flag_spec_CXX=
  10702. hardcode_libdir_separator_CXX=
  10703. hardcode_minus_L_CXX=no
  10704. hardcode_shlibpath_var_CXX=unsupported
  10705. hardcode_automatic_CXX=no
  10706. inherit_rpath_CXX=no
  10707. module_cmds_CXX=
  10708. module_expsym_cmds_CXX=
  10709. link_all_deplibs_CXX=unknown
  10710. old_archive_cmds_CXX=$old_archive_cmds
  10711. reload_flag_CXX=$reload_flag
  10712. reload_cmds_CXX=$reload_cmds
  10713. no_undefined_flag_CXX=
  10714. whole_archive_flag_spec_CXX=
  10715. enable_shared_with_static_runtimes_CXX=no
  10716. # Source file extension for C++ test sources.
  10717. ac_ext=cpp
  10718. # Object file extension for compiled C++ test sources.
  10719. objext=o
  10720. objext_CXX=$objext
  10721. # No sense in running all these tests if we already determined that
  10722. # the CXX compiler isn't working. Some variables (like enable_shared)
  10723. # are currently assumed to apply to all compilers on this platform,
  10724. # and will be corrupted by setting them based on a non-working compiler.
  10725. if test "$_lt_caught_CXX_error" != yes; then
  10726. # Code to be used in simple compile tests
  10727. lt_simple_compile_test_code="int some_variable = 0;"
  10728. # Code to be used in simple link tests
  10729. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10730. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10731. # If no C compiler was specified, use CC.
  10732. LTCC=${LTCC-"$CC"}
  10733. # If no C compiler flags were specified, use CFLAGS.
  10734. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10735. # Allow CC to be a program name with arguments.
  10736. compiler=$CC
  10737. # save warnings/boilerplate of simple test code
  10738. ac_outfile=conftest.$ac_objext
  10739. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10740. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10741. _lt_compiler_boilerplate=`cat conftest.err`
  10742. $RM conftest*
  10743. ac_outfile=conftest.$ac_objext
  10744. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10745. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10746. _lt_linker_boilerplate=`cat conftest.err`
  10747. $RM -r conftest*
  10748. # Allow CC to be a program name with arguments.
  10749. lt_save_CC=$CC
  10750. lt_save_CFLAGS=$CFLAGS
  10751. lt_save_LD=$LD
  10752. lt_save_GCC=$GCC
  10753. GCC=$GXX
  10754. lt_save_with_gnu_ld=$with_gnu_ld
  10755. lt_save_path_LD=$lt_cv_path_LD
  10756. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10757. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10758. else
  10759. $as_unset lt_cv_prog_gnu_ld
  10760. fi
  10761. if test -n "${lt_cv_path_LDCXX+set}"; then
  10762. lt_cv_path_LD=$lt_cv_path_LDCXX
  10763. else
  10764. $as_unset lt_cv_path_LD
  10765. fi
  10766. test -z "${LDCXX+set}" || LD=$LDCXX
  10767. CC=${CXX-"c++"}
  10768. CFLAGS=$CXXFLAGS
  10769. compiler=$CC
  10770. compiler_CXX=$CC
  10771. for cc_temp in $compiler""; do
  10772. case $cc_temp in
  10773. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10774. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10775. \-*) ;;
  10776. *) break;;
  10777. esac
  10778. done
  10779. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10780. if test -n "$compiler"; then
  10781. # We don't want -fno-exception when compiling C++ code, so set the
  10782. # no_builtin_flag separately
  10783. if test "$GXX" = yes; then
  10784. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10785. else
  10786. lt_prog_compiler_no_builtin_flag_CXX=
  10787. fi
  10788. if test "$GXX" = yes; then
  10789. # Set up default GNU C++ configuration
  10790. # Check whether --with-gnu-ld was given.
  10791. if test "${with_gnu_ld+set}" = set; then :
  10792. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10793. else
  10794. with_gnu_ld=no
  10795. fi
  10796. ac_prog=ld
  10797. if test "$GCC" = yes; then
  10798. # Check if gcc -print-prog-name=ld gives a path.
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10800. $as_echo_n "checking for ld used by $CC... " >&6; }
  10801. case $host in
  10802. *-*-mingw*)
  10803. # gcc leaves a trailing carriage return which upsets mingw
  10804. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10805. *)
  10806. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10807. esac
  10808. case $ac_prog in
  10809. # Accept absolute paths.
  10810. [\\/]* | ?:[\\/]*)
  10811. re_direlt='/[^/][^/]*/\.\./'
  10812. # Canonicalize the pathname of ld
  10813. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10814. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10815. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10816. done
  10817. test -z "$LD" && LD="$ac_prog"
  10818. ;;
  10819. "")
  10820. # If it fails, then pretend we aren't using GCC.
  10821. ac_prog=ld
  10822. ;;
  10823. *)
  10824. # If it is relative, then search for the first ld in PATH.
  10825. with_gnu_ld=unknown
  10826. ;;
  10827. esac
  10828. elif test "$with_gnu_ld" = yes; then
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10830. $as_echo_n "checking for GNU ld... " >&6; }
  10831. else
  10832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10833. $as_echo_n "checking for non-GNU ld... " >&6; }
  10834. fi
  10835. if ${lt_cv_path_LD+:} false; then :
  10836. $as_echo_n "(cached) " >&6
  10837. else
  10838. if test -z "$LD"; then
  10839. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10840. for ac_dir in $PATH; do
  10841. IFS="$lt_save_ifs"
  10842. test -z "$ac_dir" && ac_dir=.
  10843. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10844. lt_cv_path_LD="$ac_dir/$ac_prog"
  10845. # Check to see if the program is GNU ld. I'd rather use --version,
  10846. # but apparently some variants of GNU ld only accept -v.
  10847. # Break only if it was the GNU/non-GNU ld that we prefer.
  10848. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10849. *GNU* | *'with BFD'*)
  10850. test "$with_gnu_ld" != no && break
  10851. ;;
  10852. *)
  10853. test "$with_gnu_ld" != yes && break
  10854. ;;
  10855. esac
  10856. fi
  10857. done
  10858. IFS="$lt_save_ifs"
  10859. else
  10860. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10861. fi
  10862. fi
  10863. LD="$lt_cv_path_LD"
  10864. if test -n "$LD"; then
  10865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10866. $as_echo "$LD" >&6; }
  10867. else
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10869. $as_echo "no" >&6; }
  10870. fi
  10871. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10873. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10874. if ${lt_cv_prog_gnu_ld+:} false; then :
  10875. $as_echo_n "(cached) " >&6
  10876. else
  10877. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10878. case `$LD -v 2>&1 </dev/null` in
  10879. *GNU* | *'with BFD'*)
  10880. lt_cv_prog_gnu_ld=yes
  10881. ;;
  10882. *)
  10883. lt_cv_prog_gnu_ld=no
  10884. ;;
  10885. esac
  10886. fi
  10887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10888. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10889. with_gnu_ld=$lt_cv_prog_gnu_ld
  10890. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10891. # archiving commands below assume that GNU ld is being used.
  10892. if test "$with_gnu_ld" = yes; then
  10893. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10894. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10895. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10896. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10897. # If archive_cmds runs LD, not CC, wlarc should be empty
  10898. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10899. # investigate it a little bit more. (MM)
  10900. wlarc='${wl}'
  10901. # ancient GNU ld didn't support --whole-archive et. al.
  10902. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10903. $GREP 'no-whole-archive' > /dev/null; then
  10904. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10905. else
  10906. whole_archive_flag_spec_CXX=
  10907. fi
  10908. else
  10909. with_gnu_ld=no
  10910. wlarc=
  10911. # A generic and very simple default shared library creation
  10912. # command for GNU C++ for the case where it uses the native
  10913. # linker, instead of GNU ld. If possible, this setting should
  10914. # overridden to take advantage of the native linker features on
  10915. # the platform it is being used on.
  10916. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10917. fi
  10918. # Commands to make compiler produce verbose output that lists
  10919. # what "hidden" libraries, object files and flags are used when
  10920. # linking a shared library.
  10921. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10922. else
  10923. GXX=no
  10924. with_gnu_ld=no
  10925. wlarc=
  10926. fi
  10927. # PORTME: fill in a description of your system's C++ link characteristics
  10928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10929. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10930. ld_shlibs_CXX=yes
  10931. case $host_os in
  10932. aix3*)
  10933. # FIXME: insert proper C++ library support
  10934. ld_shlibs_CXX=no
  10935. ;;
  10936. aix[4-9]*)
  10937. if test "$host_cpu" = ia64; then
  10938. # On IA64, the linker does run time linking by default, so we don't
  10939. # have to do anything special.
  10940. aix_use_runtimelinking=no
  10941. exp_sym_flag='-Bexport'
  10942. no_entry_flag=""
  10943. else
  10944. aix_use_runtimelinking=no
  10945. # Test if we are trying to use run time linking or normal
  10946. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10947. # need to do runtime linking.
  10948. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10949. for ld_flag in $LDFLAGS; do
  10950. case $ld_flag in
  10951. *-brtl*)
  10952. aix_use_runtimelinking=yes
  10953. break
  10954. ;;
  10955. esac
  10956. done
  10957. ;;
  10958. esac
  10959. exp_sym_flag='-bexport'
  10960. no_entry_flag='-bnoentry'
  10961. fi
  10962. # When large executables or shared objects are built, AIX ld can
  10963. # have problems creating the table of contents. If linking a library
  10964. # or program results in "error TOC overflow" add -mminimal-toc to
  10965. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10966. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10967. archive_cmds_CXX=''
  10968. hardcode_direct_CXX=yes
  10969. hardcode_direct_absolute_CXX=yes
  10970. hardcode_libdir_separator_CXX=':'
  10971. link_all_deplibs_CXX=yes
  10972. file_list_spec_CXX='${wl}-f,'
  10973. if test "$GXX" = yes; then
  10974. case $host_os in aix4.[012]|aix4.[012].*)
  10975. # We only want to do this on AIX 4.2 and lower, the check
  10976. # below for broken collect2 doesn't work under 4.3+
  10977. collect2name=`${CC} -print-prog-name=collect2`
  10978. if test -f "$collect2name" &&
  10979. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10980. then
  10981. # We have reworked collect2
  10982. :
  10983. else
  10984. # We have old collect2
  10985. hardcode_direct_CXX=unsupported
  10986. # It fails to find uninstalled libraries when the uninstalled
  10987. # path is not listed in the libpath. Setting hardcode_minus_L
  10988. # to unsupported forces relinking
  10989. hardcode_minus_L_CXX=yes
  10990. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10991. hardcode_libdir_separator_CXX=
  10992. fi
  10993. esac
  10994. shared_flag='-shared'
  10995. if test "$aix_use_runtimelinking" = yes; then
  10996. shared_flag="$shared_flag "'${wl}-G'
  10997. fi
  10998. else
  10999. # not using gcc
  11000. if test "$host_cpu" = ia64; then
  11001. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11002. # chokes on -Wl,-G. The following line is correct:
  11003. shared_flag='-G'
  11004. else
  11005. if test "$aix_use_runtimelinking" = yes; then
  11006. shared_flag='${wl}-G'
  11007. else
  11008. shared_flag='${wl}-bM:SRE'
  11009. fi
  11010. fi
  11011. fi
  11012. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11013. # It seems that -bexpall does not export symbols beginning with
  11014. # underscore (_), so it is better to generate a list of symbols to
  11015. # export.
  11016. always_export_symbols_CXX=yes
  11017. if test "$aix_use_runtimelinking" = yes; then
  11018. # Warning - without using the other runtime loading flags (-brtl),
  11019. # -berok will link without error, but may produce a broken library.
  11020. allow_undefined_flag_CXX='-berok'
  11021. # Determine the default libpath from the value encoded in an empty
  11022. # executable.
  11023. if test "${lt_cv_aix_libpath+set}" = set; then
  11024. aix_libpath=$lt_cv_aix_libpath
  11025. else
  11026. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11027. $as_echo_n "(cached) " >&6
  11028. else
  11029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11030. /* end confdefs.h. */
  11031. int
  11032. main ()
  11033. {
  11034. ;
  11035. return 0;
  11036. }
  11037. _ACEOF
  11038. if ac_fn_cxx_try_link "$LINENO"; then :
  11039. lt_aix_libpath_sed='
  11040. /Import File Strings/,/^$/ {
  11041. /^0/ {
  11042. s/^0 *\([^ ]*\) *$/\1/
  11043. p
  11044. }
  11045. }'
  11046. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11047. # Check for a 64-bit object if we didn't find anything.
  11048. if test -z "$lt_cv_aix_libpath__CXX"; then
  11049. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11050. fi
  11051. fi
  11052. rm -f core conftest.err conftest.$ac_objext \
  11053. conftest$ac_exeext conftest.$ac_ext
  11054. if test -z "$lt_cv_aix_libpath__CXX"; then
  11055. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11056. fi
  11057. fi
  11058. aix_libpath=$lt_cv_aix_libpath__CXX
  11059. fi
  11060. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11061. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11062. else
  11063. if test "$host_cpu" = ia64; then
  11064. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11065. allow_undefined_flag_CXX="-z nodefs"
  11066. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  11067. else
  11068. # Determine the default libpath from the value encoded in an
  11069. # empty executable.
  11070. if test "${lt_cv_aix_libpath+set}" = set; then
  11071. aix_libpath=$lt_cv_aix_libpath
  11072. else
  11073. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11074. $as_echo_n "(cached) " >&6
  11075. else
  11076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11077. /* end confdefs.h. */
  11078. int
  11079. main ()
  11080. {
  11081. ;
  11082. return 0;
  11083. }
  11084. _ACEOF
  11085. if ac_fn_cxx_try_link "$LINENO"; then :
  11086. lt_aix_libpath_sed='
  11087. /Import File Strings/,/^$/ {
  11088. /^0/ {
  11089. s/^0 *\([^ ]*\) *$/\1/
  11090. p
  11091. }
  11092. }'
  11093. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11094. # Check for a 64-bit object if we didn't find anything.
  11095. if test -z "$lt_cv_aix_libpath__CXX"; then
  11096. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11097. fi
  11098. fi
  11099. rm -f core conftest.err conftest.$ac_objext \
  11100. conftest$ac_exeext conftest.$ac_ext
  11101. if test -z "$lt_cv_aix_libpath__CXX"; then
  11102. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11103. fi
  11104. fi
  11105. aix_libpath=$lt_cv_aix_libpath__CXX
  11106. fi
  11107. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11108. # Warning - without using the other run time loading flags,
  11109. # -berok will link without error, but may produce a broken library.
  11110. no_undefined_flag_CXX=' ${wl}-bernotok'
  11111. allow_undefined_flag_CXX=' ${wl}-berok'
  11112. if test "$with_gnu_ld" = yes; then
  11113. # We only use this code for GNU lds that support --whole-archive.
  11114. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11115. else
  11116. # Exported symbols can be pulled into shared objects from archives
  11117. whole_archive_flag_spec_CXX='$convenience'
  11118. fi
  11119. archive_cmds_need_lc_CXX=yes
  11120. # This is similar to how AIX traditionally builds its shared
  11121. # libraries.
  11122. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11123. fi
  11124. fi
  11125. ;;
  11126. beos*)
  11127. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11128. allow_undefined_flag_CXX=unsupported
  11129. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11130. # support --undefined. This deserves some investigation. FIXME
  11131. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11132. else
  11133. ld_shlibs_CXX=no
  11134. fi
  11135. ;;
  11136. chorus*)
  11137. case $cc_basename in
  11138. *)
  11139. # FIXME: insert proper C++ library support
  11140. ld_shlibs_CXX=no
  11141. ;;
  11142. esac
  11143. ;;
  11144. cygwin* | mingw* | pw32* | cegcc*)
  11145. case $GXX,$cc_basename in
  11146. ,cl* | no,cl*)
  11147. # Native MSVC
  11148. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11149. # no search path for DLLs.
  11150. hardcode_libdir_flag_spec_CXX=' '
  11151. allow_undefined_flag_CXX=unsupported
  11152. always_export_symbols_CXX=yes
  11153. file_list_spec_CXX='@'
  11154. # Tell ltmain to make .lib files, not .a files.
  11155. libext=lib
  11156. # Tell ltmain to make .dll files, not .so files.
  11157. shrext_cmds=".dll"
  11158. # FIXME: Setting linknames here is a bad hack.
  11159. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11160. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11161. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11162. else
  11163. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11164. fi~
  11165. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11166. linknames='
  11167. # The linker will not automatically build a static lib if we build a DLL.
  11168. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11169. enable_shared_with_static_runtimes_CXX=yes
  11170. # Don't use ranlib
  11171. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11172. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11173. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11174. case $lt_outputfile in
  11175. *.exe|*.EXE) ;;
  11176. *)
  11177. lt_outputfile="$lt_outputfile.exe"
  11178. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11179. ;;
  11180. esac~
  11181. func_to_tool_file "$lt_outputfile"~
  11182. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11183. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11184. $RM "$lt_outputfile.manifest";
  11185. fi'
  11186. ;;
  11187. *)
  11188. # g++
  11189. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11190. # as there is no search path for DLLs.
  11191. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11192. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11193. allow_undefined_flag_CXX=unsupported
  11194. always_export_symbols_CXX=no
  11195. enable_shared_with_static_runtimes_CXX=yes
  11196. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11197. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11198. # If the export-symbols file already is a .def file (1st line
  11199. # is EXPORTS), use it as is; otherwise, prepend...
  11200. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11201. cp $export_symbols $output_objdir/$soname.def;
  11202. else
  11203. echo EXPORTS > $output_objdir/$soname.def;
  11204. cat $export_symbols >> $output_objdir/$soname.def;
  11205. fi~
  11206. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11207. else
  11208. ld_shlibs_CXX=no
  11209. fi
  11210. ;;
  11211. esac
  11212. ;;
  11213. darwin* | rhapsody*)
  11214. archive_cmds_need_lc_CXX=no
  11215. hardcode_direct_CXX=no
  11216. hardcode_automatic_CXX=yes
  11217. hardcode_shlibpath_var_CXX=unsupported
  11218. if test "$lt_cv_ld_force_load" = "yes"; then
  11219. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11220. else
  11221. whole_archive_flag_spec_CXX=''
  11222. fi
  11223. link_all_deplibs_CXX=yes
  11224. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11225. case $cc_basename in
  11226. ifort*) _lt_dar_can_shared=yes ;;
  11227. *) _lt_dar_can_shared=$GCC ;;
  11228. esac
  11229. if test "$_lt_dar_can_shared" = "yes"; then
  11230. output_verbose_link_cmd=func_echo_all
  11231. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11232. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11233. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  11234. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  11235. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11236. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11237. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11238. fi
  11239. else
  11240. ld_shlibs_CXX=no
  11241. fi
  11242. ;;
  11243. dgux*)
  11244. case $cc_basename in
  11245. ec++*)
  11246. # FIXME: insert proper C++ library support
  11247. ld_shlibs_CXX=no
  11248. ;;
  11249. ghcx*)
  11250. # Green Hills C++ Compiler
  11251. # FIXME: insert proper C++ library support
  11252. ld_shlibs_CXX=no
  11253. ;;
  11254. *)
  11255. # FIXME: insert proper C++ library support
  11256. ld_shlibs_CXX=no
  11257. ;;
  11258. esac
  11259. ;;
  11260. freebsd2.*)
  11261. # C++ shared libraries reported to be fairly broken before
  11262. # switch to ELF
  11263. ld_shlibs_CXX=no
  11264. ;;
  11265. freebsd-elf*)
  11266. archive_cmds_need_lc_CXX=no
  11267. ;;
  11268. freebsd* | dragonfly*)
  11269. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11270. # conventions
  11271. ld_shlibs_CXX=yes
  11272. ;;
  11273. gnu*)
  11274. ;;
  11275. haiku*)
  11276. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11277. link_all_deplibs_CXX=yes
  11278. ;;
  11279. hpux9*)
  11280. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11281. hardcode_libdir_separator_CXX=:
  11282. export_dynamic_flag_spec_CXX='${wl}-E'
  11283. hardcode_direct_CXX=yes
  11284. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11285. # but as the default
  11286. # location of the library.
  11287. case $cc_basename in
  11288. CC*)
  11289. # FIXME: insert proper C++ library support
  11290. ld_shlibs_CXX=no
  11291. ;;
  11292. aCC*)
  11293. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11294. # Commands to make compiler produce verbose output that lists
  11295. # what "hidden" libraries, object files and flags are used when
  11296. # linking a shared library.
  11297. #
  11298. # There doesn't appear to be a way to prevent this compiler from
  11299. # explicitly linking system object files so we need to strip them
  11300. # from the output so that they don't get included in the library
  11301. # dependencies.
  11302. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11303. ;;
  11304. *)
  11305. if test "$GXX" = yes; then
  11306. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11307. else
  11308. # FIXME: insert proper C++ library support
  11309. ld_shlibs_CXX=no
  11310. fi
  11311. ;;
  11312. esac
  11313. ;;
  11314. hpux10*|hpux11*)
  11315. if test $with_gnu_ld = no; then
  11316. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11317. hardcode_libdir_separator_CXX=:
  11318. case $host_cpu in
  11319. hppa*64*|ia64*)
  11320. ;;
  11321. *)
  11322. export_dynamic_flag_spec_CXX='${wl}-E'
  11323. ;;
  11324. esac
  11325. fi
  11326. case $host_cpu in
  11327. hppa*64*|ia64*)
  11328. hardcode_direct_CXX=no
  11329. hardcode_shlibpath_var_CXX=no
  11330. ;;
  11331. *)
  11332. hardcode_direct_CXX=yes
  11333. hardcode_direct_absolute_CXX=yes
  11334. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11335. # but as the default
  11336. # location of the library.
  11337. ;;
  11338. esac
  11339. case $cc_basename in
  11340. CC*)
  11341. # FIXME: insert proper C++ library support
  11342. ld_shlibs_CXX=no
  11343. ;;
  11344. aCC*)
  11345. case $host_cpu in
  11346. hppa*64*)
  11347. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11348. ;;
  11349. ia64*)
  11350. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11351. ;;
  11352. *)
  11353. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11354. ;;
  11355. esac
  11356. # Commands to make compiler produce verbose output that lists
  11357. # what "hidden" libraries, object files and flags are used when
  11358. # linking a shared library.
  11359. #
  11360. # There doesn't appear to be a way to prevent this compiler from
  11361. # explicitly linking system object files so we need to strip them
  11362. # from the output so that they don't get included in the library
  11363. # dependencies.
  11364. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11365. ;;
  11366. *)
  11367. if test "$GXX" = yes; then
  11368. if test $with_gnu_ld = no; then
  11369. case $host_cpu in
  11370. hppa*64*)
  11371. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11372. ;;
  11373. ia64*)
  11374. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11375. ;;
  11376. *)
  11377. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11378. ;;
  11379. esac
  11380. fi
  11381. else
  11382. # FIXME: insert proper C++ library support
  11383. ld_shlibs_CXX=no
  11384. fi
  11385. ;;
  11386. esac
  11387. ;;
  11388. interix[3-9]*)
  11389. hardcode_direct_CXX=no
  11390. hardcode_shlibpath_var_CXX=no
  11391. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11392. export_dynamic_flag_spec_CXX='${wl}-E'
  11393. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11394. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11395. # default) and relocated if they conflict, which is a slow very memory
  11396. # consuming and fragmenting process. To avoid this, we pick a random,
  11397. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11398. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11399. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11400. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11401. ;;
  11402. irix5* | irix6*)
  11403. case $cc_basename in
  11404. CC*)
  11405. # SGI C++
  11406. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11407. # Archives containing C++ object files must be created using
  11408. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11409. # necessary to make sure instantiated templates are included
  11410. # in the archive.
  11411. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11412. ;;
  11413. *)
  11414. if test "$GXX" = yes; then
  11415. if test "$with_gnu_ld" = no; then
  11416. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11417. else
  11418. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11419. fi
  11420. fi
  11421. link_all_deplibs_CXX=yes
  11422. ;;
  11423. esac
  11424. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11425. hardcode_libdir_separator_CXX=:
  11426. inherit_rpath_CXX=yes
  11427. ;;
  11428. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11429. case $cc_basename in
  11430. KCC*)
  11431. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11432. # KCC will only create a shared library if the output file
  11433. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11434. # to its proper name (with version) after linking.
  11435. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11436. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11437. # Commands to make compiler produce verbose output that lists
  11438. # what "hidden" libraries, object files and flags are used when
  11439. # linking a shared library.
  11440. #
  11441. # There doesn't appear to be a way to prevent this compiler from
  11442. # explicitly linking system object files so we need to strip them
  11443. # from the output so that they don't get included in the library
  11444. # dependencies.
  11445. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11446. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11447. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11448. # Archives containing C++ object files must be created using
  11449. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11450. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11451. ;;
  11452. icpc* | ecpc* )
  11453. # Intel C++
  11454. with_gnu_ld=yes
  11455. # version 8.0 and above of icpc choke on multiply defined symbols
  11456. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11457. # earlier do not add the objects themselves.
  11458. case `$CC -V 2>&1` in
  11459. *"Version 7."*)
  11460. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11461. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11462. ;;
  11463. *) # Version 8.0 or newer
  11464. tmp_idyn=
  11465. case $host_cpu in
  11466. ia64*) tmp_idyn=' -i_dynamic';;
  11467. esac
  11468. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11469. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11470. ;;
  11471. esac
  11472. archive_cmds_need_lc_CXX=no
  11473. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11474. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11475. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11476. ;;
  11477. pgCC* | pgcpp*)
  11478. # Portland Group C++ compiler
  11479. case `$CC -V` in
  11480. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11481. prelink_cmds_CXX='tpldir=Template.dir~
  11482. rm -rf $tpldir~
  11483. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11484. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11485. old_archive_cmds_CXX='tpldir=Template.dir~
  11486. rm -rf $tpldir~
  11487. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11488. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11489. $RANLIB $oldlib'
  11490. archive_cmds_CXX='tpldir=Template.dir~
  11491. rm -rf $tpldir~
  11492. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11493. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11494. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11495. rm -rf $tpldir~
  11496. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11497. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11498. ;;
  11499. *) # Version 6 and above use weak symbols
  11500. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11501. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11502. ;;
  11503. esac
  11504. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11505. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11506. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11507. ;;
  11508. cxx*)
  11509. # Compaq C++
  11510. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11511. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11512. runpath_var=LD_RUN_PATH
  11513. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11514. hardcode_libdir_separator_CXX=:
  11515. # Commands to make compiler produce verbose output that lists
  11516. # what "hidden" libraries, object files and flags are used when
  11517. # linking a shared library.
  11518. #
  11519. # There doesn't appear to be a way to prevent this compiler from
  11520. # explicitly linking system object files so we need to strip them
  11521. # from the output so that they don't get included in the library
  11522. # dependencies.
  11523. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11524. ;;
  11525. xl* | mpixl* | bgxl*)
  11526. # IBM XL 8.0 on PPC, with GNU ld
  11527. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11528. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11529. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11530. if test "x$supports_anon_versioning" = xyes; then
  11531. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11532. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11533. echo "local: *; };" >> $output_objdir/$libname.ver~
  11534. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11535. fi
  11536. ;;
  11537. *)
  11538. case `$CC -V 2>&1 | sed 5q` in
  11539. *Sun\ C*)
  11540. # Sun C++ 5.9
  11541. no_undefined_flag_CXX=' -zdefs'
  11542. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11543. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11544. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11545. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11546. compiler_needs_object_CXX=yes
  11547. # Not sure whether something based on
  11548. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11549. # would be better.
  11550. output_verbose_link_cmd='func_echo_all'
  11551. # Archives containing C++ object files must be created using
  11552. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11553. # necessary to make sure instantiated templates are included
  11554. # in the archive.
  11555. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11556. ;;
  11557. esac
  11558. ;;
  11559. esac
  11560. ;;
  11561. lynxos*)
  11562. # FIXME: insert proper C++ library support
  11563. ld_shlibs_CXX=no
  11564. ;;
  11565. m88k*)
  11566. # FIXME: insert proper C++ library support
  11567. ld_shlibs_CXX=no
  11568. ;;
  11569. mvs*)
  11570. case $cc_basename in
  11571. cxx*)
  11572. # FIXME: insert proper C++ library support
  11573. ld_shlibs_CXX=no
  11574. ;;
  11575. *)
  11576. # FIXME: insert proper C++ library support
  11577. ld_shlibs_CXX=no
  11578. ;;
  11579. esac
  11580. ;;
  11581. netbsd*)
  11582. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11583. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11584. wlarc=
  11585. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11586. hardcode_direct_CXX=yes
  11587. hardcode_shlibpath_var_CXX=no
  11588. fi
  11589. # Workaround some broken pre-1.5 toolchains
  11590. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11591. ;;
  11592. *nto* | *qnx*)
  11593. ld_shlibs_CXX=yes
  11594. ;;
  11595. openbsd2*)
  11596. # C++ shared libraries are fairly broken
  11597. ld_shlibs_CXX=no
  11598. ;;
  11599. openbsd*)
  11600. if test -f /usr/libexec/ld.so; then
  11601. hardcode_direct_CXX=yes
  11602. hardcode_shlibpath_var_CXX=no
  11603. hardcode_direct_absolute_CXX=yes
  11604. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11605. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11606. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11607. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11608. export_dynamic_flag_spec_CXX='${wl}-E'
  11609. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11610. fi
  11611. output_verbose_link_cmd=func_echo_all
  11612. else
  11613. ld_shlibs_CXX=no
  11614. fi
  11615. ;;
  11616. osf3* | osf4* | osf5*)
  11617. case $cc_basename in
  11618. KCC*)
  11619. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11620. # KCC will only create a shared library if the output file
  11621. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11622. # to its proper name (with version) after linking.
  11623. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11624. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11625. hardcode_libdir_separator_CXX=:
  11626. # Archives containing C++ object files must be created using
  11627. # the KAI C++ compiler.
  11628. case $host in
  11629. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11630. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11631. esac
  11632. ;;
  11633. RCC*)
  11634. # Rational C++ 2.4.1
  11635. # FIXME: insert proper C++ library support
  11636. ld_shlibs_CXX=no
  11637. ;;
  11638. cxx*)
  11639. case $host in
  11640. osf3*)
  11641. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11642. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11643. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11644. ;;
  11645. *)
  11646. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11647. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11648. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11649. echo "-hidden">> $lib.exp~
  11650. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11651. $RM $lib.exp'
  11652. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11653. ;;
  11654. esac
  11655. hardcode_libdir_separator_CXX=:
  11656. # Commands to make compiler produce verbose output that lists
  11657. # what "hidden" libraries, object files and flags are used when
  11658. # linking a shared library.
  11659. #
  11660. # There doesn't appear to be a way to prevent this compiler from
  11661. # explicitly linking system object files so we need to strip them
  11662. # from the output so that they don't get included in the library
  11663. # dependencies.
  11664. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11665. ;;
  11666. *)
  11667. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11668. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11669. case $host in
  11670. osf3*)
  11671. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11672. ;;
  11673. *)
  11674. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11675. ;;
  11676. esac
  11677. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11678. hardcode_libdir_separator_CXX=:
  11679. # Commands to make compiler produce verbose output that lists
  11680. # what "hidden" libraries, object files and flags are used when
  11681. # linking a shared library.
  11682. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11683. else
  11684. # FIXME: insert proper C++ library support
  11685. ld_shlibs_CXX=no
  11686. fi
  11687. ;;
  11688. esac
  11689. ;;
  11690. psos*)
  11691. # FIXME: insert proper C++ library support
  11692. ld_shlibs_CXX=no
  11693. ;;
  11694. sunos4*)
  11695. case $cc_basename in
  11696. CC*)
  11697. # Sun C++ 4.x
  11698. # FIXME: insert proper C++ library support
  11699. ld_shlibs_CXX=no
  11700. ;;
  11701. lcc*)
  11702. # Lucid
  11703. # FIXME: insert proper C++ library support
  11704. ld_shlibs_CXX=no
  11705. ;;
  11706. *)
  11707. # FIXME: insert proper C++ library support
  11708. ld_shlibs_CXX=no
  11709. ;;
  11710. esac
  11711. ;;
  11712. solaris*)
  11713. case $cc_basename in
  11714. CC* | sunCC*)
  11715. # Sun C++ 4.2, 5.x and Centerline C++
  11716. archive_cmds_need_lc_CXX=yes
  11717. no_undefined_flag_CXX=' -zdefs'
  11718. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11719. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11720. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11721. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11722. hardcode_shlibpath_var_CXX=no
  11723. case $host_os in
  11724. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11725. *)
  11726. # The compiler driver will combine and reorder linker options,
  11727. # but understands `-z linker_flag'.
  11728. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11729. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11730. ;;
  11731. esac
  11732. link_all_deplibs_CXX=yes
  11733. output_verbose_link_cmd='func_echo_all'
  11734. # Archives containing C++ object files must be created using
  11735. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11736. # necessary to make sure instantiated templates are included
  11737. # in the archive.
  11738. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11739. ;;
  11740. gcx*)
  11741. # Green Hills C++ Compiler
  11742. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11743. # The C++ compiler must be used to create the archive.
  11744. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11745. ;;
  11746. *)
  11747. # GNU C++ compiler with Solaris linker
  11748. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11749. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11750. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11751. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11752. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11753. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11754. # Commands to make compiler produce verbose output that lists
  11755. # what "hidden" libraries, object files and flags are used when
  11756. # linking a shared library.
  11757. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11758. else
  11759. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11760. # platform.
  11761. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11762. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11763. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11764. # Commands to make compiler produce verbose output that lists
  11765. # what "hidden" libraries, object files and flags are used when
  11766. # linking a shared library.
  11767. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11768. fi
  11769. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11770. case $host_os in
  11771. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11772. *)
  11773. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11774. ;;
  11775. esac
  11776. fi
  11777. ;;
  11778. esac
  11779. ;;
  11780. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11781. no_undefined_flag_CXX='${wl}-z,text'
  11782. archive_cmds_need_lc_CXX=no
  11783. hardcode_shlibpath_var_CXX=no
  11784. runpath_var='LD_RUN_PATH'
  11785. case $cc_basename in
  11786. CC*)
  11787. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11788. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11789. ;;
  11790. *)
  11791. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11792. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11793. ;;
  11794. esac
  11795. ;;
  11796. sysv5* | sco3.2v5* | sco5v6*)
  11797. # Note: We can NOT use -z defs as we might desire, because we do not
  11798. # link with -lc, and that would cause any symbols used from libc to
  11799. # always be unresolved, which means just about no library would
  11800. # ever link correctly. If we're not using GNU ld we use -z text
  11801. # though, which does catch some bad symbols but isn't as heavy-handed
  11802. # as -z defs.
  11803. no_undefined_flag_CXX='${wl}-z,text'
  11804. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11805. archive_cmds_need_lc_CXX=no
  11806. hardcode_shlibpath_var_CXX=no
  11807. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11808. hardcode_libdir_separator_CXX=':'
  11809. link_all_deplibs_CXX=yes
  11810. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11811. runpath_var='LD_RUN_PATH'
  11812. case $cc_basename in
  11813. CC*)
  11814. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11815. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11816. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11817. '"$old_archive_cmds_CXX"
  11818. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11819. '"$reload_cmds_CXX"
  11820. ;;
  11821. *)
  11822. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11823. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11824. ;;
  11825. esac
  11826. ;;
  11827. tandem*)
  11828. case $cc_basename in
  11829. NCC*)
  11830. # NonStop-UX NCC 3.20
  11831. # FIXME: insert proper C++ library support
  11832. ld_shlibs_CXX=no
  11833. ;;
  11834. *)
  11835. # FIXME: insert proper C++ library support
  11836. ld_shlibs_CXX=no
  11837. ;;
  11838. esac
  11839. ;;
  11840. vxworks*)
  11841. # FIXME: insert proper C++ library support
  11842. ld_shlibs_CXX=no
  11843. ;;
  11844. *)
  11845. # FIXME: insert proper C++ library support
  11846. ld_shlibs_CXX=no
  11847. ;;
  11848. esac
  11849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11850. $as_echo "$ld_shlibs_CXX" >&6; }
  11851. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11852. GCC_CXX="$GXX"
  11853. LD_CXX="$LD"
  11854. ## CAVEAT EMPTOR:
  11855. ## There is no encapsulation within the following macros, do not change
  11856. ## the running order or otherwise move them around unless you know exactly
  11857. ## what you are doing...
  11858. # Dependencies to place before and after the object being linked:
  11859. predep_objects_CXX=
  11860. postdep_objects_CXX=
  11861. predeps_CXX=
  11862. postdeps_CXX=
  11863. compiler_lib_search_path_CXX=
  11864. cat > conftest.$ac_ext <<_LT_EOF
  11865. class Foo
  11866. {
  11867. public:
  11868. Foo (void) { a = 0; }
  11869. private:
  11870. int a;
  11871. };
  11872. _LT_EOF
  11873. _lt_libdeps_save_CFLAGS=$CFLAGS
  11874. case "$CC $CFLAGS " in #(
  11875. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11876. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11877. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11878. esac
  11879. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11880. (eval $ac_compile) 2>&5
  11881. ac_status=$?
  11882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11883. test $ac_status = 0; }; then
  11884. # Parse the compiler output and extract the necessary
  11885. # objects, libraries and library flags.
  11886. # Sentinel used to keep track of whether or not we are before
  11887. # the conftest object file.
  11888. pre_test_object_deps_done=no
  11889. for p in `eval "$output_verbose_link_cmd"`; do
  11890. case ${prev}${p} in
  11891. -L* | -R* | -l*)
  11892. # Some compilers place space between "-{L,R}" and the path.
  11893. # Remove the space.
  11894. if test $p = "-L" ||
  11895. test $p = "-R"; then
  11896. prev=$p
  11897. continue
  11898. fi
  11899. # Expand the sysroot to ease extracting the directories later.
  11900. if test -z "$prev"; then
  11901. case $p in
  11902. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11903. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11904. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11905. esac
  11906. fi
  11907. case $p in
  11908. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11909. esac
  11910. if test "$pre_test_object_deps_done" = no; then
  11911. case ${prev} in
  11912. -L | -R)
  11913. # Internal compiler library paths should come after those
  11914. # provided the user. The postdeps already come after the
  11915. # user supplied libs so there is no need to process them.
  11916. if test -z "$compiler_lib_search_path_CXX"; then
  11917. compiler_lib_search_path_CXX="${prev}${p}"
  11918. else
  11919. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11920. fi
  11921. ;;
  11922. # The "-l" case would never come before the object being
  11923. # linked, so don't bother handling this case.
  11924. esac
  11925. else
  11926. if test -z "$postdeps_CXX"; then
  11927. postdeps_CXX="${prev}${p}"
  11928. else
  11929. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11930. fi
  11931. fi
  11932. prev=
  11933. ;;
  11934. *.lto.$objext) ;; # Ignore GCC LTO objects
  11935. *.$objext)
  11936. # This assumes that the test object file only shows up
  11937. # once in the compiler output.
  11938. if test "$p" = "conftest.$objext"; then
  11939. pre_test_object_deps_done=yes
  11940. continue
  11941. fi
  11942. if test "$pre_test_object_deps_done" = no; then
  11943. if test -z "$predep_objects_CXX"; then
  11944. predep_objects_CXX="$p"
  11945. else
  11946. predep_objects_CXX="$predep_objects_CXX $p"
  11947. fi
  11948. else
  11949. if test -z "$postdep_objects_CXX"; then
  11950. postdep_objects_CXX="$p"
  11951. else
  11952. postdep_objects_CXX="$postdep_objects_CXX $p"
  11953. fi
  11954. fi
  11955. ;;
  11956. *) ;; # Ignore the rest.
  11957. esac
  11958. done
  11959. # Clean up.
  11960. rm -f a.out a.exe
  11961. else
  11962. echo "libtool.m4: error: problem compiling CXX test program"
  11963. fi
  11964. $RM -f confest.$objext
  11965. CFLAGS=$_lt_libdeps_save_CFLAGS
  11966. # PORTME: override above test on systems where it is broken
  11967. case $host_os in
  11968. interix[3-9]*)
  11969. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11970. # hack all around it, let's just trust "g++" to DTRT.
  11971. predep_objects_CXX=
  11972. postdep_objects_CXX=
  11973. postdeps_CXX=
  11974. ;;
  11975. linux*)
  11976. case `$CC -V 2>&1 | sed 5q` in
  11977. *Sun\ C*)
  11978. # Sun C++ 5.9
  11979. # The more standards-conforming stlport4 library is
  11980. # incompatible with the Cstd library. Avoid specifying
  11981. # it if it's in CXXFLAGS. Ignore libCrun as
  11982. # -library=stlport4 depends on it.
  11983. case " $CXX $CXXFLAGS " in
  11984. *" -library=stlport4 "*)
  11985. solaris_use_stlport4=yes
  11986. ;;
  11987. esac
  11988. if test "$solaris_use_stlport4" != yes; then
  11989. postdeps_CXX='-library=Cstd -library=Crun'
  11990. fi
  11991. ;;
  11992. esac
  11993. ;;
  11994. solaris*)
  11995. case $cc_basename in
  11996. CC* | sunCC*)
  11997. # The more standards-conforming stlport4 library is
  11998. # incompatible with the Cstd library. Avoid specifying
  11999. # it if it's in CXXFLAGS. Ignore libCrun as
  12000. # -library=stlport4 depends on it.
  12001. case " $CXX $CXXFLAGS " in
  12002. *" -library=stlport4 "*)
  12003. solaris_use_stlport4=yes
  12004. ;;
  12005. esac
  12006. # Adding this requires a known-good setup of shared libraries for
  12007. # Sun compiler versions before 5.6, else PIC objects from an old
  12008. # archive will be linked into the output, leading to subtle bugs.
  12009. if test "$solaris_use_stlport4" != yes; then
  12010. postdeps_CXX='-library=Cstd -library=Crun'
  12011. fi
  12012. ;;
  12013. esac
  12014. ;;
  12015. esac
  12016. case " $postdeps_CXX " in
  12017. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12018. esac
  12019. compiler_lib_search_dirs_CXX=
  12020. if test -n "${compiler_lib_search_path_CXX}"; then
  12021. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12022. fi
  12023. lt_prog_compiler_wl_CXX=
  12024. lt_prog_compiler_pic_CXX=
  12025. lt_prog_compiler_static_CXX=
  12026. # C++ specific cases for pic, static, wl, etc.
  12027. if test "$GXX" = yes; then
  12028. lt_prog_compiler_wl_CXX='-Wl,'
  12029. lt_prog_compiler_static_CXX='-static'
  12030. case $host_os in
  12031. aix*)
  12032. # All AIX code is PIC.
  12033. if test "$host_cpu" = ia64; then
  12034. # AIX 5 now supports IA64 processor
  12035. lt_prog_compiler_static_CXX='-Bstatic'
  12036. fi
  12037. ;;
  12038. amigaos*)
  12039. case $host_cpu in
  12040. powerpc)
  12041. # see comment about AmigaOS4 .so support
  12042. lt_prog_compiler_pic_CXX='-fPIC'
  12043. ;;
  12044. m68k)
  12045. # FIXME: we need at least 68020 code to build shared libraries, but
  12046. # adding the `-m68020' flag to GCC prevents building anything better,
  12047. # like `-m68040'.
  12048. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12049. ;;
  12050. esac
  12051. ;;
  12052. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12053. # PIC is the default for these OSes.
  12054. ;;
  12055. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12056. # This hack is so that the source file can tell whether it is being
  12057. # built for inclusion in a dll (and should export symbols for example).
  12058. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12059. # (--disable-auto-import) libraries
  12060. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12061. ;;
  12062. darwin* | rhapsody*)
  12063. # PIC is the default on this platform
  12064. # Common symbols not allowed in MH_DYLIB files
  12065. lt_prog_compiler_pic_CXX='-fno-common'
  12066. ;;
  12067. *djgpp*)
  12068. # DJGPP does not support shared libraries at all
  12069. lt_prog_compiler_pic_CXX=
  12070. ;;
  12071. haiku*)
  12072. # PIC is the default for Haiku.
  12073. # The "-static" flag exists, but is broken.
  12074. lt_prog_compiler_static_CXX=
  12075. ;;
  12076. interix[3-9]*)
  12077. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12078. # Instead, we relocate shared libraries at runtime.
  12079. ;;
  12080. sysv4*MP*)
  12081. if test -d /usr/nec; then
  12082. lt_prog_compiler_pic_CXX=-Kconform_pic
  12083. fi
  12084. ;;
  12085. hpux*)
  12086. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12087. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12088. # sets the default TLS model and affects inlining.
  12089. case $host_cpu in
  12090. hppa*64*)
  12091. ;;
  12092. *)
  12093. lt_prog_compiler_pic_CXX='-fPIC'
  12094. ;;
  12095. esac
  12096. ;;
  12097. *qnx* | *nto*)
  12098. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12099. # it will coredump.
  12100. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12101. ;;
  12102. *)
  12103. lt_prog_compiler_pic_CXX='-fPIC'
  12104. ;;
  12105. esac
  12106. else
  12107. case $host_os in
  12108. aix[4-9]*)
  12109. # All AIX code is PIC.
  12110. if test "$host_cpu" = ia64; then
  12111. # AIX 5 now supports IA64 processor
  12112. lt_prog_compiler_static_CXX='-Bstatic'
  12113. else
  12114. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12115. fi
  12116. ;;
  12117. chorus*)
  12118. case $cc_basename in
  12119. cxch68*)
  12120. # Green Hills C++ Compiler
  12121. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12122. ;;
  12123. esac
  12124. ;;
  12125. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12126. # This hack is so that the source file can tell whether it is being
  12127. # built for inclusion in a dll (and should export symbols for example).
  12128. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12129. ;;
  12130. dgux*)
  12131. case $cc_basename in
  12132. ec++*)
  12133. lt_prog_compiler_pic_CXX='-KPIC'
  12134. ;;
  12135. ghcx*)
  12136. # Green Hills C++ Compiler
  12137. lt_prog_compiler_pic_CXX='-pic'
  12138. ;;
  12139. *)
  12140. ;;
  12141. esac
  12142. ;;
  12143. freebsd* | dragonfly*)
  12144. # FreeBSD uses GNU C++
  12145. ;;
  12146. hpux9* | hpux10* | hpux11*)
  12147. case $cc_basename in
  12148. CC*)
  12149. lt_prog_compiler_wl_CXX='-Wl,'
  12150. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12151. if test "$host_cpu" != ia64; then
  12152. lt_prog_compiler_pic_CXX='+Z'
  12153. fi
  12154. ;;
  12155. aCC*)
  12156. lt_prog_compiler_wl_CXX='-Wl,'
  12157. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12158. case $host_cpu in
  12159. hppa*64*|ia64*)
  12160. # +Z the default
  12161. ;;
  12162. *)
  12163. lt_prog_compiler_pic_CXX='+Z'
  12164. ;;
  12165. esac
  12166. ;;
  12167. *)
  12168. ;;
  12169. esac
  12170. ;;
  12171. interix*)
  12172. # This is c89, which is MS Visual C++ (no shared libs)
  12173. # Anyone wants to do a port?
  12174. ;;
  12175. irix5* | irix6* | nonstopux*)
  12176. case $cc_basename in
  12177. CC*)
  12178. lt_prog_compiler_wl_CXX='-Wl,'
  12179. lt_prog_compiler_static_CXX='-non_shared'
  12180. # CC pic flag -KPIC is the default.
  12181. ;;
  12182. *)
  12183. ;;
  12184. esac
  12185. ;;
  12186. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12187. case $cc_basename in
  12188. KCC*)
  12189. # KAI C++ Compiler
  12190. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12191. lt_prog_compiler_pic_CXX='-fPIC'
  12192. ;;
  12193. ecpc* )
  12194. # old Intel C++ for x86_64 which still supported -KPIC.
  12195. lt_prog_compiler_wl_CXX='-Wl,'
  12196. lt_prog_compiler_pic_CXX='-KPIC'
  12197. lt_prog_compiler_static_CXX='-static'
  12198. ;;
  12199. icpc* )
  12200. # Intel C++, used to be incompatible with GCC.
  12201. # ICC 10 doesn't accept -KPIC any more.
  12202. lt_prog_compiler_wl_CXX='-Wl,'
  12203. lt_prog_compiler_pic_CXX='-fPIC'
  12204. lt_prog_compiler_static_CXX='-static'
  12205. ;;
  12206. pgCC* | pgcpp*)
  12207. # Portland Group C++ compiler
  12208. lt_prog_compiler_wl_CXX='-Wl,'
  12209. lt_prog_compiler_pic_CXX='-fpic'
  12210. lt_prog_compiler_static_CXX='-Bstatic'
  12211. ;;
  12212. cxx*)
  12213. # Compaq C++
  12214. # Make sure the PIC flag is empty. It appears that all Alpha
  12215. # Linux and Compaq Tru64 Unix objects are PIC.
  12216. lt_prog_compiler_pic_CXX=
  12217. lt_prog_compiler_static_CXX='-non_shared'
  12218. ;;
  12219. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12220. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12221. lt_prog_compiler_wl_CXX='-Wl,'
  12222. lt_prog_compiler_pic_CXX='-qpic'
  12223. lt_prog_compiler_static_CXX='-qstaticlink'
  12224. ;;
  12225. *)
  12226. case `$CC -V 2>&1 | sed 5q` in
  12227. *Sun\ C*)
  12228. # Sun C++ 5.9
  12229. lt_prog_compiler_pic_CXX='-KPIC'
  12230. lt_prog_compiler_static_CXX='-Bstatic'
  12231. lt_prog_compiler_wl_CXX='-Qoption ld '
  12232. ;;
  12233. esac
  12234. ;;
  12235. esac
  12236. ;;
  12237. lynxos*)
  12238. ;;
  12239. m88k*)
  12240. ;;
  12241. mvs*)
  12242. case $cc_basename in
  12243. cxx*)
  12244. lt_prog_compiler_pic_CXX='-W c,exportall'
  12245. ;;
  12246. *)
  12247. ;;
  12248. esac
  12249. ;;
  12250. netbsd*)
  12251. ;;
  12252. *qnx* | *nto*)
  12253. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12254. # it will coredump.
  12255. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12256. ;;
  12257. osf3* | osf4* | osf5*)
  12258. case $cc_basename in
  12259. KCC*)
  12260. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12261. ;;
  12262. RCC*)
  12263. # Rational C++ 2.4.1
  12264. lt_prog_compiler_pic_CXX='-pic'
  12265. ;;
  12266. cxx*)
  12267. # Digital/Compaq C++
  12268. lt_prog_compiler_wl_CXX='-Wl,'
  12269. # Make sure the PIC flag is empty. It appears that all Alpha
  12270. # Linux and Compaq Tru64 Unix objects are PIC.
  12271. lt_prog_compiler_pic_CXX=
  12272. lt_prog_compiler_static_CXX='-non_shared'
  12273. ;;
  12274. *)
  12275. ;;
  12276. esac
  12277. ;;
  12278. psos*)
  12279. ;;
  12280. solaris*)
  12281. case $cc_basename in
  12282. CC* | sunCC*)
  12283. # Sun C++ 4.2, 5.x and Centerline C++
  12284. lt_prog_compiler_pic_CXX='-KPIC'
  12285. lt_prog_compiler_static_CXX='-Bstatic'
  12286. lt_prog_compiler_wl_CXX='-Qoption ld '
  12287. ;;
  12288. gcx*)
  12289. # Green Hills C++ Compiler
  12290. lt_prog_compiler_pic_CXX='-PIC'
  12291. ;;
  12292. *)
  12293. ;;
  12294. esac
  12295. ;;
  12296. sunos4*)
  12297. case $cc_basename in
  12298. CC*)
  12299. # Sun C++ 4.x
  12300. lt_prog_compiler_pic_CXX='-pic'
  12301. lt_prog_compiler_static_CXX='-Bstatic'
  12302. ;;
  12303. lcc*)
  12304. # Lucid
  12305. lt_prog_compiler_pic_CXX='-pic'
  12306. ;;
  12307. *)
  12308. ;;
  12309. esac
  12310. ;;
  12311. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12312. case $cc_basename in
  12313. CC*)
  12314. lt_prog_compiler_wl_CXX='-Wl,'
  12315. lt_prog_compiler_pic_CXX='-KPIC'
  12316. lt_prog_compiler_static_CXX='-Bstatic'
  12317. ;;
  12318. esac
  12319. ;;
  12320. tandem*)
  12321. case $cc_basename in
  12322. NCC*)
  12323. # NonStop-UX NCC 3.20
  12324. lt_prog_compiler_pic_CXX='-KPIC'
  12325. ;;
  12326. *)
  12327. ;;
  12328. esac
  12329. ;;
  12330. vxworks*)
  12331. ;;
  12332. *)
  12333. lt_prog_compiler_can_build_shared_CXX=no
  12334. ;;
  12335. esac
  12336. fi
  12337. case $host_os in
  12338. # For platforms which do not support PIC, -DPIC is meaningless:
  12339. *djgpp*)
  12340. lt_prog_compiler_pic_CXX=
  12341. ;;
  12342. *)
  12343. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12344. ;;
  12345. esac
  12346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12347. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12348. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12349. $as_echo_n "(cached) " >&6
  12350. else
  12351. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12352. fi
  12353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12354. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12355. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12356. #
  12357. # Check to make sure the PIC flag actually works.
  12358. #
  12359. if test -n "$lt_prog_compiler_pic_CXX"; then
  12360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12361. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12362. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12363. $as_echo_n "(cached) " >&6
  12364. else
  12365. lt_cv_prog_compiler_pic_works_CXX=no
  12366. ac_outfile=conftest.$ac_objext
  12367. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12368. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12369. # Insert the option either (1) after the last *FLAGS variable, or
  12370. # (2) before a word containing "conftest.", or (3) at the end.
  12371. # Note that $ac_compile itself does not contain backslashes and begins
  12372. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12373. # The option is referenced via a variable to avoid confusing sed.
  12374. lt_compile=`echo "$ac_compile" | $SED \
  12375. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12376. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12377. -e 's:$: $lt_compiler_flag:'`
  12378. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12379. (eval "$lt_compile" 2>conftest.err)
  12380. ac_status=$?
  12381. cat conftest.err >&5
  12382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12383. if (exit $ac_status) && test -s "$ac_outfile"; then
  12384. # The compiler can only warn and ignore the option if not recognized
  12385. # So say no if there are warnings other than the usual output.
  12386. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12387. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12388. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12389. lt_cv_prog_compiler_pic_works_CXX=yes
  12390. fi
  12391. fi
  12392. $RM conftest*
  12393. fi
  12394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12395. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12396. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12397. case $lt_prog_compiler_pic_CXX in
  12398. "" | " "*) ;;
  12399. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12400. esac
  12401. else
  12402. lt_prog_compiler_pic_CXX=
  12403. lt_prog_compiler_can_build_shared_CXX=no
  12404. fi
  12405. fi
  12406. #
  12407. # Check to make sure the static flag actually works.
  12408. #
  12409. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12411. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12412. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12413. $as_echo_n "(cached) " >&6
  12414. else
  12415. lt_cv_prog_compiler_static_works_CXX=no
  12416. save_LDFLAGS="$LDFLAGS"
  12417. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12418. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12419. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12420. # The linker can only warn and ignore the option if not recognized
  12421. # So say no if there are warnings
  12422. if test -s conftest.err; then
  12423. # Append any errors to the config.log.
  12424. cat conftest.err 1>&5
  12425. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12426. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12427. if diff conftest.exp conftest.er2 >/dev/null; then
  12428. lt_cv_prog_compiler_static_works_CXX=yes
  12429. fi
  12430. else
  12431. lt_cv_prog_compiler_static_works_CXX=yes
  12432. fi
  12433. fi
  12434. $RM -r conftest*
  12435. LDFLAGS="$save_LDFLAGS"
  12436. fi
  12437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12438. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12439. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12440. :
  12441. else
  12442. lt_prog_compiler_static_CXX=
  12443. fi
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12445. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12446. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12447. $as_echo_n "(cached) " >&6
  12448. else
  12449. lt_cv_prog_compiler_c_o_CXX=no
  12450. $RM -r conftest 2>/dev/null
  12451. mkdir conftest
  12452. cd conftest
  12453. mkdir out
  12454. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12455. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12456. # Insert the option either (1) after the last *FLAGS variable, or
  12457. # (2) before a word containing "conftest.", or (3) at the end.
  12458. # Note that $ac_compile itself does not contain backslashes and begins
  12459. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12460. lt_compile=`echo "$ac_compile" | $SED \
  12461. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12462. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12463. -e 's:$: $lt_compiler_flag:'`
  12464. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12465. (eval "$lt_compile" 2>out/conftest.err)
  12466. ac_status=$?
  12467. cat out/conftest.err >&5
  12468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12469. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12470. then
  12471. # The compiler can only warn and ignore the option if not recognized
  12472. # So say no if there are warnings
  12473. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12474. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12475. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12476. lt_cv_prog_compiler_c_o_CXX=yes
  12477. fi
  12478. fi
  12479. chmod u+w . 2>&5
  12480. $RM conftest*
  12481. # SGI C++ compiler will create directory out/ii_files/ for
  12482. # template instantiation
  12483. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12484. $RM out/* && rmdir out
  12485. cd ..
  12486. $RM -r conftest
  12487. $RM conftest*
  12488. fi
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12490. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12492. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12493. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12494. $as_echo_n "(cached) " >&6
  12495. else
  12496. lt_cv_prog_compiler_c_o_CXX=no
  12497. $RM -r conftest 2>/dev/null
  12498. mkdir conftest
  12499. cd conftest
  12500. mkdir out
  12501. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12502. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12503. # Insert the option either (1) after the last *FLAGS variable, or
  12504. # (2) before a word containing "conftest.", or (3) at the end.
  12505. # Note that $ac_compile itself does not contain backslashes and begins
  12506. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12507. lt_compile=`echo "$ac_compile" | $SED \
  12508. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12509. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12510. -e 's:$: $lt_compiler_flag:'`
  12511. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12512. (eval "$lt_compile" 2>out/conftest.err)
  12513. ac_status=$?
  12514. cat out/conftest.err >&5
  12515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12516. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12517. then
  12518. # The compiler can only warn and ignore the option if not recognized
  12519. # So say no if there are warnings
  12520. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12521. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12522. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12523. lt_cv_prog_compiler_c_o_CXX=yes
  12524. fi
  12525. fi
  12526. chmod u+w . 2>&5
  12527. $RM conftest*
  12528. # SGI C++ compiler will create directory out/ii_files/ for
  12529. # template instantiation
  12530. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12531. $RM out/* && rmdir out
  12532. cd ..
  12533. $RM -r conftest
  12534. $RM conftest*
  12535. fi
  12536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12537. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12538. hard_links="nottested"
  12539. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12540. # do not overwrite the value of need_locks provided by the user
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12542. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12543. hard_links=yes
  12544. $RM conftest*
  12545. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12546. touch conftest.a
  12547. ln conftest.a conftest.b 2>&5 || hard_links=no
  12548. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12550. $as_echo "$hard_links" >&6; }
  12551. if test "$hard_links" = no; then
  12552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12553. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12554. need_locks=warn
  12555. fi
  12556. else
  12557. need_locks=no
  12558. fi
  12559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12560. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12561. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12562. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12563. case $host_os in
  12564. aix[4-9]*)
  12565. # If we're using GNU nm, then we don't want the "-C" option.
  12566. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12567. # Also, AIX nm treats weak defined symbols like other global defined
  12568. # symbols, whereas GNU nm marks them as "W".
  12569. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12570. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12571. else
  12572. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12573. fi
  12574. ;;
  12575. pw32*)
  12576. export_symbols_cmds_CXX="$ltdll_cmds"
  12577. ;;
  12578. cygwin* | mingw* | cegcc*)
  12579. case $cc_basename in
  12580. cl*)
  12581. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12582. ;;
  12583. *)
  12584. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12585. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12586. ;;
  12587. esac
  12588. ;;
  12589. *)
  12590. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12591. ;;
  12592. esac
  12593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12594. $as_echo "$ld_shlibs_CXX" >&6; }
  12595. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12596. with_gnu_ld_CXX=$with_gnu_ld
  12597. #
  12598. # Do we need to explicitly link libc?
  12599. #
  12600. case "x$archive_cmds_need_lc_CXX" in
  12601. x|xyes)
  12602. # Assume -lc should be added
  12603. archive_cmds_need_lc_CXX=yes
  12604. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12605. case $archive_cmds_CXX in
  12606. *'~'*)
  12607. # FIXME: we may have to deal with multi-command sequences.
  12608. ;;
  12609. '$CC '*)
  12610. # Test whether the compiler implicitly links with -lc since on some
  12611. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12612. # to ld, don't add -lc before -lgcc.
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12614. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12615. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12616. $as_echo_n "(cached) " >&6
  12617. else
  12618. $RM conftest*
  12619. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12620. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12621. (eval $ac_compile) 2>&5
  12622. ac_status=$?
  12623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12624. test $ac_status = 0; } 2>conftest.err; then
  12625. soname=conftest
  12626. lib=conftest
  12627. libobjs=conftest.$ac_objext
  12628. deplibs=
  12629. wl=$lt_prog_compiler_wl_CXX
  12630. pic_flag=$lt_prog_compiler_pic_CXX
  12631. compiler_flags=-v
  12632. linker_flags=-v
  12633. verstring=
  12634. output_objdir=.
  12635. libname=conftest
  12636. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12637. allow_undefined_flag_CXX=
  12638. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12639. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12640. ac_status=$?
  12641. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12642. test $ac_status = 0; }
  12643. then
  12644. lt_cv_archive_cmds_need_lc_CXX=no
  12645. else
  12646. lt_cv_archive_cmds_need_lc_CXX=yes
  12647. fi
  12648. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12649. else
  12650. cat conftest.err 1>&5
  12651. fi
  12652. $RM conftest*
  12653. fi
  12654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12655. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12656. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12657. ;;
  12658. esac
  12659. fi
  12660. ;;
  12661. esac
  12662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12663. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12664. library_names_spec=
  12665. libname_spec='lib$name'
  12666. soname_spec=
  12667. shrext_cmds=".so"
  12668. postinstall_cmds=
  12669. postuninstall_cmds=
  12670. finish_cmds=
  12671. finish_eval=
  12672. shlibpath_var=
  12673. shlibpath_overrides_runpath=unknown
  12674. version_type=none
  12675. dynamic_linker="$host_os ld.so"
  12676. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12677. need_lib_prefix=unknown
  12678. hardcode_into_libs=no
  12679. # when you set need_version to no, make sure it does not cause -set_version
  12680. # flags to be left without arguments
  12681. need_version=unknown
  12682. case $host_os in
  12683. aix3*)
  12684. version_type=linux # correct to gnu/linux during the next big refactor
  12685. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12686. shlibpath_var=LIBPATH
  12687. # AIX 3 has no versioning support, so we append a major version to the name.
  12688. soname_spec='${libname}${release}${shared_ext}$major'
  12689. ;;
  12690. aix[4-9]*)
  12691. version_type=linux # correct to gnu/linux during the next big refactor
  12692. need_lib_prefix=no
  12693. need_version=no
  12694. hardcode_into_libs=yes
  12695. if test "$host_cpu" = ia64; then
  12696. # AIX 5 supports IA64
  12697. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12698. shlibpath_var=LD_LIBRARY_PATH
  12699. else
  12700. # With GCC up to 2.95.x, collect2 would create an import file
  12701. # for dependence libraries. The import file would start with
  12702. # the line `#! .'. This would cause the generated library to
  12703. # depend on `.', always an invalid library. This was fixed in
  12704. # development snapshots of GCC prior to 3.0.
  12705. case $host_os in
  12706. aix4 | aix4.[01] | aix4.[01].*)
  12707. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12708. echo ' yes '
  12709. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12710. :
  12711. else
  12712. can_build_shared=no
  12713. fi
  12714. ;;
  12715. esac
  12716. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12717. # soname into executable. Probably we can add versioning support to
  12718. # collect2, so additional links can be useful in future.
  12719. if test "$aix_use_runtimelinking" = yes; then
  12720. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12721. # instead of lib<name>.a to let people know that these are not
  12722. # typical AIX shared libraries.
  12723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12724. else
  12725. # We preserve .a as extension for shared libraries through AIX4.2
  12726. # and later when we are not doing run time linking.
  12727. library_names_spec='${libname}${release}.a $libname.a'
  12728. soname_spec='${libname}${release}${shared_ext}$major'
  12729. fi
  12730. shlibpath_var=LIBPATH
  12731. fi
  12732. ;;
  12733. amigaos*)
  12734. case $host_cpu in
  12735. powerpc)
  12736. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12737. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12739. ;;
  12740. m68k)
  12741. library_names_spec='$libname.ixlibrary $libname.a'
  12742. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12743. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12744. ;;
  12745. esac
  12746. ;;
  12747. beos*)
  12748. library_names_spec='${libname}${shared_ext}'
  12749. dynamic_linker="$host_os ld.so"
  12750. shlibpath_var=LIBRARY_PATH
  12751. ;;
  12752. bsdi[45]*)
  12753. version_type=linux # correct to gnu/linux during the next big refactor
  12754. need_version=no
  12755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12756. soname_spec='${libname}${release}${shared_ext}$major'
  12757. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12758. shlibpath_var=LD_LIBRARY_PATH
  12759. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12760. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12761. # the default ld.so.conf also contains /usr/contrib/lib and
  12762. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12763. # libtool to hard-code these into programs
  12764. ;;
  12765. cygwin* | mingw* | pw32* | cegcc*)
  12766. version_type=windows
  12767. shrext_cmds=".dll"
  12768. need_version=no
  12769. need_lib_prefix=no
  12770. case $GCC,$cc_basename in
  12771. yes,*)
  12772. # gcc
  12773. library_names_spec='$libname.dll.a'
  12774. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12775. postinstall_cmds='base_file=`basename \${file}`~
  12776. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12777. dldir=$destdir/`dirname \$dlpath`~
  12778. test -d \$dldir || mkdir -p \$dldir~
  12779. $install_prog $dir/$dlname \$dldir/$dlname~
  12780. chmod a+x \$dldir/$dlname~
  12781. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12782. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12783. fi'
  12784. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12785. dlpath=$dir/\$dldll~
  12786. $RM \$dlpath'
  12787. shlibpath_overrides_runpath=yes
  12788. case $host_os in
  12789. cygwin*)
  12790. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12791. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12792. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12793. ;;
  12794. mingw* | cegcc*)
  12795. # MinGW DLLs use traditional 'lib' prefix
  12796. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12797. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12798. ;;
  12799. pw32*)
  12800. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12801. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12802. ;;
  12803. esac
  12804. dynamic_linker='Win32 ld.exe'
  12805. ;;
  12806. *,cl*)
  12807. # Native MSVC
  12808. libname_spec='$name'
  12809. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12810. library_names_spec='${libname}.dll.lib'
  12811. case $build_os in
  12812. mingw*)
  12813. sys_lib_search_path_spec=
  12814. lt_save_ifs=$IFS
  12815. IFS=';'
  12816. for lt_path in $LIB
  12817. do
  12818. IFS=$lt_save_ifs
  12819. # Let DOS variable expansion print the short 8.3 style file name.
  12820. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12821. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12822. done
  12823. IFS=$lt_save_ifs
  12824. # Convert to MSYS style.
  12825. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12826. ;;
  12827. cygwin*)
  12828. # Convert to unix form, then to dos form, then back to unix form
  12829. # but this time dos style (no spaces!) so that the unix form looks
  12830. # like /cygdrive/c/PROGRA~1:/cygdr...
  12831. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12832. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12833. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12834. ;;
  12835. *)
  12836. sys_lib_search_path_spec="$LIB"
  12837. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12838. # It is most probably a Windows format PATH.
  12839. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12840. else
  12841. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12842. fi
  12843. # FIXME: find the short name or the path components, as spaces are
  12844. # common. (e.g. "Program Files" -> "PROGRA~1")
  12845. ;;
  12846. esac
  12847. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12848. postinstall_cmds='base_file=`basename \${file}`~
  12849. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12850. dldir=$destdir/`dirname \$dlpath`~
  12851. test -d \$dldir || mkdir -p \$dldir~
  12852. $install_prog $dir/$dlname \$dldir/$dlname'
  12853. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12854. dlpath=$dir/\$dldll~
  12855. $RM \$dlpath'
  12856. shlibpath_overrides_runpath=yes
  12857. dynamic_linker='Win32 link.exe'
  12858. ;;
  12859. *)
  12860. # Assume MSVC wrapper
  12861. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12862. dynamic_linker='Win32 ld.exe'
  12863. ;;
  12864. esac
  12865. # FIXME: first we should search . and the directory the executable is in
  12866. shlibpath_var=PATH
  12867. ;;
  12868. darwin* | rhapsody*)
  12869. dynamic_linker="$host_os dyld"
  12870. version_type=darwin
  12871. need_lib_prefix=no
  12872. need_version=no
  12873. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12874. soname_spec='${libname}${release}${major}$shared_ext'
  12875. shlibpath_overrides_runpath=yes
  12876. shlibpath_var=DYLD_LIBRARY_PATH
  12877. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12878. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12879. ;;
  12880. dgux*)
  12881. version_type=linux # correct to gnu/linux during the next big refactor
  12882. need_lib_prefix=no
  12883. need_version=no
  12884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12885. soname_spec='${libname}${release}${shared_ext}$major'
  12886. shlibpath_var=LD_LIBRARY_PATH
  12887. ;;
  12888. freebsd* | dragonfly*)
  12889. # DragonFly does not have aout. When/if they implement a new
  12890. # versioning mechanism, adjust this.
  12891. if test -x /usr/bin/objformat; then
  12892. objformat=`/usr/bin/objformat`
  12893. else
  12894. case $host_os in
  12895. freebsd[23].*) objformat=aout ;;
  12896. *) objformat=elf ;;
  12897. esac
  12898. fi
  12899. version_type=freebsd-$objformat
  12900. case $version_type in
  12901. freebsd-elf*)
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12903. need_version=no
  12904. need_lib_prefix=no
  12905. ;;
  12906. freebsd-*)
  12907. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12908. need_version=yes
  12909. ;;
  12910. esac
  12911. shlibpath_var=LD_LIBRARY_PATH
  12912. case $host_os in
  12913. freebsd2.*)
  12914. shlibpath_overrides_runpath=yes
  12915. ;;
  12916. freebsd3.[01]* | freebsdelf3.[01]*)
  12917. shlibpath_overrides_runpath=yes
  12918. hardcode_into_libs=yes
  12919. ;;
  12920. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12921. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12922. shlibpath_overrides_runpath=no
  12923. hardcode_into_libs=yes
  12924. ;;
  12925. *) # from 4.6 on, and DragonFly
  12926. shlibpath_overrides_runpath=yes
  12927. hardcode_into_libs=yes
  12928. ;;
  12929. esac
  12930. ;;
  12931. gnu*)
  12932. version_type=linux # correct to gnu/linux during the next big refactor
  12933. need_lib_prefix=no
  12934. need_version=no
  12935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12936. soname_spec='${libname}${release}${shared_ext}$major'
  12937. shlibpath_var=LD_LIBRARY_PATH
  12938. shlibpath_overrides_runpath=no
  12939. hardcode_into_libs=yes
  12940. ;;
  12941. haiku*)
  12942. version_type=linux # correct to gnu/linux during the next big refactor
  12943. need_lib_prefix=no
  12944. need_version=no
  12945. dynamic_linker="$host_os runtime_loader"
  12946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12947. soname_spec='${libname}${release}${shared_ext}$major'
  12948. shlibpath_var=LIBRARY_PATH
  12949. shlibpath_overrides_runpath=yes
  12950. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12951. hardcode_into_libs=yes
  12952. ;;
  12953. hpux9* | hpux10* | hpux11*)
  12954. # Give a soname corresponding to the major version so that dld.sl refuses to
  12955. # link against other versions.
  12956. version_type=sunos
  12957. need_lib_prefix=no
  12958. need_version=no
  12959. case $host_cpu in
  12960. ia64*)
  12961. shrext_cmds='.so'
  12962. hardcode_into_libs=yes
  12963. dynamic_linker="$host_os dld.so"
  12964. shlibpath_var=LD_LIBRARY_PATH
  12965. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12967. soname_spec='${libname}${release}${shared_ext}$major'
  12968. if test "X$HPUX_IA64_MODE" = X32; then
  12969. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12970. else
  12971. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12972. fi
  12973. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12974. ;;
  12975. hppa*64*)
  12976. shrext_cmds='.sl'
  12977. hardcode_into_libs=yes
  12978. dynamic_linker="$host_os dld.sl"
  12979. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12980. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12982. soname_spec='${libname}${release}${shared_ext}$major'
  12983. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12984. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12985. ;;
  12986. *)
  12987. shrext_cmds='.sl'
  12988. dynamic_linker="$host_os dld.sl"
  12989. shlibpath_var=SHLIB_PATH
  12990. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12992. soname_spec='${libname}${release}${shared_ext}$major'
  12993. ;;
  12994. esac
  12995. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12996. postinstall_cmds='chmod 555 $lib'
  12997. # or fails outright, so override atomically:
  12998. install_override_mode=555
  12999. ;;
  13000. interix[3-9]*)
  13001. version_type=linux # correct to gnu/linux during the next big refactor
  13002. need_lib_prefix=no
  13003. need_version=no
  13004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13005. soname_spec='${libname}${release}${shared_ext}$major'
  13006. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13007. shlibpath_var=LD_LIBRARY_PATH
  13008. shlibpath_overrides_runpath=no
  13009. hardcode_into_libs=yes
  13010. ;;
  13011. irix5* | irix6* | nonstopux*)
  13012. case $host_os in
  13013. nonstopux*) version_type=nonstopux ;;
  13014. *)
  13015. if test "$lt_cv_prog_gnu_ld" = yes; then
  13016. version_type=linux # correct to gnu/linux during the next big refactor
  13017. else
  13018. version_type=irix
  13019. fi ;;
  13020. esac
  13021. need_lib_prefix=no
  13022. need_version=no
  13023. soname_spec='${libname}${release}${shared_ext}$major'
  13024. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13025. case $host_os in
  13026. irix5* | nonstopux*)
  13027. libsuff= shlibsuff=
  13028. ;;
  13029. *)
  13030. case $LD in # libtool.m4 will add one of these switches to LD
  13031. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13032. libsuff= shlibsuff= libmagic=32-bit;;
  13033. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13034. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13035. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13036. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13037. *) libsuff= shlibsuff= libmagic=never-match;;
  13038. esac
  13039. ;;
  13040. esac
  13041. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13042. shlibpath_overrides_runpath=no
  13043. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13044. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13045. hardcode_into_libs=yes
  13046. ;;
  13047. # No shared lib support for Linux oldld, aout, or coff.
  13048. linux*oldld* | linux*aout* | linux*coff*)
  13049. dynamic_linker=no
  13050. ;;
  13051. # This must be glibc/ELF.
  13052. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13053. version_type=linux # correct to gnu/linux during the next big refactor
  13054. need_lib_prefix=no
  13055. need_version=no
  13056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13057. soname_spec='${libname}${release}${shared_ext}$major'
  13058. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13059. shlibpath_var=LD_LIBRARY_PATH
  13060. shlibpath_overrides_runpath=no
  13061. # Some binutils ld are patched to set DT_RUNPATH
  13062. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13063. $as_echo_n "(cached) " >&6
  13064. else
  13065. lt_cv_shlibpath_overrides_runpath=no
  13066. save_LDFLAGS=$LDFLAGS
  13067. save_libdir=$libdir
  13068. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13069. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13071. /* end confdefs.h. */
  13072. int
  13073. main ()
  13074. {
  13075. ;
  13076. return 0;
  13077. }
  13078. _ACEOF
  13079. if ac_fn_cxx_try_link "$LINENO"; then :
  13080. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13081. lt_cv_shlibpath_overrides_runpath=yes
  13082. fi
  13083. fi
  13084. rm -f core conftest.err conftest.$ac_objext \
  13085. conftest$ac_exeext conftest.$ac_ext
  13086. LDFLAGS=$save_LDFLAGS
  13087. libdir=$save_libdir
  13088. fi
  13089. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13090. # This implies no fast_install, which is unacceptable.
  13091. # Some rework will be needed to allow for fast_install
  13092. # before this can be enabled.
  13093. hardcode_into_libs=yes
  13094. # Append ld.so.conf contents to the search path
  13095. if test -f /etc/ld.so.conf; then
  13096. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  13097. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13098. fi
  13099. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13100. # powerpc, because MkLinux only supported shared libraries with the
  13101. # GNU dynamic linker. Since this was broken with cross compilers,
  13102. # most powerpc-linux boxes support dynamic linking these days and
  13103. # people can always --disable-shared, the test was removed, and we
  13104. # assume the GNU/Linux dynamic linker is in use.
  13105. dynamic_linker='GNU/Linux ld.so'
  13106. ;;
  13107. netbsd*)
  13108. version_type=sunos
  13109. need_lib_prefix=no
  13110. need_version=no
  13111. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13113. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13114. dynamic_linker='NetBSD (a.out) ld.so'
  13115. else
  13116. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13117. soname_spec='${libname}${release}${shared_ext}$major'
  13118. dynamic_linker='NetBSD ld.elf_so'
  13119. fi
  13120. shlibpath_var=LD_LIBRARY_PATH
  13121. shlibpath_overrides_runpath=yes
  13122. hardcode_into_libs=yes
  13123. ;;
  13124. newsos6)
  13125. version_type=linux # correct to gnu/linux during the next big refactor
  13126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13127. shlibpath_var=LD_LIBRARY_PATH
  13128. shlibpath_overrides_runpath=yes
  13129. ;;
  13130. *nto* | *qnx*)
  13131. version_type=qnx
  13132. need_lib_prefix=no
  13133. need_version=no
  13134. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13135. soname_spec='${libname}${release}${shared_ext}$major'
  13136. shlibpath_var=LD_LIBRARY_PATH
  13137. shlibpath_overrides_runpath=no
  13138. hardcode_into_libs=yes
  13139. dynamic_linker='ldqnx.so'
  13140. ;;
  13141. openbsd*)
  13142. version_type=sunos
  13143. sys_lib_dlsearch_path_spec="/usr/lib"
  13144. need_lib_prefix=no
  13145. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13146. case $host_os in
  13147. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13148. *) need_version=no ;;
  13149. esac
  13150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13151. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13152. shlibpath_var=LD_LIBRARY_PATH
  13153. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13154. case $host_os in
  13155. openbsd2.[89] | openbsd2.[89].*)
  13156. shlibpath_overrides_runpath=no
  13157. ;;
  13158. *)
  13159. shlibpath_overrides_runpath=yes
  13160. ;;
  13161. esac
  13162. else
  13163. shlibpath_overrides_runpath=yes
  13164. fi
  13165. ;;
  13166. os2*)
  13167. libname_spec='$name'
  13168. shrext_cmds=".dll"
  13169. need_lib_prefix=no
  13170. library_names_spec='$libname${shared_ext} $libname.a'
  13171. dynamic_linker='OS/2 ld.exe'
  13172. shlibpath_var=LIBPATH
  13173. ;;
  13174. osf3* | osf4* | osf5*)
  13175. version_type=osf
  13176. need_lib_prefix=no
  13177. need_version=no
  13178. soname_spec='${libname}${release}${shared_ext}$major'
  13179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13180. shlibpath_var=LD_LIBRARY_PATH
  13181. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13182. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13183. ;;
  13184. rdos*)
  13185. dynamic_linker=no
  13186. ;;
  13187. solaris*)
  13188. version_type=linux # correct to gnu/linux during the next big refactor
  13189. need_lib_prefix=no
  13190. need_version=no
  13191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13192. soname_spec='${libname}${release}${shared_ext}$major'
  13193. shlibpath_var=LD_LIBRARY_PATH
  13194. shlibpath_overrides_runpath=yes
  13195. hardcode_into_libs=yes
  13196. # ldd complains unless libraries are executable
  13197. postinstall_cmds='chmod +x $lib'
  13198. ;;
  13199. sunos4*)
  13200. version_type=sunos
  13201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13202. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13203. shlibpath_var=LD_LIBRARY_PATH
  13204. shlibpath_overrides_runpath=yes
  13205. if test "$with_gnu_ld" = yes; then
  13206. need_lib_prefix=no
  13207. fi
  13208. need_version=yes
  13209. ;;
  13210. sysv4 | sysv4.3*)
  13211. version_type=linux # correct to gnu/linux during the next big refactor
  13212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13213. soname_spec='${libname}${release}${shared_ext}$major'
  13214. shlibpath_var=LD_LIBRARY_PATH
  13215. case $host_vendor in
  13216. sni)
  13217. shlibpath_overrides_runpath=no
  13218. need_lib_prefix=no
  13219. runpath_var=LD_RUN_PATH
  13220. ;;
  13221. siemens)
  13222. need_lib_prefix=no
  13223. ;;
  13224. motorola)
  13225. need_lib_prefix=no
  13226. need_version=no
  13227. shlibpath_overrides_runpath=no
  13228. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13229. ;;
  13230. esac
  13231. ;;
  13232. sysv4*MP*)
  13233. if test -d /usr/nec ;then
  13234. version_type=linux # correct to gnu/linux during the next big refactor
  13235. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13236. soname_spec='$libname${shared_ext}.$major'
  13237. shlibpath_var=LD_LIBRARY_PATH
  13238. fi
  13239. ;;
  13240. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13241. version_type=freebsd-elf
  13242. need_lib_prefix=no
  13243. need_version=no
  13244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13245. soname_spec='${libname}${release}${shared_ext}$major'
  13246. shlibpath_var=LD_LIBRARY_PATH
  13247. shlibpath_overrides_runpath=yes
  13248. hardcode_into_libs=yes
  13249. if test "$with_gnu_ld" = yes; then
  13250. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13251. else
  13252. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13253. case $host_os in
  13254. sco3.2v5*)
  13255. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13256. ;;
  13257. esac
  13258. fi
  13259. sys_lib_dlsearch_path_spec='/usr/lib'
  13260. ;;
  13261. tpf*)
  13262. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13263. version_type=linux # correct to gnu/linux during the next big refactor
  13264. need_lib_prefix=no
  13265. need_version=no
  13266. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13267. shlibpath_var=LD_LIBRARY_PATH
  13268. shlibpath_overrides_runpath=no
  13269. hardcode_into_libs=yes
  13270. ;;
  13271. uts4*)
  13272. version_type=linux # correct to gnu/linux during the next big refactor
  13273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13274. soname_spec='${libname}${release}${shared_ext}$major'
  13275. shlibpath_var=LD_LIBRARY_PATH
  13276. ;;
  13277. *)
  13278. dynamic_linker=no
  13279. ;;
  13280. esac
  13281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13282. $as_echo "$dynamic_linker" >&6; }
  13283. test "$dynamic_linker" = no && can_build_shared=no
  13284. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13285. if test "$GCC" = yes; then
  13286. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13287. fi
  13288. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13289. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13290. fi
  13291. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13292. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13293. fi
  13294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13295. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13296. hardcode_action_CXX=
  13297. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13298. test -n "$runpath_var_CXX" ||
  13299. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13300. # We can hardcode non-existent directories.
  13301. if test "$hardcode_direct_CXX" != no &&
  13302. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13303. # have to relink, otherwise we might link with an installed library
  13304. # when we should be linking with a yet-to-be-installed one
  13305. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13306. test "$hardcode_minus_L_CXX" != no; then
  13307. # Linking always hardcodes the temporary library directory.
  13308. hardcode_action_CXX=relink
  13309. else
  13310. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13311. hardcode_action_CXX=immediate
  13312. fi
  13313. else
  13314. # We cannot hardcode anything, or else we can only hardcode existing
  13315. # directories.
  13316. hardcode_action_CXX=unsupported
  13317. fi
  13318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13319. $as_echo "$hardcode_action_CXX" >&6; }
  13320. if test "$hardcode_action_CXX" = relink ||
  13321. test "$inherit_rpath_CXX" = yes; then
  13322. # Fast installation is not supported
  13323. enable_fast_install=no
  13324. elif test "$shlibpath_overrides_runpath" = yes ||
  13325. test "$enable_shared" = no; then
  13326. # Fast installation is not necessary
  13327. enable_fast_install=needless
  13328. fi
  13329. fi # test -n "$compiler"
  13330. CC=$lt_save_CC
  13331. CFLAGS=$lt_save_CFLAGS
  13332. LDCXX=$LD
  13333. LD=$lt_save_LD
  13334. GCC=$lt_save_GCC
  13335. with_gnu_ld=$lt_save_with_gnu_ld
  13336. lt_cv_path_LDCXX=$lt_cv_path_LD
  13337. lt_cv_path_LD=$lt_save_path_LD
  13338. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13339. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13340. fi # test "$_lt_caught_CXX_error" != yes
  13341. ac_ext=c
  13342. ac_cpp='$CPP $CPPFLAGS'
  13343. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13344. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13345. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13346. # Find a good install program. We prefer a C program (faster),
  13347. # so one script is as good as another. But avoid the broken or
  13348. # incompatible versions:
  13349. # SysV /etc/install, /usr/sbin/install
  13350. # SunOS /usr/etc/install
  13351. # IRIX /sbin/install
  13352. # AIX /bin/install
  13353. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13354. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13355. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13356. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13357. # OS/2's system install, which has a completely different semantic
  13358. # ./install, which can be erroneously created by make from ./install.sh.
  13359. # Reject install programs that cannot install multiple files.
  13360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13361. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13362. if test -z "$INSTALL"; then
  13363. if ${ac_cv_path_install+:} false; then :
  13364. $as_echo_n "(cached) " >&6
  13365. else
  13366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13367. for as_dir in $PATH
  13368. do
  13369. IFS=$as_save_IFS
  13370. test -z "$as_dir" && as_dir=.
  13371. # Account for people who put trailing slashes in PATH elements.
  13372. case $as_dir/ in #((
  13373. ./ | .// | /[cC]/* | \
  13374. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13375. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13376. /usr/ucb/* ) ;;
  13377. *)
  13378. # OSF1 and SCO ODT 3.0 have their own names for install.
  13379. # Don't use installbsd from OSF since it installs stuff as root
  13380. # by default.
  13381. for ac_prog in ginstall scoinst install; do
  13382. for ac_exec_ext in '' $ac_executable_extensions; do
  13383. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13384. if test $ac_prog = install &&
  13385. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13386. # AIX install. It has an incompatible calling convention.
  13387. :
  13388. elif test $ac_prog = install &&
  13389. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13390. # program-specific install script used by HP pwplus--don't use.
  13391. :
  13392. else
  13393. rm -rf conftest.one conftest.two conftest.dir
  13394. echo one > conftest.one
  13395. echo two > conftest.two
  13396. mkdir conftest.dir
  13397. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13398. test -s conftest.one && test -s conftest.two &&
  13399. test -s conftest.dir/conftest.one &&
  13400. test -s conftest.dir/conftest.two
  13401. then
  13402. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13403. break 3
  13404. fi
  13405. fi
  13406. fi
  13407. done
  13408. done
  13409. ;;
  13410. esac
  13411. done
  13412. IFS=$as_save_IFS
  13413. rm -rf conftest.one conftest.two conftest.dir
  13414. fi
  13415. if test "${ac_cv_path_install+set}" = set; then
  13416. INSTALL=$ac_cv_path_install
  13417. else
  13418. # As a last resort, use the slow shell script. Don't cache a
  13419. # value for INSTALL within a source directory, because that will
  13420. # break other packages using the cache if that directory is
  13421. # removed, or if the value is a relative name.
  13422. INSTALL=$ac_install_sh
  13423. fi
  13424. fi
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13426. $as_echo "$INSTALL" >&6; }
  13427. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13428. # It thinks the first close brace ends the variable substitution.
  13429. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13430. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13431. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13433. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13434. set x ${MAKE-make}
  13435. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13436. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13437. $as_echo_n "(cached) " >&6
  13438. else
  13439. cat >conftest.make <<\_ACEOF
  13440. SHELL = /bin/sh
  13441. all:
  13442. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13443. _ACEOF
  13444. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13445. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13446. *@@@%%%=?*=@@@%%%*)
  13447. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13448. *)
  13449. eval ac_cv_prog_make_${ac_make}_set=no;;
  13450. esac
  13451. rm -f conftest.make
  13452. fi
  13453. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13455. $as_echo "yes" >&6; }
  13456. SET_MAKE=
  13457. else
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13459. $as_echo "no" >&6; }
  13460. SET_MAKE="MAKE=${MAKE-make}"
  13461. fi
  13462. if test -n "$ac_tool_prefix"; then
  13463. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13464. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13466. $as_echo_n "checking for $ac_word... " >&6; }
  13467. if ${ac_cv_prog_WINDRES+:} false; then :
  13468. $as_echo_n "(cached) " >&6
  13469. else
  13470. if test -n "$WINDRES"; then
  13471. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13472. else
  13473. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13474. for as_dir in $PATH
  13475. do
  13476. IFS=$as_save_IFS
  13477. test -z "$as_dir" && as_dir=.
  13478. for ac_exec_ext in '' $ac_executable_extensions; do
  13479. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13480. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13481. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13482. break 2
  13483. fi
  13484. done
  13485. done
  13486. IFS=$as_save_IFS
  13487. fi
  13488. fi
  13489. WINDRES=$ac_cv_prog_WINDRES
  13490. if test -n "$WINDRES"; then
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13492. $as_echo "$WINDRES" >&6; }
  13493. else
  13494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13495. $as_echo "no" >&6; }
  13496. fi
  13497. fi
  13498. if test -z "$ac_cv_prog_WINDRES"; then
  13499. ac_ct_WINDRES=$WINDRES
  13500. # Extract the first word of "windres", so it can be a program name with args.
  13501. set dummy windres; ac_word=$2
  13502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13503. $as_echo_n "checking for $ac_word... " >&6; }
  13504. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13505. $as_echo_n "(cached) " >&6
  13506. else
  13507. if test -n "$ac_ct_WINDRES"; then
  13508. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13509. else
  13510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13511. for as_dir in $PATH
  13512. do
  13513. IFS=$as_save_IFS
  13514. test -z "$as_dir" && as_dir=.
  13515. for ac_exec_ext in '' $ac_executable_extensions; do
  13516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13517. ac_cv_prog_ac_ct_WINDRES="windres"
  13518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13519. break 2
  13520. fi
  13521. done
  13522. done
  13523. IFS=$as_save_IFS
  13524. fi
  13525. fi
  13526. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13527. if test -n "$ac_ct_WINDRES"; then
  13528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13529. $as_echo "$ac_ct_WINDRES" >&6; }
  13530. else
  13531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13532. $as_echo "no" >&6; }
  13533. fi
  13534. if test "x$ac_ct_WINDRES" = x; then
  13535. WINDRES=":"
  13536. else
  13537. case $cross_compiling:$ac_tool_warned in
  13538. yes:)
  13539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13540. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13541. ac_tool_warned=yes ;;
  13542. esac
  13543. WINDRES=$ac_ct_WINDRES
  13544. fi
  13545. else
  13546. WINDRES="$ac_cv_prog_WINDRES"
  13547. fi
  13548. case "$host" in
  13549. *-*-mingw32*)
  13550. # Except on msys, where make can't handle full pathnames (bug 1972)
  13551. ;;
  13552. *)
  13553. srcdir=`cd $srcdir && pwd`
  13554. ;;
  13555. esac
  13556. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13557. if test x$srcdir != x.; then
  13558. INCLUDE="-Iinclude $INCLUDE"
  13559. elif test -d .hg; then
  13560. as_fn_error $? "
  13561. *** When building from Mercurial you should configure and build in a
  13562. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13563. " "$LINENO" 5
  13564. fi
  13565. BASE_CFLAGS=""
  13566. BASE_LDFLAGS=""
  13567. case "$host" in
  13568. *-*-cygwin*)
  13569. # We build SDL on cygwin without the UNIX emulation layer
  13570. save_CFLAGS="$CFLAGS"
  13571. have_no_cygwin=no
  13572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13573. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13574. CFLAGS="$save_CFLAGS -mno-cygwin"
  13575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13576. /* end confdefs.h. */
  13577. int
  13578. main ()
  13579. {
  13580. ;
  13581. return 0;
  13582. }
  13583. _ACEOF
  13584. if ac_fn_c_try_compile "$LINENO"; then :
  13585. have_no_cygwin=yes
  13586. fi
  13587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13589. $as_echo "$have_no_cygwin" >&6; }
  13590. CFLAGS="$save_CFLAGS"
  13591. if test x$have_no_cygwin = xyes; then
  13592. BASE_CFLAGS="-mno-cygwin"
  13593. BASE_LDFLAGS="-mno-cygwin"
  13594. fi
  13595. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13596. ;;
  13597. esac
  13598. # Uncomment the following line if you want to force SDL and applications
  13599. # built with it to be compiled for a particular architecture.
  13600. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13601. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13602. # The default optimization for SDL is -O3 (Bug #31)
  13603. if test "x$orig_CFLAGS" = x; then
  13604. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13605. fi
  13606. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13607. BUILD_LDFLAGS="$LDFLAGS"
  13608. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13609. ## These are common directories to find software packages
  13610. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13611. # if test -d $path/include; then
  13612. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13613. # fi
  13614. # if test -d $path/lib; then
  13615. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13616. # fi
  13617. #done
  13618. SDL_CFLAGS="$BASE_CFLAGS"
  13619. SDL_LIBS="-lSDL2"
  13620. if test "x$BASE_LDFLAGS" != x; then
  13621. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13622. fi
  13623. if test "x$EXTRA_CFLAGS" != x; then
  13624. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13625. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13626. fi
  13627. if test "x$EXTRA_LDFLAGS" != x; then
  13628. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13629. fi
  13630. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13631. find_lib()
  13632. {
  13633. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13634. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13635. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13636. if test "$cross_compiling" = yes; then
  13637. host_lib_path=""
  13638. else
  13639. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13640. fi
  13641. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13642. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13643. if test x$lib != x; then
  13644. echo $lib
  13645. return
  13646. fi
  13647. done
  13648. # Try again, this time allowing more than one version digit after the .so
  13649. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13650. lib=`ls -- $path/$1 2>/dev/null | sed -e 's,.*/,,' | sort | tail -1`
  13651. if test x$lib != x; then
  13652. echo $lib
  13653. return
  13654. fi
  13655. done
  13656. }
  13657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13658. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13659. if ${ac_cv_c_const+:} false; then :
  13660. $as_echo_n "(cached) " >&6
  13661. else
  13662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13663. /* end confdefs.h. */
  13664. int
  13665. main ()
  13666. {
  13667. #ifndef __cplusplus
  13668. /* Ultrix mips cc rejects this sort of thing. */
  13669. typedef int charset[2];
  13670. const charset cs = { 0, 0 };
  13671. /* SunOS 4.1.1 cc rejects this. */
  13672. char const *const *pcpcc;
  13673. char **ppc;
  13674. /* NEC SVR4.0.2 mips cc rejects this. */
  13675. struct point {int x, y;};
  13676. static struct point const zero = {0,0};
  13677. /* AIX XL C 1.02.0.0 rejects this.
  13678. It does not let you subtract one const X* pointer from another in
  13679. an arm of an if-expression whose if-part is not a constant
  13680. expression */
  13681. const char *g = "string";
  13682. pcpcc = &g + (g ? g-g : 0);
  13683. /* HPUX 7.0 cc rejects these. */
  13684. ++pcpcc;
  13685. ppc = (char**) pcpcc;
  13686. pcpcc = (char const *const *) ppc;
  13687. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13688. char tx;
  13689. char *t = &tx;
  13690. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13691. *t++ = 0;
  13692. if (s) return 0;
  13693. }
  13694. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13695. int x[] = {25, 17};
  13696. const int *foo = &x[0];
  13697. ++foo;
  13698. }
  13699. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13700. typedef const int *iptr;
  13701. iptr p = 0;
  13702. ++p;
  13703. }
  13704. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13705. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13706. struct s { int j; const int *ap[3]; } bx;
  13707. struct s *b = &bx; b->j = 5;
  13708. }
  13709. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13710. const int foo = 10;
  13711. if (!foo) return 0;
  13712. }
  13713. return !cs[0] && !zero.x;
  13714. #endif
  13715. ;
  13716. return 0;
  13717. }
  13718. _ACEOF
  13719. if ac_fn_c_try_compile "$LINENO"; then :
  13720. ac_cv_c_const=yes
  13721. else
  13722. ac_cv_c_const=no
  13723. fi
  13724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13725. fi
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13727. $as_echo "$ac_cv_c_const" >&6; }
  13728. if test $ac_cv_c_const = no; then
  13729. $as_echo "#define const /**/" >>confdefs.h
  13730. fi
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13732. $as_echo_n "checking for inline... " >&6; }
  13733. if ${ac_cv_c_inline+:} false; then :
  13734. $as_echo_n "(cached) " >&6
  13735. else
  13736. ac_cv_c_inline=no
  13737. for ac_kw in inline __inline__ __inline; do
  13738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13739. /* end confdefs.h. */
  13740. #ifndef __cplusplus
  13741. typedef int foo_t;
  13742. static $ac_kw foo_t static_foo () {return 0; }
  13743. $ac_kw foo_t foo () {return 0; }
  13744. #endif
  13745. _ACEOF
  13746. if ac_fn_c_try_compile "$LINENO"; then :
  13747. ac_cv_c_inline=$ac_kw
  13748. fi
  13749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13750. test "$ac_cv_c_inline" != no && break
  13751. done
  13752. fi
  13753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13754. $as_echo "$ac_cv_c_inline" >&6; }
  13755. case $ac_cv_c_inline in
  13756. inline | yes) ;;
  13757. *)
  13758. case $ac_cv_c_inline in
  13759. no) ac_val=;;
  13760. *) ac_val=$ac_cv_c_inline;;
  13761. esac
  13762. cat >>confdefs.h <<_ACEOF
  13763. #ifndef __cplusplus
  13764. #define inline $ac_val
  13765. #endif
  13766. _ACEOF
  13767. ;;
  13768. esac
  13769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13770. $as_echo_n "checking for working volatile... " >&6; }
  13771. if ${ac_cv_c_volatile+:} false; then :
  13772. $as_echo_n "(cached) " >&6
  13773. else
  13774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13775. /* end confdefs.h. */
  13776. int
  13777. main ()
  13778. {
  13779. volatile int x;
  13780. int * volatile y = (int *) 0;
  13781. return !x && !y;
  13782. ;
  13783. return 0;
  13784. }
  13785. _ACEOF
  13786. if ac_fn_c_try_compile "$LINENO"; then :
  13787. ac_cv_c_volatile=yes
  13788. else
  13789. ac_cv_c_volatile=no
  13790. fi
  13791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13792. fi
  13793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13794. $as_echo "$ac_cv_c_volatile" >&6; }
  13795. if test $ac_cv_c_volatile = no; then
  13796. $as_echo "#define volatile /**/" >>confdefs.h
  13797. fi
  13798. # Check whether --enable-assertions was given.
  13799. if test "${enable_assertions+set}" = set; then :
  13800. enableval=$enable_assertions;
  13801. else
  13802. enable_assertions=auto
  13803. fi
  13804. case "$enable_assertions" in
  13805. auto) # Use optimization settings to determine assertion level
  13806. ;;
  13807. disabled)
  13808. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13809. ;;
  13810. release)
  13811. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13812. ;;
  13813. enabled)
  13814. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13815. ;;
  13816. paranoid)
  13817. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13818. ;;
  13819. *)
  13820. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13821. ;;
  13822. esac
  13823. # Check whether --enable-dependency-tracking was given.
  13824. if test "${enable_dependency_tracking+set}" = set; then :
  13825. enableval=$enable_dependency_tracking;
  13826. else
  13827. enable_dependency_tracking=yes
  13828. fi
  13829. if test x$enable_dependency_tracking = xyes; then
  13830. have_gcc_mmd_mt=no
  13831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13832. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13834. /* end confdefs.h. */
  13835. #if !defined(__GNUC__) || __GNUC__ < 3
  13836. #error Dependency tracking requires GCC 3.0 or newer
  13837. #endif
  13838. int
  13839. main ()
  13840. {
  13841. ;
  13842. return 0;
  13843. }
  13844. _ACEOF
  13845. if ac_fn_c_try_compile "$LINENO"; then :
  13846. have_gcc_mmd_mt=yes
  13847. fi
  13848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13850. $as_echo "$have_gcc_mmd_mt" >&6; }
  13851. if test x$have_gcc_mmd_mt = xyes; then
  13852. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13853. fi
  13854. fi
  13855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13856. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13857. have_no_undefined=no
  13858. case "$host" in
  13859. *-*-openbsd*)
  13860. ;;
  13861. *)
  13862. save_LDFLAGS="$LDFLAGS"
  13863. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13865. /* end confdefs.h. */
  13866. int
  13867. main ()
  13868. {
  13869. ;
  13870. return 0;
  13871. }
  13872. _ACEOF
  13873. if ac_fn_c_try_link "$LINENO"; then :
  13874. have_no_undefined=yes
  13875. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13876. fi
  13877. rm -f core conftest.err conftest.$ac_objext \
  13878. conftest$ac_exeext conftest.$ac_ext
  13879. LDFLAGS="$save_LDFLAGS"
  13880. ;;
  13881. esac
  13882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13883. $as_echo "$have_no_undefined" >&6; }
  13884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --dynamicbase" >&5
  13885. $as_echo_n "checking for linker option --dynamicbase... " >&6; }
  13886. have_dynamicbase=no
  13887. case "$host" in
  13888. *)
  13889. save_LDFLAGS="$LDFLAGS"
  13890. LDFLAGS="$LDFLAGS -Wl,--dynamicbase"
  13891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13892. /* end confdefs.h. */
  13893. int
  13894. main ()
  13895. {
  13896. ;
  13897. return 0;
  13898. }
  13899. _ACEOF
  13900. if ac_fn_c_try_link "$LINENO"; then :
  13901. have_dynamicbase=yes
  13902. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--dynamicbase"
  13903. fi
  13904. rm -f core conftest.err conftest.$ac_objext \
  13905. conftest$ac_exeext conftest.$ac_ext
  13906. LDFLAGS="$save_LDFLAGS"
  13907. ;;
  13908. esac
  13909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dynamicbase" >&5
  13910. $as_echo "$have_dynamicbase" >&6; }
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --nxcompat" >&5
  13912. $as_echo_n "checking for linker option --nxcompat... " >&6; }
  13913. have_nxcompat=no
  13914. case "$host" in
  13915. *)
  13916. save_LDFLAGS="$LDFLAGS"
  13917. LDFLAGS="$LDFLAGS -Wl,--nxcompat"
  13918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13919. /* end confdefs.h. */
  13920. int
  13921. main ()
  13922. {
  13923. ;
  13924. return 0;
  13925. }
  13926. _ACEOF
  13927. if ac_fn_c_try_link "$LINENO"; then :
  13928. have_nxcompat=yes
  13929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--nxcompat"
  13930. fi
  13931. rm -f core conftest.err conftest.$ac_objext \
  13932. conftest$ac_exeext conftest.$ac_ext
  13933. LDFLAGS="$save_LDFLAGS"
  13934. ;;
  13935. esac
  13936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nxcompat" >&5
  13937. $as_echo "$have_nxcompat" >&6; }
  13938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --high-entropy-va" >&5
  13939. $as_echo_n "checking for linker option --high-entropy-va... " >&6; }
  13940. have_high_entropy_va=no
  13941. case "$host" in
  13942. *)
  13943. save_LDFLAGS="$LDFLAGS"
  13944. LDFLAGS="$LDFLAGS -Wl,--high-entropy-va"
  13945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13946. /* end confdefs.h. */
  13947. int
  13948. main ()
  13949. {
  13950. ;
  13951. return 0;
  13952. }
  13953. _ACEOF
  13954. if ac_fn_c_try_link "$LINENO"; then :
  13955. have_high_entropy_va=yes
  13956. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--high-entropy-va"
  13957. fi
  13958. rm -f core conftest.err conftest.$ac_objext \
  13959. conftest$ac_exeext conftest.$ac_ext
  13960. LDFLAGS="$save_LDFLAGS"
  13961. ;;
  13962. esac
  13963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_high_entropy_va" >&5
  13964. $as_echo "$have_high_entropy_va" >&6; }
  13965. # Check whether --enable-libc was given.
  13966. if test "${enable_libc+set}" = set; then :
  13967. enableval=$enable_libc;
  13968. else
  13969. enable_libc=yes
  13970. fi
  13971. if test x$enable_libc = xyes; then
  13972. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13974. $as_echo_n "checking for ANSI C header files... " >&6; }
  13975. if ${ac_cv_header_stdc+:} false; then :
  13976. $as_echo_n "(cached) " >&6
  13977. else
  13978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13979. /* end confdefs.h. */
  13980. #include <stdlib.h>
  13981. #include <stdarg.h>
  13982. #include <string.h>
  13983. #include <float.h>
  13984. int
  13985. main ()
  13986. {
  13987. ;
  13988. return 0;
  13989. }
  13990. _ACEOF
  13991. if ac_fn_c_try_compile "$LINENO"; then :
  13992. ac_cv_header_stdc=yes
  13993. else
  13994. ac_cv_header_stdc=no
  13995. fi
  13996. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13997. if test $ac_cv_header_stdc = yes; then
  13998. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14000. /* end confdefs.h. */
  14001. #include <string.h>
  14002. _ACEOF
  14003. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14004. $EGREP "memchr" >/dev/null 2>&1; then :
  14005. else
  14006. ac_cv_header_stdc=no
  14007. fi
  14008. rm -f conftest*
  14009. fi
  14010. if test $ac_cv_header_stdc = yes; then
  14011. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14013. /* end confdefs.h. */
  14014. #include <stdlib.h>
  14015. _ACEOF
  14016. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14017. $EGREP "free" >/dev/null 2>&1; then :
  14018. else
  14019. ac_cv_header_stdc=no
  14020. fi
  14021. rm -f conftest*
  14022. fi
  14023. if test $ac_cv_header_stdc = yes; then
  14024. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14025. if test "$cross_compiling" = yes; then :
  14026. :
  14027. else
  14028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14029. /* end confdefs.h. */
  14030. #include <ctype.h>
  14031. #include <stdlib.h>
  14032. #if ((' ' & 0x0FF) == 0x020)
  14033. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14034. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14035. #else
  14036. # define ISLOWER(c) \
  14037. (('a' <= (c) && (c) <= 'i') \
  14038. || ('j' <= (c) && (c) <= 'r') \
  14039. || ('s' <= (c) && (c) <= 'z'))
  14040. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14041. #endif
  14042. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14043. int
  14044. main ()
  14045. {
  14046. int i;
  14047. for (i = 0; i < 256; i++)
  14048. if (XOR (islower (i), ISLOWER (i))
  14049. || toupper (i) != TOUPPER (i))
  14050. return 2;
  14051. return 0;
  14052. }
  14053. _ACEOF
  14054. if ac_fn_c_try_run "$LINENO"; then :
  14055. else
  14056. ac_cv_header_stdc=no
  14057. fi
  14058. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14059. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14060. fi
  14061. fi
  14062. fi
  14063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14064. $as_echo "$ac_cv_header_stdc" >&6; }
  14065. if test $ac_cv_header_stdc = yes; then
  14066. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14067. fi
  14068. 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
  14069. do :
  14070. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14071. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14072. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14073. cat >>confdefs.h <<_ACEOF
  14074. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14075. _ACEOF
  14076. fi
  14077. done
  14078. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14079. if test "x$ac_cv_type_size_t" = xyes; then :
  14080. else
  14081. cat >>confdefs.h <<_ACEOF
  14082. #define size_t unsigned int
  14083. _ACEOF
  14084. fi
  14085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  14086. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14087. if ${ac_cv_define_M_PI+:} false; then :
  14088. $as_echo_n "(cached) " >&6
  14089. else
  14090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14091. /* end confdefs.h. */
  14092. #include <math.h>
  14093. #ifdef M_PI
  14094. YES_IS_DEFINED
  14095. #endif
  14096. _ACEOF
  14097. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14098. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14099. ac_cv_define_M_PI=yes
  14100. else
  14101. ac_cv_define_M_PI=no
  14102. fi
  14103. rm -f conftest*
  14104. fi
  14105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14106. $as_echo "$ac_cv_define_M_PI" >&6; }
  14107. if test "$ac_cv_define_M_PI" = "yes" ; then
  14108. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14109. fi
  14110. case "$host" in
  14111. *-*-cygwin* | *-*-mingw32*)
  14112. ;;
  14113. *)
  14114. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14115. # for constant arguments. Useless!
  14116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14117. $as_echo_n "checking for working alloca.h... " >&6; }
  14118. if ${ac_cv_working_alloca_h+:} false; then :
  14119. $as_echo_n "(cached) " >&6
  14120. else
  14121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14122. /* end confdefs.h. */
  14123. #include <alloca.h>
  14124. int
  14125. main ()
  14126. {
  14127. char *p = (char *) alloca (2 * sizeof (int));
  14128. if (p) return 0;
  14129. ;
  14130. return 0;
  14131. }
  14132. _ACEOF
  14133. if ac_fn_c_try_link "$LINENO"; then :
  14134. ac_cv_working_alloca_h=yes
  14135. else
  14136. ac_cv_working_alloca_h=no
  14137. fi
  14138. rm -f core conftest.err conftest.$ac_objext \
  14139. conftest$ac_exeext conftest.$ac_ext
  14140. fi
  14141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14142. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14143. if test $ac_cv_working_alloca_h = yes; then
  14144. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14145. fi
  14146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14147. $as_echo_n "checking for alloca... " >&6; }
  14148. if ${ac_cv_func_alloca_works+:} false; then :
  14149. $as_echo_n "(cached) " >&6
  14150. else
  14151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14152. /* end confdefs.h. */
  14153. #ifdef __GNUC__
  14154. # define alloca __builtin_alloca
  14155. #else
  14156. # ifdef _MSC_VER
  14157. # include <malloc.h>
  14158. # define alloca _alloca
  14159. # else
  14160. # ifdef HAVE_ALLOCA_H
  14161. # include <alloca.h>
  14162. # else
  14163. # ifdef _AIX
  14164. #pragma alloca
  14165. # else
  14166. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14167. void *alloca (size_t);
  14168. # endif
  14169. # endif
  14170. # endif
  14171. # endif
  14172. #endif
  14173. int
  14174. main ()
  14175. {
  14176. char *p = (char *) alloca (1);
  14177. if (p) return 0;
  14178. ;
  14179. return 0;
  14180. }
  14181. _ACEOF
  14182. if ac_fn_c_try_link "$LINENO"; then :
  14183. ac_cv_func_alloca_works=yes
  14184. else
  14185. ac_cv_func_alloca_works=no
  14186. fi
  14187. rm -f core conftest.err conftest.$ac_objext \
  14188. conftest$ac_exeext conftest.$ac_ext
  14189. fi
  14190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14191. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14192. if test $ac_cv_func_alloca_works = yes; then
  14193. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14194. else
  14195. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14196. # that cause trouble. Some versions do not even contain alloca or
  14197. # contain a buggy version. If you still want to use their alloca,
  14198. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14199. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14200. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14202. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14203. if ${ac_cv_os_cray+:} false; then :
  14204. $as_echo_n "(cached) " >&6
  14205. else
  14206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14207. /* end confdefs.h. */
  14208. #if defined CRAY && ! defined CRAY2
  14209. webecray
  14210. #else
  14211. wenotbecray
  14212. #endif
  14213. _ACEOF
  14214. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14215. $EGREP "webecray" >/dev/null 2>&1; then :
  14216. ac_cv_os_cray=yes
  14217. else
  14218. ac_cv_os_cray=no
  14219. fi
  14220. rm -f conftest*
  14221. fi
  14222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14223. $as_echo "$ac_cv_os_cray" >&6; }
  14224. if test $ac_cv_os_cray = yes; then
  14225. for ac_func in _getb67 GETB67 getb67; do
  14226. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14227. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14228. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14229. cat >>confdefs.h <<_ACEOF
  14230. #define CRAY_STACKSEG_END $ac_func
  14231. _ACEOF
  14232. break
  14233. fi
  14234. done
  14235. fi
  14236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14237. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14238. if ${ac_cv_c_stack_direction+:} false; then :
  14239. $as_echo_n "(cached) " >&6
  14240. else
  14241. if test "$cross_compiling" = yes; then :
  14242. ac_cv_c_stack_direction=0
  14243. else
  14244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14245. /* end confdefs.h. */
  14246. $ac_includes_default
  14247. int
  14248. find_stack_direction (int *addr, int depth)
  14249. {
  14250. int dir, dummy = 0;
  14251. if (! addr)
  14252. addr = &dummy;
  14253. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14254. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14255. return dir + dummy;
  14256. }
  14257. int
  14258. main (int argc, char **argv)
  14259. {
  14260. return find_stack_direction (0, argc + !argv + 20) < 0;
  14261. }
  14262. _ACEOF
  14263. if ac_fn_c_try_run "$LINENO"; then :
  14264. ac_cv_c_stack_direction=1
  14265. else
  14266. ac_cv_c_stack_direction=-1
  14267. fi
  14268. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14269. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14270. fi
  14271. fi
  14272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14273. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14274. cat >>confdefs.h <<_ACEOF
  14275. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14276. _ACEOF
  14277. fi
  14278. ;;
  14279. esac
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14281. $as_echo_n "checking for working memcmp... " >&6; }
  14282. if ${ac_cv_func_memcmp_working+:} false; then :
  14283. $as_echo_n "(cached) " >&6
  14284. else
  14285. if test "$cross_compiling" = yes; then :
  14286. ac_cv_func_memcmp_working=no
  14287. else
  14288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14289. /* end confdefs.h. */
  14290. $ac_includes_default
  14291. int
  14292. main ()
  14293. {
  14294. /* Some versions of memcmp are not 8-bit clean. */
  14295. char c0 = '\100', c1 = '\200', c2 = '\201';
  14296. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14297. return 1;
  14298. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14299. or more and with at least one buffer not starting on a 4-byte boundary.
  14300. William Lewis provided this test program. */
  14301. {
  14302. char foo[21];
  14303. char bar[21];
  14304. int i;
  14305. for (i = 0; i < 4; i++)
  14306. {
  14307. char *a = foo + i;
  14308. char *b = bar + i;
  14309. strcpy (a, "--------01111111");
  14310. strcpy (b, "--------10000000");
  14311. if (memcmp (a, b, 16) >= 0)
  14312. return 1;
  14313. }
  14314. return 0;
  14315. }
  14316. ;
  14317. return 0;
  14318. }
  14319. _ACEOF
  14320. if ac_fn_c_try_run "$LINENO"; then :
  14321. ac_cv_func_memcmp_working=yes
  14322. else
  14323. ac_cv_func_memcmp_working=no
  14324. fi
  14325. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14326. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14327. fi
  14328. fi
  14329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14330. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14331. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14332. *" memcmp.$ac_objext "* ) ;;
  14333. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14334. ;;
  14335. esac
  14336. if test x$ac_cv_func_memcmp_working = xyes; then
  14337. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14338. fi
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14340. $as_echo_n "checking for working strtod... " >&6; }
  14341. if ${ac_cv_func_strtod+:} false; then :
  14342. $as_echo_n "(cached) " >&6
  14343. else
  14344. if test "$cross_compiling" = yes; then :
  14345. ac_cv_func_strtod=no
  14346. else
  14347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14348. /* end confdefs.h. */
  14349. $ac_includes_default
  14350. #ifndef strtod
  14351. double strtod ();
  14352. #endif
  14353. int
  14354. main()
  14355. {
  14356. {
  14357. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14358. char *string = " +69";
  14359. char *term;
  14360. double value;
  14361. value = strtod (string, &term);
  14362. if (value != 69 || term != (string + 4))
  14363. return 1;
  14364. }
  14365. {
  14366. /* Under Solaris 2.4, strtod returns the wrong value for the
  14367. terminating character under some conditions. */
  14368. char *string = "NaN";
  14369. char *term;
  14370. strtod (string, &term);
  14371. if (term != string && *(term - 1) == 0)
  14372. return 1;
  14373. }
  14374. return 0;
  14375. }
  14376. _ACEOF
  14377. if ac_fn_c_try_run "$LINENO"; then :
  14378. ac_cv_func_strtod=yes
  14379. else
  14380. ac_cv_func_strtod=no
  14381. fi
  14382. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14383. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14384. fi
  14385. fi
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14387. $as_echo "$ac_cv_func_strtod" >&6; }
  14388. if test $ac_cv_func_strtod = no; then
  14389. case " $LIBOBJS " in
  14390. *" strtod.$ac_objext "* ) ;;
  14391. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14392. ;;
  14393. esac
  14394. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14395. if test "x$ac_cv_func_pow" = xyes; then :
  14396. fi
  14397. if test $ac_cv_func_pow = no; then
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14399. $as_echo_n "checking for pow in -lm... " >&6; }
  14400. if ${ac_cv_lib_m_pow+:} false; then :
  14401. $as_echo_n "(cached) " >&6
  14402. else
  14403. ac_check_lib_save_LIBS=$LIBS
  14404. LIBS="-lm $LIBS"
  14405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14406. /* end confdefs.h. */
  14407. /* Override any GCC internal prototype to avoid an error.
  14408. Use char because int might match the return type of a GCC
  14409. builtin and then its argument prototype would still apply. */
  14410. #ifdef __cplusplus
  14411. extern "C"
  14412. #endif
  14413. char pow ();
  14414. int
  14415. main ()
  14416. {
  14417. return pow ();
  14418. ;
  14419. return 0;
  14420. }
  14421. _ACEOF
  14422. if ac_fn_c_try_link "$LINENO"; then :
  14423. ac_cv_lib_m_pow=yes
  14424. else
  14425. ac_cv_lib_m_pow=no
  14426. fi
  14427. rm -f core conftest.err conftest.$ac_objext \
  14428. conftest$ac_exeext conftest.$ac_ext
  14429. LIBS=$ac_check_lib_save_LIBS
  14430. fi
  14431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14432. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14433. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14434. POW_LIB=-lm
  14435. else
  14436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14437. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14438. fi
  14439. fi
  14440. fi
  14441. if test x$ac_cv_func_strtod = xyes; then
  14442. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14443. fi
  14444. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14445. if test "x$ac_cv_func_mprotect" = xyes; then :
  14446. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14447. /* end confdefs.h. */
  14448. #include <sys/types.h>
  14449. #include <sys/mman.h>
  14450. int
  14451. main ()
  14452. {
  14453. ;
  14454. return 0;
  14455. }
  14456. _ACEOF
  14457. if ac_fn_c_try_compile "$LINENO"; then :
  14458. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14459. fi
  14460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14461. fi
  14462. for ac_func in malloc calloc realloc free getenv setenv putenv unsetenv qsort abs bcopy memset memcpy memmove wcslen wcscmp strlen strlcpy strlcat _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll
  14463. do :
  14464. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14465. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14466. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14467. cat >>confdefs.h <<_ACEOF
  14468. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14469. _ACEOF
  14470. fi
  14471. done
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14473. $as_echo_n "checking for pow in -lm... " >&6; }
  14474. if ${ac_cv_lib_m_pow+:} false; then :
  14475. $as_echo_n "(cached) " >&6
  14476. else
  14477. ac_check_lib_save_LIBS=$LIBS
  14478. LIBS="-lm $LIBS"
  14479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14480. /* end confdefs.h. */
  14481. /* Override any GCC internal prototype to avoid an error.
  14482. Use char because int might match the return type of a GCC
  14483. builtin and then its argument prototype would still apply. */
  14484. #ifdef __cplusplus
  14485. extern "C"
  14486. #endif
  14487. char pow ();
  14488. int
  14489. main ()
  14490. {
  14491. return pow ();
  14492. ;
  14493. return 0;
  14494. }
  14495. _ACEOF
  14496. if ac_fn_c_try_link "$LINENO"; then :
  14497. ac_cv_lib_m_pow=yes
  14498. else
  14499. ac_cv_lib_m_pow=no
  14500. fi
  14501. rm -f core conftest.err conftest.$ac_objext \
  14502. conftest$ac_exeext conftest.$ac_ext
  14503. LIBS=$ac_check_lib_save_LIBS
  14504. fi
  14505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14506. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14507. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14508. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14509. fi
  14510. for ac_func in acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
  14511. do :
  14512. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14513. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14514. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14515. cat >>confdefs.h <<_ACEOF
  14516. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14517. _ACEOF
  14518. fi
  14519. done
  14520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14521. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14522. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14523. $as_echo_n "(cached) " >&6
  14524. else
  14525. ac_check_lib_save_LIBS=$LIBS
  14526. LIBS="-liconv $LIBS"
  14527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14528. /* end confdefs.h. */
  14529. /* Override any GCC internal prototype to avoid an error.
  14530. Use char because int might match the return type of a GCC
  14531. builtin and then its argument prototype would still apply. */
  14532. #ifdef __cplusplus
  14533. extern "C"
  14534. #endif
  14535. char iconv_open ();
  14536. int
  14537. main ()
  14538. {
  14539. return iconv_open ();
  14540. ;
  14541. return 0;
  14542. }
  14543. _ACEOF
  14544. if ac_fn_c_try_link "$LINENO"; then :
  14545. ac_cv_lib_iconv_iconv_open=yes
  14546. else
  14547. ac_cv_lib_iconv_iconv_open=no
  14548. fi
  14549. rm -f core conftest.err conftest.$ac_objext \
  14550. conftest$ac_exeext conftest.$ac_ext
  14551. LIBS=$ac_check_lib_save_LIBS
  14552. fi
  14553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14554. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14555. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14556. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14557. fi
  14558. for ac_func in iconv
  14559. do :
  14560. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14561. if test "x$ac_cv_func_iconv" = xyes; then :
  14562. cat >>confdefs.h <<_ACEOF
  14563. #define HAVE_ICONV 1
  14564. _ACEOF
  14565. fi
  14566. done
  14567. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14568. "
  14569. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14570. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14571. fi
  14572. for ac_header in libunwind.h
  14573. do :
  14574. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14575. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14576. cat >>confdefs.h <<_ACEOF
  14577. #define HAVE_LIBUNWIND_H 1
  14578. _ACEOF
  14579. fi
  14580. done
  14581. fi
  14582. # Check whether --enable-gcc-atomics was given.
  14583. if test "${enable_gcc_atomics+set}" = set; then :
  14584. enableval=$enable_gcc_atomics;
  14585. else
  14586. enable_gcc_atomics=yes
  14587. fi
  14588. if test x$enable_gcc_atomics = xyes; then
  14589. have_gcc_atomics=no
  14590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14591. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14593. /* end confdefs.h. */
  14594. int
  14595. main ()
  14596. {
  14597. int a;
  14598. void *x, *y, *z;
  14599. __sync_lock_test_and_set(&a, 4);
  14600. __sync_lock_test_and_set(&x, y);
  14601. __sync_fetch_and_add(&a, 1);
  14602. __sync_bool_compare_and_swap(&a, 5, 10);
  14603. __sync_bool_compare_and_swap(&x, y, z);
  14604. ;
  14605. return 0;
  14606. }
  14607. _ACEOF
  14608. if ac_fn_c_try_link "$LINENO"; then :
  14609. have_gcc_atomics=yes
  14610. fi
  14611. rm -f core conftest.err conftest.$ac_objext \
  14612. conftest$ac_exeext conftest.$ac_ext
  14613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14614. $as_echo "$have_gcc_atomics" >&6; }
  14615. if test x$have_gcc_atomics = xyes; then
  14616. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14617. else
  14618. # See if we have the minimum operation needed for GCC atomics
  14619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14620. /* end confdefs.h. */
  14621. int
  14622. main ()
  14623. {
  14624. int a;
  14625. __sync_lock_test_and_set(&a, 1);
  14626. __sync_lock_release(&a);
  14627. ;
  14628. return 0;
  14629. }
  14630. _ACEOF
  14631. if ac_fn_c_try_link "$LINENO"; then :
  14632. have_gcc_sync_lock_test_and_set=yes
  14633. fi
  14634. rm -f core conftest.err conftest.$ac_objext \
  14635. conftest$ac_exeext conftest.$ac_ext
  14636. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14637. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14638. fi
  14639. fi
  14640. fi
  14641. # Standard C sources
  14642. SOURCES="$SOURCES $srcdir/src/*.c"
  14643. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14644. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14645. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14646. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14647. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14648. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14649. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14650. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14651. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14652. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14653. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14654. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14655. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14656. SOURCES="$SOURCES $srcdir/src/sensor/*.c"
  14657. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14658. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14659. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14660. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14661. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14662. # Check whether --enable-atomic was given.
  14663. if test "${enable_atomic+set}" = set; then :
  14664. enableval=$enable_atomic;
  14665. else
  14666. enable_atomic=yes
  14667. fi
  14668. if test x$enable_atomic != xyes; then
  14669. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14670. else
  14671. SUMMARY_modules="${SUMMARY_modules} atomic"
  14672. fi
  14673. # Check whether --enable-audio was given.
  14674. if test "${enable_audio+set}" = set; then :
  14675. enableval=$enable_audio;
  14676. else
  14677. enable_audio=yes
  14678. fi
  14679. if test x$enable_audio != xyes; then
  14680. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14681. else
  14682. SUMMARY_modules="${SUMMARY_modules} audio"
  14683. fi
  14684. # Check whether --enable-video was given.
  14685. if test "${enable_video+set}" = set; then :
  14686. enableval=$enable_video;
  14687. else
  14688. enable_video=yes
  14689. fi
  14690. if test x$enable_video != xyes; then
  14691. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14692. else
  14693. SUMMARY_modules="${SUMMARY_modules} video"
  14694. fi
  14695. # Check whether --enable-render was given.
  14696. if test "${enable_render+set}" = set; then :
  14697. enableval=$enable_render;
  14698. else
  14699. enable_render=yes
  14700. fi
  14701. if test x$enable_render != xyes; then
  14702. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14703. else
  14704. SUMMARY_modules="${SUMMARY_modules} render"
  14705. fi
  14706. # Check whether --enable-events was given.
  14707. if test "${enable_events+set}" = set; then :
  14708. enableval=$enable_events;
  14709. else
  14710. enable_events=yes
  14711. fi
  14712. if test x$enable_events != xyes; then
  14713. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14714. else
  14715. SUMMARY_modules="${SUMMARY_modules} events"
  14716. fi
  14717. # Check whether --enable-joystick was given.
  14718. if test "${enable_joystick+set}" = set; then :
  14719. enableval=$enable_joystick;
  14720. else
  14721. enable_joystick=yes
  14722. fi
  14723. if test x$enable_joystick != xyes; then
  14724. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14725. else
  14726. SUMMARY_modules="${SUMMARY_modules} joystick"
  14727. fi
  14728. # Check whether --enable-haptic was given.
  14729. if test "${enable_haptic+set}" = set; then :
  14730. enableval=$enable_haptic;
  14731. else
  14732. enable_haptic=yes
  14733. fi
  14734. if test x$enable_haptic != xyes; then
  14735. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14736. else
  14737. SUMMARY_modules="${SUMMARY_modules} haptic"
  14738. fi
  14739. # Check whether --enable-sensor was given.
  14740. if test "${enable_sensor+set}" = set; then :
  14741. enableval=$enable_sensor;
  14742. else
  14743. enable_sensor=yes
  14744. fi
  14745. if test x$enable_sensor != xyes; then
  14746. $as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
  14747. else
  14748. SUMMARY_modules="${SUMMARY_modules} sensor"
  14749. fi
  14750. # Check whether --enable-power was given.
  14751. if test "${enable_power+set}" = set; then :
  14752. enableval=$enable_power;
  14753. else
  14754. enable_power=yes
  14755. fi
  14756. if test x$enable_power != xyes; then
  14757. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14758. else
  14759. SUMMARY_modules="${SUMMARY_modules} power"
  14760. fi
  14761. # Check whether --enable-filesystem was given.
  14762. if test "${enable_filesystem+set}" = set; then :
  14763. enableval=$enable_filesystem;
  14764. else
  14765. enable_filesystem=yes
  14766. fi
  14767. if test x$enable_filesystem != xyes; then
  14768. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14769. else
  14770. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14771. fi
  14772. # Check whether --enable-threads was given.
  14773. if test "${enable_threads+set}" = set; then :
  14774. enableval=$enable_threads;
  14775. else
  14776. enable_threads=yes
  14777. fi
  14778. if test x$enable_threads != xyes; then
  14779. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14780. else
  14781. SUMMARY_modules="${SUMMARY_modules} threads"
  14782. fi
  14783. # Check whether --enable-timers was given.
  14784. if test "${enable_timers+set}" = set; then :
  14785. enableval=$enable_timers;
  14786. else
  14787. enable_timers=yes
  14788. fi
  14789. if test x$enable_timers != xyes; then
  14790. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14791. else
  14792. SUMMARY_modules="${SUMMARY_modules} timers"
  14793. fi
  14794. # Check whether --enable-file was given.
  14795. if test "${enable_file+set}" = set; then :
  14796. enableval=$enable_file;
  14797. else
  14798. enable_file=yes
  14799. fi
  14800. if test x$enable_file != xyes; then
  14801. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14802. else
  14803. SUMMARY_modules="${SUMMARY_modules} file"
  14804. fi
  14805. # Check whether --enable-loadso was given.
  14806. if test "${enable_loadso+set}" = set; then :
  14807. enableval=$enable_loadso;
  14808. else
  14809. enable_loadso=yes
  14810. fi
  14811. if test x$enable_loadso != xyes; then
  14812. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14813. else
  14814. SUMMARY_modules="${SUMMARY_modules} loadso"
  14815. fi
  14816. # Check whether --enable-cpuinfo was given.
  14817. if test "${enable_cpuinfo+set}" = set; then :
  14818. enableval=$enable_cpuinfo;
  14819. else
  14820. enable_cpuinfo=yes
  14821. fi
  14822. if test x$enable_cpuinfo != xyes; then
  14823. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14824. else
  14825. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14826. fi
  14827. # Check whether --enable-assembly was given.
  14828. if test "${enable_assembly+set}" = set; then :
  14829. enableval=$enable_assembly;
  14830. else
  14831. enable_assembly=yes
  14832. fi
  14833. if test x$enable_assembly = xyes; then
  14834. SUMMARY_modules="${SUMMARY_modules} assembly"
  14835. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14836. # Make sure that we don't generate floating point code that would
  14837. # cause illegal instruction exceptions on older processors
  14838. case "$host" in
  14839. *-*-darwin*)
  14840. # Don't need to worry about Apple hardware, it's all SSE capable
  14841. default_ssemath=yes
  14842. ;;
  14843. *64-*-*)
  14844. # x86 64-bit architectures all have SSE instructions
  14845. default_ssemath=yes
  14846. ;;
  14847. *)
  14848. default_ssemath=no
  14849. ;;
  14850. esac
  14851. # Check whether --enable-ssemath was given.
  14852. if test "${enable_ssemath+set}" = set; then :
  14853. enableval=$enable_ssemath;
  14854. else
  14855. enable_ssemath=$default_ssemath
  14856. fi
  14857. if test x$enable_ssemath = xno; then
  14858. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14859. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14860. fi
  14861. fi
  14862. # Check whether --enable-mmx was given.
  14863. if test "${enable_mmx+set}" = set; then :
  14864. enableval=$enable_mmx;
  14865. else
  14866. enable_mmx=yes
  14867. fi
  14868. if test x$enable_mmx = xyes; then
  14869. save_CFLAGS="$CFLAGS"
  14870. have_gcc_mmx=no
  14871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14872. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14873. mmx_CFLAGS="-mmmx"
  14874. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14876. /* end confdefs.h. */
  14877. #ifdef __MINGW32__
  14878. #include <_mingw.h>
  14879. #ifdef __MINGW64_VERSION_MAJOR
  14880. #include <intrin.h>
  14881. #else
  14882. #include <mmintrin.h>
  14883. #endif
  14884. #else
  14885. #include <mmintrin.h>
  14886. #endif
  14887. #ifndef __MMX__
  14888. #error Assembler CPP flag not enabled
  14889. #endif
  14890. int
  14891. main ()
  14892. {
  14893. ;
  14894. return 0;
  14895. }
  14896. _ACEOF
  14897. if ac_fn_c_try_compile "$LINENO"; then :
  14898. have_gcc_mmx=yes
  14899. fi
  14900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14902. $as_echo "$have_gcc_mmx" >&6; }
  14903. CFLAGS="$save_CFLAGS"
  14904. if test x$have_gcc_mmx = xyes; then
  14905. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14906. SUMMARY_math="${SUMMARY_math} mmx"
  14907. fi
  14908. fi
  14909. # Check whether --enable-3dnow was given.
  14910. if test "${enable_3dnow+set}" = set; then :
  14911. enableval=$enable_3dnow;
  14912. else
  14913. enable_3dnow=yes
  14914. fi
  14915. if test x$enable_3dnow = xyes; then
  14916. save_CFLAGS="$CFLAGS"
  14917. have_gcc_3dnow=no
  14918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14919. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14920. amd3dnow_CFLAGS="-m3dnow"
  14921. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14923. /* end confdefs.h. */
  14924. #include <mm3dnow.h>
  14925. #ifndef __3dNOW__
  14926. #error Assembler CPP flag not enabled
  14927. #endif
  14928. int
  14929. main ()
  14930. {
  14931. void *p = 0;
  14932. _m_prefetch(p);
  14933. ;
  14934. return 0;
  14935. }
  14936. _ACEOF
  14937. if ac_fn_c_try_link "$LINENO"; then :
  14938. have_gcc_3dnow=yes
  14939. fi
  14940. rm -f core conftest.err conftest.$ac_objext \
  14941. conftest$ac_exeext conftest.$ac_ext
  14942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14943. $as_echo "$have_gcc_3dnow" >&6; }
  14944. CFLAGS="$save_CFLAGS"
  14945. if test x$have_gcc_3dnow = xyes; then
  14946. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14947. SUMMARY_math="${SUMMARY_math} 3dnow"
  14948. fi
  14949. fi
  14950. # Check whether --enable-sse was given.
  14951. if test "${enable_sse+set}" = set; then :
  14952. enableval=$enable_sse;
  14953. else
  14954. enable_sse=yes
  14955. fi
  14956. if test x$enable_sse = xyes; then
  14957. save_CFLAGS="$CFLAGS"
  14958. have_gcc_sse=no
  14959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14960. $as_echo_n "checking for GCC -msse option... " >&6; }
  14961. sse_CFLAGS="-msse"
  14962. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14963. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14964. /* end confdefs.h. */
  14965. #ifdef __MINGW32__
  14966. #include <_mingw.h>
  14967. #ifdef __MINGW64_VERSION_MAJOR
  14968. #include <intrin.h>
  14969. #else
  14970. #include <xmmintrin.h>
  14971. #endif
  14972. #else
  14973. #include <xmmintrin.h>
  14974. #endif
  14975. #ifndef __SSE__
  14976. #error Assembler CPP flag not enabled
  14977. #endif
  14978. int
  14979. main ()
  14980. {
  14981. ;
  14982. return 0;
  14983. }
  14984. _ACEOF
  14985. if ac_fn_c_try_compile "$LINENO"; then :
  14986. have_gcc_sse=yes
  14987. fi
  14988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14990. $as_echo "$have_gcc_sse" >&6; }
  14991. CFLAGS="$save_CFLAGS"
  14992. if test x$have_gcc_sse = xyes; then
  14993. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14994. SUMMARY_math="${SUMMARY_math} sse"
  14995. fi
  14996. fi
  14997. # Check whether --enable-sse2 was given.
  14998. if test "${enable_sse2+set}" = set; then :
  14999. enableval=$enable_sse2;
  15000. else
  15001. enable_sse2=$default_ssemath
  15002. fi
  15003. if test x$enable_sse2 = xyes; then
  15004. save_CFLAGS="$CFLAGS"
  15005. have_gcc_sse2=no
  15006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  15007. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  15008. sse2_CFLAGS="-msse2"
  15009. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  15010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15011. /* end confdefs.h. */
  15012. #ifdef __MINGW32__
  15013. #include <_mingw.h>
  15014. #ifdef __MINGW64_VERSION_MAJOR
  15015. #include <intrin.h>
  15016. #else
  15017. #include <emmintrin.h>
  15018. #endif
  15019. #else
  15020. #include <emmintrin.h>
  15021. #endif
  15022. #ifndef __SSE2__
  15023. #error Assembler CPP flag not enabled
  15024. #endif
  15025. int
  15026. main ()
  15027. {
  15028. ;
  15029. return 0;
  15030. }
  15031. _ACEOF
  15032. if ac_fn_c_try_compile "$LINENO"; then :
  15033. have_gcc_sse2=yes
  15034. fi
  15035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  15037. $as_echo "$have_gcc_sse2" >&6; }
  15038. CFLAGS="$save_CFLAGS"
  15039. if test x$have_gcc_sse2 = xyes; then
  15040. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  15041. SUMMARY_math="${SUMMARY_math} sse2"
  15042. fi
  15043. fi
  15044. # Check whether --enable-sse3 was given.
  15045. if test "${enable_sse3+set}" = set; then :
  15046. enableval=$enable_sse3;
  15047. else
  15048. enable_sse3=$default_ssemath
  15049. fi
  15050. if test x$enable_sse3 = xyes; then
  15051. save_CFLAGS="$CFLAGS"
  15052. have_gcc_sse3=no
  15053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  15054. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  15055. sse3_CFLAGS="-msse3"
  15056. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  15057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15058. /* end confdefs.h. */
  15059. #ifdef __MINGW32__
  15060. #include <_mingw.h>
  15061. #ifdef __MINGW64_VERSION_MAJOR
  15062. #include <intrin.h>
  15063. #else
  15064. #include <pmmintrin.h>
  15065. #endif
  15066. #else
  15067. #include <pmmintrin.h>
  15068. #endif
  15069. #ifndef __SSE2__
  15070. #error Assembler CPP flag not enabled
  15071. #endif
  15072. int
  15073. main ()
  15074. {
  15075. ;
  15076. return 0;
  15077. }
  15078. _ACEOF
  15079. if ac_fn_c_try_compile "$LINENO"; then :
  15080. have_gcc_sse3=yes
  15081. fi
  15082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  15084. $as_echo "$have_gcc_sse3" >&6; }
  15085. CFLAGS="$save_CFLAGS"
  15086. if test x$have_gcc_sse3 = xyes; then
  15087. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  15088. SUMMARY_math="${SUMMARY_math} sse3"
  15089. fi
  15090. fi
  15091. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  15092. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  15093. have_immintrin_h_hdr=yes
  15094. else
  15095. have_immintrin_h_hdr=no
  15096. fi
  15097. if test x$have_immintrin_h_hdr = xyes; then
  15098. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15099. fi
  15100. # Check whether --enable-altivec was given.
  15101. if test "${enable_altivec+set}" = set; then :
  15102. enableval=$enable_altivec;
  15103. else
  15104. enable_altivec=yes
  15105. fi
  15106. if test x$enable_altivec = xyes; then
  15107. save_CFLAGS="$CFLAGS"
  15108. have_gcc_altivec=no
  15109. have_altivec_h_hdr=no
  15110. altivec_CFLAGS="-maltivec"
  15111. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15113. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15115. /* end confdefs.h. */
  15116. #include <altivec.h>
  15117. vector unsigned int vzero() {
  15118. return vec_splat_u32(0);
  15119. }
  15120. int
  15121. main ()
  15122. {
  15123. ;
  15124. return 0;
  15125. }
  15126. _ACEOF
  15127. if ac_fn_c_try_compile "$LINENO"; then :
  15128. have_gcc_altivec=yes
  15129. have_altivec_h_hdr=yes
  15130. fi
  15131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15133. $as_echo "$have_gcc_altivec" >&6; }
  15134. if test x$have_gcc_altivec = xno; then
  15135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15136. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15138. /* end confdefs.h. */
  15139. vector unsigned int vzero() {
  15140. return vec_splat_u32(0);
  15141. }
  15142. int
  15143. main ()
  15144. {
  15145. ;
  15146. return 0;
  15147. }
  15148. _ACEOF
  15149. if ac_fn_c_try_compile "$LINENO"; then :
  15150. have_gcc_altivec=yes
  15151. fi
  15152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15154. $as_echo "$have_gcc_altivec" >&6; }
  15155. fi
  15156. if test x$have_gcc_altivec = xno; then
  15157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15158. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15159. altivec_CFLAGS="-faltivec"
  15160. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15162. /* end confdefs.h. */
  15163. #include <altivec.h>
  15164. vector unsigned int vzero() {
  15165. return vec_splat_u32(0);
  15166. }
  15167. int
  15168. main ()
  15169. {
  15170. ;
  15171. return 0;
  15172. }
  15173. _ACEOF
  15174. if ac_fn_c_try_compile "$LINENO"; then :
  15175. have_gcc_altivec=yes
  15176. have_altivec_h_hdr=yes
  15177. fi
  15178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15180. $as_echo "$have_gcc_altivec" >&6; }
  15181. fi
  15182. if test x$have_gcc_altivec = xno; then
  15183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15184. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15186. /* end confdefs.h. */
  15187. vector unsigned int vzero() {
  15188. return vec_splat_u32(0);
  15189. }
  15190. int
  15191. main ()
  15192. {
  15193. ;
  15194. return 0;
  15195. }
  15196. _ACEOF
  15197. if ac_fn_c_try_compile "$LINENO"; then :
  15198. have_gcc_altivec=yes
  15199. fi
  15200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15202. $as_echo "$have_gcc_altivec" >&6; }
  15203. fi
  15204. CFLAGS="$save_CFLAGS"
  15205. if test x$have_gcc_altivec = xyes; then
  15206. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15207. if test x$have_altivec_h_hdr = xyes; then
  15208. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15209. fi
  15210. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15211. SUMMARY_math="${SUMMARY_math} altivec"
  15212. fi
  15213. fi
  15214. fi
  15215. CheckOSS()
  15216. {
  15217. # Check whether --enable-oss was given.
  15218. if test "${enable_oss+set}" = set; then :
  15219. enableval=$enable_oss;
  15220. else
  15221. enable_oss=maybe
  15222. fi
  15223. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15224. # use sndio instead. So on there, we default to disabled. You can force
  15225. # it on if you really want, though.
  15226. if test x$enable_oss = xmaybe; then
  15227. enable_oss=yes
  15228. case "$host" in
  15229. *-*-openbsd*)
  15230. enable_oss=no;;
  15231. esac
  15232. fi
  15233. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15235. $as_echo_n "checking for OSS audio support... " >&6; }
  15236. have_oss=no
  15237. if test x$have_oss != xyes; then
  15238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15239. /* end confdefs.h. */
  15240. #include <sys/soundcard.h>
  15241. int
  15242. main ()
  15243. {
  15244. int arg = SNDCTL_DSP_SETFRAGMENT;
  15245. ;
  15246. return 0;
  15247. }
  15248. _ACEOF
  15249. if ac_fn_c_try_compile "$LINENO"; then :
  15250. have_oss=yes
  15251. fi
  15252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15253. fi
  15254. if test x$have_oss != xyes; then
  15255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15256. /* end confdefs.h. */
  15257. #include <soundcard.h>
  15258. int
  15259. main ()
  15260. {
  15261. int arg = SNDCTL_DSP_SETFRAGMENT;
  15262. ;
  15263. return 0;
  15264. }
  15265. _ACEOF
  15266. if ac_fn_c_try_compile "$LINENO"; then :
  15267. have_oss=yes
  15268. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15269. fi
  15270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15271. fi
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15273. $as_echo "$have_oss" >&6; }
  15274. if test x$have_oss = xyes; then
  15275. SUMMARY_audio="${SUMMARY_audio} oss"
  15276. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15277. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15278. have_audio=yes
  15279. # We may need to link with ossaudio emulation library
  15280. case "$host" in
  15281. *-*-openbsd*|*-*-netbsd*)
  15282. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15283. esac
  15284. fi
  15285. fi
  15286. }
  15287. CheckALSA()
  15288. {
  15289. # Check whether --enable-alsa was given.
  15290. if test "${enable_alsa+set}" = set; then :
  15291. enableval=$enable_alsa;
  15292. else
  15293. enable_alsa=yes
  15294. fi
  15295. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15296. alsa_save_CFLAGS="$CFLAGS"
  15297. alsa_save_LDFLAGS="$LDFLAGS"
  15298. alsa_save_LIBS="$LIBS"
  15299. alsa_found=yes
  15300. # Check whether --with-alsa-prefix was given.
  15301. if test "${with_alsa_prefix+set}" = set; then :
  15302. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15303. else
  15304. alsa_prefix=""
  15305. fi
  15306. # Check whether --with-alsa-inc-prefix was given.
  15307. if test "${with_alsa_inc_prefix+set}" = set; then :
  15308. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15309. else
  15310. alsa_inc_prefix=""
  15311. fi
  15312. # Check whether --enable-alsatest was given.
  15313. if test "${enable_alsatest+set}" = set; then :
  15314. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15315. else
  15316. enable_alsatest=yes
  15317. fi
  15318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15319. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15320. if test "$alsa_inc_prefix" != "" ; then
  15321. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15322. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15323. fi
  15324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15325. $as_echo "$ALSA_CFLAGS" >&6; }
  15326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15327. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15328. if test "$alsa_prefix" != "" ; then
  15329. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15330. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15331. fi
  15332. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15333. LIBS=`echo $LIBS | sed 's/-lm//'`
  15334. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15335. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15336. LIBS=`echo $LIBS | sed 's/ //'`
  15337. LIBS="$ALSA_LIBS $LIBS"
  15338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15339. $as_echo "$ALSA_LIBS" >&6; }
  15340. min_alsa_version=1.0.11
  15341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15342. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15343. no_alsa=""
  15344. alsa_min_major_version=`echo $min_alsa_version | \
  15345. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15346. alsa_min_minor_version=`echo $min_alsa_version | \
  15347. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15348. alsa_min_micro_version=`echo $min_alsa_version | \
  15349. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15350. ac_ext=c
  15351. ac_cpp='$CPP $CPPFLAGS'
  15352. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15353. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15354. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15356. /* end confdefs.h. */
  15357. #include <alsa/asoundlib.h>
  15358. int
  15359. main ()
  15360. {
  15361. /* ensure backward compatibility */
  15362. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15363. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15364. #endif
  15365. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15366. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15367. #endif
  15368. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15369. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15370. #endif
  15371. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15372. exit(0);
  15373. # else
  15374. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15375. # error not present
  15376. # endif
  15377. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15378. exit(0);
  15379. # else
  15380. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15381. # error not present
  15382. # endif
  15383. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15384. # error not present
  15385. # endif
  15386. # endif
  15387. # endif
  15388. exit(0);
  15389. ;
  15390. return 0;
  15391. }
  15392. _ACEOF
  15393. if ac_fn_c_try_compile "$LINENO"; then :
  15394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15395. $as_echo "found." >&6; }
  15396. else
  15397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15398. $as_echo "not present." >&6; }
  15399. alsa_found=no
  15400. fi
  15401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15402. ac_ext=c
  15403. ac_cpp='$CPP $CPPFLAGS'
  15404. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15405. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15406. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15407. if test "x$enable_alsatest" = "xyes"; then
  15408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15409. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15410. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15411. $as_echo_n "(cached) " >&6
  15412. else
  15413. ac_check_lib_save_LIBS=$LIBS
  15414. LIBS="-lasound $LIBS"
  15415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15416. /* end confdefs.h. */
  15417. /* Override any GCC internal prototype to avoid an error.
  15418. Use char because int might match the return type of a GCC
  15419. builtin and then its argument prototype would still apply. */
  15420. #ifdef __cplusplus
  15421. extern "C"
  15422. #endif
  15423. char snd_ctl_open ();
  15424. int
  15425. main ()
  15426. {
  15427. return snd_ctl_open ();
  15428. ;
  15429. return 0;
  15430. }
  15431. _ACEOF
  15432. if ac_fn_c_try_link "$LINENO"; then :
  15433. ac_cv_lib_asound_snd_ctl_open=yes
  15434. else
  15435. ac_cv_lib_asound_snd_ctl_open=no
  15436. fi
  15437. rm -f core conftest.err conftest.$ac_objext \
  15438. conftest$ac_exeext conftest.$ac_ext
  15439. LIBS=$ac_check_lib_save_LIBS
  15440. fi
  15441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15442. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15443. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15444. cat >>confdefs.h <<_ACEOF
  15445. #define HAVE_LIBASOUND 1
  15446. _ACEOF
  15447. LIBS="-lasound $LIBS"
  15448. else
  15449. alsa_found=no
  15450. fi
  15451. fi
  15452. if test "x$alsa_found" = "xyes" ; then
  15453. have_alsa=yes
  15454. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15455. LIBS=`echo $LIBS | sed 's/ //'`
  15456. LIBS="-lasound $LIBS"
  15457. fi
  15458. if test "x$alsa_found" = "xno" ; then
  15459. have_alsa=no
  15460. CFLAGS="$alsa_save_CFLAGS"
  15461. LDFLAGS="$alsa_save_LDFLAGS"
  15462. LIBS="$alsa_save_LIBS"
  15463. ALSA_CFLAGS=""
  15464. ALSA_LIBS=""
  15465. fi
  15466. # Restore all flags from before the ALSA detection runs
  15467. CFLAGS="$alsa_save_CFLAGS"
  15468. LDFLAGS="$alsa_save_LDFLAGS"
  15469. LIBS="$alsa_save_LIBS"
  15470. if test x$have_alsa = xyes; then
  15471. # Check whether --enable-alsa-shared was given.
  15472. if test "${enable_alsa_shared+set}" = set; then :
  15473. enableval=$enable_alsa_shared;
  15474. else
  15475. enable_alsa_shared=yes
  15476. fi
  15477. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15478. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15479. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15480. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15481. if test x$have_loadso != xyes && \
  15482. test x$enable_alsa_shared = xyes; then
  15483. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15484. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15485. fi
  15486. if test x$have_loadso = xyes && \
  15487. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15488. echo "-- dynamic libasound -> $alsa_lib"
  15489. cat >>confdefs.h <<_ACEOF
  15490. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15491. _ACEOF
  15492. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15493. else
  15494. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15495. SUMMARY_audio="${SUMMARY_audio} alsa"
  15496. fi
  15497. have_audio=yes
  15498. fi
  15499. fi
  15500. }
  15501. CheckJACK()
  15502. {
  15503. # Check whether --enable-jack was given.
  15504. if test "${enable_jack+set}" = set; then :
  15505. enableval=$enable_jack;
  15506. else
  15507. enable_jack=yes
  15508. fi
  15509. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15510. audio_jack=no
  15511. JACK_REQUIRED_VERSION=0.125
  15512. # Extract the first word of "pkg-config", so it can be a program name with args.
  15513. set dummy pkg-config; ac_word=$2
  15514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15515. $as_echo_n "checking for $ac_word... " >&6; }
  15516. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15517. $as_echo_n "(cached) " >&6
  15518. else
  15519. case $PKG_CONFIG in
  15520. [\\/]* | ?:[\\/]*)
  15521. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15522. ;;
  15523. *)
  15524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15525. for as_dir in $PATH
  15526. do
  15527. IFS=$as_save_IFS
  15528. test -z "$as_dir" && as_dir=.
  15529. for ac_exec_ext in '' $ac_executable_extensions; do
  15530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15531. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15533. break 2
  15534. fi
  15535. done
  15536. done
  15537. IFS=$as_save_IFS
  15538. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15539. ;;
  15540. esac
  15541. fi
  15542. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15543. if test -n "$PKG_CONFIG"; then
  15544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15545. $as_echo "$PKG_CONFIG" >&6; }
  15546. else
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15548. $as_echo "no" >&6; }
  15549. fi
  15550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15551. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15552. if test x$PKG_CONFIG != xno; then
  15553. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15554. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15555. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15556. audio_jack=yes
  15557. fi
  15558. fi
  15559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15560. $as_echo "$audio_jack" >&6; }
  15561. if test x$audio_jack = xyes; then
  15562. # Check whether --enable-jack-shared was given.
  15563. if test "${enable_jack_shared+set}" = set; then :
  15564. enableval=$enable_jack_shared;
  15565. else
  15566. enable_jack_shared=yes
  15567. fi
  15568. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15569. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15570. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15571. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15572. if test x$have_loadso != xyes && \
  15573. test x$enable_jack_shared = xyes; then
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15575. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15576. fi
  15577. if test x$have_loadso = xyes && \
  15578. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15579. echo "-- dynamic libjack -> $jack_lib"
  15580. cat >>confdefs.h <<_ACEOF
  15581. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15582. _ACEOF
  15583. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15584. case "$host" in
  15585. # On Solaris, jack must be linked deferred explicitly
  15586. # to prevent undefined symbol failures.
  15587. *-*-solaris*)
  15588. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15589. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15590. esac
  15591. else
  15592. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15593. SUMMARY_audio="${SUMMARY_audio} jack"
  15594. fi
  15595. have_audio=yes
  15596. fi
  15597. fi
  15598. }
  15599. CheckESD()
  15600. {
  15601. # Check whether --enable-esd was given.
  15602. if test "${enable_esd+set}" = set; then :
  15603. enableval=$enable_esd;
  15604. else
  15605. enable_esd=yes
  15606. fi
  15607. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15608. # Check whether --with-esd-prefix was given.
  15609. if test "${with_esd_prefix+set}" = set; then :
  15610. withval=$with_esd_prefix; esd_prefix="$withval"
  15611. else
  15612. esd_prefix=""
  15613. fi
  15614. # Check whether --with-esd-exec-prefix was given.
  15615. if test "${with_esd_exec_prefix+set}" = set; then :
  15616. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15617. else
  15618. esd_exec_prefix=""
  15619. fi
  15620. # Check whether --enable-esdtest was given.
  15621. if test "${enable_esdtest+set}" = set; then :
  15622. enableval=$enable_esdtest;
  15623. else
  15624. enable_esdtest=yes
  15625. fi
  15626. if test x$esd_exec_prefix != x ; then
  15627. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15628. if test x${ESD_CONFIG+set} != xset ; then
  15629. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15630. fi
  15631. fi
  15632. if test x$esd_prefix != x ; then
  15633. esd_args="$esd_args --prefix=$esd_prefix"
  15634. if test x${ESD_CONFIG+set} != xset ; then
  15635. ESD_CONFIG=$esd_prefix/bin/esd-config
  15636. fi
  15637. fi
  15638. # Extract the first word of "esd-config", so it can be a program name with args.
  15639. set dummy esd-config; ac_word=$2
  15640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15641. $as_echo_n "checking for $ac_word... " >&6; }
  15642. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15643. $as_echo_n "(cached) " >&6
  15644. else
  15645. case $ESD_CONFIG in
  15646. [\\/]* | ?:[\\/]*)
  15647. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15648. ;;
  15649. *)
  15650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15651. for as_dir in $PATH
  15652. do
  15653. IFS=$as_save_IFS
  15654. test -z "$as_dir" && as_dir=.
  15655. for ac_exec_ext in '' $ac_executable_extensions; do
  15656. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15657. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15659. break 2
  15660. fi
  15661. done
  15662. done
  15663. IFS=$as_save_IFS
  15664. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15665. ;;
  15666. esac
  15667. fi
  15668. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15669. if test -n "$ESD_CONFIG"; then
  15670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15671. $as_echo "$ESD_CONFIG" >&6; }
  15672. else
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15674. $as_echo "no" >&6; }
  15675. fi
  15676. min_esd_version=0.2.8
  15677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15678. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15679. no_esd=""
  15680. if test "$ESD_CONFIG" = "no" ; then
  15681. no_esd=yes
  15682. else
  15683. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15684. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15685. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15686. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15687. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15688. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15689. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15690. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15691. if test "x$enable_esdtest" = "xyes" ; then
  15692. ac_save_CFLAGS="$CFLAGS"
  15693. ac_save_LIBS="$LIBS"
  15694. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15695. LIBS="$LIBS $ESD_LIBS"
  15696. rm -f conf.esdtest
  15697. if test "$cross_compiling" = yes; then :
  15698. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15699. else
  15700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15701. /* end confdefs.h. */
  15702. #include <stdio.h>
  15703. #include <stdlib.h>
  15704. #include <string.h>
  15705. #include <esd.h>
  15706. char*
  15707. my_strdup (char *str)
  15708. {
  15709. char *new_str;
  15710. if (str)
  15711. {
  15712. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15713. strcpy (new_str, str);
  15714. }
  15715. else
  15716. new_str = NULL;
  15717. return new_str;
  15718. }
  15719. int main ()
  15720. {
  15721. int major, minor, micro;
  15722. char *tmp_version;
  15723. system ("touch conf.esdtest");
  15724. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15725. tmp_version = my_strdup("$min_esd_version");
  15726. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15727. printf("%s, bad version string\n", "$min_esd_version");
  15728. exit(1);
  15729. }
  15730. if (($esd_major_version > major) ||
  15731. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15732. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15733. {
  15734. return 0;
  15735. }
  15736. else
  15737. {
  15738. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15739. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15740. printf("*** best to upgrade to the required version.\n");
  15741. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15742. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15743. printf("*** config.cache before re-running configure\n");
  15744. return 1;
  15745. }
  15746. }
  15747. _ACEOF
  15748. if ac_fn_c_try_run "$LINENO"; then :
  15749. else
  15750. no_esd=yes
  15751. fi
  15752. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15753. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15754. fi
  15755. CFLAGS="$ac_save_CFLAGS"
  15756. LIBS="$ac_save_LIBS"
  15757. fi
  15758. fi
  15759. if test "x$no_esd" = x ; then
  15760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15761. $as_echo "yes" >&6; }
  15762. have_esd=yes
  15763. else
  15764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15765. $as_echo "no" >&6; }
  15766. if test "$ESD_CONFIG" = "no" ; then
  15767. echo "*** The esd-config script installed by ESD could not be found"
  15768. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15769. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15770. echo "*** full path to esd-config."
  15771. else
  15772. if test -f conf.esdtest ; then
  15773. :
  15774. else
  15775. echo "*** Could not run ESD test program, checking why..."
  15776. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15777. LIBS="$LIBS $ESD_LIBS"
  15778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15779. /* end confdefs.h. */
  15780. #include <stdio.h>
  15781. #include <esd.h>
  15782. int
  15783. main ()
  15784. {
  15785. return 0;
  15786. ;
  15787. return 0;
  15788. }
  15789. _ACEOF
  15790. if ac_fn_c_try_link "$LINENO"; then :
  15791. echo "*** The test program compiled, but did not run. This usually means"
  15792. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15793. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15794. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15795. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15796. echo "*** is required on your system"
  15797. echo "***"
  15798. echo "*** If you have an old version installed, it is best to remove it, although"
  15799. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15800. else
  15801. echo "*** The test program failed to compile or link. See the file config.log for the"
  15802. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15803. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15804. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15805. fi
  15806. rm -f core conftest.err conftest.$ac_objext \
  15807. conftest$ac_exeext conftest.$ac_ext
  15808. CFLAGS="$ac_save_CFLAGS"
  15809. LIBS="$ac_save_LIBS"
  15810. fi
  15811. fi
  15812. ESD_CFLAGS=""
  15813. ESD_LIBS=""
  15814. have_esd=no
  15815. fi
  15816. rm -f conf.esdtest
  15817. if test x$have_esd = xyes; then
  15818. # Check whether --enable-esd-shared was given.
  15819. if test "${enable_esd_shared+set}" = set; then :
  15820. enableval=$enable_esd_shared;
  15821. else
  15822. enable_esd_shared=yes
  15823. fi
  15824. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15825. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15826. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15827. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15828. if test x$have_loadso != xyes && \
  15829. test x$enable_esd_shared = xyes; then
  15830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15831. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15832. fi
  15833. if test x$have_loadso = xyes && \
  15834. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15835. echo "-- dynamic libesd -> $esd_lib"
  15836. cat >>confdefs.h <<_ACEOF
  15837. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15838. _ACEOF
  15839. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15840. else
  15841. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15842. SUMMARY_audio="${SUMMARY_audio} esd"
  15843. fi
  15844. have_audio=yes
  15845. fi
  15846. fi
  15847. }
  15848. CheckPulseAudio()
  15849. {
  15850. # Check whether --enable-pulseaudio was given.
  15851. if test "${enable_pulseaudio+set}" = set; then :
  15852. enableval=$enable_pulseaudio;
  15853. else
  15854. enable_pulseaudio=yes
  15855. fi
  15856. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15857. audio_pulseaudio=no
  15858. PULSEAUDIO_REQUIRED_VERSION=0.9
  15859. # Extract the first word of "pkg-config", so it can be a program name with args.
  15860. set dummy pkg-config; ac_word=$2
  15861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15862. $as_echo_n "checking for $ac_word... " >&6; }
  15863. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15864. $as_echo_n "(cached) " >&6
  15865. else
  15866. case $PKG_CONFIG in
  15867. [\\/]* | ?:[\\/]*)
  15868. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15869. ;;
  15870. *)
  15871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15872. for as_dir in $PATH
  15873. do
  15874. IFS=$as_save_IFS
  15875. test -z "$as_dir" && as_dir=.
  15876. for ac_exec_ext in '' $ac_executable_extensions; do
  15877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15878. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15880. break 2
  15881. fi
  15882. done
  15883. done
  15884. IFS=$as_save_IFS
  15885. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15886. ;;
  15887. esac
  15888. fi
  15889. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15890. if test -n "$PKG_CONFIG"; then
  15891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15892. $as_echo "$PKG_CONFIG" >&6; }
  15893. else
  15894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15895. $as_echo "no" >&6; }
  15896. fi
  15897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15898. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15899. if test x$PKG_CONFIG != xno; then
  15900. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15901. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15902. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15903. audio_pulseaudio=yes
  15904. fi
  15905. fi
  15906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15907. $as_echo "$audio_pulseaudio" >&6; }
  15908. if test x$audio_pulseaudio = xyes; then
  15909. # Check whether --enable-pulseaudio-shared was given.
  15910. if test "${enable_pulseaudio_shared+set}" = set; then :
  15911. enableval=$enable_pulseaudio_shared;
  15912. else
  15913. enable_pulseaudio_shared=yes
  15914. fi
  15915. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15916. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15917. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15918. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15919. if test x$have_loadso != xyes && \
  15920. test x$enable_pulseaudio_shared = xyes; then
  15921. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15922. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15923. fi
  15924. if test x$have_loadso = xyes && \
  15925. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15926. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15927. cat >>confdefs.h <<_ACEOF
  15928. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15929. _ACEOF
  15930. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15931. case "$host" in
  15932. # On Solaris, pulseaudio must be linked deferred explicitly
  15933. # to prevent undefined symbol failures.
  15934. *-*-solaris*)
  15935. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15937. esac
  15938. else
  15939. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15940. SUMMARY_audio="${SUMMARY_audio} pulse"
  15941. fi
  15942. have_audio=yes
  15943. fi
  15944. fi
  15945. }
  15946. CheckARTSC()
  15947. {
  15948. # Check whether --enable-arts was given.
  15949. if test "${enable_arts+set}" = set; then :
  15950. enableval=$enable_arts;
  15951. else
  15952. enable_arts=yes
  15953. fi
  15954. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15955. # Extract the first word of "artsc-config", so it can be a program name with args.
  15956. set dummy artsc-config; ac_word=$2
  15957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15958. $as_echo_n "checking for $ac_word... " >&6; }
  15959. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15960. $as_echo_n "(cached) " >&6
  15961. else
  15962. case $ARTSCONFIG in
  15963. [\\/]* | ?:[\\/]*)
  15964. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15965. ;;
  15966. *)
  15967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15968. for as_dir in $PATH
  15969. do
  15970. IFS=$as_save_IFS
  15971. test -z "$as_dir" && as_dir=.
  15972. for ac_exec_ext in '' $ac_executable_extensions; do
  15973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15974. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15976. break 2
  15977. fi
  15978. done
  15979. done
  15980. IFS=$as_save_IFS
  15981. ;;
  15982. esac
  15983. fi
  15984. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15985. if test -n "$ARTSCONFIG"; then
  15986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15987. $as_echo "$ARTSCONFIG" >&6; }
  15988. else
  15989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15990. $as_echo "no" >&6; }
  15991. fi
  15992. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15993. : # arts isn't installed
  15994. else
  15995. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15996. ARTS_LIBS=`$ARTSCONFIG --libs`
  15997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15998. $as_echo_n "checking for aRts development environment... " >&6; }
  15999. audio_arts=no
  16000. save_CFLAGS="$CFLAGS"
  16001. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  16002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16003. /* end confdefs.h. */
  16004. #include <artsc.h>
  16005. int
  16006. main ()
  16007. {
  16008. arts_stream_t stream;
  16009. ;
  16010. return 0;
  16011. }
  16012. _ACEOF
  16013. if ac_fn_c_try_compile "$LINENO"; then :
  16014. audio_arts=yes
  16015. fi
  16016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16017. CFLAGS="$save_CFLAGS"
  16018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  16019. $as_echo "$audio_arts" >&6; }
  16020. if test x$audio_arts = xyes; then
  16021. # Check whether --enable-arts-shared was given.
  16022. if test "${enable_arts_shared+set}" = set; then :
  16023. enableval=$enable_arts_shared;
  16024. else
  16025. enable_arts_shared=yes
  16026. fi
  16027. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16028. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  16029. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  16030. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  16031. if test x$have_loadso != xyes && \
  16032. test x$enable_arts_shared = xyes; then
  16033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  16034. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  16035. fi
  16036. if test x$have_loadso = xyes && \
  16037. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  16038. echo "-- dynamic libartsc -> $arts_lib"
  16039. cat >>confdefs.h <<_ACEOF
  16040. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  16041. _ACEOF
  16042. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  16043. else
  16044. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  16045. SUMMARY_audio="${SUMMARY_audio} arts"
  16046. fi
  16047. have_audio=yes
  16048. fi
  16049. fi
  16050. fi
  16051. }
  16052. CheckNAS()
  16053. {
  16054. # Check whether --enable-nas was given.
  16055. if test "${enable_nas+set}" = set; then :
  16056. enableval=$enable_nas;
  16057. else
  16058. enable_nas=yes
  16059. fi
  16060. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  16061. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  16062. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  16063. have_nas_hdr=yes
  16064. fi
  16065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  16066. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  16067. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  16068. $as_echo_n "(cached) " >&6
  16069. else
  16070. ac_check_lib_save_LIBS=$LIBS
  16071. LIBS="-laudio $LIBS"
  16072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16073. /* end confdefs.h. */
  16074. /* Override any GCC internal prototype to avoid an error.
  16075. Use char because int might match the return type of a GCC
  16076. builtin and then its argument prototype would still apply. */
  16077. #ifdef __cplusplus
  16078. extern "C"
  16079. #endif
  16080. char AuOpenServer ();
  16081. int
  16082. main ()
  16083. {
  16084. return AuOpenServer ();
  16085. ;
  16086. return 0;
  16087. }
  16088. _ACEOF
  16089. if ac_fn_c_try_link "$LINENO"; then :
  16090. ac_cv_lib_audio_AuOpenServer=yes
  16091. else
  16092. ac_cv_lib_audio_AuOpenServer=no
  16093. fi
  16094. rm -f core conftest.err conftest.$ac_objext \
  16095. conftest$ac_exeext conftest.$ac_ext
  16096. LIBS=$ac_check_lib_save_LIBS
  16097. fi
  16098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16099. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16100. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16101. have_nas_lib=yes
  16102. fi
  16103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16104. $as_echo_n "checking for NAS audio support... " >&6; }
  16105. have_nas=no
  16106. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16107. have_nas=yes
  16108. NAS_LIBS="-laudio"
  16109. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16110. have_nas=yes
  16111. NAS_CFLAGS="-I/usr/X11R6/include/"
  16112. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16113. fi
  16114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16115. $as_echo "$have_nas" >&6; }
  16116. if test x$have_nas = xyes; then
  16117. # Check whether --enable-nas-shared was given.
  16118. if test "${enable_nas_shared+set}" = set; then :
  16119. enableval=$enable_nas_shared;
  16120. else
  16121. enable_nas_shared=yes
  16122. fi
  16123. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16124. if test x$have_loadso != xyes && \
  16125. test x$enable_nas_shared = xyes; then
  16126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16127. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16128. fi
  16129. if test x$have_loadso = xyes && \
  16130. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16131. echo "-- dynamic libaudio -> $nas_lib"
  16132. cat >>confdefs.h <<_ACEOF
  16133. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16134. _ACEOF
  16135. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16136. else
  16137. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16138. SUMMARY_audio="${SUMMARY_audio} nas"
  16139. fi
  16140. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16141. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16142. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16143. have_audio=yes
  16144. fi
  16145. fi
  16146. }
  16147. CheckSNDIO()
  16148. {
  16149. # Check whether --enable-sndio was given.
  16150. if test "${enable_sndio+set}" = set; then :
  16151. enableval=$enable_sndio;
  16152. else
  16153. enable_sndio=yes
  16154. fi
  16155. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16156. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16157. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16158. have_sndio_hdr=yes
  16159. fi
  16160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16161. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16162. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16163. $as_echo_n "(cached) " >&6
  16164. else
  16165. ac_check_lib_save_LIBS=$LIBS
  16166. LIBS="-lsndio $LIBS"
  16167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16168. /* end confdefs.h. */
  16169. /* Override any GCC internal prototype to avoid an error.
  16170. Use char because int might match the return type of a GCC
  16171. builtin and then its argument prototype would still apply. */
  16172. #ifdef __cplusplus
  16173. extern "C"
  16174. #endif
  16175. char sio_open ();
  16176. int
  16177. main ()
  16178. {
  16179. return sio_open ();
  16180. ;
  16181. return 0;
  16182. }
  16183. _ACEOF
  16184. if ac_fn_c_try_link "$LINENO"; then :
  16185. ac_cv_lib_sndio_sio_open=yes
  16186. else
  16187. ac_cv_lib_sndio_sio_open=no
  16188. fi
  16189. rm -f core conftest.err conftest.$ac_objext \
  16190. conftest$ac_exeext conftest.$ac_ext
  16191. LIBS=$ac_check_lib_save_LIBS
  16192. fi
  16193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16194. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16195. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16196. have_sndio_lib=yes
  16197. fi
  16198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16199. $as_echo_n "checking for sndio audio support... " >&6; }
  16200. have_sndio=no
  16201. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16202. have_sndio=yes
  16203. SNDIO_LIBS="-lsndio"
  16204. fi
  16205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16206. $as_echo "$have_sndio" >&6; }
  16207. if test x$have_sndio = xyes; then
  16208. # Check whether --enable-sndio-shared was given.
  16209. if test "${enable_sndio_shared+set}" = set; then :
  16210. enableval=$enable_sndio_shared;
  16211. else
  16212. enable_sndio_shared=yes
  16213. fi
  16214. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16215. if test x$have_loadso != xyes && \
  16216. test x$enable_sndio_shared = xyes; then
  16217. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16218. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16219. fi
  16220. if test x$have_loadso = xyes && \
  16221. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16222. echo "-- dynamic libsndio -> $sndio_lib"
  16223. cat >>confdefs.h <<_ACEOF
  16224. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16225. _ACEOF
  16226. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16227. else
  16228. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16229. SUMMARY_audio="${SUMMARY_audio} sndio"
  16230. fi
  16231. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16232. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16233. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16234. have_audio=yes
  16235. fi
  16236. fi
  16237. }
  16238. CheckFusionSound()
  16239. {
  16240. # Check whether --enable-fusionsound was given.
  16241. if test "${enable_fusionsound+set}" = set; then :
  16242. enableval=$enable_fusionsound;
  16243. else
  16244. enable_fusionsound=no
  16245. fi
  16246. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16247. fusionsound=no
  16248. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16249. # Extract the first word of "pkg-config", so it can be a program name with args.
  16250. set dummy pkg-config; ac_word=$2
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16252. $as_echo_n "checking for $ac_word... " >&6; }
  16253. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16254. $as_echo_n "(cached) " >&6
  16255. else
  16256. case $PKG_CONFIG in
  16257. [\\/]* | ?:[\\/]*)
  16258. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16259. ;;
  16260. *)
  16261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16262. for as_dir in $PATH
  16263. do
  16264. IFS=$as_save_IFS
  16265. test -z "$as_dir" && as_dir=.
  16266. for ac_exec_ext in '' $ac_executable_extensions; do
  16267. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16268. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16269. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16270. break 2
  16271. fi
  16272. done
  16273. done
  16274. IFS=$as_save_IFS
  16275. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16276. ;;
  16277. esac
  16278. fi
  16279. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16280. if test -n "$PKG_CONFIG"; then
  16281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16282. $as_echo "$PKG_CONFIG" >&6; }
  16283. else
  16284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16285. $as_echo "no" >&6; }
  16286. fi
  16287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16288. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16289. if test x$PKG_CONFIG != xno; then
  16290. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16291. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16292. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16293. fusionsound=yes
  16294. fi
  16295. fi
  16296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16297. $as_echo "$fusionsound" >&6; }
  16298. if test x$fusionsound = xyes; then
  16299. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16300. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16301. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16302. # Check whether --enable-fusionsound-shared was given.
  16303. if test "${enable_fusionsound_shared+set}" = set; then :
  16304. enableval=$enable_fusionsound_shared;
  16305. else
  16306. enable_fusionsound_shared=yes
  16307. fi
  16308. fusionsound_shared=no
  16309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16310. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16311. if test x$have_loadso != xyes && \
  16312. test x$enable_fusionsound_shared = xyes; then
  16313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16314. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16315. fi
  16316. if test x$have_loadso = xyes && \
  16317. test x$enable_fusionsound_shared = xyes; then
  16318. cat >>confdefs.h <<_ACEOF
  16319. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16320. _ACEOF
  16321. fusionsound_shared=yes
  16322. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16323. else
  16324. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16325. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16326. fi
  16327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16328. $as_echo "$fusionsound_shared" >&6; }
  16329. have_audio=yes
  16330. fi
  16331. fi
  16332. }
  16333. CheckDiskAudio()
  16334. {
  16335. # Check whether --enable-diskaudio was given.
  16336. if test "${enable_diskaudio+set}" = set; then :
  16337. enableval=$enable_diskaudio;
  16338. else
  16339. enable_diskaudio=yes
  16340. fi
  16341. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16342. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16343. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16344. SUMMARY_audio="${SUMMARY_audio} disk"
  16345. fi
  16346. }
  16347. CheckDummyAudio()
  16348. {
  16349. # Check whether --enable-dummyaudio was given.
  16350. if test "${enable_dummyaudio+set}" = set; then :
  16351. enableval=$enable_dummyaudio;
  16352. else
  16353. enable_dummyaudio=yes
  16354. fi
  16355. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16356. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16357. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16358. SUMMARY_audio="${SUMMARY_audio} dummy"
  16359. fi
  16360. }
  16361. CheckLibSampleRate()
  16362. {
  16363. # Check whether --enable-libsamplerate was given.
  16364. if test "${enable_libsamplerate+set}" = set; then :
  16365. enableval=$enable_libsamplerate;
  16366. else
  16367. enable_libsamplerate=yes
  16368. fi
  16369. if test x$enable_libsamplerate = xyes; then
  16370. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16371. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16372. have_samplerate_h_hdr=yes
  16373. else
  16374. have_samplerate_h_hdr=no
  16375. fi
  16376. if test x$have_samplerate_h_hdr = xyes; then
  16377. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16378. # Check whether --enable-libsamplerate-shared was given.
  16379. if test "${enable_libsamplerate_shared+set}" = set; then :
  16380. enableval=$enable_libsamplerate_shared;
  16381. else
  16382. enable_libsamplerate_shared=yes
  16383. fi
  16384. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16385. if test x$have_loadso != xyes && \
  16386. test x$enable_libsamplerate_shared = xyes; then
  16387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16388. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16389. fi
  16390. if test x$have_loadso = xyes && \
  16391. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16392. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16393. cat >>confdefs.h <<_ACEOF
  16394. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16395. _ACEOF
  16396. else
  16397. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16398. fi
  16399. fi
  16400. fi
  16401. }
  16402. CheckVisibilityHidden()
  16403. {
  16404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16405. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16406. have_gcc_fvisibility=no
  16407. visibility_CFLAGS="-fvisibility=hidden"
  16408. save_CFLAGS="$CFLAGS"
  16409. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16411. /* end confdefs.h. */
  16412. #if !defined(__GNUC__) || __GNUC__ < 4
  16413. #error SDL only uses visibility attributes in GCC 4 or newer
  16414. #endif
  16415. int
  16416. main ()
  16417. {
  16418. ;
  16419. return 0;
  16420. }
  16421. _ACEOF
  16422. if ac_fn_c_try_compile "$LINENO"; then :
  16423. have_gcc_fvisibility=yes
  16424. fi
  16425. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16427. $as_echo "$have_gcc_fvisibility" >&6; }
  16428. CFLAGS="$save_CFLAGS"
  16429. if test x$have_gcc_fvisibility = xyes; then
  16430. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16431. fi
  16432. }
  16433. CheckStackBoundary()
  16434. {
  16435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16436. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16437. have_gcc_preferred_stack_boundary=no
  16438. save_CFLAGS="$CFLAGS"
  16439. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16441. /* end confdefs.h. */
  16442. int x = 0;
  16443. int
  16444. main ()
  16445. {
  16446. ;
  16447. return 0;
  16448. }
  16449. _ACEOF
  16450. if ac_fn_c_try_compile "$LINENO"; then :
  16451. have_gcc_preferred_stack_boundary=yes
  16452. fi
  16453. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16455. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16456. CFLAGS="$save_CFLAGS"
  16457. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16458. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16459. fi
  16460. }
  16461. CheckDeclarationAfterStatement()
  16462. {
  16463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16464. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16465. have_gcc_declaration_after_statement=no
  16466. save_CFLAGS="$CFLAGS"
  16467. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16469. /* end confdefs.h. */
  16470. int x = 0;
  16471. int
  16472. main ()
  16473. {
  16474. ;
  16475. return 0;
  16476. }
  16477. _ACEOF
  16478. if ac_fn_c_try_compile "$LINENO"; then :
  16479. have_gcc_declaration_after_statement=yes
  16480. fi
  16481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16483. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16484. CFLAGS="$save_CFLAGS"
  16485. if test x$have_gcc_declaration_after_statement = xyes; then
  16486. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16487. fi
  16488. }
  16489. CheckWarnAll()
  16490. {
  16491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16492. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16493. have_gcc_Wall=no
  16494. save_CFLAGS="$CFLAGS"
  16495. CFLAGS="$save_CFLAGS -Wall"
  16496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16497. /* end confdefs.h. */
  16498. int x = 0;
  16499. int
  16500. main ()
  16501. {
  16502. ;
  16503. return 0;
  16504. }
  16505. _ACEOF
  16506. if ac_fn_c_try_compile "$LINENO"; then :
  16507. have_gcc_Wall=yes
  16508. fi
  16509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16511. $as_echo "$have_gcc_Wall" >&6; }
  16512. CFLAGS="$save_CFLAGS"
  16513. if test x$have_gcc_Wall = xyes; then
  16514. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16516. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16517. need_gcc_Wno_multichar=no
  16518. case "$host" in
  16519. *-*-haiku*)
  16520. need_gcc_Wno_multichar=yes
  16521. ;;
  16522. esac
  16523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16524. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16525. if test x$need_gcc_Wno_multichar = xyes; then
  16526. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16527. fi
  16528. fi
  16529. }
  16530. CheckWayland()
  16531. {
  16532. # Check whether --enable-video-wayland was given.
  16533. if test "${enable_video_wayland+set}" = set; then :
  16534. enableval=$enable_video_wayland;
  16535. else
  16536. enable_video_wayland=yes
  16537. fi
  16538. # Check whether --enable-video-wayland-qt-touch was given.
  16539. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16540. enableval=$enable_video_wayland_qt_touch;
  16541. else
  16542. enable_video_wayland_qt_touch=yes
  16543. fi
  16544. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16545. # Extract the first word of "pkg-config", so it can be a program name with args.
  16546. set dummy pkg-config; ac_word=$2
  16547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16548. $as_echo_n "checking for $ac_word... " >&6; }
  16549. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16550. $as_echo_n "(cached) " >&6
  16551. else
  16552. case $PKG_CONFIG in
  16553. [\\/]* | ?:[\\/]*)
  16554. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16555. ;;
  16556. *)
  16557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16558. for as_dir in $PATH
  16559. do
  16560. IFS=$as_save_IFS
  16561. test -z "$as_dir" && as_dir=.
  16562. for ac_exec_ext in '' $ac_executable_extensions; do
  16563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16564. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16566. break 2
  16567. fi
  16568. done
  16569. done
  16570. IFS=$as_save_IFS
  16571. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16572. ;;
  16573. esac
  16574. fi
  16575. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16576. if test -n "$PKG_CONFIG"; then
  16577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16578. $as_echo "$PKG_CONFIG" >&6; }
  16579. else
  16580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16581. $as_echo "no" >&6; }
  16582. fi
  16583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16584. $as_echo_n "checking for Wayland support... " >&6; }
  16585. video_wayland=no
  16586. if test x$PKG_CONFIG != xno && \
  16587. test x$video_opengl_egl = xyes && \
  16588. test x$video_opengles_v2 = xyes; then
  16589. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16590. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16591. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16592. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16593. video_wayland=yes
  16594. fi
  16595. fi
  16596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16597. $as_echo "$video_wayland" >&6; }
  16598. if test x$video_wayland = xyes; then
  16599. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16600. if test x$enable_video_wayland_qt_touch = xyes; then
  16601. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16602. fi
  16603. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16604. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16605. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16606. # Check whether --enable-wayland-shared was given.
  16607. if test "${enable_wayland_shared+set}" = set; then :
  16608. enableval=$enable_wayland_shared;
  16609. else
  16610. enable_wayland_shared=maybe
  16611. fi
  16612. case "$host" in
  16613. *)
  16614. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16615. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16616. if test x$wayland_egl_lib = x; then
  16617. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16618. fi
  16619. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16620. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16621. ;;
  16622. esac
  16623. if test x$enable_wayland_shared = xmaybe; then
  16624. enable_wayland_shared=yes
  16625. fi
  16626. if test x$have_loadso != xyes && \
  16627. test x$enable_wayland_shared = xyes; then
  16628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16629. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16630. enable_wayland_shared=no
  16631. fi
  16632. if test x$have_loadso = xyes && \
  16633. test x$enable_wayland_shared = xyes && \
  16634. test x$wayland_client_lib != x && \
  16635. test x$wayland_egl_lib != x && \
  16636. test x$wayland_cursor_lib != x && \
  16637. test x$xkbcommon_lib != x; then
  16638. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16639. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16640. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16641. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16642. cat >>confdefs.h <<_ACEOF
  16643. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16644. _ACEOF
  16645. cat >>confdefs.h <<_ACEOF
  16646. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16647. _ACEOF
  16648. cat >>confdefs.h <<_ACEOF
  16649. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16650. _ACEOF
  16651. cat >>confdefs.h <<_ACEOF
  16652. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16653. _ACEOF
  16654. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16655. else
  16656. enable_wayland_shared=no
  16657. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16658. SUMMARY_video="${SUMMARY_video} wayland"
  16659. fi
  16660. have_video=yes
  16661. fi
  16662. fi
  16663. }
  16664. CheckNativeClient()
  16665. {
  16666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16667. /* end confdefs.h. */
  16668. #if !defined(__native_client__)
  16669. #error "NO NACL"
  16670. #endif
  16671. int
  16672. main ()
  16673. {
  16674. ;
  16675. return 0;
  16676. }
  16677. _ACEOF
  16678. if ac_fn_c_try_compile "$LINENO"; then :
  16679. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16680. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16681. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16682. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16683. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16684. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16685. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16686. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16687. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16688. SUMMARY_audio="${SUMMARY_audio} nacl"
  16689. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16690. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16691. fi
  16692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16693. }
  16694. CheckRPI()
  16695. {
  16696. # Check whether --enable-video-rpi was given.
  16697. if test "${enable_video_rpi+set}" = set; then :
  16698. enableval=$enable_video_rpi;
  16699. else
  16700. enable_video_rpi=yes
  16701. fi
  16702. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16703. # Extract the first word of "pkg-config", so it can be a program name with args.
  16704. set dummy pkg-config; ac_word=$2
  16705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16706. $as_echo_n "checking for $ac_word... " >&6; }
  16707. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16708. $as_echo_n "(cached) " >&6
  16709. else
  16710. case $PKG_CONFIG in
  16711. [\\/]* | ?:[\\/]*)
  16712. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16713. ;;
  16714. *)
  16715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16716. for as_dir in $PATH
  16717. do
  16718. IFS=$as_save_IFS
  16719. test -z "$as_dir" && as_dir=.
  16720. for ac_exec_ext in '' $ac_executable_extensions; do
  16721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16722. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16724. break 2
  16725. fi
  16726. done
  16727. done
  16728. IFS=$as_save_IFS
  16729. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16730. ;;
  16731. esac
  16732. fi
  16733. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16734. if test -n "$PKG_CONFIG"; then
  16735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16736. $as_echo "$PKG_CONFIG" >&6; }
  16737. else
  16738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16739. $as_echo "no" >&6; }
  16740. fi
  16741. if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
  16742. RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
  16743. RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
  16744. elif test x$ARCH = xnetbsd; then
  16745. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16746. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16747. else
  16748. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16749. RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  16750. fi
  16751. # Save the original compiler flags and libraries
  16752. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16753. # Add the Raspberry Pi compiler flags and libraries
  16754. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16756. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16757. have_video_rpi=no
  16758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16759. /* end confdefs.h. */
  16760. #include <bcm_host.h>
  16761. int
  16762. main ()
  16763. {
  16764. bcm_host_init();
  16765. ;
  16766. return 0;
  16767. }
  16768. _ACEOF
  16769. if ac_fn_c_try_link "$LINENO"; then :
  16770. have_video_rpi=yes
  16771. fi
  16772. rm -f core conftest.err conftest.$ac_objext \
  16773. conftest$ac_exeext conftest.$ac_ext
  16774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16775. $as_echo "$have_video_rpi" >&6; }
  16776. # Restore the compiler flags and libraries
  16777. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16778. if test x$have_video_rpi = xyes; then
  16779. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16780. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16781. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16782. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16783. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16784. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16785. SUMMARY_video="${SUMMARY_video} rpi"
  16786. fi
  16787. fi
  16788. }
  16789. CheckX11()
  16790. {
  16791. # Check whether --enable-video-x11 was given.
  16792. if test "${enable_video_x11+set}" = set; then :
  16793. enableval=$enable_video_x11;
  16794. else
  16795. enable_video_x11=yes
  16796. fi
  16797. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16798. case "$host" in
  16799. *-*-darwin*)
  16800. # This isn't necessary for X11, but fixes GLX detection
  16801. if test "x$x_includes" = xNONE && \
  16802. test "x$x_libraries" = xNONE && \
  16803. test -d /usr/X11R6/include && \
  16804. test -d /usr/X11R6/lib; then
  16805. x_includes="/usr/X11R6/include"
  16806. x_libraries="/usr/X11R6/lib"
  16807. fi
  16808. ;;
  16809. esac
  16810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16811. $as_echo_n "checking for X... " >&6; }
  16812. # Check whether --with-x was given.
  16813. if test "${with_x+set}" = set; then :
  16814. withval=$with_x;
  16815. fi
  16816. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16817. if test "x$with_x" = xno; then
  16818. # The user explicitly disabled X.
  16819. have_x=disabled
  16820. else
  16821. case $x_includes,$x_libraries in #(
  16822. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16823. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16824. $as_echo_n "(cached) " >&6
  16825. else
  16826. # One or both of the vars are not set, and there is no cached value.
  16827. ac_x_includes=no ac_x_libraries=no
  16828. rm -f -r conftest.dir
  16829. if mkdir conftest.dir; then
  16830. cd conftest.dir
  16831. cat >Imakefile <<'_ACEOF'
  16832. incroot:
  16833. @echo incroot='${INCROOT}'
  16834. usrlibdir:
  16835. @echo usrlibdir='${USRLIBDIR}'
  16836. libdir:
  16837. @echo libdir='${LIBDIR}'
  16838. _ACEOF
  16839. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16840. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16841. for ac_var in incroot usrlibdir libdir; do
  16842. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16843. done
  16844. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16845. for ac_extension in a so sl dylib la dll; do
  16846. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16847. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16848. ac_im_usrlibdir=$ac_im_libdir; break
  16849. fi
  16850. done
  16851. # Screen out bogus values from the imake configuration. They are
  16852. # bogus both because they are the default anyway, and because
  16853. # using them would break gcc on systems where it needs fixed includes.
  16854. case $ac_im_incroot in
  16855. /usr/include) ac_x_includes= ;;
  16856. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16857. esac
  16858. case $ac_im_usrlibdir in
  16859. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16860. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16861. esac
  16862. fi
  16863. cd ..
  16864. rm -f -r conftest.dir
  16865. fi
  16866. # Standard set of common directories for X headers.
  16867. # Check X11 before X11Rn because it is often a symlink to the current release.
  16868. ac_x_header_dirs='
  16869. /usr/X11/include
  16870. /usr/X11R7/include
  16871. /usr/X11R6/include
  16872. /usr/X11R5/include
  16873. /usr/X11R4/include
  16874. /usr/include/X11
  16875. /usr/include/X11R7
  16876. /usr/include/X11R6
  16877. /usr/include/X11R5
  16878. /usr/include/X11R4
  16879. /usr/local/X11/include
  16880. /usr/local/X11R7/include
  16881. /usr/local/X11R6/include
  16882. /usr/local/X11R5/include
  16883. /usr/local/X11R4/include
  16884. /usr/local/include/X11
  16885. /usr/local/include/X11R7
  16886. /usr/local/include/X11R6
  16887. /usr/local/include/X11R5
  16888. /usr/local/include/X11R4
  16889. /usr/X386/include
  16890. /usr/x386/include
  16891. /usr/XFree86/include/X11
  16892. /usr/include
  16893. /usr/local/include
  16894. /usr/unsupported/include
  16895. /usr/athena/include
  16896. /usr/local/x11r5/include
  16897. /usr/lpp/Xamples/include
  16898. /usr/openwin/include
  16899. /usr/openwin/share/include'
  16900. if test "$ac_x_includes" = no; then
  16901. # Guess where to find include files, by looking for Xlib.h.
  16902. # First, try using that file with no special directory specified.
  16903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16904. /* end confdefs.h. */
  16905. #include <X11/Xlib.h>
  16906. _ACEOF
  16907. if ac_fn_c_try_cpp "$LINENO"; then :
  16908. # We can compile using X headers with no special include directory.
  16909. ac_x_includes=
  16910. else
  16911. for ac_dir in $ac_x_header_dirs; do
  16912. if test -r "$ac_dir/X11/Xlib.h"; then
  16913. ac_x_includes=$ac_dir
  16914. break
  16915. fi
  16916. done
  16917. fi
  16918. rm -f conftest.err conftest.i conftest.$ac_ext
  16919. fi # $ac_x_includes = no
  16920. if test "$ac_x_libraries" = no; then
  16921. # Check for the libraries.
  16922. # See if we find them without any special options.
  16923. # Don't add to $LIBS permanently.
  16924. ac_save_LIBS=$LIBS
  16925. LIBS="-lX11 $LIBS"
  16926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16927. /* end confdefs.h. */
  16928. #include <X11/Xlib.h>
  16929. int
  16930. main ()
  16931. {
  16932. XrmInitialize ()
  16933. ;
  16934. return 0;
  16935. }
  16936. _ACEOF
  16937. if ac_fn_c_try_link "$LINENO"; then :
  16938. LIBS=$ac_save_LIBS
  16939. # We can link X programs with no special library path.
  16940. ac_x_libraries=
  16941. else
  16942. LIBS=$ac_save_LIBS
  16943. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16944. do
  16945. # Don't even attempt the hair of trying to link an X program!
  16946. for ac_extension in a so sl dylib la dll; do
  16947. if test -r "$ac_dir/libX11.$ac_extension"; then
  16948. ac_x_libraries=$ac_dir
  16949. break 2
  16950. fi
  16951. done
  16952. done
  16953. fi
  16954. rm -f core conftest.err conftest.$ac_objext \
  16955. conftest$ac_exeext conftest.$ac_ext
  16956. fi # $ac_x_libraries = no
  16957. case $ac_x_includes,$ac_x_libraries in #(
  16958. no,* | *,no | *\'*)
  16959. # Didn't find X, or a directory has "'" in its name.
  16960. ac_cv_have_x="have_x=no";; #(
  16961. *)
  16962. # Record where we found X for the cache.
  16963. ac_cv_have_x="have_x=yes\
  16964. ac_x_includes='$ac_x_includes'\
  16965. ac_x_libraries='$ac_x_libraries'"
  16966. esac
  16967. fi
  16968. ;; #(
  16969. *) have_x=yes;;
  16970. esac
  16971. eval "$ac_cv_have_x"
  16972. fi # $with_x != no
  16973. if test "$have_x" != yes; then
  16974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16975. $as_echo "$have_x" >&6; }
  16976. no_x=yes
  16977. else
  16978. # If each of the values was on the command line, it overrides each guess.
  16979. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  16980. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  16981. # Update the cache value to reflect the command line values.
  16982. ac_cv_have_x="have_x=yes\
  16983. ac_x_includes='$x_includes'\
  16984. ac_x_libraries='$x_libraries'"
  16985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  16986. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  16987. fi
  16988. if test "$no_x" = yes; then
  16989. # Not all programs may use this symbol, but it does not hurt to define it.
  16990. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  16991. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  16992. else
  16993. if test -n "$x_includes"; then
  16994. X_CFLAGS="$X_CFLAGS -I$x_includes"
  16995. fi
  16996. # It would also be nice to do this for all -L options, not just this one.
  16997. if test -n "$x_libraries"; then
  16998. X_LIBS="$X_LIBS -L$x_libraries"
  16999. # For Solaris; some versions of Sun CC require a space after -R and
  17000. # others require no space. Words are not sufficient . . . .
  17001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17002. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17003. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17004. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17005. ac_c_werror_flag=yes
  17006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17007. /* end confdefs.h. */
  17008. int
  17009. main ()
  17010. {
  17011. ;
  17012. return 0;
  17013. }
  17014. _ACEOF
  17015. if ac_fn_c_try_link "$LINENO"; then :
  17016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17017. $as_echo "no" >&6; }
  17018. X_LIBS="$X_LIBS -R$x_libraries"
  17019. else
  17020. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17022. /* end confdefs.h. */
  17023. int
  17024. main ()
  17025. {
  17026. ;
  17027. return 0;
  17028. }
  17029. _ACEOF
  17030. if ac_fn_c_try_link "$LINENO"; then :
  17031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17032. $as_echo "yes" >&6; }
  17033. X_LIBS="$X_LIBS -R $x_libraries"
  17034. else
  17035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17036. $as_echo "neither works" >&6; }
  17037. fi
  17038. rm -f core conftest.err conftest.$ac_objext \
  17039. conftest$ac_exeext conftest.$ac_ext
  17040. fi
  17041. rm -f core conftest.err conftest.$ac_objext \
  17042. conftest$ac_exeext conftest.$ac_ext
  17043. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17044. LIBS=$ac_xsave_LIBS
  17045. fi
  17046. # Check for system-dependent libraries X programs must link with.
  17047. # Do this before checking for the system-independent R6 libraries
  17048. # (-lICE), since we may need -lsocket or whatever for X linking.
  17049. if test "$ISC" = yes; then
  17050. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17051. else
  17052. # Martyn Johnson says this is needed for Ultrix, if the X
  17053. # libraries were built with DECnet support. And Karl Berry says
  17054. # the Alpha needs dnet_stub (dnet does not exist).
  17055. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17057. /* end confdefs.h. */
  17058. /* Override any GCC internal prototype to avoid an error.
  17059. Use char because int might match the return type of a GCC
  17060. builtin and then its argument prototype would still apply. */
  17061. #ifdef __cplusplus
  17062. extern "C"
  17063. #endif
  17064. char XOpenDisplay ();
  17065. int
  17066. main ()
  17067. {
  17068. return XOpenDisplay ();
  17069. ;
  17070. return 0;
  17071. }
  17072. _ACEOF
  17073. if ac_fn_c_try_link "$LINENO"; then :
  17074. else
  17075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17076. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17077. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17078. $as_echo_n "(cached) " >&6
  17079. else
  17080. ac_check_lib_save_LIBS=$LIBS
  17081. LIBS="-ldnet $LIBS"
  17082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17083. /* end confdefs.h. */
  17084. /* Override any GCC internal prototype to avoid an error.
  17085. Use char because int might match the return type of a GCC
  17086. builtin and then its argument prototype would still apply. */
  17087. #ifdef __cplusplus
  17088. extern "C"
  17089. #endif
  17090. char dnet_ntoa ();
  17091. int
  17092. main ()
  17093. {
  17094. return dnet_ntoa ();
  17095. ;
  17096. return 0;
  17097. }
  17098. _ACEOF
  17099. if ac_fn_c_try_link "$LINENO"; then :
  17100. ac_cv_lib_dnet_dnet_ntoa=yes
  17101. else
  17102. ac_cv_lib_dnet_dnet_ntoa=no
  17103. fi
  17104. rm -f core conftest.err conftest.$ac_objext \
  17105. conftest$ac_exeext conftest.$ac_ext
  17106. LIBS=$ac_check_lib_save_LIBS
  17107. fi
  17108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17109. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17110. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17111. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17112. fi
  17113. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17115. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17116. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17117. $as_echo_n "(cached) " >&6
  17118. else
  17119. ac_check_lib_save_LIBS=$LIBS
  17120. LIBS="-ldnet_stub $LIBS"
  17121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17122. /* end confdefs.h. */
  17123. /* Override any GCC internal prototype to avoid an error.
  17124. Use char because int might match the return type of a GCC
  17125. builtin and then its argument prototype would still apply. */
  17126. #ifdef __cplusplus
  17127. extern "C"
  17128. #endif
  17129. char dnet_ntoa ();
  17130. int
  17131. main ()
  17132. {
  17133. return dnet_ntoa ();
  17134. ;
  17135. return 0;
  17136. }
  17137. _ACEOF
  17138. if ac_fn_c_try_link "$LINENO"; then :
  17139. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17140. else
  17141. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17142. fi
  17143. rm -f core conftest.err conftest.$ac_objext \
  17144. conftest$ac_exeext conftest.$ac_ext
  17145. LIBS=$ac_check_lib_save_LIBS
  17146. fi
  17147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17148. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17149. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17150. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17151. fi
  17152. fi
  17153. fi
  17154. rm -f core conftest.err conftest.$ac_objext \
  17155. conftest$ac_exeext conftest.$ac_ext
  17156. LIBS="$ac_xsave_LIBS"
  17157. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17158. # to get the SysV transport functions.
  17159. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17160. # needs -lnsl.
  17161. # The nsl library prevents programs from opening the X display
  17162. # on Irix 5.2, according to T.E. Dickey.
  17163. # The functions gethostbyname, getservbyname, and inet_addr are
  17164. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17165. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17166. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17167. fi
  17168. if test $ac_cv_func_gethostbyname = no; then
  17169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17170. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17171. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17172. $as_echo_n "(cached) " >&6
  17173. else
  17174. ac_check_lib_save_LIBS=$LIBS
  17175. LIBS="-lnsl $LIBS"
  17176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17177. /* end confdefs.h. */
  17178. /* Override any GCC internal prototype to avoid an error.
  17179. Use char because int might match the return type of a GCC
  17180. builtin and then its argument prototype would still apply. */
  17181. #ifdef __cplusplus
  17182. extern "C"
  17183. #endif
  17184. char gethostbyname ();
  17185. int
  17186. main ()
  17187. {
  17188. return gethostbyname ();
  17189. ;
  17190. return 0;
  17191. }
  17192. _ACEOF
  17193. if ac_fn_c_try_link "$LINENO"; then :
  17194. ac_cv_lib_nsl_gethostbyname=yes
  17195. else
  17196. ac_cv_lib_nsl_gethostbyname=no
  17197. fi
  17198. rm -f core conftest.err conftest.$ac_objext \
  17199. conftest$ac_exeext conftest.$ac_ext
  17200. LIBS=$ac_check_lib_save_LIBS
  17201. fi
  17202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17203. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17204. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17205. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17206. fi
  17207. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17209. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17210. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17211. $as_echo_n "(cached) " >&6
  17212. else
  17213. ac_check_lib_save_LIBS=$LIBS
  17214. LIBS="-lbsd $LIBS"
  17215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17216. /* end confdefs.h. */
  17217. /* Override any GCC internal prototype to avoid an error.
  17218. Use char because int might match the return type of a GCC
  17219. builtin and then its argument prototype would still apply. */
  17220. #ifdef __cplusplus
  17221. extern "C"
  17222. #endif
  17223. char gethostbyname ();
  17224. int
  17225. main ()
  17226. {
  17227. return gethostbyname ();
  17228. ;
  17229. return 0;
  17230. }
  17231. _ACEOF
  17232. if ac_fn_c_try_link "$LINENO"; then :
  17233. ac_cv_lib_bsd_gethostbyname=yes
  17234. else
  17235. ac_cv_lib_bsd_gethostbyname=no
  17236. fi
  17237. rm -f core conftest.err conftest.$ac_objext \
  17238. conftest$ac_exeext conftest.$ac_ext
  17239. LIBS=$ac_check_lib_save_LIBS
  17240. fi
  17241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17242. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17243. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17244. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17245. fi
  17246. fi
  17247. fi
  17248. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17249. # socket/setsockopt and other routines are undefined under SCO ODT
  17250. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17251. # on later versions), says Simon Leinen: it contains gethostby*
  17252. # variants that don't use the name server (or something). -lsocket
  17253. # must be given before -lnsl if both are needed. We assume that
  17254. # if connect needs -lnsl, so does gethostbyname.
  17255. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17256. if test "x$ac_cv_func_connect" = xyes; then :
  17257. fi
  17258. if test $ac_cv_func_connect = no; then
  17259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17260. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17261. if ${ac_cv_lib_socket_connect+:} false; then :
  17262. $as_echo_n "(cached) " >&6
  17263. else
  17264. ac_check_lib_save_LIBS=$LIBS
  17265. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17267. /* end confdefs.h. */
  17268. /* Override any GCC internal prototype to avoid an error.
  17269. Use char because int might match the return type of a GCC
  17270. builtin and then its argument prototype would still apply. */
  17271. #ifdef __cplusplus
  17272. extern "C"
  17273. #endif
  17274. char connect ();
  17275. int
  17276. main ()
  17277. {
  17278. return connect ();
  17279. ;
  17280. return 0;
  17281. }
  17282. _ACEOF
  17283. if ac_fn_c_try_link "$LINENO"; then :
  17284. ac_cv_lib_socket_connect=yes
  17285. else
  17286. ac_cv_lib_socket_connect=no
  17287. fi
  17288. rm -f core conftest.err conftest.$ac_objext \
  17289. conftest$ac_exeext conftest.$ac_ext
  17290. LIBS=$ac_check_lib_save_LIBS
  17291. fi
  17292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17293. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17294. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17295. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17296. fi
  17297. fi
  17298. # Guillermo Gomez says -lposix is necessary on A/UX.
  17299. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17300. if test "x$ac_cv_func_remove" = xyes; then :
  17301. fi
  17302. if test $ac_cv_func_remove = no; then
  17303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17304. $as_echo_n "checking for remove in -lposix... " >&6; }
  17305. if ${ac_cv_lib_posix_remove+:} false; then :
  17306. $as_echo_n "(cached) " >&6
  17307. else
  17308. ac_check_lib_save_LIBS=$LIBS
  17309. LIBS="-lposix $LIBS"
  17310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17311. /* end confdefs.h. */
  17312. /* Override any GCC internal prototype to avoid an error.
  17313. Use char because int might match the return type of a GCC
  17314. builtin and then its argument prototype would still apply. */
  17315. #ifdef __cplusplus
  17316. extern "C"
  17317. #endif
  17318. char remove ();
  17319. int
  17320. main ()
  17321. {
  17322. return remove ();
  17323. ;
  17324. return 0;
  17325. }
  17326. _ACEOF
  17327. if ac_fn_c_try_link "$LINENO"; then :
  17328. ac_cv_lib_posix_remove=yes
  17329. else
  17330. ac_cv_lib_posix_remove=no
  17331. fi
  17332. rm -f core conftest.err conftest.$ac_objext \
  17333. conftest$ac_exeext conftest.$ac_ext
  17334. LIBS=$ac_check_lib_save_LIBS
  17335. fi
  17336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17337. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17338. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17339. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17340. fi
  17341. fi
  17342. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17343. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17344. if test "x$ac_cv_func_shmat" = xyes; then :
  17345. fi
  17346. if test $ac_cv_func_shmat = no; then
  17347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17348. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17349. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17350. $as_echo_n "(cached) " >&6
  17351. else
  17352. ac_check_lib_save_LIBS=$LIBS
  17353. LIBS="-lipc $LIBS"
  17354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17355. /* end confdefs.h. */
  17356. /* Override any GCC internal prototype to avoid an error.
  17357. Use char because int might match the return type of a GCC
  17358. builtin and then its argument prototype would still apply. */
  17359. #ifdef __cplusplus
  17360. extern "C"
  17361. #endif
  17362. char shmat ();
  17363. int
  17364. main ()
  17365. {
  17366. return shmat ();
  17367. ;
  17368. return 0;
  17369. }
  17370. _ACEOF
  17371. if ac_fn_c_try_link "$LINENO"; then :
  17372. ac_cv_lib_ipc_shmat=yes
  17373. else
  17374. ac_cv_lib_ipc_shmat=no
  17375. fi
  17376. rm -f core conftest.err conftest.$ac_objext \
  17377. conftest$ac_exeext conftest.$ac_ext
  17378. LIBS=$ac_check_lib_save_LIBS
  17379. fi
  17380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17381. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17382. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17383. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17384. fi
  17385. fi
  17386. fi
  17387. # Check for libraries that X11R6 Xt/Xaw programs need.
  17388. ac_save_LDFLAGS=$LDFLAGS
  17389. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17390. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17391. # check for ICE first), but we must link in the order -lSM -lICE or
  17392. # we get undefined symbols. So assume we have SM if we have ICE.
  17393. # These have to be linked with before -lX11, unlike the other
  17394. # libraries we check for below, so use a different variable.
  17395. # John Interrante, Karl Berry
  17396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17397. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17398. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17399. $as_echo_n "(cached) " >&6
  17400. else
  17401. ac_check_lib_save_LIBS=$LIBS
  17402. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17404. /* end confdefs.h. */
  17405. /* Override any GCC internal prototype to avoid an error.
  17406. Use char because int might match the return type of a GCC
  17407. builtin and then its argument prototype would still apply. */
  17408. #ifdef __cplusplus
  17409. extern "C"
  17410. #endif
  17411. char IceConnectionNumber ();
  17412. int
  17413. main ()
  17414. {
  17415. return IceConnectionNumber ();
  17416. ;
  17417. return 0;
  17418. }
  17419. _ACEOF
  17420. if ac_fn_c_try_link "$LINENO"; then :
  17421. ac_cv_lib_ICE_IceConnectionNumber=yes
  17422. else
  17423. ac_cv_lib_ICE_IceConnectionNumber=no
  17424. fi
  17425. rm -f core conftest.err conftest.$ac_objext \
  17426. conftest$ac_exeext conftest.$ac_ext
  17427. LIBS=$ac_check_lib_save_LIBS
  17428. fi
  17429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17430. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17431. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17432. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17433. fi
  17434. LDFLAGS=$ac_save_LDFLAGS
  17435. fi
  17436. if test x$have_x = xyes; then
  17437. # Check whether --enable-x11-shared was given.
  17438. if test "${enable_x11_shared+set}" = set; then :
  17439. enableval=$enable_x11_shared;
  17440. else
  17441. enable_x11_shared=maybe
  17442. fi
  17443. case "$host" in
  17444. *-*-darwin*)
  17445. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17446. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17447. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17448. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17449. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17450. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17451. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17452. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17453. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17454. ;;
  17455. *-*-openbsd*)
  17456. x11_lib='libX11.so'
  17457. x11ext_lib='libXext.so'
  17458. xcursor_lib='libXcursor.so'
  17459. xinerama_lib='libXinerama.so'
  17460. xinput_lib='libXi.so'
  17461. xrandr_lib='libXrandr.so'
  17462. xrender_lib='libXrender.so'
  17463. xss_lib='libXss.so'
  17464. xvidmode_lib='libXxf86vm.so'
  17465. ;;
  17466. *)
  17467. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17468. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17469. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17470. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17471. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17472. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17473. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17474. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17475. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17476. ;;
  17477. esac
  17478. if test x$ac_cv_func_shmat != xyes; then
  17479. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17480. fi
  17481. CFLAGS="$CFLAGS $X_CFLAGS"
  17482. LDFLAGS="$LDFLAGS $X_LIBS"
  17483. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17484. #include <X11/Xproto.h>
  17485. "
  17486. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17487. have_xext_h_hdr=yes
  17488. else
  17489. have_xext_h_hdr=no
  17490. fi
  17491. if test x$have_xext_h_hdr != xyes; then
  17492. as_fn_error $? "
  17493. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17494. " "$LINENO" 5
  17495. fi
  17496. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17497. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17498. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17499. # Needed so SDL applications can include SDL_syswm.h
  17500. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17501. if test x$enable_x11_shared = xmaybe; then
  17502. enable_x11_shared=yes
  17503. fi
  17504. if test x$have_loadso != xyes && \
  17505. test x$enable_x11_shared = xyes; then
  17506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17507. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17508. enable_x11_shared=no
  17509. fi
  17510. if test x$have_loadso = xyes && \
  17511. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17512. echo "-- dynamic libX11 -> $x11_lib"
  17513. echo "-- dynamic libX11ext -> $x11ext_lib"
  17514. cat >>confdefs.h <<_ACEOF
  17515. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17516. _ACEOF
  17517. cat >>confdefs.h <<_ACEOF
  17518. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17519. _ACEOF
  17520. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17521. else
  17522. enable_x11_shared=no
  17523. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17524. SUMMARY_video="${SUMMARY_video} x11"
  17525. fi
  17526. have_video=yes
  17527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17528. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17529. have_const_param_XextAddDisplay=no
  17530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17531. /* end confdefs.h. */
  17532. #include <X11/Xlib.h>
  17533. #include <X11/Xproto.h>
  17534. #include <X11/extensions/Xext.h>
  17535. #include <X11/extensions/extutil.h>
  17536. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17537. int
  17538. main ()
  17539. {
  17540. ;
  17541. return 0;
  17542. }
  17543. _ACEOF
  17544. if ac_fn_c_try_compile "$LINENO"; then :
  17545. have_const_param_XextAddDisplay=yes
  17546. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17547. fi
  17548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17550. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17552. $as_echo_n "checking for XGenericEvent... " >&6; }
  17553. have_XGenericEvent=no
  17554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17555. /* end confdefs.h. */
  17556. #include <X11/Xlib.h>
  17557. int
  17558. main ()
  17559. {
  17560. Display *display;
  17561. XEvent event;
  17562. XGenericEventCookie *cookie = &event.xcookie;
  17563. XNextEvent(display, &event);
  17564. XGetEventData(display, cookie);
  17565. XFreeEventData(display, cookie);
  17566. ;
  17567. return 0;
  17568. }
  17569. _ACEOF
  17570. if ac_fn_c_try_compile "$LINENO"; then :
  17571. have_XGenericEvent=yes
  17572. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17573. fi
  17574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17576. $as_echo "$have_XGenericEvent" >&6; }
  17577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17578. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17579. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17580. $as_echo_n "(cached) " >&6
  17581. else
  17582. ac_check_lib_save_LIBS=$LIBS
  17583. LIBS="-lX11 $LIBS"
  17584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17585. /* end confdefs.h. */
  17586. /* Override any GCC internal prototype to avoid an error.
  17587. Use char because int might match the return type of a GCC
  17588. builtin and then its argument prototype would still apply. */
  17589. #ifdef __cplusplus
  17590. extern "C"
  17591. #endif
  17592. char XkbKeycodeToKeysym ();
  17593. int
  17594. main ()
  17595. {
  17596. return XkbKeycodeToKeysym ();
  17597. ;
  17598. return 0;
  17599. }
  17600. _ACEOF
  17601. if ac_fn_c_try_link "$LINENO"; then :
  17602. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17603. else
  17604. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17605. fi
  17606. rm -f core conftest.err conftest.$ac_objext \
  17607. conftest$ac_exeext conftest.$ac_ext
  17608. LIBS=$ac_check_lib_save_LIBS
  17609. fi
  17610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17611. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17612. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17613. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17614. fi
  17615. # Check whether --enable-video-x11-xcursor was given.
  17616. if test "${enable_video_x11_xcursor+set}" = set; then :
  17617. enableval=$enable_video_x11_xcursor;
  17618. else
  17619. enable_video_x11_xcursor=yes
  17620. fi
  17621. if test x$enable_video_x11_xcursor = xyes; then
  17622. definitely_enable_video_x11_xcursor=no
  17623. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17624. "
  17625. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17626. have_xcursor_h_hdr=yes
  17627. else
  17628. have_xcursor_h_hdr=no
  17629. fi
  17630. if test x$have_xcursor_h_hdr = xyes; then
  17631. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17632. echo "-- dynamic libXcursor -> $xcursor_lib"
  17633. cat >>confdefs.h <<_ACEOF
  17634. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17635. _ACEOF
  17636. definitely_enable_video_x11_xcursor=yes
  17637. else
  17638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17639. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17640. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17641. $as_echo_n "(cached) " >&6
  17642. else
  17643. ac_check_lib_save_LIBS=$LIBS
  17644. LIBS="-lXcursor $LIBS"
  17645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17646. /* end confdefs.h. */
  17647. /* Override any GCC internal prototype to avoid an error.
  17648. Use char because int might match the return type of a GCC
  17649. builtin and then its argument prototype would still apply. */
  17650. #ifdef __cplusplus
  17651. extern "C"
  17652. #endif
  17653. char XcursorImageCreate ();
  17654. int
  17655. main ()
  17656. {
  17657. return XcursorImageCreate ();
  17658. ;
  17659. return 0;
  17660. }
  17661. _ACEOF
  17662. if ac_fn_c_try_link "$LINENO"; then :
  17663. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17664. else
  17665. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17666. fi
  17667. rm -f core conftest.err conftest.$ac_objext \
  17668. conftest$ac_exeext conftest.$ac_ext
  17669. LIBS=$ac_check_lib_save_LIBS
  17670. fi
  17671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17672. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17673. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17674. have_xcursor_lib=yes
  17675. fi
  17676. if test x$have_xcursor_lib = xyes ; then
  17677. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17678. definitely_enable_video_x11_xcursor=yes
  17679. fi
  17680. fi
  17681. fi
  17682. fi
  17683. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17684. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17685. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17686. fi
  17687. # Check whether --enable-video-x11-xdbe was given.
  17688. if test "${enable_video_x11_xdbe+set}" = set; then :
  17689. enableval=$enable_video_x11_xdbe;
  17690. else
  17691. enable_video_x11_xdbe=yes
  17692. fi
  17693. if test x$enable_video_x11_xdbe = xyes; then
  17694. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17695. "
  17696. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17697. have_dbe_h_hdr=yes
  17698. else
  17699. have_dbe_h_hdr=no
  17700. fi
  17701. if test x$have_dbe_h_hdr = xyes; then
  17702. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17703. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17704. fi
  17705. fi
  17706. # Check whether --enable-video-x11-xinerama was given.
  17707. if test "${enable_video_x11_xinerama+set}" = set; then :
  17708. enableval=$enable_video_x11_xinerama;
  17709. else
  17710. enable_video_x11_xinerama=yes
  17711. fi
  17712. if test x$enable_video_x11_xinerama = xyes; then
  17713. definitely_enable_video_x11_xinerama=no
  17714. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17715. "
  17716. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17717. have_xinerama_h_hdr=yes
  17718. else
  17719. have_xinerama_h_hdr=no
  17720. fi
  17721. if test x$have_xinerama_h_hdr = xyes; then
  17722. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17723. echo "-- dynamic libXinerama -> $xinerama_lib"
  17724. cat >>confdefs.h <<_ACEOF
  17725. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17726. _ACEOF
  17727. definitely_enable_video_x11_xinerama=yes
  17728. else
  17729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17730. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17731. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17732. $as_echo_n "(cached) " >&6
  17733. else
  17734. ac_check_lib_save_LIBS=$LIBS
  17735. LIBS="-lXinerama $LIBS"
  17736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17737. /* end confdefs.h. */
  17738. /* Override any GCC internal prototype to avoid an error.
  17739. Use char because int might match the return type of a GCC
  17740. builtin and then its argument prototype would still apply. */
  17741. #ifdef __cplusplus
  17742. extern "C"
  17743. #endif
  17744. char XineramaQueryExtension ();
  17745. int
  17746. main ()
  17747. {
  17748. return XineramaQueryExtension ();
  17749. ;
  17750. return 0;
  17751. }
  17752. _ACEOF
  17753. if ac_fn_c_try_link "$LINENO"; then :
  17754. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17755. else
  17756. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17757. fi
  17758. rm -f core conftest.err conftest.$ac_objext \
  17759. conftest$ac_exeext conftest.$ac_ext
  17760. LIBS=$ac_check_lib_save_LIBS
  17761. fi
  17762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17763. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17764. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17765. have_xinerama_lib=yes
  17766. fi
  17767. if test x$have_xinerama_lib = xyes ; then
  17768. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17769. definitely_enable_video_x11_xinerama=yes
  17770. fi
  17771. fi
  17772. fi
  17773. fi
  17774. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17775. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17776. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17777. fi
  17778. # Check whether --enable-video-x11-xinput was given.
  17779. if test "${enable_video_x11_xinput+set}" = set; then :
  17780. enableval=$enable_video_x11_xinput;
  17781. else
  17782. enable_video_x11_xinput=yes
  17783. fi
  17784. if test x$enable_video_x11_xinput = xyes; then
  17785. definitely_enable_video_x11_xinput=no
  17786. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17787. "
  17788. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17789. have_xinput_h_hdr=yes
  17790. else
  17791. have_xinput_h_hdr=no
  17792. fi
  17793. if test x$have_xinput_h_hdr = xyes; then
  17794. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17795. echo "-- dynamic libXi -> $xinput_lib"
  17796. cat >>confdefs.h <<_ACEOF
  17797. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17798. _ACEOF
  17799. definitely_enable_video_x11_xinput=yes
  17800. else
  17801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17802. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17803. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17804. $as_echo_n "(cached) " >&6
  17805. else
  17806. ac_check_lib_save_LIBS=$LIBS
  17807. LIBS="-lXi $LIBS"
  17808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17809. /* end confdefs.h. */
  17810. /* Override any GCC internal prototype to avoid an error.
  17811. Use char because int might match the return type of a GCC
  17812. builtin and then its argument prototype would still apply. */
  17813. #ifdef __cplusplus
  17814. extern "C"
  17815. #endif
  17816. char XOpenDevice ();
  17817. int
  17818. main ()
  17819. {
  17820. return XOpenDevice ();
  17821. ;
  17822. return 0;
  17823. }
  17824. _ACEOF
  17825. if ac_fn_c_try_link "$LINENO"; then :
  17826. ac_cv_lib_Xi_XOpenDevice=yes
  17827. else
  17828. ac_cv_lib_Xi_XOpenDevice=no
  17829. fi
  17830. rm -f core conftest.err conftest.$ac_objext \
  17831. conftest$ac_exeext conftest.$ac_ext
  17832. LIBS=$ac_check_lib_save_LIBS
  17833. fi
  17834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17835. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17836. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17837. have_xinput_lib=yes
  17838. fi
  17839. if test x$have_xinput_lib = xyes ; then
  17840. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17841. definitely_enable_video_x11_xinput=yes
  17842. fi
  17843. fi
  17844. fi
  17845. fi
  17846. if test x$definitely_enable_video_x11_xinput = xyes; then
  17847. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17848. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17850. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17851. have_xinput2_multitouch=no
  17852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17853. /* end confdefs.h. */
  17854. #include <X11/Xlib.h>
  17855. #include <X11/Xproto.h>
  17856. #include <X11/extensions/XInput2.h>
  17857. int
  17858. main ()
  17859. {
  17860. int event_type = XI_TouchBegin;
  17861. XITouchClassInfo *t;
  17862. ;
  17863. return 0;
  17864. }
  17865. _ACEOF
  17866. if ac_fn_c_try_compile "$LINENO"; then :
  17867. have_xinput2_multitouch=yes
  17868. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17869. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17870. fi
  17871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17873. $as_echo "$have_xinput2_multitouch" >&6; }
  17874. fi
  17875. # Check whether --enable-video-x11-xrandr was given.
  17876. if test "${enable_video_x11_xrandr+set}" = set; then :
  17877. enableval=$enable_video_x11_xrandr;
  17878. else
  17879. enable_video_x11_xrandr=yes
  17880. fi
  17881. if test x$enable_video_x11_xrandr = xyes; then
  17882. definitely_enable_video_x11_xrandr=no
  17883. have_xrandr_h_hdr=no
  17884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17885. /* end confdefs.h. */
  17886. #include <X11/Xlib.h>
  17887. #include <X11/extensions/Xrandr.h>
  17888. int
  17889. main ()
  17890. {
  17891. XRRScreenResources *res = NULL;
  17892. ;
  17893. return 0;
  17894. }
  17895. _ACEOF
  17896. if ac_fn_c_try_compile "$LINENO"; then :
  17897. have_xrandr_h_hdr=yes
  17898. fi
  17899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17900. if test x$have_xrandr_h_hdr = xyes; then
  17901. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17902. echo "-- dynamic libXrandr -> $xrandr_lib"
  17903. cat >>confdefs.h <<_ACEOF
  17904. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17905. _ACEOF
  17906. definitely_enable_video_x11_xrandr=yes
  17907. else
  17908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17909. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17910. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17911. $as_echo_n "(cached) " >&6
  17912. else
  17913. ac_check_lib_save_LIBS=$LIBS
  17914. LIBS="-lXrandr $LIBS"
  17915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17916. /* end confdefs.h. */
  17917. /* Override any GCC internal prototype to avoid an error.
  17918. Use char because int might match the return type of a GCC
  17919. builtin and then its argument prototype would still apply. */
  17920. #ifdef __cplusplus
  17921. extern "C"
  17922. #endif
  17923. char XRRQueryExtension ();
  17924. int
  17925. main ()
  17926. {
  17927. return XRRQueryExtension ();
  17928. ;
  17929. return 0;
  17930. }
  17931. _ACEOF
  17932. if ac_fn_c_try_link "$LINENO"; then :
  17933. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17934. else
  17935. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17936. fi
  17937. rm -f core conftest.err conftest.$ac_objext \
  17938. conftest$ac_exeext conftest.$ac_ext
  17939. LIBS=$ac_check_lib_save_LIBS
  17940. fi
  17941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17942. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17943. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17944. have_xrandr_lib=yes
  17945. fi
  17946. if test x$have_xrandr_lib = xyes ; then
  17947. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17948. definitely_enable_video_x11_xrandr=yes
  17949. fi
  17950. fi
  17951. fi
  17952. fi
  17953. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17954. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17955. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17956. fi
  17957. # Check whether --enable-video-x11-scrnsaver was given.
  17958. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17959. enableval=$enable_video_x11_scrnsaver;
  17960. else
  17961. enable_video_x11_scrnsaver=yes
  17962. fi
  17963. if test x$enable_video_x11_scrnsaver = xyes; then
  17964. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17965. "
  17966. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17967. have_scrnsaver_h_hdr=yes
  17968. else
  17969. have_scrnsaver_h_hdr=no
  17970. fi
  17971. if test x$have_scrnsaver_h_hdr = xyes; then
  17972. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17973. echo "-- dynamic libXss -> $xss_lib"
  17974. cat >>confdefs.h <<_ACEOF
  17975. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  17976. _ACEOF
  17977. definitely_enable_video_x11_scrnsaver=yes
  17978. else
  17979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  17980. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  17981. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  17982. $as_echo_n "(cached) " >&6
  17983. else
  17984. ac_check_lib_save_LIBS=$LIBS
  17985. LIBS="-lXss $LIBS"
  17986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17987. /* end confdefs.h. */
  17988. /* Override any GCC internal prototype to avoid an error.
  17989. Use char because int might match the return type of a GCC
  17990. builtin and then its argument prototype would still apply. */
  17991. #ifdef __cplusplus
  17992. extern "C"
  17993. #endif
  17994. char XScreenSaverSuspend ();
  17995. int
  17996. main ()
  17997. {
  17998. return XScreenSaverSuspend ();
  17999. ;
  18000. return 0;
  18001. }
  18002. _ACEOF
  18003. if ac_fn_c_try_link "$LINENO"; then :
  18004. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18005. else
  18006. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18007. fi
  18008. rm -f core conftest.err conftest.$ac_objext \
  18009. conftest$ac_exeext conftest.$ac_ext
  18010. LIBS=$ac_check_lib_save_LIBS
  18011. fi
  18012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18013. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18014. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18015. have_xss_lib=yes
  18016. fi
  18017. if test x$have_xss_lib = xyes ; then
  18018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18019. definitely_enable_video_x11_scrnsaver=yes
  18020. fi
  18021. fi
  18022. fi
  18023. fi
  18024. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18025. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18026. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18027. fi
  18028. # Check whether --enable-video-x11-xshape was given.
  18029. if test "${enable_video_x11_xshape+set}" = set; then :
  18030. enableval=$enable_video_x11_xshape;
  18031. else
  18032. enable_video_x11_xshape=yes
  18033. fi
  18034. if test x$enable_video_x11_xshape = xyes; then
  18035. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18036. "
  18037. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18038. have_shape_h_hdr=yes
  18039. else
  18040. have_shape_h_hdr=no
  18041. fi
  18042. if test x$have_shape_h_hdr = xyes; then
  18043. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18044. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18045. fi
  18046. fi
  18047. # Check whether --enable-video-x11-vm was given.
  18048. if test "${enable_video_x11_vm+set}" = set; then :
  18049. enableval=$enable_video_x11_vm;
  18050. else
  18051. enable_video_x11_vm=yes
  18052. fi
  18053. if test x$enable_video_x11_vm = xyes; then
  18054. definitely_enable_video_x11_vm=no
  18055. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18056. "
  18057. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18058. have_vm_h_hdr=yes
  18059. else
  18060. have_vm_h_hdr=no
  18061. fi
  18062. if test x$have_vm_h_hdr = xyes; then
  18063. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18064. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18065. cat >>confdefs.h <<_ACEOF
  18066. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18067. _ACEOF
  18068. definitely_enable_video_x11_vm=yes
  18069. else
  18070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18071. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18072. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18073. $as_echo_n "(cached) " >&6
  18074. else
  18075. ac_check_lib_save_LIBS=$LIBS
  18076. LIBS="-lXxf86vm $LIBS"
  18077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18078. /* end confdefs.h. */
  18079. /* Override any GCC internal prototype to avoid an error.
  18080. Use char because int might match the return type of a GCC
  18081. builtin and then its argument prototype would still apply. */
  18082. #ifdef __cplusplus
  18083. extern "C"
  18084. #endif
  18085. char XF86VidModeQueryVersion ();
  18086. int
  18087. main ()
  18088. {
  18089. return XF86VidModeQueryVersion ();
  18090. ;
  18091. return 0;
  18092. }
  18093. _ACEOF
  18094. if ac_fn_c_try_link "$LINENO"; then :
  18095. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18096. else
  18097. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18098. fi
  18099. rm -f core conftest.err conftest.$ac_objext \
  18100. conftest$ac_exeext conftest.$ac_ext
  18101. LIBS=$ac_check_lib_save_LIBS
  18102. fi
  18103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18104. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18105. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18106. have_vm_lib=yes
  18107. fi
  18108. if test x$have_vm_lib = xyes ; then
  18109. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18110. definitely_enable_video_x11_vm=yes
  18111. fi
  18112. fi
  18113. fi
  18114. fi
  18115. if test x$definitely_enable_video_x11_vm = xyes; then
  18116. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18117. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18118. fi
  18119. fi
  18120. fi
  18121. }
  18122. CheckVivanteVideo()
  18123. {
  18124. # Check whether --enable-video-vivante was given.
  18125. if test "${enable_video_vivante+set}" = set; then :
  18126. enableval=$enable_video_vivante;
  18127. else
  18128. enable_video_vivante=yes
  18129. fi
  18130. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18132. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18133. have_vivante_vdk=no
  18134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18135. /* end confdefs.h. */
  18136. #define LINUX
  18137. #define EGL_API_FB
  18138. #include <gc_vdk.h>
  18139. int
  18140. main ()
  18141. {
  18142. ;
  18143. return 0;
  18144. }
  18145. _ACEOF
  18146. if ac_fn_c_try_compile "$LINENO"; then :
  18147. have_vivante_vdk=yes
  18148. fi
  18149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18151. $as_echo "$have_vivante_vdk" >&6; }
  18152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18153. $as_echo_n "checking for Vivante FB API... " >&6; }
  18154. have_vivante_egl=no
  18155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18156. /* end confdefs.h. */
  18157. #define LINUX
  18158. #define EGL_API_FB
  18159. #include <EGL/eglvivante.h>
  18160. int
  18161. main ()
  18162. {
  18163. ;
  18164. return 0;
  18165. }
  18166. _ACEOF
  18167. if ac_fn_c_try_compile "$LINENO"; then :
  18168. have_vivante_egl=yes
  18169. fi
  18170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18172. $as_echo "$have_vivante_egl" >&6; }
  18173. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18174. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18175. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18176. if test x$have_vivante_vdk = xyes; then
  18177. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18178. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18179. fi
  18180. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18181. SUMMARY_video="${SUMMARY_video} vivante"
  18182. have_video=yes
  18183. fi
  18184. fi
  18185. }
  18186. CheckHaikuVideo()
  18187. {
  18188. if test x$enable_video = xyes; then
  18189. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18190. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18191. have_video=yes
  18192. SUMMARY_video="${SUMMARY_video} haiku"
  18193. fi
  18194. }
  18195. CheckCOCOA()
  18196. {
  18197. # Check whether --enable-video-cocoa was given.
  18198. if test "${enable_video_cocoa+set}" = set; then :
  18199. enableval=$enable_video_cocoa;
  18200. else
  18201. enable_video_cocoa=yes
  18202. fi
  18203. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18204. save_CFLAGS="$CFLAGS"
  18205. CFLAGS="$CFLAGS -x objective-c"
  18206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18207. $as_echo_n "checking for Cocoa framework... " >&6; }
  18208. have_cocoa=no
  18209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18210. /* end confdefs.h. */
  18211. #import <Cocoa/Cocoa.h>
  18212. int
  18213. main ()
  18214. {
  18215. ;
  18216. return 0;
  18217. }
  18218. _ACEOF
  18219. if ac_fn_c_try_compile "$LINENO"; then :
  18220. have_cocoa=yes
  18221. fi
  18222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18224. $as_echo "$have_cocoa" >&6; }
  18225. CFLAGS="$save_CFLAGS"
  18226. if test x$have_cocoa = xyes; then
  18227. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18228. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18229. SUMMARY_video="${SUMMARY_video} cocoa"
  18230. have_video=yes
  18231. fi
  18232. fi
  18233. }
  18234. CheckMETAL()
  18235. {
  18236. # Check whether --enable-render-metal was given.
  18237. if test "${enable_render_metal+set}" = set; then :
  18238. enableval=$enable_render_metal;
  18239. else
  18240. enable_render_metal=yes
  18241. fi
  18242. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18243. save_CFLAGS="$CFLAGS"
  18244. CFLAGS="$CFLAGS -x objective-c"
  18245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18246. $as_echo_n "checking for Metal framework... " >&6; }
  18247. have_metal=no
  18248. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18249. /* end confdefs.h. */
  18250. #import <Cocoa/Cocoa.h>
  18251. #import <Metal/Metal.h>
  18252. #import <QuartzCore/CAMetalLayer.h>
  18253. #if !TARGET_CPU_X86_64
  18254. #error Metal doesn't work on this configuration
  18255. #endif
  18256. int
  18257. main ()
  18258. {
  18259. ;
  18260. return 0;
  18261. }
  18262. _ACEOF
  18263. if ac_fn_c_try_compile "$LINENO"; then :
  18264. have_metal=yes
  18265. fi
  18266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18267. CFLAGS="$save_CFLAGS"
  18268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18269. $as_echo "$have_metal" >&6; }
  18270. if test x$have_metal = xyes; then
  18271. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18272. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18273. SUMMARY_video="${SUMMARY_video} metal"
  18274. else
  18275. enable_render_metal=no
  18276. fi
  18277. fi
  18278. }
  18279. CheckDirectFB()
  18280. {
  18281. # Check whether --enable-video-directfb was given.
  18282. if test "${enable_video_directfb+set}" = set; then :
  18283. enableval=$enable_video_directfb;
  18284. else
  18285. enable_video_directfb=no
  18286. fi
  18287. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18288. video_directfb=no
  18289. DIRECTFB_REQUIRED_VERSION=1.0.0
  18290. for ac_prog in directfb-config
  18291. do
  18292. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18293. set dummy $ac_prog; ac_word=$2
  18294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18295. $as_echo_n "checking for $ac_word... " >&6; }
  18296. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18297. $as_echo_n "(cached) " >&6
  18298. else
  18299. case $DIRECTFBCONFIG in
  18300. [\\/]* | ?:[\\/]*)
  18301. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18302. ;;
  18303. *)
  18304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18305. as_dummy="$prefix/bin:$PATH"
  18306. for as_dir in $as_dummy
  18307. do
  18308. IFS=$as_save_IFS
  18309. test -z "$as_dir" && as_dir=.
  18310. for ac_exec_ext in '' $ac_executable_extensions; do
  18311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18312. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18314. break 2
  18315. fi
  18316. done
  18317. done
  18318. IFS=$as_save_IFS
  18319. ;;
  18320. esac
  18321. fi
  18322. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18323. if test -n "$DIRECTFBCONFIG"; then
  18324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18325. $as_echo "$DIRECTFBCONFIG" >&6; }
  18326. else
  18327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18328. $as_echo "no" >&6; }
  18329. fi
  18330. test -n "$DIRECTFBCONFIG" && break
  18331. done
  18332. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18333. if test x$DIRECTFBCONFIG = xno; then
  18334. # Extract the first word of "pkg-config", so it can be a program name with args.
  18335. set dummy pkg-config; ac_word=$2
  18336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18337. $as_echo_n "checking for $ac_word... " >&6; }
  18338. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18339. $as_echo_n "(cached) " >&6
  18340. else
  18341. case $PKG_CONFIG in
  18342. [\\/]* | ?:[\\/]*)
  18343. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18344. ;;
  18345. *)
  18346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18347. for as_dir in $PATH
  18348. do
  18349. IFS=$as_save_IFS
  18350. test -z "$as_dir" && as_dir=.
  18351. for ac_exec_ext in '' $ac_executable_extensions; do
  18352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18353. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18355. break 2
  18356. fi
  18357. done
  18358. done
  18359. IFS=$as_save_IFS
  18360. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18361. ;;
  18362. esac
  18363. fi
  18364. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18365. if test -n "$PKG_CONFIG"; then
  18366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18367. $as_echo "$PKG_CONFIG" >&6; }
  18368. else
  18369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18370. $as_echo "no" >&6; }
  18371. fi
  18372. if test x$PKG_CONFIG != xno; then
  18373. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18374. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18375. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18376. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18377. video_directfb=yes
  18378. fi
  18379. fi
  18380. else
  18381. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18382. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18383. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18384. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18385. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18386. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18387. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18388. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18389. video_directfb=yes
  18390. fi
  18391. fi
  18392. if test x$video_directfb = xyes; then
  18393. # SuSE 11.1 installs directfb-config without directfb-devel
  18394. save_CPPFLAGS="$CPPFLAGS"
  18395. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18396. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18397. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18398. have_directfb_hdr=yes
  18399. else
  18400. have_directfb_hdr=no
  18401. fi
  18402. CPPFLAGS="$save_CPPFLAGS"
  18403. video_directfb=$have_directfb_hdr
  18404. fi
  18405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18406. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18408. $as_echo "$video_directfb" >&6; }
  18409. if test x$video_directfb = xyes; then
  18410. # Check whether --enable-directfb-shared was given.
  18411. if test "${enable_directfb_shared+set}" = set; then :
  18412. enableval=$enable_directfb_shared;
  18413. else
  18414. enable_directfb_shared=yes
  18415. fi
  18416. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18417. $as_echo "#define SDL_VIDEO_RENDER_DIRECTFB 1" >>confdefs.h
  18418. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18419. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18421. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18422. directfb_shared=no
  18423. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18424. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18426. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18427. if test x$have_loadso != xyes && \
  18428. test x$enable_directfb_shared = xyes; then
  18429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18430. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18431. fi
  18432. if test x$have_loadso = xyes && \
  18433. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18434. directfb_shared=yes
  18435. echo "-- $directfb_lib_spec -> $directfb_lib"
  18436. cat >>confdefs.h <<_ACEOF
  18437. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18438. _ACEOF
  18439. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18440. else
  18441. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18442. SUMMARY_video="${SUMMARY_video} directfb"
  18443. fi
  18444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18445. $as_echo "$directfb_shared" >&6; }
  18446. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18447. have_video=yes
  18448. fi
  18449. fi
  18450. }
  18451. CheckKMSDRM()
  18452. {
  18453. # Check whether --enable-video-kmsdrm was given.
  18454. if test "${enable_video_kmsdrm+set}" = set; then :
  18455. enableval=$enable_video_kmsdrm;
  18456. else
  18457. enable_video_kmsdrm=no
  18458. fi
  18459. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18460. video_kmsdrm=no
  18461. libdrm_avail=no
  18462. libgbm_avail=no
  18463. LIBDRM_REQUIRED_VERSION=2.4.46
  18464. LIBGBM_REQUIRED_VERSION=9.0.0
  18465. # Extract the first word of "pkg-config", so it can be a program name with args.
  18466. set dummy pkg-config; ac_word=$2
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18468. $as_echo_n "checking for $ac_word... " >&6; }
  18469. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18470. $as_echo_n "(cached) " >&6
  18471. else
  18472. case $PKG_CONFIG in
  18473. [\\/]* | ?:[\\/]*)
  18474. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18475. ;;
  18476. *)
  18477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18478. for as_dir in $PATH
  18479. do
  18480. IFS=$as_save_IFS
  18481. test -z "$as_dir" && as_dir=.
  18482. for ac_exec_ext in '' $ac_executable_extensions; do
  18483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18484. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18486. break 2
  18487. fi
  18488. done
  18489. done
  18490. IFS=$as_save_IFS
  18491. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18492. ;;
  18493. esac
  18494. fi
  18495. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18496. if test -n "$PKG_CONFIG"; then
  18497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18498. $as_echo "$PKG_CONFIG" >&6; }
  18499. else
  18500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18501. $as_echo "no" >&6; }
  18502. fi
  18503. if test x$PKG_CONFIG != xno; then
  18504. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18505. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18506. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18507. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18508. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18509. libdrm_avail=yes
  18510. fi
  18511. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18512. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18513. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18514. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18515. libgbm_avail=yes
  18516. fi
  18517. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18518. video_kmsdrm=yes
  18519. fi
  18520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18521. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18523. $as_echo "$libdrm_avail" >&6; }
  18524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18525. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18527. $as_echo "$libgbm_avail" >&6; }
  18528. if test x$video_kmsdrm = xyes; then
  18529. # Check whether --enable-kmsdrm-shared was given.
  18530. if test "${enable_kmsdrm_shared+set}" = set; then :
  18531. enableval=$enable_kmsdrm_shared;
  18532. else
  18533. enable_kmsdrm_shared=yes
  18534. fi
  18535. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18536. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18537. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18539. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18540. kmsdrm_shared=no
  18541. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18542. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18543. if test x$have_loadso != xyes && \
  18544. test x$enable_kmsdrm_shared = xyes; then
  18545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18546. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18547. fi
  18548. if test x$have_loadso = xyes && \
  18549. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18550. kmsdrm_shared=yes
  18551. cat >>confdefs.h <<_ACEOF
  18552. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18553. _ACEOF
  18554. cat >>confdefs.h <<_ACEOF
  18555. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18556. _ACEOF
  18557. cat >>confdefs.h <<_ACEOF
  18558. #define HAVE_KMSDRM_SHARED "TRUE"
  18559. _ACEOF
  18560. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18561. else
  18562. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18563. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18564. fi
  18565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18566. $as_echo "$kmsdrm_shared" >&6; }
  18567. have_video=yes
  18568. fi
  18569. fi
  18570. fi
  18571. fi
  18572. }
  18573. CheckDummyVideo()
  18574. {
  18575. # Check whether --enable-video-dummy was given.
  18576. if test "${enable_video_dummy+set}" = set; then :
  18577. enableval=$enable_video_dummy;
  18578. else
  18579. enable_video_dummy=yes
  18580. fi
  18581. if test x$enable_video_dummy = xyes; then
  18582. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18583. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18584. have_video=yes
  18585. SUMMARY_video="${SUMMARY_video} dummy"
  18586. fi
  18587. }
  18588. CheckQNXVideo()
  18589. {
  18590. if test x$enable_video = xyes; then
  18591. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18592. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18593. have_video=yes
  18594. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18595. SUMMARY_video="${SUMMARY_video} qnx"
  18596. fi
  18597. }
  18598. CheckQNXAudio()
  18599. {
  18600. if test x$enable_audio = xyes; then
  18601. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18602. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18603. have_audio=yes
  18604. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18605. SUMMARY_audio="${SUMMARY_audio} qsa"
  18606. fi
  18607. }
  18608. # Check whether --enable-video-opengl was given.
  18609. if test "${enable_video_opengl+set}" = set; then :
  18610. enableval=$enable_video_opengl;
  18611. else
  18612. enable_video_opengl=yes
  18613. fi
  18614. CheckOpenGLX11()
  18615. {
  18616. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18618. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18619. video_opengl=no
  18620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18621. /* end confdefs.h. */
  18622. #include <GL/gl.h>
  18623. #include <GL/glx.h>
  18624. int
  18625. main ()
  18626. {
  18627. ;
  18628. return 0;
  18629. }
  18630. _ACEOF
  18631. if ac_fn_c_try_compile "$LINENO"; then :
  18632. video_opengl=yes
  18633. fi
  18634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18636. $as_echo "$video_opengl" >&6; }
  18637. if test x$video_opengl = xyes; then
  18638. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18639. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18640. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18641. SUMMARY_video="${SUMMARY_video} opengl"
  18642. fi
  18643. fi
  18644. }
  18645. # Check whether --enable-video-opengles was given.
  18646. if test "${enable_video_opengles+set}" = set; then :
  18647. enableval=$enable_video_opengles;
  18648. else
  18649. enable_video_opengles=yes
  18650. fi
  18651. # Check whether --enable-video-opengles1 was given.
  18652. if test "${enable_video_opengles1+set}" = set; then :
  18653. enableval=$enable_video_opengles1;
  18654. else
  18655. enable_video_opengles1=yes
  18656. fi
  18657. # Check whether --enable-video-opengles2 was given.
  18658. if test "${enable_video_opengles2+set}" = set; then :
  18659. enableval=$enable_video_opengles2;
  18660. else
  18661. enable_video_opengles2=yes
  18662. fi
  18663. CheckOpenGLESX11()
  18664. {
  18665. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18667. $as_echo_n "checking for EGL support... " >&6; }
  18668. video_opengl_egl=no
  18669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18670. /* end confdefs.h. */
  18671. #define LINUX
  18672. #define EGL_API_FB
  18673. #define MESA_EGL_NO_X11_HEADERS
  18674. #include <EGL/egl.h>
  18675. #include <EGL/eglext.h>
  18676. int
  18677. main ()
  18678. {
  18679. ;
  18680. return 0;
  18681. }
  18682. _ACEOF
  18683. if ac_fn_c_try_compile "$LINENO"; then :
  18684. video_opengl_egl=yes
  18685. fi
  18686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18688. $as_echo "$video_opengl_egl" >&6; }
  18689. if test x$video_opengl_egl = xyes; then
  18690. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18691. fi
  18692. if test x$enable_video_opengles1 = xyes; then
  18693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18694. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18695. video_opengles_v1=no
  18696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18697. /* end confdefs.h. */
  18698. #include <GLES/gl.h>
  18699. #include <GLES/glext.h>
  18700. int
  18701. main ()
  18702. {
  18703. ;
  18704. return 0;
  18705. }
  18706. _ACEOF
  18707. if ac_fn_c_try_compile "$LINENO"; then :
  18708. video_opengles_v1=yes
  18709. fi
  18710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18712. $as_echo "$video_opengles_v1" >&6; }
  18713. if test x$video_opengles_v1 = xyes; then
  18714. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18715. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18716. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18717. fi
  18718. fi
  18719. if test x$enable_video_opengles2 = xyes; then
  18720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18721. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18722. video_opengles_v2=no
  18723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18724. /* end confdefs.h. */
  18725. #include <GLES2/gl2.h>
  18726. #include <GLES2/gl2ext.h>
  18727. int
  18728. main ()
  18729. {
  18730. ;
  18731. return 0;
  18732. }
  18733. _ACEOF
  18734. if ac_fn_c_try_compile "$LINENO"; then :
  18735. video_opengles_v2=yes
  18736. fi
  18737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18739. $as_echo "$video_opengles_v2" >&6; }
  18740. if test x$video_opengles_v2 = xyes; then
  18741. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18742. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18743. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18744. fi
  18745. fi
  18746. fi
  18747. }
  18748. CheckWINDOWSGL()
  18749. {
  18750. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18751. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18752. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18753. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18754. SUMMARY_video="${SUMMARY_video} opengl"
  18755. fi
  18756. }
  18757. CheckWINDOWSGLES()
  18758. {
  18759. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18761. $as_echo_n "checking for EGL support... " >&6; }
  18762. video_opengl_egl=no
  18763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18764. /* end confdefs.h. */
  18765. #include <EGL/egl.h>
  18766. int
  18767. main ()
  18768. {
  18769. ;
  18770. return 0;
  18771. }
  18772. _ACEOF
  18773. if ac_fn_c_try_compile "$LINENO"; then :
  18774. video_opengl_egl=yes
  18775. fi
  18776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18778. $as_echo "$video_opengl_egl" >&6; }
  18779. if test x$video_opengl_egl = xyes; then
  18780. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18781. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18782. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18783. fi
  18784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18785. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18786. video_opengles_v2=no
  18787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18788. /* end confdefs.h. */
  18789. #include <GLES2/gl2.h>
  18790. #include <GLES2/gl2ext.h>
  18791. int
  18792. main ()
  18793. {
  18794. ;
  18795. return 0;
  18796. }
  18797. _ACEOF
  18798. if ac_fn_c_try_compile "$LINENO"; then :
  18799. video_opengles_v2=yes
  18800. fi
  18801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18803. $as_echo "$video_opengles_v2" >&6; }
  18804. if test x$video_opengles_v2 = xyes; then
  18805. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18806. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18807. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18808. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18809. fi
  18810. fi
  18811. }
  18812. CheckHaikuGL()
  18813. {
  18814. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18815. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18816. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18817. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18818. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18819. SUMMARY_video="${SUMMARY_video} opengl"
  18820. fi
  18821. }
  18822. CheckMacGL()
  18823. {
  18824. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18825. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18826. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18827. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18828. SUMMARY_video="${SUMMARY_video} opengl"
  18829. fi
  18830. }
  18831. CheckMacGLES()
  18832. {
  18833. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18834. video_opengl_egl=yes
  18835. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18836. video_opengles_v2=yes
  18837. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18838. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18839. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18840. fi
  18841. }
  18842. CheckEmscriptenGLES()
  18843. {
  18844. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18846. $as_echo_n "checking for EGL support... " >&6; }
  18847. video_opengl_egl=no
  18848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18849. /* end confdefs.h. */
  18850. #include <EGL/egl.h>
  18851. int
  18852. main ()
  18853. {
  18854. ;
  18855. return 0;
  18856. }
  18857. _ACEOF
  18858. if ac_fn_c_try_compile "$LINENO"; then :
  18859. video_opengl_egl=yes
  18860. fi
  18861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18863. $as_echo "$video_opengl_egl" >&6; }
  18864. if test x$video_opengl_egl = xyes; then
  18865. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18866. fi
  18867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18868. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18869. video_opengles_v2=no
  18870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18871. /* end confdefs.h. */
  18872. #include <GLES2/gl2.h>
  18873. #include <GLES2/gl2ext.h>
  18874. int
  18875. main ()
  18876. {
  18877. ;
  18878. return 0;
  18879. }
  18880. _ACEOF
  18881. if ac_fn_c_try_compile "$LINENO"; then :
  18882. video_opengles_v2=yes
  18883. fi
  18884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18886. $as_echo "$video_opengles_v2" >&6; }
  18887. if test x$video_opengles_v2 = xyes; then
  18888. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18889. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18890. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18891. fi
  18892. fi
  18893. }
  18894. # Check whether --enable-video-vulkan was given.
  18895. if test "${enable_video_vulkan+set}" = set; then :
  18896. enableval=$enable_video_vulkan;
  18897. else
  18898. enable_video_vulkan=yes
  18899. fi
  18900. CheckVulkan()
  18901. {
  18902. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18903. case "$host" in
  18904. *-*-android*)
  18905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18906. /* end confdefs.h. */
  18907. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18908. #error Vulkan doesn't work on this configuration
  18909. #endif
  18910. int
  18911. main ()
  18912. {
  18913. ;
  18914. return 0;
  18915. }
  18916. _ACEOF
  18917. if ac_fn_c_try_compile "$LINENO"; then :
  18918. else
  18919. enable_video_vulkan=no
  18920. fi
  18921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18922. ;;
  18923. *-*-darwin*)
  18924. save_CFLAGS="$CFLAGS"
  18925. CFLAGS="$CFLAGS -x objective-c"
  18926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18927. /* end confdefs.h. */
  18928. #include <Cocoa/Cocoa.h>
  18929. #include <Metal/Metal.h>
  18930. #include <QuartzCore/CAMetalLayer.h>
  18931. #if !TARGET_CPU_X86_64
  18932. #error Vulkan doesn't work on this configuration
  18933. #endif
  18934. int
  18935. main ()
  18936. {
  18937. ;
  18938. return 0;
  18939. }
  18940. _ACEOF
  18941. if ac_fn_c_try_compile "$LINENO"; then :
  18942. else
  18943. enable_video_vulkan=no
  18944. fi
  18945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18946. CFLAGS="$save_CFLAGS"
  18947. ;;
  18948. *)
  18949. ;;
  18950. esac
  18951. if test x$enable_video_vulkan = xno; then
  18952. # For reasons I am totally unable to see, I get an undefined macro error if
  18953. # I put this in the AC_TRY_COMPILE.
  18954. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18955. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18956. fi
  18957. fi
  18958. if test x$enable_video_vulkan = xyes; then
  18959. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18960. SUMMARY_video="${SUMMARY_video} vulkan"
  18961. fi
  18962. }
  18963. CheckInputEvents()
  18964. {
  18965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18966. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18967. use_input_events=no
  18968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18969. /* end confdefs.h. */
  18970. #include <linux/input.h>
  18971. int
  18972. main ()
  18973. {
  18974. #ifndef EVIOCGNAME
  18975. #error EVIOCGNAME() ioctl not available
  18976. #endif
  18977. ;
  18978. return 0;
  18979. }
  18980. _ACEOF
  18981. if ac_fn_c_try_compile "$LINENO"; then :
  18982. use_input_events=yes
  18983. fi
  18984. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  18986. $as_echo "$use_input_events" >&6; }
  18987. if test x$use_input_events = xyes; then
  18988. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  18989. SUMMARY_input="${SUMMARY_input} linuxev"
  18990. fi
  18991. }
  18992. CheckInputKD()
  18993. {
  18994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  18995. $as_echo_n "checking for Linux kd.h... " >&6; }
  18996. use_input_kd=no
  18997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18998. /* end confdefs.h. */
  18999. #include <linux/kd.h>
  19000. #include <linux/keyboard.h>
  19001. int
  19002. main ()
  19003. {
  19004. struct kbentry kbe;
  19005. kbe.kb_table = KG_CTRL;
  19006. ioctl(0, KDGKBENT, &kbe);
  19007. ;
  19008. return 0;
  19009. }
  19010. _ACEOF
  19011. if ac_fn_c_try_compile "$LINENO"; then :
  19012. use_input_kd=yes
  19013. fi
  19014. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19016. $as_echo "$use_input_kd" >&6; }
  19017. if test x$use_input_kd = xyes; then
  19018. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19019. SUMMARY_input="${SUMMARY_input} linuxkd"
  19020. fi
  19021. }
  19022. CheckLibUDev()
  19023. {
  19024. # Check whether --enable-libudev was given.
  19025. if test "${enable_libudev+set}" = set; then :
  19026. enableval=$enable_libudev;
  19027. else
  19028. enable_libudev=yes
  19029. fi
  19030. if test x$enable_libudev = xyes; then
  19031. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19032. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19033. have_libudev_h_hdr=yes
  19034. else
  19035. have_libudev_h_hdr=no
  19036. fi
  19037. if test x$have_libudev_h_hdr = xyes; then
  19038. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19039. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19040. if test x$udev_lib != x; then
  19041. echo "-- dynamic udev -> $udev_lib"
  19042. cat >>confdefs.h <<_ACEOF
  19043. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19044. _ACEOF
  19045. fi
  19046. fi
  19047. fi
  19048. }
  19049. CheckDBus()
  19050. {
  19051. # Check whether --enable-dbus was given.
  19052. if test "${enable_dbus+set}" = set; then :
  19053. enableval=$enable_dbus;
  19054. else
  19055. enable_dbus=yes
  19056. fi
  19057. if test x$enable_dbus = xyes; then
  19058. # Extract the first word of "pkg-config", so it can be a program name with args.
  19059. set dummy pkg-config; ac_word=$2
  19060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19061. $as_echo_n "checking for $ac_word... " >&6; }
  19062. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19063. $as_echo_n "(cached) " >&6
  19064. else
  19065. case $PKG_CONFIG in
  19066. [\\/]* | ?:[\\/]*)
  19067. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19068. ;;
  19069. *)
  19070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19071. for as_dir in $PATH
  19072. do
  19073. IFS=$as_save_IFS
  19074. test -z "$as_dir" && as_dir=.
  19075. for ac_exec_ext in '' $ac_executable_extensions; do
  19076. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19077. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19079. break 2
  19080. fi
  19081. done
  19082. done
  19083. IFS=$as_save_IFS
  19084. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19085. ;;
  19086. esac
  19087. fi
  19088. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19089. if test -n "$PKG_CONFIG"; then
  19090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19091. $as_echo "$PKG_CONFIG" >&6; }
  19092. else
  19093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19094. $as_echo "no" >&6; }
  19095. fi
  19096. if test x$PKG_CONFIG != xno; then
  19097. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19098. save_CFLAGS="$CFLAGS"
  19099. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19100. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19101. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19102. have_dbus_dbus_h_hdr=yes
  19103. else
  19104. have_dbus_dbus_h_hdr=no
  19105. fi
  19106. CFLAGS="$save_CFLAGS"
  19107. if test x$have_dbus_dbus_h_hdr = xyes; then
  19108. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19109. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19110. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19111. fi
  19112. fi
  19113. fi
  19114. }
  19115. CheckIME()
  19116. {
  19117. # Check whether --enable-ime was given.
  19118. if test "${enable_ime+set}" = set; then :
  19119. enableval=$enable_ime;
  19120. else
  19121. enable_ime=yes
  19122. fi
  19123. if test x$enable_ime = xyes; then
  19124. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19125. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19126. fi
  19127. }
  19128. CheckIBus()
  19129. {
  19130. # Check whether --enable-ibus was given.
  19131. if test "${enable_ibus+set}" = set; then :
  19132. enableval=$enable_ibus;
  19133. else
  19134. enable_ibus=yes
  19135. fi
  19136. if test x$enable_ibus = xyes; then
  19137. # Extract the first word of "pkg-config", so it can be a program name with args.
  19138. set dummy pkg-config; ac_word=$2
  19139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19140. $as_echo_n "checking for $ac_word... " >&6; }
  19141. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19142. $as_echo_n "(cached) " >&6
  19143. else
  19144. case $PKG_CONFIG in
  19145. [\\/]* | ?:[\\/]*)
  19146. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19147. ;;
  19148. *)
  19149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19150. for as_dir in $PATH
  19151. do
  19152. IFS=$as_save_IFS
  19153. test -z "$as_dir" && as_dir=.
  19154. for ac_exec_ext in '' $ac_executable_extensions; do
  19155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19156. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19158. break 2
  19159. fi
  19160. done
  19161. done
  19162. IFS=$as_save_IFS
  19163. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19164. ;;
  19165. esac
  19166. fi
  19167. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19168. if test -n "$PKG_CONFIG"; then
  19169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19170. $as_echo "$PKG_CONFIG" >&6; }
  19171. else
  19172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19173. $as_echo "no" >&6; }
  19174. fi
  19175. if test x$PKG_CONFIG != xno; then
  19176. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19177. save_CFLAGS="$CFLAGS"
  19178. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19179. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19180. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19181. have_ibus_ibus_h_hdr=yes
  19182. else
  19183. have_ibus_ibus_h_hdr=no
  19184. fi
  19185. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19186. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19187. have_inotify_inotify_h_hdr=yes
  19188. else
  19189. have_inotify_inotify_h_hdr=no
  19190. fi
  19191. CFLAGS="$save_CFLAGS"
  19192. if test x$have_ibus_ibus_h_hdr = xyes; then
  19193. if test x$enable_ime != xyes; then
  19194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19195. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19196. have_ibus_ibus_h_hdr=no
  19197. elif test x$enable_dbus != xyes; then
  19198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19199. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19200. have_ibus_ibus_h_hdr=no
  19201. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19203. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19204. have_ibus_ibus_h_hdr=no
  19205. else
  19206. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19207. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19208. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19209. fi
  19210. fi
  19211. fi
  19212. fi
  19213. }
  19214. CheckFcitx()
  19215. {
  19216. # Check whether --enable-fcitx was given.
  19217. if test "${enable_fcitx+set}" = set; then :
  19218. enableval=$enable_fcitx;
  19219. else
  19220. enable_fcitx=yes
  19221. fi
  19222. if test x$enable_fcitx = xyes; then
  19223. # Extract the first word of "pkg-config", so it can be a program name with args.
  19224. set dummy pkg-config; ac_word=$2
  19225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19226. $as_echo_n "checking for $ac_word... " >&6; }
  19227. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19228. $as_echo_n "(cached) " >&6
  19229. else
  19230. case $PKG_CONFIG in
  19231. [\\/]* | ?:[\\/]*)
  19232. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19233. ;;
  19234. *)
  19235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19236. for as_dir in $PATH
  19237. do
  19238. IFS=$as_save_IFS
  19239. test -z "$as_dir" && as_dir=.
  19240. for ac_exec_ext in '' $ac_executable_extensions; do
  19241. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19242. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19244. break 2
  19245. fi
  19246. done
  19247. done
  19248. IFS=$as_save_IFS
  19249. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19250. ;;
  19251. esac
  19252. fi
  19253. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19254. if test -n "$PKG_CONFIG"; then
  19255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19256. $as_echo "$PKG_CONFIG" >&6; }
  19257. else
  19258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19259. $as_echo "no" >&6; }
  19260. fi
  19261. if test x$PKG_CONFIG != xno; then
  19262. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19263. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19264. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19265. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19266. have_fcitx_frontend_h_hdr=yes
  19267. else
  19268. have_fcitx_frontend_h_hdr=no
  19269. fi
  19270. CFLAGS="$save_CFLAGS"
  19271. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19272. if test x$enable_ime != xyes; then
  19273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19274. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19275. have_fcitx_frontend_h_hdr=no
  19276. elif test x$enable_dbus != xyes; then
  19277. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19278. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19279. have_fcitx_frontend_h_hdr=no
  19280. else
  19281. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19282. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19283. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19284. fi
  19285. fi
  19286. fi
  19287. fi
  19288. }
  19289. CheckTslib()
  19290. {
  19291. # Check whether --enable-input-tslib was given.
  19292. if test "${enable_input_tslib+set}" = set; then :
  19293. enableval=$enable_input_tslib;
  19294. else
  19295. enable_input_tslib=yes
  19296. fi
  19297. if test x$enable_input_tslib = xyes; then
  19298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19299. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19300. enable_input_tslib=no
  19301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19302. /* end confdefs.h. */
  19303. #include "tslib.h"
  19304. int
  19305. main ()
  19306. {
  19307. ;
  19308. return 0;
  19309. }
  19310. _ACEOF
  19311. if ac_fn_c_try_compile "$LINENO"; then :
  19312. enable_input_tslib=yes
  19313. fi
  19314. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19316. $as_echo "$enable_input_tslib" >&6; }
  19317. if test x$enable_input_tslib = xyes; then
  19318. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19319. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19320. SUMMARY_input="${SUMMARY_input} ts"
  19321. fi
  19322. fi
  19323. }
  19324. CheckPTHREAD()
  19325. {
  19326. # Check whether --enable-pthreads was given.
  19327. if test "${enable_pthreads+set}" = set; then :
  19328. enableval=$enable_pthreads;
  19329. else
  19330. enable_pthreads=yes
  19331. fi
  19332. # Check whether --enable-pthread-sem was given.
  19333. if test "${enable_pthread_sem+set}" = set; then :
  19334. enableval=$enable_pthread_sem;
  19335. else
  19336. enable_pthread_sem=yes
  19337. fi
  19338. case "$host" in
  19339. *-*-android*)
  19340. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19341. pthread_lib=""
  19342. ;;
  19343. *-*-linux*|*-*-uclinux*)
  19344. pthread_cflags="-D_REENTRANT"
  19345. pthread_lib="-lpthread"
  19346. ;;
  19347. *-*-bsdi*)
  19348. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19349. pthread_lib=""
  19350. ;;
  19351. *-*-darwin*)
  19352. pthread_cflags="-D_THREAD_SAFE"
  19353. # causes Carbon.p complaints?
  19354. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19355. ;;
  19356. *-*-freebsd*|*-*-dragonfly*)
  19357. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19358. pthread_lib="-pthread"
  19359. ;;
  19360. *-*-netbsd*)
  19361. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19362. pthread_lib="-lpthread"
  19363. ;;
  19364. *-*-openbsd*)
  19365. pthread_cflags="-D_REENTRANT"
  19366. pthread_lib="-pthread"
  19367. ;;
  19368. *-*-solaris2.9)
  19369. # From Solaris 9+, posix4's preferred name is rt.
  19370. pthread_cflags="-D_REENTRANT"
  19371. pthread_lib="-lpthread -lrt"
  19372. ;;
  19373. *-*-solaris2.10)
  19374. # Solaris 10+ merged pthread into libc.
  19375. pthread_cflags="-D_REENTRANT"
  19376. pthread_lib="-lrt"
  19377. ;;
  19378. *-*-solaris*)
  19379. # Solaris 11+ merged rt into libc.
  19380. pthread_cflags="-D_REENTRANT"
  19381. pthread_lib=""
  19382. ;;
  19383. *-*-sysv5*)
  19384. pthread_cflags="-D_REENTRANT -Kthread"
  19385. pthread_lib=""
  19386. ;;
  19387. *-*-aix*)
  19388. pthread_cflags="-D_REENTRANT -mthreads"
  19389. pthread_lib="-lpthread"
  19390. ;;
  19391. *-*-hpux11*)
  19392. pthread_cflags="-D_REENTRANT"
  19393. pthread_lib="-L/usr/lib -lpthread"
  19394. ;;
  19395. *-*-haiku*)
  19396. pthread_cflags="-D_REENTRANT"
  19397. pthread_lib=""
  19398. ;;
  19399. *-*-nto*)
  19400. pthread_cflags="-D_REENTRANT"
  19401. pthread_lib=""
  19402. ;;
  19403. *)
  19404. pthread_cflags="-D_REENTRANT"
  19405. pthread_lib="-lpthread"
  19406. ;;
  19407. esac
  19408. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19409. # Save the original compiler flags and libraries
  19410. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19411. # Add the pthread compiler flags and libraries
  19412. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19413. # Check to see if we have pthread support on this system
  19414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19415. $as_echo_n "checking for pthreads... " >&6; }
  19416. use_pthreads=no
  19417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19418. /* end confdefs.h. */
  19419. #include <pthread.h>
  19420. int
  19421. main ()
  19422. {
  19423. pthread_attr_t type;
  19424. pthread_attr_init(&type);
  19425. ;
  19426. return 0;
  19427. }
  19428. _ACEOF
  19429. if ac_fn_c_try_link "$LINENO"; then :
  19430. use_pthreads=yes
  19431. fi
  19432. rm -f core conftest.err conftest.$ac_objext \
  19433. conftest$ac_exeext conftest.$ac_ext
  19434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19435. $as_echo "$use_pthreads" >&6; }
  19436. # Restore the compiler flags and libraries
  19437. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19438. # Do futher testing if we have pthread support...
  19439. if test x$use_pthreads = xyes; then
  19440. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19441. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19442. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19443. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19444. # Save the original compiler flags and libraries
  19445. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19446. # Add the pthread compiler flags and libraries
  19447. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19448. # Check to see if recursive mutexes are available
  19449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19450. $as_echo_n "checking for recursive mutexes... " >&6; }
  19451. has_recursive_mutexes=no
  19452. if test x$has_recursive_mutexes = xno; then
  19453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19454. /* end confdefs.h. */
  19455. #define _GNU_SOURCE 1
  19456. #include <pthread.h>
  19457. int
  19458. main ()
  19459. {
  19460. pthread_mutexattr_t attr;
  19461. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19462. ;
  19463. return 0;
  19464. }
  19465. _ACEOF
  19466. if ac_fn_c_try_link "$LINENO"; then :
  19467. has_recursive_mutexes=yes
  19468. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19469. fi
  19470. rm -f core conftest.err conftest.$ac_objext \
  19471. conftest$ac_exeext conftest.$ac_ext
  19472. fi
  19473. if test x$has_recursive_mutexes = xno; then
  19474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19475. /* end confdefs.h. */
  19476. #define _GNU_SOURCE 1
  19477. #include <pthread.h>
  19478. int
  19479. main ()
  19480. {
  19481. pthread_mutexattr_t attr;
  19482. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19483. ;
  19484. return 0;
  19485. }
  19486. _ACEOF
  19487. if ac_fn_c_try_link "$LINENO"; then :
  19488. has_recursive_mutexes=yes
  19489. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19490. fi
  19491. rm -f core conftest.err conftest.$ac_objext \
  19492. conftest$ac_exeext conftest.$ac_ext
  19493. fi
  19494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19495. $as_echo "$has_recursive_mutexes" >&6; }
  19496. # Check to see if pthread semaphore support is missing
  19497. if test x$enable_pthread_sem = xyes; then
  19498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19499. $as_echo_n "checking for pthread semaphores... " >&6; }
  19500. have_pthread_sem=no
  19501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19502. /* end confdefs.h. */
  19503. #include <pthread.h>
  19504. #include <semaphore.h>
  19505. int
  19506. main ()
  19507. {
  19508. ;
  19509. return 0;
  19510. }
  19511. _ACEOF
  19512. if ac_fn_c_try_compile "$LINENO"; then :
  19513. have_pthread_sem=yes
  19514. fi
  19515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19517. $as_echo "$have_pthread_sem" >&6; }
  19518. fi
  19519. if test x$have_pthread_sem = xyes; then
  19520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19521. $as_echo_n "checking for sem_timedwait... " >&6; }
  19522. have_sem_timedwait=no
  19523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19524. /* end confdefs.h. */
  19525. #include <pthread.h>
  19526. #include <semaphore.h>
  19527. int
  19528. main ()
  19529. {
  19530. sem_timedwait(NULL, NULL);
  19531. ;
  19532. return 0;
  19533. }
  19534. _ACEOF
  19535. if ac_fn_c_try_link "$LINENO"; then :
  19536. have_sem_timedwait=yes
  19537. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19538. fi
  19539. rm -f core conftest.err conftest.$ac_objext \
  19540. conftest$ac_exeext conftest.$ac_ext
  19541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19542. $as_echo "$have_sem_timedwait" >&6; }
  19543. fi
  19544. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19545. "
  19546. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19547. have_pthread_np_h=yes
  19548. else
  19549. have_pthread_np_h=no
  19550. fi
  19551. if test x$have_pthread_np_h = xyes; then
  19552. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19553. fi
  19554. # Check to see if pthread naming is available
  19555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19556. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19558. /* end confdefs.h. */
  19559. /* Override any GCC internal prototype to avoid an error.
  19560. Use char because int might match the return type of a GCC
  19561. builtin and then its argument prototype would still apply. */
  19562. #ifdef __cplusplus
  19563. extern "C"
  19564. #endif
  19565. char pthread_setname_np ();
  19566. int
  19567. main ()
  19568. {
  19569. return pthread_setname_np ();
  19570. ;
  19571. return 0;
  19572. }
  19573. _ACEOF
  19574. if ac_fn_c_try_link "$LINENO"; then :
  19575. has_pthread_setname_np=yes
  19576. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19577. else
  19578. has_pthread_setname_np=no
  19579. fi
  19580. rm -f core conftest.err conftest.$ac_objext \
  19581. conftest$ac_exeext conftest.$ac_ext
  19582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19583. $as_echo "$has_pthread_setname_np" >&6; }
  19584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19585. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19587. /* end confdefs.h. */
  19588. /* Override any GCC internal prototype to avoid an error.
  19589. Use char because int might match the return type of a GCC
  19590. builtin and then its argument prototype would still apply. */
  19591. #ifdef __cplusplus
  19592. extern "C"
  19593. #endif
  19594. char pthread_set_name_np ();
  19595. int
  19596. main ()
  19597. {
  19598. return pthread_set_name_np ();
  19599. ;
  19600. return 0;
  19601. }
  19602. _ACEOF
  19603. if ac_fn_c_try_link "$LINENO"; then :
  19604. has_pthread_set_name_np=yes
  19605. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19606. else
  19607. has_pthread_set_name_np=no
  19608. fi
  19609. rm -f core conftest.err conftest.$ac_objext \
  19610. conftest$ac_exeext conftest.$ac_ext
  19611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19612. $as_echo "$has_pthread_set_name_np" >&6; }
  19613. # Restore the compiler flags and libraries
  19614. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19615. # Basic thread creation functions
  19616. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19617. # Semaphores
  19618. # We can fake these with mutexes and condition variables if necessary
  19619. if test x$have_pthread_sem = xyes; then
  19620. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19621. else
  19622. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19623. fi
  19624. # Mutexes
  19625. # We can fake these with semaphores if necessary
  19626. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19627. # Condition variables
  19628. # We can fake these with semaphores and mutexes if necessary
  19629. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19630. # Thread local storage
  19631. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19632. have_threads=yes
  19633. fi
  19634. fi
  19635. }
  19636. CheckWINDOWS()
  19637. {
  19638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19639. $as_echo_n "checking Windows compiler... " >&6; }
  19640. have_win32_gcc=no
  19641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19642. /* end confdefs.h. */
  19643. #include <windows.h>
  19644. int
  19645. main ()
  19646. {
  19647. ;
  19648. return 0;
  19649. }
  19650. _ACEOF
  19651. if ac_fn_c_try_compile "$LINENO"; then :
  19652. have_win32_gcc=yes
  19653. fi
  19654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19656. $as_echo "$have_win32_gcc" >&6; }
  19657. if test x$have_win32_gcc != xyes; then
  19658. as_fn_error $? "
  19659. *** Your compiler ($CC) does not produce Windows executables!
  19660. " "$LINENO" 5
  19661. fi
  19662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19663. $as_echo_n "checking Windows CE... " >&6; }
  19664. have_wince=no
  19665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19666. /* end confdefs.h. */
  19667. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19668. #error This is not Windows CE
  19669. #endif
  19670. int
  19671. main ()
  19672. {
  19673. ;
  19674. return 0;
  19675. }
  19676. _ACEOF
  19677. if ac_fn_c_try_compile "$LINENO"; then :
  19678. have_wince=yes
  19679. as_fn_error $? "
  19680. *** Sorry, Windows CE is no longer supported.
  19681. " "$LINENO" 5
  19682. fi
  19683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19685. $as_echo "$have_wince" >&6; }
  19686. # This fixes Windows stack alignment with newer GCC
  19687. CheckStackBoundary
  19688. }
  19689. CheckDIRECTX()
  19690. {
  19691. # Check whether --enable-directx was given.
  19692. if test "${enable_directx+set}" = set; then :
  19693. enableval=$enable_directx;
  19694. else
  19695. enable_directx=yes
  19696. fi
  19697. if test x$enable_directx = xyes; then
  19698. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19699. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19700. have_d3d=yes
  19701. fi
  19702. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19703. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19704. have_d3d11=yes
  19705. fi
  19706. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19707. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19708. have_ddraw=yes
  19709. fi
  19710. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19711. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19712. have_dsound=yes
  19713. fi
  19714. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19715. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19716. have_dinput=yes
  19717. fi
  19718. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19719. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19720. have_dxgi=yes
  19721. fi
  19722. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19723. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19724. have_xinput=yes
  19725. fi
  19726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19727. /* end confdefs.h. */
  19728. #include <windows.h>
  19729. #include <xinput.h>
  19730. XINPUT_GAMEPAD_EX x1;
  19731. int
  19732. main ()
  19733. {
  19734. ;
  19735. return 0;
  19736. }
  19737. _ACEOF
  19738. if ac_fn_c_try_compile "$LINENO"; then :
  19739. have_xinput_gamepadex=yes
  19740. fi
  19741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19743. /* end confdefs.h. */
  19744. #include <windows.h>
  19745. #include <xinput.h>
  19746. XINPUT_STATE_EX s1;
  19747. int
  19748. main ()
  19749. {
  19750. ;
  19751. return 0;
  19752. }
  19753. _ACEOF
  19754. if ac_fn_c_try_compile "$LINENO"; then :
  19755. have_xinput_stateex=yes
  19756. fi
  19757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19758. if test x$have_ddraw = xyes; then
  19759. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19760. fi
  19761. if test x$have_dinput = xyes; then
  19762. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19763. fi
  19764. if test x$have_dsound = xyes; then
  19765. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19766. fi
  19767. if test x$have_dxgi = xyes; then
  19768. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19769. fi
  19770. if test x$have_xinput = xyes; then
  19771. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19772. fi
  19773. if test x$have_xinput_gamepadex = xyes; then
  19774. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19775. fi
  19776. if test x$have_xinput_stateex = xyes; then
  19777. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19778. fi
  19779. SUMMARY_video="${SUMMARY_video} directx"
  19780. SUMMARY_audio="${SUMMARY_audio} directx"
  19781. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19782. # FIXME: ...so force it off for now.
  19783. case "$host" in
  19784. *-*-cygwin*)
  19785. have_dinput=false
  19786. ;;
  19787. esac
  19788. fi
  19789. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19790. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19791. have_wasapi=yes
  19792. fi
  19793. if test x$have_wasapi = xyes; then
  19794. $as_echo "#define HAVE_MMDEVICEAPI_H 1" >>confdefs.h
  19795. fi
  19796. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19797. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19798. else
  19799. have_wasapi=no
  19800. fi
  19801. if test x$have_wasapi = xyes; then
  19802. $as_echo "#define HAVE_AUDIOCLIENT_H 1" >>confdefs.h
  19803. fi
  19804. ac_fn_c_check_header_mongrel "$LINENO" "endpointvolume.h" "ac_cv_header_endpointvolume_h" "$ac_includes_default"
  19805. if test "x$ac_cv_header_endpointvolume_h" = xyes; then :
  19806. $as_echo "#define HAVE_ENDPOINTVOLUME_H 1" >>confdefs.h
  19807. fi
  19808. # Check whether --enable-wasapi was given.
  19809. if test "${enable_wasapi+set}" = set; then :
  19810. enableval=$enable_wasapi;
  19811. else
  19812. enable_wasapi=yes
  19813. fi
  19814. }
  19815. CheckDLOPEN()
  19816. {
  19817. # Check whether --enable-sdl-dlopen was given.
  19818. if test "${enable_sdl_dlopen+set}" = set; then :
  19819. enableval=$enable_sdl_dlopen;
  19820. else
  19821. enable_sdl_dlopen=yes
  19822. fi
  19823. if test x$enable_sdl_dlopen = xyes; then
  19824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19825. $as_echo_n "checking for dlopen... " >&6; }
  19826. have_dlopen=no
  19827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19828. /* end confdefs.h. */
  19829. #include <dlfcn.h>
  19830. int
  19831. main ()
  19832. {
  19833. void *handle = dlopen("", RTLD_NOW);
  19834. const char *loaderror = (char *) dlerror();
  19835. ;
  19836. return 0;
  19837. }
  19838. _ACEOF
  19839. if ac_fn_c_try_compile "$LINENO"; then :
  19840. have_dlopen=yes
  19841. fi
  19842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19844. $as_echo "$have_dlopen" >&6; }
  19845. if test x$have_dlopen = xyes; then
  19846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19847. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19848. if ${ac_cv_lib_c_dlopen+:} false; then :
  19849. $as_echo_n "(cached) " >&6
  19850. else
  19851. ac_check_lib_save_LIBS=$LIBS
  19852. LIBS="-lc $LIBS"
  19853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19854. /* end confdefs.h. */
  19855. /* Override any GCC internal prototype to avoid an error.
  19856. Use char because int might match the return type of a GCC
  19857. builtin and then its argument prototype would still apply. */
  19858. #ifdef __cplusplus
  19859. extern "C"
  19860. #endif
  19861. char dlopen ();
  19862. int
  19863. main ()
  19864. {
  19865. return dlopen ();
  19866. ;
  19867. return 0;
  19868. }
  19869. _ACEOF
  19870. if ac_fn_c_try_link "$LINENO"; then :
  19871. ac_cv_lib_c_dlopen=yes
  19872. else
  19873. ac_cv_lib_c_dlopen=no
  19874. fi
  19875. rm -f core conftest.err conftest.$ac_objext \
  19876. conftest$ac_exeext conftest.$ac_ext
  19877. LIBS=$ac_check_lib_save_LIBS
  19878. fi
  19879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19880. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19881. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19882. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19883. else
  19884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19885. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19886. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19887. $as_echo_n "(cached) " >&6
  19888. else
  19889. ac_check_lib_save_LIBS=$LIBS
  19890. LIBS="-ldl $LIBS"
  19891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19892. /* end confdefs.h. */
  19893. /* Override any GCC internal prototype to avoid an error.
  19894. Use char because int might match the return type of a GCC
  19895. builtin and then its argument prototype would still apply. */
  19896. #ifdef __cplusplus
  19897. extern "C"
  19898. #endif
  19899. char dlopen ();
  19900. int
  19901. main ()
  19902. {
  19903. return dlopen ();
  19904. ;
  19905. return 0;
  19906. }
  19907. _ACEOF
  19908. if ac_fn_c_try_link "$LINENO"; then :
  19909. ac_cv_lib_dl_dlopen=yes
  19910. else
  19911. ac_cv_lib_dl_dlopen=no
  19912. fi
  19913. rm -f core conftest.err conftest.$ac_objext \
  19914. conftest$ac_exeext conftest.$ac_ext
  19915. LIBS=$ac_check_lib_save_LIBS
  19916. fi
  19917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19918. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19919. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19920. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19921. else
  19922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19923. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19924. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19925. $as_echo_n "(cached) " >&6
  19926. else
  19927. ac_check_lib_save_LIBS=$LIBS
  19928. LIBS="-lltdl $LIBS"
  19929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19930. /* end confdefs.h. */
  19931. /* Override any GCC internal prototype to avoid an error.
  19932. Use char because int might match the return type of a GCC
  19933. builtin and then its argument prototype would still apply. */
  19934. #ifdef __cplusplus
  19935. extern "C"
  19936. #endif
  19937. char dlopen ();
  19938. int
  19939. main ()
  19940. {
  19941. return dlopen ();
  19942. ;
  19943. return 0;
  19944. }
  19945. _ACEOF
  19946. if ac_fn_c_try_link "$LINENO"; then :
  19947. ac_cv_lib_ltdl_dlopen=yes
  19948. else
  19949. ac_cv_lib_ltdl_dlopen=no
  19950. fi
  19951. rm -f core conftest.err conftest.$ac_objext \
  19952. conftest$ac_exeext conftest.$ac_ext
  19953. LIBS=$ac_check_lib_save_LIBS
  19954. fi
  19955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19956. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19957. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19958. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19959. fi
  19960. fi
  19961. fi
  19962. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19963. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19964. have_loadso=yes
  19965. fi
  19966. fi
  19967. }
  19968. CheckUSBHID()
  19969. {
  19970. case "$host" in
  19971. *-*-*bsd*)
  19972. if test x$enable_joystick = xyes; then
  19973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19974. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19975. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19976. $as_echo_n "(cached) " >&6
  19977. else
  19978. ac_check_lib_save_LIBS=$LIBS
  19979. LIBS="-lusbhid $LIBS"
  19980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19981. /* end confdefs.h. */
  19982. /* Override any GCC internal prototype to avoid an error.
  19983. Use char because int might match the return type of a GCC
  19984. builtin and then its argument prototype would still apply. */
  19985. #ifdef __cplusplus
  19986. extern "C"
  19987. #endif
  19988. char hid_init ();
  19989. int
  19990. main ()
  19991. {
  19992. return hid_init ();
  19993. ;
  19994. return 0;
  19995. }
  19996. _ACEOF
  19997. if ac_fn_c_try_link "$LINENO"; then :
  19998. ac_cv_lib_usbhid_hid_init=yes
  19999. else
  20000. ac_cv_lib_usbhid_hid_init=no
  20001. fi
  20002. rm -f core conftest.err conftest.$ac_objext \
  20003. conftest$ac_exeext conftest.$ac_ext
  20004. LIBS=$ac_check_lib_save_LIBS
  20005. fi
  20006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20007. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20008. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20009. have_libusbhid=yes
  20010. fi
  20011. if test x$have_libusbhid = xyes; then
  20012. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20013. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20014. USB_CFLAGS="-DHAVE_USBHID_H"
  20015. fi
  20016. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20017. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20018. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20019. fi
  20020. USB_LIBS="$USB_LIBS -lusbhid"
  20021. else
  20022. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20023. if test "x$ac_cv_header_usb_h" = xyes; then :
  20024. USB_CFLAGS="-DHAVE_USB_H"
  20025. fi
  20026. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20027. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20028. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20029. fi
  20030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20031. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20032. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20033. $as_echo_n "(cached) " >&6
  20034. else
  20035. ac_check_lib_save_LIBS=$LIBS
  20036. LIBS="-lusb $LIBS"
  20037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20038. /* end confdefs.h. */
  20039. /* Override any GCC internal prototype to avoid an error.
  20040. Use char because int might match the return type of a GCC
  20041. builtin and then its argument prototype would still apply. */
  20042. #ifdef __cplusplus
  20043. extern "C"
  20044. #endif
  20045. char hid_init ();
  20046. int
  20047. main ()
  20048. {
  20049. return hid_init ();
  20050. ;
  20051. return 0;
  20052. }
  20053. _ACEOF
  20054. if ac_fn_c_try_link "$LINENO"; then :
  20055. ac_cv_lib_usb_hid_init=yes
  20056. else
  20057. ac_cv_lib_usb_hid_init=no
  20058. fi
  20059. rm -f core conftest.err conftest.$ac_objext \
  20060. conftest$ac_exeext conftest.$ac_ext
  20061. LIBS=$ac_check_lib_save_LIBS
  20062. fi
  20063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20064. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20065. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20066. USB_LIBS="$USB_LIBS -lusb"
  20067. fi
  20068. fi
  20069. save_CFLAGS="$CFLAGS"
  20070. CFLAGS="$CFLAGS $USB_CFLAGS"
  20071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20072. $as_echo_n "checking for usbhid... " >&6; }
  20073. have_usbhid=no
  20074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20075. /* end confdefs.h. */
  20076. #include <sys/types.h>
  20077. #if defined(HAVE_USB_H)
  20078. #include <usb.h>
  20079. #endif
  20080. #ifdef __DragonFly__
  20081. # include <bus/usb/usb.h>
  20082. # include <bus/usb/usbhid.h>
  20083. #else
  20084. # include <dev/usb/usb.h>
  20085. # include <dev/usb/usbhid.h>
  20086. #endif
  20087. #if defined(HAVE_USBHID_H)
  20088. #include <usbhid.h>
  20089. #elif defined(HAVE_LIBUSB_H)
  20090. #include <libusb.h>
  20091. #elif defined(HAVE_LIBUSBHID_H)
  20092. #include <libusbhid.h>
  20093. #endif
  20094. int
  20095. main ()
  20096. {
  20097. struct report_desc *repdesc;
  20098. struct usb_ctl_report *repbuf;
  20099. hid_kind_t hidkind;
  20100. ;
  20101. return 0;
  20102. }
  20103. _ACEOF
  20104. if ac_fn_c_try_compile "$LINENO"; then :
  20105. have_usbhid=yes
  20106. fi
  20107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20109. $as_echo "$have_usbhid" >&6; }
  20110. if test x$have_usbhid = xyes; then
  20111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20112. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20113. have_usbhid_ucr_data=no
  20114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20115. /* end confdefs.h. */
  20116. #include <sys/types.h>
  20117. #if defined(HAVE_USB_H)
  20118. #include <usb.h>
  20119. #endif
  20120. #ifdef __DragonFly__
  20121. # include <bus/usb/usb.h>
  20122. # include <bus/usb/usbhid.h>
  20123. #else
  20124. # include <dev/usb/usb.h>
  20125. # include <dev/usb/usbhid.h>
  20126. #endif
  20127. #if defined(HAVE_USBHID_H)
  20128. #include <usbhid.h>
  20129. #elif defined(HAVE_LIBUSB_H)
  20130. #include <libusb.h>
  20131. #elif defined(HAVE_LIBUSBHID_H)
  20132. #include <libusbhid.h>
  20133. #endif
  20134. int
  20135. main ()
  20136. {
  20137. struct usb_ctl_report buf;
  20138. if (buf.ucr_data) { }
  20139. ;
  20140. return 0;
  20141. }
  20142. _ACEOF
  20143. if ac_fn_c_try_compile "$LINENO"; then :
  20144. have_usbhid_ucr_data=yes
  20145. fi
  20146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20147. if test x$have_usbhid_ucr_data = xyes; then
  20148. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20149. fi
  20150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20151. $as_echo "$have_usbhid_ucr_data" >&6; }
  20152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20153. $as_echo_n "checking for new usbhid API... " >&6; }
  20154. have_usbhid_new=no
  20155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20156. /* end confdefs.h. */
  20157. #include <sys/types.h>
  20158. #if defined(HAVE_USB_H)
  20159. #include <usb.h>
  20160. #endif
  20161. #ifdef __DragonFly__
  20162. #include <bus/usb/usb.h>
  20163. #include <bus/usb/usbhid.h>
  20164. #else
  20165. #include <dev/usb/usb.h>
  20166. #include <dev/usb/usbhid.h>
  20167. #endif
  20168. #if defined(HAVE_USBHID_H)
  20169. #include <usbhid.h>
  20170. #elif defined(HAVE_LIBUSB_H)
  20171. #include <libusb.h>
  20172. #elif defined(HAVE_LIBUSBHID_H)
  20173. #include <libusbhid.h>
  20174. #endif
  20175. int
  20176. main ()
  20177. {
  20178. report_desc_t d;
  20179. hid_start_parse(d, 1, 1);
  20180. ;
  20181. return 0;
  20182. }
  20183. _ACEOF
  20184. if ac_fn_c_try_compile "$LINENO"; then :
  20185. have_usbhid_new=yes
  20186. fi
  20187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20188. if test x$have_usbhid_new = xyes; then
  20189. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20190. fi
  20191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20192. $as_echo "$have_usbhid_new" >&6; }
  20193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20194. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20195. have_machine_joystick=no
  20196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20197. /* end confdefs.h. */
  20198. #include <machine/joystick.h>
  20199. int
  20200. main ()
  20201. {
  20202. struct joystick t;
  20203. ;
  20204. return 0;
  20205. }
  20206. _ACEOF
  20207. if ac_fn_c_try_compile "$LINENO"; then :
  20208. have_machine_joystick=yes
  20209. fi
  20210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20211. if test x$have_machine_joystick = xyes; then
  20212. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20213. fi
  20214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20215. $as_echo "$have_machine_joystick" >&6; }
  20216. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20217. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20218. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20219. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20220. have_joystick=yes
  20221. fi
  20222. CFLAGS="$save_CFLAGS"
  20223. fi
  20224. ;;
  20225. esac
  20226. }
  20227. CheckHIDAPI()
  20228. {
  20229. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20230. # so we'll just use libusb when it's available.
  20231. #
  20232. # Except that libusb requires root permissions to open devices, so that's not generally useful, and we'll disable this by default.
  20233. # Check whether --enable-hidapi was given.
  20234. if test "${enable_hidapi+set}" = set; then :
  20235. enableval=$enable_hidapi;
  20236. else
  20237. enable_hidapi=no
  20238. fi
  20239. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20240. hidapi_support=no
  20241. # Extract the first word of "pkg-config", so it can be a program name with args.
  20242. set dummy pkg-config; ac_word=$2
  20243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20244. $as_echo_n "checking for $ac_word... " >&6; }
  20245. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  20246. $as_echo_n "(cached) " >&6
  20247. else
  20248. case $PKG_CONFIG in
  20249. [\\/]* | ?:[\\/]*)
  20250. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20251. ;;
  20252. *)
  20253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20254. for as_dir in $PATH
  20255. do
  20256. IFS=$as_save_IFS
  20257. test -z "$as_dir" && as_dir=.
  20258. for ac_exec_ext in '' $ac_executable_extensions; do
  20259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20260. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20262. break 2
  20263. fi
  20264. done
  20265. done
  20266. IFS=$as_save_IFS
  20267. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  20268. ;;
  20269. esac
  20270. fi
  20271. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20272. if test -n "$PKG_CONFIG"; then
  20273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20274. $as_echo "$PKG_CONFIG" >&6; }
  20275. else
  20276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20277. $as_echo "no" >&6; }
  20278. fi
  20279. if test x$PKG_CONFIG != xno; then
  20280. LIBUSB_CFLAGS=`$PKG_CONFIG --cflags libusb-1.0`
  20281. LIBUSB_LDFLAGS=`$PKG_CONFIG --libs libusb-1.0`
  20282. save_CFLAGS="$CFLAGS"
  20283. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20284. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20285. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20286. have_libusb_h=yes
  20287. fi
  20288. CFLAGS="$save_CFLAGS"
  20289. fi
  20290. if test x$have_libusb_h = xyes; then
  20291. hidapi_support=yes
  20292. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20293. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20294. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20295. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20296. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20297. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LDFLAGS"
  20298. fi
  20299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20300. $as_echo_n "checking for hidapi support... " >&6; }
  20301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20302. $as_echo "$hidapi_support" >&6; }
  20303. fi
  20304. }
  20305. CheckClockGettime()
  20306. {
  20307. # Check whether --enable-clock_gettime was given.
  20308. if test "${enable_clock_gettime+set}" = set; then :
  20309. enableval=$enable_clock_gettime;
  20310. else
  20311. enable_clock_gettime=yes
  20312. fi
  20313. if test x$enable_clock_gettime = xyes; then
  20314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20315. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20316. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20317. $as_echo_n "(cached) " >&6
  20318. else
  20319. ac_check_lib_save_LIBS=$LIBS
  20320. LIBS="-lrt $LIBS"
  20321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20322. /* end confdefs.h. */
  20323. /* Override any GCC internal prototype to avoid an error.
  20324. Use char because int might match the return type of a GCC
  20325. builtin and then its argument prototype would still apply. */
  20326. #ifdef __cplusplus
  20327. extern "C"
  20328. #endif
  20329. char clock_gettime ();
  20330. int
  20331. main ()
  20332. {
  20333. return clock_gettime ();
  20334. ;
  20335. return 0;
  20336. }
  20337. _ACEOF
  20338. if ac_fn_c_try_link "$LINENO"; then :
  20339. ac_cv_lib_rt_clock_gettime=yes
  20340. else
  20341. ac_cv_lib_rt_clock_gettime=no
  20342. fi
  20343. rm -f core conftest.err conftest.$ac_objext \
  20344. conftest$ac_exeext conftest.$ac_ext
  20345. LIBS=$ac_check_lib_save_LIBS
  20346. fi
  20347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20348. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20349. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20350. have_clock_gettime=yes
  20351. fi
  20352. if test x$have_clock_gettime = xyes; then
  20353. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20354. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20355. else
  20356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20357. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20358. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20359. $as_echo_n "(cached) " >&6
  20360. else
  20361. ac_check_lib_save_LIBS=$LIBS
  20362. LIBS="-lc $LIBS"
  20363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20364. /* end confdefs.h. */
  20365. /* Override any GCC internal prototype to avoid an error.
  20366. Use char because int might match the return type of a GCC
  20367. builtin and then its argument prototype would still apply. */
  20368. #ifdef __cplusplus
  20369. extern "C"
  20370. #endif
  20371. char clock_gettime ();
  20372. int
  20373. main ()
  20374. {
  20375. return clock_gettime ();
  20376. ;
  20377. return 0;
  20378. }
  20379. _ACEOF
  20380. if ac_fn_c_try_link "$LINENO"; then :
  20381. ac_cv_lib_c_clock_gettime=yes
  20382. else
  20383. ac_cv_lib_c_clock_gettime=no
  20384. fi
  20385. rm -f core conftest.err conftest.$ac_objext \
  20386. conftest$ac_exeext conftest.$ac_ext
  20387. LIBS=$ac_check_lib_save_LIBS
  20388. fi
  20389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20390. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20391. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20392. have_clock_gettime=yes
  20393. fi
  20394. if test x$have_clock_gettime = xyes; then
  20395. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20396. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20397. fi
  20398. fi
  20399. fi
  20400. }
  20401. CheckLinuxVersion()
  20402. {
  20403. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20404. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20405. have_linux_version_h=yes
  20406. fi
  20407. if test x$have_linux_version_h = xyes; then
  20408. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20409. fi
  20410. }
  20411. CheckRPATH()
  20412. {
  20413. # Check whether --enable-rpath was given.
  20414. if test "${enable_rpath+set}" = set; then :
  20415. enableval=$enable_rpath;
  20416. else
  20417. enable_rpath=yes
  20418. fi
  20419. }
  20420. CheckWarnAll
  20421. case "$host" in
  20422. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20423. case "$host" in
  20424. *-*-android*)
  20425. # Android
  20426. ARCH=android
  20427. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20428. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20429. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20430. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20431. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20432. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20433. if test x$enable_video = xyes; then
  20434. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20435. # FIXME: confdefs? Not AC_DEFINE?
  20436. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20437. SUMMARY_video="${SUMMARY_video} android"
  20438. fi
  20439. ;;
  20440. *-*-linux*) ARCH=linux ;;
  20441. *-*-uclinux*) ARCH=linux ;;
  20442. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20443. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20444. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20445. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20446. *-*-bsdi*) ARCH=bsdi ;;
  20447. *-*-freebsd*) ARCH=freebsd ;;
  20448. *-*-dragonfly*) ARCH=freebsd ;;
  20449. *-*-netbsd*) ARCH=netbsd ;;
  20450. *-*-openbsd*) ARCH=openbsd ;;
  20451. *-*-sysv5*) ARCH=sysv5 ;;
  20452. *-*-solaris*) ARCH=solaris ;;
  20453. *-*-hpux*) ARCH=hpux ;;
  20454. *-*-aix*) ARCH=aix ;;
  20455. *-*-minix*) ARCH=minix ;;
  20456. *-*-nto*) ARCH=nto
  20457. CheckQNXVideo
  20458. ;;
  20459. esac
  20460. CheckVisibilityHidden
  20461. CheckDeclarationAfterStatement
  20462. CheckDummyVideo
  20463. CheckDiskAudio
  20464. CheckDummyAudio
  20465. CheckDLOPEN
  20466. CheckOSS
  20467. CheckALSA
  20468. CheckPulseAudio
  20469. CheckJACK
  20470. CheckARTSC
  20471. CheckESD
  20472. CheckNAS
  20473. CheckSNDIO
  20474. CheckFusionSound
  20475. CheckLibSampleRate
  20476. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20477. CheckRPI
  20478. CheckX11
  20479. CheckDirectFB
  20480. CheckKMSDRM
  20481. CheckOpenGLX11
  20482. CheckOpenGLESX11
  20483. CheckVulkan
  20484. CheckWayland
  20485. CheckLibUDev
  20486. CheckDBus
  20487. CheckIME
  20488. CheckIBus
  20489. CheckFcitx
  20490. case $ARCH in
  20491. linux)
  20492. CheckInputEvents
  20493. CheckInputKD
  20494. ;;
  20495. esac
  20496. CheckTslib
  20497. CheckUSBHID
  20498. CheckHIDAPI
  20499. CheckPTHREAD
  20500. CheckClockGettime
  20501. CheckLinuxVersion
  20502. CheckRPATH
  20503. CheckVivanteVideo
  20504. # Set up files for the audio library
  20505. if test x$enable_audio = xyes; then
  20506. case $ARCH in
  20507. sysv5|solaris|hpux)
  20508. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20509. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20510. SUMMARY_audio="${SUMMARY_audio} sun"
  20511. have_audio=yes
  20512. ;;
  20513. netbsd) # Don't use this on OpenBSD, it's busted.
  20514. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20515. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20516. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20517. have_audio=yes
  20518. ;;
  20519. aix)
  20520. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20521. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20522. SUMMARY_audio="${SUMMARY_audio} paudio"
  20523. have_audio=yes
  20524. ;;
  20525. android)
  20526. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20527. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20528. SUMMARY_audio="${SUMMARY_audio} android"
  20529. have_audio=yes
  20530. ;;
  20531. nto)
  20532. CheckQNXAudio
  20533. ;;
  20534. esac
  20535. fi
  20536. # Set up files for the joystick library
  20537. if test x$enable_joystick = xyes; then
  20538. case $ARCH in
  20539. linux)
  20540. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20541. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20542. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20543. have_joystick=yes
  20544. ;;
  20545. android)
  20546. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20547. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20548. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20549. have_joystick=yes
  20550. ;;
  20551. esac
  20552. fi
  20553. # Set up files for the haptic library
  20554. if test x$enable_haptic = xyes; then
  20555. case $ARCH in
  20556. linux)
  20557. if test x$use_input_events = xyes; then
  20558. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20559. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20560. have_haptic=yes
  20561. fi
  20562. ;;
  20563. android)
  20564. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20565. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20566. have_haptic=yes
  20567. ;;
  20568. esac
  20569. fi
  20570. # Set up files for the sensor library
  20571. if test x$enable_sensor = xyes; then
  20572. case $ARCH in
  20573. android)
  20574. $as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
  20575. SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
  20576. have_sensor=yes
  20577. ;;
  20578. esac
  20579. fi
  20580. # Set up files for the power library
  20581. if test x$enable_power = xyes; then
  20582. case $ARCH in
  20583. linux)
  20584. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20585. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20586. have_power=yes
  20587. ;;
  20588. android)
  20589. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20590. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20591. have_power=yes
  20592. ;;
  20593. esac
  20594. fi
  20595. # Set up files for the filesystem library
  20596. if test x$enable_filesystem = xyes; then
  20597. case $ARCH in
  20598. android)
  20599. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20600. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20601. have_filesystem=yes
  20602. ;;
  20603. *)
  20604. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20605. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20606. have_filesystem=yes
  20607. ;;
  20608. esac
  20609. fi
  20610. # Set up files for the timer library
  20611. if test x$enable_timers = xyes; then
  20612. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20613. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20614. have_timers=yes
  20615. fi
  20616. # Set up files for udev hotplugging support
  20617. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20618. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20619. fi
  20620. # Set up files for evdev input
  20621. if test x$use_input_events = xyes; then
  20622. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20623. fi
  20624. # Set up other core UNIX files
  20625. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_threadprio.c"
  20626. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20627. ;;
  20628. *-*-cygwin* | *-*-mingw32*)
  20629. ARCH=win32
  20630. if test "$build" != "$host"; then # cross-compiling
  20631. # Default cross-compile location
  20632. ac_default_prefix=/usr/local/cross-tools/$host
  20633. else
  20634. # Look for the location of the tools and install there
  20635. if test "$BUILD_PREFIX" != ""; then
  20636. ac_default_prefix=$BUILD_PREFIX
  20637. fi
  20638. fi
  20639. CheckDeclarationAfterStatement
  20640. CheckDummyVideo
  20641. CheckDiskAudio
  20642. CheckDummyAudio
  20643. CheckWINDOWS
  20644. CheckWINDOWSGL
  20645. CheckWINDOWSGLES
  20646. CheckVulkan
  20647. CheckDIRECTX
  20648. # Set up the core platform files
  20649. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20650. # Set up files for the video library
  20651. if test x$enable_video = xyes; then
  20652. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20653. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20654. have_video=yes
  20655. # Check whether --enable-render-d3d was given.
  20656. if test "${enable_render_d3d+set}" = set; then :
  20657. enableval=$enable_render_d3d;
  20658. else
  20659. enable_render_d3d=yes
  20660. fi
  20661. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20662. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20663. fi
  20664. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20665. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20666. fi
  20667. fi
  20668. # Set up files for the audio library
  20669. if test x$enable_audio = xyes; then
  20670. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20671. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20672. if test x$have_dsound = xyes; then
  20673. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20674. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20675. fi
  20676. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  20677. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20678. SUMMARY_audio="${SUMMARY_audio} wasapi"
  20679. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20680. fi
  20681. have_audio=yes
  20682. fi
  20683. # Set up files for the joystick library
  20684. if test x$enable_joystick = xyes; then
  20685. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20686. if test x$have_xinput = xyes; then
  20687. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20688. fi
  20689. if test x$have_dinput = xyes; then
  20690. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20691. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20692. fi
  20693. else
  20694. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20695. fi
  20696. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20697. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20698. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20699. SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
  20700. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20701. have_joystick=yes
  20702. fi
  20703. if test x$enable_haptic = xyes; then
  20704. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20705. if test x$have_xinput = xyes; then
  20706. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20707. fi
  20708. if test x$have_dinput = xyes; then
  20709. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20710. fi
  20711. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20712. have_haptic=yes
  20713. fi
  20714. fi
  20715. if test x$enable_power = xyes; then
  20716. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20717. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20718. have_power=yes
  20719. fi
  20720. if test x$enable_filesystem = xyes; then
  20721. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20722. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20723. have_filesystem=yes
  20724. fi
  20725. # Set up files for the thread library
  20726. if test x$enable_threads = xyes; then
  20727. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20728. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20729. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20730. have_threads=yes
  20731. fi
  20732. # Set up files for the timer library
  20733. if test x$enable_timers = xyes; then
  20734. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20735. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20736. have_timers=yes
  20737. fi
  20738. # Set up files for the shared object loading library
  20739. if test x$enable_loadso = xyes; then
  20740. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20741. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20742. have_loadso=yes
  20743. fi
  20744. # Set up the system libraries we need
  20745. if test -f /lib/w32api/libuuid.a; then
  20746. LIBUUID=/lib/w32api/libuuid.a
  20747. else
  20748. LIBUUID=-luuid
  20749. fi
  20750. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  20751. # The Windows platform requires special setup
  20752. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20753. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20754. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20755. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20756. # Check to see if this is a mingw or cygwin build
  20757. have_mingw32=
  20758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20759. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20760. if ${ac_cv_lib_mingw32_main+:} false; then :
  20761. $as_echo_n "(cached) " >&6
  20762. else
  20763. ac_check_lib_save_LIBS=$LIBS
  20764. LIBS="-lmingw32 $LIBS"
  20765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20766. /* end confdefs.h. */
  20767. int
  20768. main ()
  20769. {
  20770. return main ();
  20771. ;
  20772. return 0;
  20773. }
  20774. _ACEOF
  20775. if ac_fn_c_try_link "$LINENO"; then :
  20776. ac_cv_lib_mingw32_main=yes
  20777. else
  20778. ac_cv_lib_mingw32_main=no
  20779. fi
  20780. rm -f core conftest.err conftest.$ac_objext \
  20781. conftest$ac_exeext conftest.$ac_ext
  20782. LIBS=$ac_check_lib_save_LIBS
  20783. fi
  20784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20785. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20786. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20787. have_mingw32=yes
  20788. fi
  20789. if test x$have_mingw32 = xyes; then
  20790. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20791. else
  20792. SDL_LIBS="-lcygwin $SDL_LIBS"
  20793. fi
  20794. ;;
  20795. *-*-beos*)
  20796. as_fn_error $? "
  20797. *** BeOS support has been removed as of SDL 2.0.2.
  20798. " "$LINENO" 5
  20799. ;;
  20800. *-*-haiku*)
  20801. ARCH=haiku
  20802. ac_default_prefix=/boot/system
  20803. CheckDummyVideo
  20804. CheckDiskAudio
  20805. CheckDummyAudio
  20806. CheckDLOPEN
  20807. CheckHaikuVideo
  20808. CheckHaikuGL
  20809. CheckPTHREAD
  20810. # Set up files for the audio library
  20811. if test x$enable_audio = xyes; then
  20812. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20813. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20814. SUMMARY_audio="${SUMMARY_audio} haiku"
  20815. have_audio=yes
  20816. fi
  20817. # Set up files for the joystick library
  20818. if test x$enable_joystick = xyes; then
  20819. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20820. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20821. have_joystick=yes
  20822. fi
  20823. # Set up files for the timer library
  20824. if test x$enable_timers = xyes; then
  20825. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20826. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20827. have_timers=yes
  20828. fi
  20829. # Set up files for the system power library
  20830. if test x$enable_power = xyes; then
  20831. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20832. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20833. have_power=yes
  20834. fi
  20835. # Set up files for the system filesystem library
  20836. if test x$enable_filesystem = xyes; then
  20837. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20838. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20839. have_filesystem=yes
  20840. fi
  20841. # The Haiku platform requires special setup.
  20842. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20843. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20844. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20845. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20846. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20848. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20849. if eval \${$as_ac_File+:} false; then :
  20850. $as_echo_n "(cached) " >&6
  20851. else
  20852. test "$cross_compiling" = yes &&
  20853. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20854. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20855. eval "$as_ac_File=yes"
  20856. else
  20857. eval "$as_ac_File=no"
  20858. fi
  20859. fi
  20860. eval ac_res=\$$as_ac_File
  20861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20862. $as_echo "$ac_res" >&6; }
  20863. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20865. else
  20866. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20867. fi
  20868. ;;
  20869. arm*-apple-darwin*|*-ios-*)
  20870. ARCH=ios
  20871. CheckVisibilityHidden
  20872. CheckDeclarationAfterStatement
  20873. CheckDummyVideo
  20874. CheckDiskAudio
  20875. CheckDummyAudio
  20876. CheckDLOPEN
  20877. CheckMETAL
  20878. CheckVulkan
  20879. CheckPTHREAD
  20880. # Set up files for the audio library
  20881. if test x$enable_audio = xyes; then
  20882. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20883. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20884. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20885. have_audio=yes
  20886. fi
  20887. # Set up files for the joystick library
  20888. if test x$enable_joystick = xyes; then
  20889. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20890. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20891. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20892. have_joystick=yes
  20893. fi
  20894. # Set up files for the haptic library
  20895. #if test x$enable_haptic = xyes; then
  20896. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20897. # have_haptic=yes
  20898. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20899. #fi
  20900. # Set up files for the power library
  20901. if test x$enable_power = xyes; then
  20902. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20903. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20904. have_power=yes
  20905. fi
  20906. # Set up files for the filesystem library
  20907. if test x$enable_filesystem = xyes; then
  20908. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20909. have_filesystem=yes
  20910. fi
  20911. # Set up additional files for the file library
  20912. if test x$enable_file = xyes; then
  20913. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20914. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20915. fi
  20916. # Set up files for the timer library
  20917. if test x$enable_timers = xyes; then
  20918. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20919. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20920. have_timers=yes
  20921. fi
  20922. # Set up other core UNIX files
  20923. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20924. # The iOS platform requires special setup.
  20925. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20926. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20927. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20928. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20929. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20930. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20932. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20933. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20934. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20935. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20938. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20939. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20940. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20941. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20942. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20943. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  20944. fi
  20945. ;;
  20946. *-*-darwin* )
  20947. # This could be either full "Mac OS X", or plain "Darwin" which is
  20948. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20949. # Next line is broken, and a few files below require Mac OS X (full)
  20950. ARCH=macosx
  20951. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20952. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20953. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20954. CheckVisibilityHidden
  20955. CheckDeclarationAfterStatement
  20956. CheckDummyVideo
  20957. CheckDiskAudio
  20958. CheckDummyAudio
  20959. CheckDLOPEN
  20960. CheckCOCOA
  20961. CheckMETAL
  20962. CheckX11
  20963. CheckMacGL
  20964. CheckMacGLES
  20965. CheckOpenGLX11
  20966. CheckVulkan
  20967. CheckPTHREAD
  20968. # Set up files for the audio library
  20969. if test x$enable_audio = xyes; then
  20970. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20971. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20972. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20973. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20974. have_audio=yes
  20975. fi
  20976. # Set up files for the joystick library
  20977. if test x$enable_joystick = xyes; then
  20978. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20979. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20980. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20981. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20982. SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
  20983. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20984. have_joystick=yes
  20985. fi
  20986. # Set up files for the haptic library
  20987. if test x$enable_haptic = xyes; then
  20988. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20989. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20990. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20991. have_haptic=yes
  20992. fi
  20993. # Set up files for the power library
  20994. if test x$enable_power = xyes; then
  20995. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20996. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20997. have_power=yes
  20998. fi
  20999. # Set up files for the filesystem library
  21000. if test x$enable_filesystem = xyes; then
  21001. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21002. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21003. have_filesystem=yes
  21004. fi
  21005. # Set up files for the timer library
  21006. if test x$enable_timers = xyes; then
  21007. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21008. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21009. have_timers=yes
  21010. fi
  21011. # Set up additional files for the file library
  21012. if test x$enable_file = xyes; then
  21013. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21014. fi
  21015. # Set up other core UNIX files
  21016. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21017. # The Mac OS X platform requires special setup.
  21018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21019. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21020. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21021. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21022. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21023. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21024. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21025. fi
  21026. ;;
  21027. *-nacl|*-pnacl)
  21028. ARCH=nacl
  21029. CheckNativeClient
  21030. CheckDummyAudio
  21031. CheckDummyVideo
  21032. CheckInputEvents
  21033. CheckPTHREAD
  21034. # Set up files for the timer library
  21035. if test x$enable_timers = xyes; then
  21036. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21037. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21038. have_timers=yes
  21039. fi
  21040. if test x$enable_filesystem = xyes; then
  21041. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21042. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21043. have_filesystem=yes
  21044. fi
  21045. ;;
  21046. *-*-emscripten* )
  21047. if test x$enable_video = xyes; then
  21048. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21049. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21050. have_video=yes
  21051. SUMMARY_video="${SUMMARY_video} emscripten"
  21052. fi
  21053. if test x$enable_audio = xyes; then
  21054. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21055. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21056. have_audio=yes
  21057. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21058. fi
  21059. CheckVisibilityHidden
  21060. CheckDeclarationAfterStatement
  21061. CheckDummyVideo
  21062. CheckDiskAudio
  21063. CheckDummyAudio
  21064. CheckDLOPEN
  21065. CheckClockGettime
  21066. CheckEmscriptenGLES
  21067. # Set up files for the power library
  21068. if test x$enable_power = xyes; then
  21069. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21070. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21071. have_power=yes
  21072. fi
  21073. # Set up files for the power library
  21074. if test x$enable_joystick = xyes; then
  21075. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21076. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21077. have_joystick=yes
  21078. fi
  21079. # Set up files for the filesystem library
  21080. if test x$enable_filesystem = xyes; then
  21081. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21082. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21083. have_filesystem=yes
  21084. fi
  21085. # Set up files for the timer library
  21086. if test x$enable_timers = xyes; then
  21087. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21088. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21089. have_timers=yes
  21090. fi
  21091. ;;
  21092. *)
  21093. as_fn_error $? "
  21094. *** Unsupported host: Please add to configure.in
  21095. " "$LINENO" 5
  21096. ;;
  21097. esac
  21098. # Verify that we have all the platform specific files we need
  21099. if test x$have_joystick != xyes; then
  21100. if test x$enable_joystick = xyes; then
  21101. $as_echo "#define SDL_JOYSTICK_DUMMY 1" >>confdefs.h
  21102. fi
  21103. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21104. fi
  21105. if test x$have_haptic != xyes; then
  21106. if test x$enable_haptic = xyes; then
  21107. $as_echo "#define SDL_HAPTIC_DUMMY 1" >>confdefs.h
  21108. fi
  21109. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21110. fi
  21111. if test x$have_sensor != xyes; then
  21112. if test x$enable_sensor = xyes; then
  21113. $as_echo "#define SDL_SENSOR_DUMMY 1" >>confdefs.h
  21114. fi
  21115. SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
  21116. fi
  21117. if test x$have_threads != xyes; then
  21118. if test x$enable_threads = xyes; then
  21119. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21120. fi
  21121. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21122. fi
  21123. if test x$have_timers != xyes; then
  21124. if test x$enable_timers = xyes; then
  21125. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21126. fi
  21127. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21128. fi
  21129. if test x$have_filesystem != xyes; then
  21130. if test x$enable_filesystem = xyes; then
  21131. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21132. fi
  21133. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21134. fi
  21135. if test x$have_loadso != xyes; then
  21136. if test x$enable_loadso = xyes; then
  21137. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21138. fi
  21139. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21140. fi
  21141. if test x$SDLMAIN_SOURCES = x; then
  21142. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21143. fi
  21144. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21145. if test x$video_wayland = xyes; then
  21146. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21147. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21148. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21149. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21150. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21151. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21152. echo ;\
  21153. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21154. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21155. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21156. echo ;\
  21157. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21158. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21159. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21160. echo ;\
  21161. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21162. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21163. done ;\
  21164. echo ;\
  21165. for s in $WAYLAND_SOURCES ; do echo -n "\$s:" ; for p in $WAYLAND_PROTOCOLS ; do echo -n " \\$(gen)/\$p-client-protocol.h" ; done ; echo ; done ; echo`
  21166. fi
  21167. OBJECTS=`echo $SOURCES`
  21168. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21169. for EXT in asm cc m c S; do
  21170. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21171. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21172. \\$(objects)/\\2.lo: \\1/\\2.$EXT \\$(objects)/.created\\\\
  21173. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21174. done
  21175. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21176. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21177. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21178. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21179. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21180. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21181. \\$(WINDRES) \\$< \\$@,g"`
  21182. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21183. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21184. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21185. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21186. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21187. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21188. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21189. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21190. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21191. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21192. \\$(objects)/\\2.lo: \\1/\\2.c \\$(objects)/.created\\\\
  21193. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21194. # Set runtime shared library paths as needed
  21195. if test "x$enable_rpath" = "xyes"; then
  21196. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21197. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21199. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21200. have_enable_new_dtags=no
  21201. save_LDFLAGS="$LDFLAGS"
  21202. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21204. /* end confdefs.h. */
  21205. int
  21206. main ()
  21207. {
  21208. ;
  21209. return 0;
  21210. }
  21211. _ACEOF
  21212. if ac_fn_c_try_link "$LINENO"; then :
  21213. have_enable_new_dtags=yes
  21214. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21215. fi
  21216. rm -f core conftest.err conftest.$ac_objext \
  21217. conftest$ac_exeext conftest.$ac_ext
  21218. LDFLAGS="$save_LDFLAGS"
  21219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21220. $as_echo "$have_enable_new_dtags" >&6; }
  21221. fi
  21222. if test $ARCH = solaris; then
  21223. SDL_RLD_FLAGS="-R\${libdir}"
  21224. fi
  21225. else
  21226. SDL_RLD_FLAGS=""
  21227. fi
  21228. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21229. if test x$enable_shared = xyes; then
  21230. ENABLE_SHARED_TRUE=
  21231. ENABLE_SHARED_FALSE="#"
  21232. else
  21233. ENABLE_SHARED_TRUE="#"
  21234. ENABLE_SHARED_FALSE=
  21235. fi
  21236. if test x$enable_static = xyes; then
  21237. ENABLE_STATIC_TRUE=
  21238. ENABLE_STATIC_FALSE="#"
  21239. else
  21240. ENABLE_STATIC_TRUE="#"
  21241. ENABLE_STATIC_FALSE=
  21242. fi
  21243. cat >Makefile.rules <<__EOF__
  21244. # Build rules for objects
  21245. -include \$(OBJECTS:.lo=.d)
  21246. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21247. $srcdir/src/SDL.c: update-revision
  21248. $DEPENDS
  21249. $VERSION_DEPENDS
  21250. $SDLMAIN_DEPENDS
  21251. $SDLTEST_DEPENDS
  21252. $WAYLAND_PROTOCOLS_DEPENDS
  21253. __EOF__
  21254. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21255. ac_config_commands="$ac_config_commands sdl2_config"
  21256. SUMMARY="SDL2 Configure Summary:\n"
  21257. if test x$enable_shared = xyes; then
  21258. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21259. fi
  21260. if test x$enable_static = xyes; then
  21261. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21262. fi
  21263. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21264. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21265. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21266. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21267. if test x$have_x = xyes; then
  21268. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21269. fi
  21270. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21271. if test x$have_samplerate_h_hdr = xyes; then
  21272. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21273. else
  21274. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21275. fi
  21276. if test x$have_libudev_h_hdr = xyes; then
  21277. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21278. else
  21279. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21280. fi
  21281. if test x$have_dbus_dbus_h_hdr = xyes; then
  21282. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21283. else
  21284. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21285. fi
  21286. if test x$enable_ime = xyes; then
  21287. SUMMARY="${SUMMARY}Using ime : YES\n"
  21288. else
  21289. SUMMARY="${SUMMARY}Using ime : NO\n"
  21290. fi
  21291. if test x$have_ibus_ibus_h_hdr = xyes; then
  21292. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21293. else
  21294. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21295. fi
  21296. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21297. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21298. else
  21299. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21300. fi
  21301. ac_config_commands="$ac_config_commands summary"
  21302. cat >confcache <<\_ACEOF
  21303. # This file is a shell script that caches the results of configure
  21304. # tests run on this system so they can be shared between configure
  21305. # scripts and configure runs, see configure's option --config-cache.
  21306. # It is not useful on other systems. If it contains results you don't
  21307. # want to keep, you may remove or edit it.
  21308. #
  21309. # config.status only pays attention to the cache file if you give it
  21310. # the --recheck option to rerun configure.
  21311. #
  21312. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21313. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21314. # following values.
  21315. _ACEOF
  21316. # The following way of writing the cache mishandles newlines in values,
  21317. # but we know of no workaround that is simple, portable, and efficient.
  21318. # So, we kill variables containing newlines.
  21319. # Ultrix sh set writes to stderr and can't be redirected directly,
  21320. # and sets the high bit in the cache file unless we assign to the vars.
  21321. (
  21322. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21323. eval ac_val=\$$ac_var
  21324. case $ac_val in #(
  21325. *${as_nl}*)
  21326. case $ac_var in #(
  21327. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21328. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21329. esac
  21330. case $ac_var in #(
  21331. _ | IFS | as_nl) ;; #(
  21332. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21333. *) { eval $ac_var=; unset $ac_var;} ;;
  21334. esac ;;
  21335. esac
  21336. done
  21337. (set) 2>&1 |
  21338. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21339. *${as_nl}ac_space=\ *)
  21340. # `set' does not quote correctly, so add quotes: double-quote
  21341. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21342. sed -n \
  21343. "s/'/'\\\\''/g;
  21344. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21345. ;; #(
  21346. *)
  21347. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21348. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21349. ;;
  21350. esac |
  21351. sort
  21352. ) |
  21353. sed '
  21354. /^ac_cv_env_/b end
  21355. t clear
  21356. :clear
  21357. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21358. t end
  21359. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21360. :end' >>confcache
  21361. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21362. if test -w "$cache_file"; then
  21363. if test "x$cache_file" != "x/dev/null"; then
  21364. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21365. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21366. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21367. cat confcache >"$cache_file"
  21368. else
  21369. case $cache_file in #(
  21370. */* | ?:*)
  21371. mv -f confcache "$cache_file"$$ &&
  21372. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21373. *)
  21374. mv -f confcache "$cache_file" ;;
  21375. esac
  21376. fi
  21377. fi
  21378. else
  21379. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21380. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21381. fi
  21382. fi
  21383. rm -f confcache
  21384. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21385. # Let make expand exec_prefix.
  21386. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21387. DEFS=-DHAVE_CONFIG_H
  21388. ac_libobjs=
  21389. ac_ltlibobjs=
  21390. U=
  21391. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21392. # 1. Remove the extension, and $U if already installed.
  21393. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21394. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21395. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21396. # will be set to the directory where LIBOBJS objects are built.
  21397. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21398. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21399. done
  21400. LIBOBJS=$ac_libobjs
  21401. LTLIBOBJS=$ac_ltlibobjs
  21402. : "${CONFIG_STATUS=./config.status}"
  21403. ac_write_fail=0
  21404. ac_clean_files_save=$ac_clean_files
  21405. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21406. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21407. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21408. as_write_fail=0
  21409. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21410. #! $SHELL
  21411. # Generated by $as_me.
  21412. # Run this file to recreate the current configuration.
  21413. # Compiler output produced by configure, useful for debugging
  21414. # configure, is in config.log if it exists.
  21415. debug=false
  21416. ac_cs_recheck=false
  21417. ac_cs_silent=false
  21418. SHELL=\${CONFIG_SHELL-$SHELL}
  21419. export SHELL
  21420. _ASEOF
  21421. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21422. ## -------------------- ##
  21423. ## M4sh Initialization. ##
  21424. ## -------------------- ##
  21425. # Be more Bourne compatible
  21426. DUALCASE=1; export DUALCASE # for MKS sh
  21427. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21428. emulate sh
  21429. NULLCMD=:
  21430. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21431. # is contrary to our usage. Disable this feature.
  21432. alias -g '${1+"$@"}'='"$@"'
  21433. setopt NO_GLOB_SUBST
  21434. else
  21435. case `(set -o) 2>/dev/null` in #(
  21436. *posix*) :
  21437. set -o posix ;; #(
  21438. *) :
  21439. ;;
  21440. esac
  21441. fi
  21442. as_nl='
  21443. '
  21444. export as_nl
  21445. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21446. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21447. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21448. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21449. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21450. # but without wasting forks for bash or zsh.
  21451. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21452. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21453. as_echo='print -r --'
  21454. as_echo_n='print -rn --'
  21455. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21456. as_echo='printf %s\n'
  21457. as_echo_n='printf %s'
  21458. else
  21459. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21460. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21461. as_echo_n='/usr/ucb/echo -n'
  21462. else
  21463. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21464. as_echo_n_body='eval
  21465. arg=$1;
  21466. case $arg in #(
  21467. *"$as_nl"*)
  21468. expr "X$arg" : "X\\(.*\\)$as_nl";
  21469. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21470. esac;
  21471. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21472. '
  21473. export as_echo_n_body
  21474. as_echo_n='sh -c $as_echo_n_body as_echo'
  21475. fi
  21476. export as_echo_body
  21477. as_echo='sh -c $as_echo_body as_echo'
  21478. fi
  21479. # The user is always right.
  21480. if test "${PATH_SEPARATOR+set}" != set; then
  21481. PATH_SEPARATOR=:
  21482. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21483. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21484. PATH_SEPARATOR=';'
  21485. }
  21486. fi
  21487. # IFS
  21488. # We need space, tab and new line, in precisely that order. Quoting is
  21489. # there to prevent editors from complaining about space-tab.
  21490. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21491. # splitting by setting IFS to empty value.)
  21492. IFS=" "" $as_nl"
  21493. # Find who we are. Look in the path if we contain no directory separator.
  21494. as_myself=
  21495. case $0 in #((
  21496. *[\\/]* ) as_myself=$0 ;;
  21497. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21498. for as_dir in $PATH
  21499. do
  21500. IFS=$as_save_IFS
  21501. test -z "$as_dir" && as_dir=.
  21502. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21503. done
  21504. IFS=$as_save_IFS
  21505. ;;
  21506. esac
  21507. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21508. # in which case we are not to be found in the path.
  21509. if test "x$as_myself" = x; then
  21510. as_myself=$0
  21511. fi
  21512. if test ! -f "$as_myself"; then
  21513. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21514. exit 1
  21515. fi
  21516. # Unset variables that we do not need and which cause bugs (e.g. in
  21517. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21518. # suppresses any "Segmentation fault" message there. '((' could
  21519. # trigger a bug in pdksh 5.2.14.
  21520. for as_var in BASH_ENV ENV MAIL MAILPATH
  21521. do eval test x\${$as_var+set} = xset \
  21522. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21523. done
  21524. PS1='$ '
  21525. PS2='> '
  21526. PS4='+ '
  21527. # NLS nuisances.
  21528. LC_ALL=C
  21529. export LC_ALL
  21530. LANGUAGE=C
  21531. export LANGUAGE
  21532. # CDPATH.
  21533. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21534. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21535. # ----------------------------------------
  21536. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21537. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21538. # script with STATUS, using 1 if that was 0.
  21539. as_fn_error ()
  21540. {
  21541. as_status=$1; test $as_status -eq 0 && as_status=1
  21542. if test "$4"; then
  21543. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21544. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21545. fi
  21546. $as_echo "$as_me: error: $2" >&2
  21547. as_fn_exit $as_status
  21548. } # as_fn_error
  21549. # as_fn_set_status STATUS
  21550. # -----------------------
  21551. # Set $? to STATUS, without forking.
  21552. as_fn_set_status ()
  21553. {
  21554. return $1
  21555. } # as_fn_set_status
  21556. # as_fn_exit STATUS
  21557. # -----------------
  21558. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21559. as_fn_exit ()
  21560. {
  21561. set +e
  21562. as_fn_set_status $1
  21563. exit $1
  21564. } # as_fn_exit
  21565. # as_fn_unset VAR
  21566. # ---------------
  21567. # Portably unset VAR.
  21568. as_fn_unset ()
  21569. {
  21570. { eval $1=; unset $1;}
  21571. }
  21572. as_unset=as_fn_unset
  21573. # as_fn_append VAR VALUE
  21574. # ----------------------
  21575. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21576. # advantage of any shell optimizations that allow amortized linear growth over
  21577. # repeated appends, instead of the typical quadratic growth present in naive
  21578. # implementations.
  21579. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21580. eval 'as_fn_append ()
  21581. {
  21582. eval $1+=\$2
  21583. }'
  21584. else
  21585. as_fn_append ()
  21586. {
  21587. eval $1=\$$1\$2
  21588. }
  21589. fi # as_fn_append
  21590. # as_fn_arith ARG...
  21591. # ------------------
  21592. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21593. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21594. # must be portable across $(()) and expr.
  21595. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21596. eval 'as_fn_arith ()
  21597. {
  21598. as_val=$(( $* ))
  21599. }'
  21600. else
  21601. as_fn_arith ()
  21602. {
  21603. as_val=`expr "$@" || test $? -eq 1`
  21604. }
  21605. fi # as_fn_arith
  21606. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21607. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21608. as_expr=expr
  21609. else
  21610. as_expr=false
  21611. fi
  21612. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21613. as_basename=basename
  21614. else
  21615. as_basename=false
  21616. fi
  21617. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21618. as_dirname=dirname
  21619. else
  21620. as_dirname=false
  21621. fi
  21622. as_me=`$as_basename -- "$0" ||
  21623. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21624. X"$0" : 'X\(//\)$' \| \
  21625. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21626. $as_echo X/"$0" |
  21627. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21628. s//\1/
  21629. q
  21630. }
  21631. /^X\/\(\/\/\)$/{
  21632. s//\1/
  21633. q
  21634. }
  21635. /^X\/\(\/\).*/{
  21636. s//\1/
  21637. q
  21638. }
  21639. s/.*/./; q'`
  21640. # Avoid depending upon Character Ranges.
  21641. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21642. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21643. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21644. as_cr_digits='0123456789'
  21645. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21646. ECHO_C= ECHO_N= ECHO_T=
  21647. case `echo -n x` in #(((((
  21648. -n*)
  21649. case `echo 'xy\c'` in
  21650. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21651. xy) ECHO_C='\c';;
  21652. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21653. ECHO_T=' ';;
  21654. esac;;
  21655. *)
  21656. ECHO_N='-n';;
  21657. esac
  21658. rm -f conf$$ conf$$.exe conf$$.file
  21659. if test -d conf$$.dir; then
  21660. rm -f conf$$.dir/conf$$.file
  21661. else
  21662. rm -f conf$$.dir
  21663. mkdir conf$$.dir 2>/dev/null
  21664. fi
  21665. if (echo >conf$$.file) 2>/dev/null; then
  21666. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21667. as_ln_s='ln -s'
  21668. # ... but there are two gotchas:
  21669. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21670. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21671. # In both cases, we have to default to `cp -pR'.
  21672. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21673. as_ln_s='cp -pR'
  21674. elif ln conf$$.file conf$$ 2>/dev/null; then
  21675. as_ln_s=ln
  21676. else
  21677. as_ln_s='cp -pR'
  21678. fi
  21679. else
  21680. as_ln_s='cp -pR'
  21681. fi
  21682. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21683. rmdir conf$$.dir 2>/dev/null
  21684. # as_fn_mkdir_p
  21685. # -------------
  21686. # Create "$as_dir" as a directory, including parents if necessary.
  21687. as_fn_mkdir_p ()
  21688. {
  21689. case $as_dir in #(
  21690. -*) as_dir=./$as_dir;;
  21691. esac
  21692. test -d "$as_dir" || eval $as_mkdir_p || {
  21693. as_dirs=
  21694. while :; do
  21695. case $as_dir in #(
  21696. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21697. *) as_qdir=$as_dir;;
  21698. esac
  21699. as_dirs="'$as_qdir' $as_dirs"
  21700. as_dir=`$as_dirname -- "$as_dir" ||
  21701. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21702. X"$as_dir" : 'X\(//\)[^/]' \| \
  21703. X"$as_dir" : 'X\(//\)$' \| \
  21704. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21705. $as_echo X"$as_dir" |
  21706. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21707. s//\1/
  21708. q
  21709. }
  21710. /^X\(\/\/\)[^/].*/{
  21711. s//\1/
  21712. q
  21713. }
  21714. /^X\(\/\/\)$/{
  21715. s//\1/
  21716. q
  21717. }
  21718. /^X\(\/\).*/{
  21719. s//\1/
  21720. q
  21721. }
  21722. s/.*/./; q'`
  21723. test -d "$as_dir" && break
  21724. done
  21725. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21726. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21727. } # as_fn_mkdir_p
  21728. if mkdir -p . 2>/dev/null; then
  21729. as_mkdir_p='mkdir -p "$as_dir"'
  21730. else
  21731. test -d ./-p && rmdir ./-p
  21732. as_mkdir_p=false
  21733. fi
  21734. # as_fn_executable_p FILE
  21735. # -----------------------
  21736. # Test if FILE is an executable regular file.
  21737. as_fn_executable_p ()
  21738. {
  21739. test -f "$1" && test -x "$1"
  21740. } # as_fn_executable_p
  21741. as_test_x='test -x'
  21742. as_executable_p=as_fn_executable_p
  21743. # Sed expression to map a string onto a valid CPP name.
  21744. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21745. # Sed expression to map a string onto a valid variable name.
  21746. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21747. exec 6>&1
  21748. ## ----------------------------------- ##
  21749. ## Main body of $CONFIG_STATUS script. ##
  21750. ## ----------------------------------- ##
  21751. _ASEOF
  21752. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21753. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21754. # Save the log message, to keep $0 and so on meaningful, and to
  21755. # report actual input values of CONFIG_FILES etc. instead of their
  21756. # values after options handling.
  21757. ac_log="
  21758. This file was extended by $as_me, which was
  21759. generated by GNU Autoconf 2.69. Invocation command line was
  21760. CONFIG_FILES = $CONFIG_FILES
  21761. CONFIG_HEADERS = $CONFIG_HEADERS
  21762. CONFIG_LINKS = $CONFIG_LINKS
  21763. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21764. $ $0 $@
  21765. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21766. "
  21767. _ACEOF
  21768. case $ac_config_files in *"
  21769. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21770. esac
  21771. case $ac_config_headers in *"
  21772. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21773. esac
  21774. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21775. # Files that config.status was made for.
  21776. config_files="$ac_config_files"
  21777. config_headers="$ac_config_headers"
  21778. config_commands="$ac_config_commands"
  21779. _ACEOF
  21780. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21781. ac_cs_usage="\
  21782. \`$as_me' instantiates files and other configuration actions
  21783. from templates according to the current configuration. Unless the files
  21784. and actions are specified as TAGs, all are instantiated by default.
  21785. Usage: $0 [OPTION]... [TAG]...
  21786. -h, --help print this help, then exit
  21787. -V, --version print version number and configuration settings, then exit
  21788. --config print configuration, then exit
  21789. -q, --quiet, --silent
  21790. do not print progress messages
  21791. -d, --debug don't remove temporary files
  21792. --recheck update $as_me by reconfiguring in the same conditions
  21793. --file=FILE[:TEMPLATE]
  21794. instantiate the configuration file FILE
  21795. --header=FILE[:TEMPLATE]
  21796. instantiate the configuration header FILE
  21797. Configuration files:
  21798. $config_files
  21799. Configuration headers:
  21800. $config_headers
  21801. Configuration commands:
  21802. $config_commands
  21803. Report bugs to the package provider."
  21804. _ACEOF
  21805. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21806. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21807. ac_cs_version="\\
  21808. config.status
  21809. configured by $0, generated by GNU Autoconf 2.69,
  21810. with options \\"\$ac_cs_config\\"
  21811. Copyright (C) 2012 Free Software Foundation, Inc.
  21812. This config.status script is free software; the Free Software Foundation
  21813. gives unlimited permission to copy, distribute and modify it."
  21814. ac_pwd='$ac_pwd'
  21815. srcdir='$srcdir'
  21816. INSTALL='$INSTALL'
  21817. AWK='$AWK'
  21818. test -n "\$AWK" || AWK=awk
  21819. _ACEOF
  21820. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21821. # The default lists apply if the user does not specify any file.
  21822. ac_need_defaults=:
  21823. while test $# != 0
  21824. do
  21825. case $1 in
  21826. --*=?*)
  21827. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21828. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21829. ac_shift=:
  21830. ;;
  21831. --*=)
  21832. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21833. ac_optarg=
  21834. ac_shift=:
  21835. ;;
  21836. *)
  21837. ac_option=$1
  21838. ac_optarg=$2
  21839. ac_shift=shift
  21840. ;;
  21841. esac
  21842. case $ac_option in
  21843. # Handling of the options.
  21844. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21845. ac_cs_recheck=: ;;
  21846. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21847. $as_echo "$ac_cs_version"; exit ;;
  21848. --config | --confi | --conf | --con | --co | --c )
  21849. $as_echo "$ac_cs_config"; exit ;;
  21850. --debug | --debu | --deb | --de | --d | -d )
  21851. debug=: ;;
  21852. --file | --fil | --fi | --f )
  21853. $ac_shift
  21854. case $ac_optarg in
  21855. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21856. '') as_fn_error $? "missing file argument" ;;
  21857. esac
  21858. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21859. ac_need_defaults=false;;
  21860. --header | --heade | --head | --hea )
  21861. $ac_shift
  21862. case $ac_optarg in
  21863. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21864. esac
  21865. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21866. ac_need_defaults=false;;
  21867. --he | --h)
  21868. # Conflict between --help and --header
  21869. as_fn_error $? "ambiguous option: \`$1'
  21870. Try \`$0 --help' for more information.";;
  21871. --help | --hel | -h )
  21872. $as_echo "$ac_cs_usage"; exit ;;
  21873. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21874. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21875. ac_cs_silent=: ;;
  21876. # This is an error.
  21877. -*) as_fn_error $? "unrecognized option: \`$1'
  21878. Try \`$0 --help' for more information." ;;
  21879. *) as_fn_append ac_config_targets " $1"
  21880. ac_need_defaults=false ;;
  21881. esac
  21882. shift
  21883. done
  21884. ac_configure_extra_args=
  21885. if $ac_cs_silent; then
  21886. exec 6>/dev/null
  21887. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21888. fi
  21889. _ACEOF
  21890. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21891. if \$ac_cs_recheck; then
  21892. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21893. shift
  21894. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21895. CONFIG_SHELL='$SHELL'
  21896. export CONFIG_SHELL
  21897. exec "\$@"
  21898. fi
  21899. _ACEOF
  21900. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21901. exec 5>>config.log
  21902. {
  21903. echo
  21904. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21905. ## Running $as_me. ##
  21906. _ASBOX
  21907. $as_echo "$ac_log"
  21908. } >&5
  21909. _ACEOF
  21910. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21911. #
  21912. # INIT-COMMANDS
  21913. #
  21914. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21915. # if CDPATH is set.
  21916. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21917. sed_quote_subst='$sed_quote_subst'
  21918. double_quote_subst='$double_quote_subst'
  21919. delay_variable_subst='$delay_variable_subst'
  21920. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21921. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21922. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21923. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21924. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21925. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21926. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21927. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21928. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21929. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21930. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21931. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21932. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21933. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21934. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21935. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21936. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21937. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21938. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21939. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21940. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21941. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21942. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21943. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21944. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21945. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21946. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21947. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21948. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21949. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21950. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21951. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21952. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21953. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21954. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21955. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21956. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21957. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21958. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21959. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21960. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21961. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21962. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21963. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21964. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21965. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21966. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21967. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21968. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21969. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21970. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21971. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21972. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21973. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21974. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21975. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21976. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21977. 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"`'
  21978. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21979. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21980. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21981. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21982. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21983. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21984. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21985. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21986. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21987. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21988. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21989. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21990. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21991. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21992. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21993. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21994. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21995. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21996. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21997. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21998. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21999. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  22000. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  22001. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  22002. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  22003. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  22004. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  22005. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22006. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  22007. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22008. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22009. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22010. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22011. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22012. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22013. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22014. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22015. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22016. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22017. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22018. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22019. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22020. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22021. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22022. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22023. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22024. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22025. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22026. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22027. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22028. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22029. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22030. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22031. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22032. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22033. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22034. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22035. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22036. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22037. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22038. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22039. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22040. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22041. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22042. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22043. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22044. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22045. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22046. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22047. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22048. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22049. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22050. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22051. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22052. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22053. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22054. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22055. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22056. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22057. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22058. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22059. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22060. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22061. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22062. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22063. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22064. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22065. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22066. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22067. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22068. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22069. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22070. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22071. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22072. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22073. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22074. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22075. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22076. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22077. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22078. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22079. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22080. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22081. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22082. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22083. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22084. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22085. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22086. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22087. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22088. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22089. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22090. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22091. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22092. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22093. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22094. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22095. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22096. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22097. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22098. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22099. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22100. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22101. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22102. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22103. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22104. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22105. LTCC='$LTCC'
  22106. LTCFLAGS='$LTCFLAGS'
  22107. compiler='$compiler_DEFAULT'
  22108. # A function that is used when there is no print builtin or printf.
  22109. func_fallback_echo ()
  22110. {
  22111. eval 'cat <<_LTECHO_EOF
  22112. \$1
  22113. _LTECHO_EOF'
  22114. }
  22115. # Quote evaled strings.
  22116. for var in AS \
  22117. DLLTOOL \
  22118. OBJDUMP \
  22119. SHELL \
  22120. ECHO \
  22121. PATH_SEPARATOR \
  22122. SED \
  22123. GREP \
  22124. EGREP \
  22125. FGREP \
  22126. LD \
  22127. NM \
  22128. LN_S \
  22129. lt_SP2NL \
  22130. lt_NL2SP \
  22131. reload_flag \
  22132. deplibs_check_method \
  22133. file_magic_cmd \
  22134. file_magic_glob \
  22135. want_nocaseglob \
  22136. sharedlib_from_linklib_cmd \
  22137. AR \
  22138. AR_FLAGS \
  22139. archiver_list_spec \
  22140. STRIP \
  22141. RANLIB \
  22142. CC \
  22143. CFLAGS \
  22144. compiler \
  22145. lt_cv_sys_global_symbol_pipe \
  22146. lt_cv_sys_global_symbol_to_cdecl \
  22147. lt_cv_sys_global_symbol_to_c_name_address \
  22148. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22149. nm_file_list_spec \
  22150. lt_prog_compiler_no_builtin_flag \
  22151. lt_prog_compiler_pic \
  22152. lt_prog_compiler_wl \
  22153. lt_prog_compiler_static \
  22154. lt_cv_prog_compiler_c_o \
  22155. need_locks \
  22156. MANIFEST_TOOL \
  22157. DSYMUTIL \
  22158. NMEDIT \
  22159. LIPO \
  22160. OTOOL \
  22161. OTOOL64 \
  22162. shrext_cmds \
  22163. export_dynamic_flag_spec \
  22164. whole_archive_flag_spec \
  22165. compiler_needs_object \
  22166. with_gnu_ld \
  22167. allow_undefined_flag \
  22168. no_undefined_flag \
  22169. hardcode_libdir_flag_spec \
  22170. hardcode_libdir_separator \
  22171. exclude_expsyms \
  22172. include_expsyms \
  22173. file_list_spec \
  22174. variables_saved_for_relink \
  22175. libname_spec \
  22176. library_names_spec \
  22177. soname_spec \
  22178. install_override_mode \
  22179. finish_eval \
  22180. old_striplib \
  22181. striplib \
  22182. compiler_lib_search_dirs \
  22183. predep_objects \
  22184. postdep_objects \
  22185. predeps \
  22186. postdeps \
  22187. compiler_lib_search_path \
  22188. LD_CXX \
  22189. reload_flag_CXX \
  22190. compiler_CXX \
  22191. lt_prog_compiler_no_builtin_flag_CXX \
  22192. lt_prog_compiler_pic_CXX \
  22193. lt_prog_compiler_wl_CXX \
  22194. lt_prog_compiler_static_CXX \
  22195. lt_cv_prog_compiler_c_o_CXX \
  22196. export_dynamic_flag_spec_CXX \
  22197. whole_archive_flag_spec_CXX \
  22198. compiler_needs_object_CXX \
  22199. with_gnu_ld_CXX \
  22200. allow_undefined_flag_CXX \
  22201. no_undefined_flag_CXX \
  22202. hardcode_libdir_flag_spec_CXX \
  22203. hardcode_libdir_separator_CXX \
  22204. exclude_expsyms_CXX \
  22205. include_expsyms_CXX \
  22206. file_list_spec_CXX \
  22207. compiler_lib_search_dirs_CXX \
  22208. predep_objects_CXX \
  22209. postdep_objects_CXX \
  22210. predeps_CXX \
  22211. postdeps_CXX \
  22212. compiler_lib_search_path_CXX; do
  22213. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22214. *[\\\\\\\`\\"\\\$]*)
  22215. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22216. ;;
  22217. *)
  22218. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22219. ;;
  22220. esac
  22221. done
  22222. # Double-quote double-evaled strings.
  22223. for var in reload_cmds \
  22224. old_postinstall_cmds \
  22225. old_postuninstall_cmds \
  22226. old_archive_cmds \
  22227. extract_expsyms_cmds \
  22228. old_archive_from_new_cmds \
  22229. old_archive_from_expsyms_cmds \
  22230. archive_cmds \
  22231. archive_expsym_cmds \
  22232. module_cmds \
  22233. module_expsym_cmds \
  22234. export_symbols_cmds \
  22235. prelink_cmds \
  22236. postlink_cmds \
  22237. postinstall_cmds \
  22238. postuninstall_cmds \
  22239. finish_cmds \
  22240. sys_lib_search_path_spec \
  22241. sys_lib_dlsearch_path_spec \
  22242. reload_cmds_CXX \
  22243. old_archive_cmds_CXX \
  22244. old_archive_from_new_cmds_CXX \
  22245. old_archive_from_expsyms_cmds_CXX \
  22246. archive_cmds_CXX \
  22247. archive_expsym_cmds_CXX \
  22248. module_cmds_CXX \
  22249. module_expsym_cmds_CXX \
  22250. export_symbols_cmds_CXX \
  22251. prelink_cmds_CXX \
  22252. postlink_cmds_CXX; do
  22253. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22254. *[\\\\\\\`\\"\\\$]*)
  22255. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22256. ;;
  22257. *)
  22258. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22259. ;;
  22260. esac
  22261. done
  22262. ac_aux_dir='$ac_aux_dir'
  22263. xsi_shell='$xsi_shell'
  22264. lt_shell_append='$lt_shell_append'
  22265. # See if we are running on zsh, and set the options which allow our
  22266. # commands through without removal of \ escapes INIT.
  22267. if test -n "\${ZSH_VERSION+set}" ; then
  22268. setopt NO_GLOB_SUBST
  22269. fi
  22270. PACKAGE='$PACKAGE'
  22271. VERSION='$VERSION'
  22272. TIMESTAMP='$TIMESTAMP'
  22273. RM='$RM'
  22274. ofile='$ofile'
  22275. SUMMARY="$SUMMARY"
  22276. _ACEOF
  22277. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22278. # Handling of arguments.
  22279. for ac_config_target in $ac_config_targets
  22280. do
  22281. case $ac_config_target in
  22282. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22283. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22284. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22285. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22286. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22287. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22288. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22289. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22290. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22291. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22292. esac
  22293. done
  22294. # If the user did not use the arguments to specify the items to instantiate,
  22295. # then the envvar interface is used. Set only those that are not.
  22296. # We use the long form for the default assignment because of an extremely
  22297. # bizarre bug on SunOS 4.1.3.
  22298. if $ac_need_defaults; then
  22299. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22300. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22301. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22302. fi
  22303. # Have a temporary directory for convenience. Make it in the build tree
  22304. # simply because there is no reason against having it here, and in addition,
  22305. # creating and moving files from /tmp can sometimes cause problems.
  22306. # Hook for its removal unless debugging.
  22307. # Note that there is a small window in which the directory will not be cleaned:
  22308. # after its creation but before its name has been assigned to `$tmp'.
  22309. $debug ||
  22310. {
  22311. tmp= ac_tmp=
  22312. trap 'exit_status=$?
  22313. : "${ac_tmp:=$tmp}"
  22314. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22315. ' 0
  22316. trap 'as_fn_exit 1' 1 2 13 15
  22317. }
  22318. # Create a (secure) tmp directory for tmp files.
  22319. {
  22320. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22321. test -d "$tmp"
  22322. } ||
  22323. {
  22324. tmp=./conf$$-$RANDOM
  22325. (umask 077 && mkdir "$tmp")
  22326. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22327. ac_tmp=$tmp
  22328. # Set up the scripts for CONFIG_FILES section.
  22329. # No need to generate them if there are no CONFIG_FILES.
  22330. # This happens for instance with `./config.status config.h'.
  22331. if test -n "$CONFIG_FILES"; then
  22332. ac_cr=`echo X | tr X '\015'`
  22333. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22334. # But we know of no other shell where ac_cr would be empty at this
  22335. # point, so we can use a bashism as a fallback.
  22336. if test "x$ac_cr" = x; then
  22337. eval ac_cr=\$\'\\r\'
  22338. fi
  22339. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22340. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22341. ac_cs_awk_cr='\\r'
  22342. else
  22343. ac_cs_awk_cr=$ac_cr
  22344. fi
  22345. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22346. _ACEOF
  22347. {
  22348. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22349. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22350. echo "_ACEOF"
  22351. } >conf$$subs.sh ||
  22352. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22353. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22354. ac_delim='%!_!# '
  22355. for ac_last_try in false false false false false :; do
  22356. . ./conf$$subs.sh ||
  22357. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22358. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22359. if test $ac_delim_n = $ac_delim_num; then
  22360. break
  22361. elif $ac_last_try; then
  22362. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22363. else
  22364. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22365. fi
  22366. done
  22367. rm -f conf$$subs.sh
  22368. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22369. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22370. _ACEOF
  22371. sed -n '
  22372. h
  22373. s/^/S["/; s/!.*/"]=/
  22374. p
  22375. g
  22376. s/^[^!]*!//
  22377. :repl
  22378. t repl
  22379. s/'"$ac_delim"'$//
  22380. t delim
  22381. :nl
  22382. h
  22383. s/\(.\{148\}\)..*/\1/
  22384. t more1
  22385. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22386. p
  22387. n
  22388. b repl
  22389. :more1
  22390. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22391. p
  22392. g
  22393. s/.\{148\}//
  22394. t nl
  22395. :delim
  22396. h
  22397. s/\(.\{148\}\)..*/\1/
  22398. t more2
  22399. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22400. p
  22401. b
  22402. :more2
  22403. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22404. p
  22405. g
  22406. s/.\{148\}//
  22407. t delim
  22408. ' <conf$$subs.awk | sed '
  22409. /^[^""]/{
  22410. N
  22411. s/\n//
  22412. }
  22413. ' >>$CONFIG_STATUS || ac_write_fail=1
  22414. rm -f conf$$subs.awk
  22415. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22416. _ACAWK
  22417. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22418. for (key in S) S_is_set[key] = 1
  22419. FS = ""
  22420. }
  22421. {
  22422. line = $ 0
  22423. nfields = split(line, field, "@")
  22424. substed = 0
  22425. len = length(field[1])
  22426. for (i = 2; i < nfields; i++) {
  22427. key = field[i]
  22428. keylen = length(key)
  22429. if (S_is_set[key]) {
  22430. value = S[key]
  22431. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22432. len += length(value) + length(field[++i])
  22433. substed = 1
  22434. } else
  22435. len += 1 + keylen
  22436. }
  22437. print line
  22438. }
  22439. _ACAWK
  22440. _ACEOF
  22441. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22442. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22443. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22444. else
  22445. cat
  22446. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22447. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22448. _ACEOF
  22449. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22450. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22451. # trailing colons and then remove the whole line if VPATH becomes empty
  22452. # (actually we leave an empty line to preserve line numbers).
  22453. if test "x$srcdir" = x.; then
  22454. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22455. h
  22456. s///
  22457. s/^/:/
  22458. s/[ ]*$/:/
  22459. s/:\$(srcdir):/:/g
  22460. s/:\${srcdir}:/:/g
  22461. s/:@srcdir@:/:/g
  22462. s/^:*//
  22463. s/:*$//
  22464. x
  22465. s/\(=[ ]*\).*/\1/
  22466. G
  22467. s/\n//
  22468. s/^[^=]*=[ ]*$//
  22469. }'
  22470. fi
  22471. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22472. fi # test -n "$CONFIG_FILES"
  22473. # Set up the scripts for CONFIG_HEADERS section.
  22474. # No need to generate them if there are no CONFIG_HEADERS.
  22475. # This happens for instance with `./config.status Makefile'.
  22476. if test -n "$CONFIG_HEADERS"; then
  22477. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22478. BEGIN {
  22479. _ACEOF
  22480. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22481. # here-document in config.status, that substitutes the proper values into
  22482. # config.h.in to produce config.h.
  22483. # Create a delimiter string that does not exist in confdefs.h, to ease
  22484. # handling of long lines.
  22485. ac_delim='%!_!# '
  22486. for ac_last_try in false false :; do
  22487. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22488. if test -z "$ac_tt"; then
  22489. break
  22490. elif $ac_last_try; then
  22491. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22492. else
  22493. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22494. fi
  22495. done
  22496. # For the awk script, D is an array of macro values keyed by name,
  22497. # likewise P contains macro parameters if any. Preserve backslash
  22498. # newline sequences.
  22499. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22500. sed -n '
  22501. s/.\{148\}/&'"$ac_delim"'/g
  22502. t rset
  22503. :rset
  22504. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22505. t def
  22506. d
  22507. :def
  22508. s/\\$//
  22509. t bsnl
  22510. s/["\\]/\\&/g
  22511. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22512. D["\1"]=" \3"/p
  22513. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22514. d
  22515. :bsnl
  22516. s/["\\]/\\&/g
  22517. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22518. D["\1"]=" \3\\\\\\n"\\/p
  22519. t cont
  22520. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22521. t cont
  22522. d
  22523. :cont
  22524. n
  22525. s/.\{148\}/&'"$ac_delim"'/g
  22526. t clear
  22527. :clear
  22528. s/\\$//
  22529. t bsnlc
  22530. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22531. d
  22532. :bsnlc
  22533. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22534. b cont
  22535. ' <confdefs.h | sed '
  22536. s/'"$ac_delim"'/"\\\
  22537. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22538. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22539. for (key in D) D_is_set[key] = 1
  22540. FS = ""
  22541. }
  22542. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22543. line = \$ 0
  22544. split(line, arg, " ")
  22545. if (arg[1] == "#") {
  22546. defundef = arg[2]
  22547. mac1 = arg[3]
  22548. } else {
  22549. defundef = substr(arg[1], 2)
  22550. mac1 = arg[2]
  22551. }
  22552. split(mac1, mac2, "(") #)
  22553. macro = mac2[1]
  22554. prefix = substr(line, 1, index(line, defundef) - 1)
  22555. if (D_is_set[macro]) {
  22556. # Preserve the white space surrounding the "#".
  22557. print prefix "define", macro P[macro] D[macro]
  22558. next
  22559. } else {
  22560. # Replace #undef with comments. This is necessary, for example,
  22561. # in the case of _POSIX_SOURCE, which is predefined and required
  22562. # on some systems where configure will not decide to define it.
  22563. if (defundef == "undef") {
  22564. print "/*", prefix defundef, macro, "*/"
  22565. next
  22566. }
  22567. }
  22568. }
  22569. { print }
  22570. _ACAWK
  22571. _ACEOF
  22572. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22573. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22574. fi # test -n "$CONFIG_HEADERS"
  22575. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22576. shift
  22577. for ac_tag
  22578. do
  22579. case $ac_tag in
  22580. :[FHLC]) ac_mode=$ac_tag; continue;;
  22581. esac
  22582. case $ac_mode$ac_tag in
  22583. :[FHL]*:*);;
  22584. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22585. :[FH]-) ac_tag=-:-;;
  22586. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22587. esac
  22588. ac_save_IFS=$IFS
  22589. IFS=:
  22590. set x $ac_tag
  22591. IFS=$ac_save_IFS
  22592. shift
  22593. ac_file=$1
  22594. shift
  22595. case $ac_mode in
  22596. :L) ac_source=$1;;
  22597. :[FH])
  22598. ac_file_inputs=
  22599. for ac_f
  22600. do
  22601. case $ac_f in
  22602. -) ac_f="$ac_tmp/stdin";;
  22603. *) # Look for the file first in the build tree, then in the source tree
  22604. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22605. # because $ac_f cannot contain `:'.
  22606. test -f "$ac_f" ||
  22607. case $ac_f in
  22608. [\\/$]*) false;;
  22609. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22610. esac ||
  22611. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22612. esac
  22613. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22614. as_fn_append ac_file_inputs " '$ac_f'"
  22615. done
  22616. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22617. # use $as_me), people would be surprised to read:
  22618. # /* config.h. Generated by config.status. */
  22619. configure_input='Generated from '`
  22620. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22621. `' by configure.'
  22622. if test x"$ac_file" != x-; then
  22623. configure_input="$ac_file. $configure_input"
  22624. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22625. $as_echo "$as_me: creating $ac_file" >&6;}
  22626. fi
  22627. # Neutralize special characters interpreted by sed in replacement strings.
  22628. case $configure_input in #(
  22629. *\&* | *\|* | *\\* )
  22630. ac_sed_conf_input=`$as_echo "$configure_input" |
  22631. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22632. *) ac_sed_conf_input=$configure_input;;
  22633. esac
  22634. case $ac_tag in
  22635. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22636. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22637. esac
  22638. ;;
  22639. esac
  22640. ac_dir=`$as_dirname -- "$ac_file" ||
  22641. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22642. X"$ac_file" : 'X\(//\)[^/]' \| \
  22643. X"$ac_file" : 'X\(//\)$' \| \
  22644. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22645. $as_echo X"$ac_file" |
  22646. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22647. s//\1/
  22648. q
  22649. }
  22650. /^X\(\/\/\)[^/].*/{
  22651. s//\1/
  22652. q
  22653. }
  22654. /^X\(\/\/\)$/{
  22655. s//\1/
  22656. q
  22657. }
  22658. /^X\(\/\).*/{
  22659. s//\1/
  22660. q
  22661. }
  22662. s/.*/./; q'`
  22663. as_dir="$ac_dir"; as_fn_mkdir_p
  22664. ac_builddir=.
  22665. case "$ac_dir" in
  22666. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22667. *)
  22668. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22669. # A ".." for each directory in $ac_dir_suffix.
  22670. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22671. case $ac_top_builddir_sub in
  22672. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22673. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22674. esac ;;
  22675. esac
  22676. ac_abs_top_builddir=$ac_pwd
  22677. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22678. # for backward compatibility:
  22679. ac_top_builddir=$ac_top_build_prefix
  22680. case $srcdir in
  22681. .) # We are building in place.
  22682. ac_srcdir=.
  22683. ac_top_srcdir=$ac_top_builddir_sub
  22684. ac_abs_top_srcdir=$ac_pwd ;;
  22685. [\\/]* | ?:[\\/]* ) # Absolute name.
  22686. ac_srcdir=$srcdir$ac_dir_suffix;
  22687. ac_top_srcdir=$srcdir
  22688. ac_abs_top_srcdir=$srcdir ;;
  22689. *) # Relative name.
  22690. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22691. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22692. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22693. esac
  22694. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22695. case $ac_mode in
  22696. :F)
  22697. #
  22698. # CONFIG_FILE
  22699. #
  22700. case $INSTALL in
  22701. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22702. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22703. esac
  22704. _ACEOF
  22705. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22706. # If the template does not know about datarootdir, expand it.
  22707. # FIXME: This hack should be removed a few years after 2.60.
  22708. ac_datarootdir_hack=; ac_datarootdir_seen=
  22709. ac_sed_dataroot='
  22710. /datarootdir/ {
  22711. p
  22712. q
  22713. }
  22714. /@datadir@/p
  22715. /@docdir@/p
  22716. /@infodir@/p
  22717. /@localedir@/p
  22718. /@mandir@/p'
  22719. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22720. *datarootdir*) ac_datarootdir_seen=yes;;
  22721. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22723. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22724. _ACEOF
  22725. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22726. ac_datarootdir_hack='
  22727. s&@datadir@&$datadir&g
  22728. s&@docdir@&$docdir&g
  22729. s&@infodir@&$infodir&g
  22730. s&@localedir@&$localedir&g
  22731. s&@mandir@&$mandir&g
  22732. s&\\\${datarootdir}&$datarootdir&g' ;;
  22733. esac
  22734. _ACEOF
  22735. # Neutralize VPATH when `$srcdir' = `.'.
  22736. # Shell code in configure.ac might set extrasub.
  22737. # FIXME: do we really want to maintain this feature?
  22738. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22739. ac_sed_extra="$ac_vpsub
  22740. $extrasub
  22741. _ACEOF
  22742. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22743. :t
  22744. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22745. s|@configure_input@|$ac_sed_conf_input|;t t
  22746. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22747. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22748. s&@srcdir@&$ac_srcdir&;t t
  22749. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22750. s&@top_srcdir@&$ac_top_srcdir&;t t
  22751. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22752. s&@builddir@&$ac_builddir&;t t
  22753. s&@abs_builddir@&$ac_abs_builddir&;t t
  22754. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22755. s&@INSTALL@&$ac_INSTALL&;t t
  22756. $ac_datarootdir_hack
  22757. "
  22758. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22759. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22760. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22761. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22762. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22763. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22765. which seems to be undefined. Please make sure it is defined" >&5
  22766. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22767. which seems to be undefined. Please make sure it is defined" >&2;}
  22768. rm -f "$ac_tmp/stdin"
  22769. case $ac_file in
  22770. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22771. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22772. esac \
  22773. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22774. ;;
  22775. :H)
  22776. #
  22777. # CONFIG_HEADER
  22778. #
  22779. if test x"$ac_file" != x-; then
  22780. {
  22781. $as_echo "/* $configure_input */" \
  22782. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22783. } >"$ac_tmp/config.h" \
  22784. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22785. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22786. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22787. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22788. else
  22789. rm -f "$ac_file"
  22790. mv "$ac_tmp/config.h" "$ac_file" \
  22791. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22792. fi
  22793. else
  22794. $as_echo "/* $configure_input */" \
  22795. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22796. || as_fn_error $? "could not create -" "$LINENO" 5
  22797. fi
  22798. ;;
  22799. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22800. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22801. ;;
  22802. esac
  22803. case $ac_file$ac_mode in
  22804. "libtool":C)
  22805. # See if we are running on zsh, and set the options which allow our
  22806. # commands through without removal of \ escapes.
  22807. if test -n "${ZSH_VERSION+set}" ; then
  22808. setopt NO_GLOB_SUBST
  22809. fi
  22810. cfgfile="${ofile}T"
  22811. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22812. $RM "$cfgfile"
  22813. cat <<_LT_EOF >> "$cfgfile"
  22814. #! $SHELL
  22815. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22816. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22817. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22818. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22819. #
  22820. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22821. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22822. # Foundation, Inc.
  22823. # Written by Gordon Matzigkeit, 1996
  22824. #
  22825. # This file is part of GNU Libtool.
  22826. #
  22827. # GNU Libtool is free software; you can redistribute it and/or
  22828. # modify it under the terms of the GNU General Public License as
  22829. # published by the Free Software Foundation; either version 2 of
  22830. # the License, or (at your option) any later version.
  22831. #
  22832. # As a special exception to the GNU General Public License,
  22833. # if you distribute this file as part of a program or library that
  22834. # is built using GNU Libtool, you may include this file under the
  22835. # same distribution terms that you use for the rest of that program.
  22836. #
  22837. # GNU Libtool is distributed in the hope that it will be useful,
  22838. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22839. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22840. # GNU General Public License for more details.
  22841. #
  22842. # You should have received a copy of the GNU General Public License
  22843. # along with GNU Libtool; see the file COPYING. If not, a copy
  22844. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22845. # obtained by writing to the Free Software Foundation, Inc.,
  22846. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22847. # The names of the tagged configurations supported by this script.
  22848. available_tags="CXX "
  22849. # ### BEGIN LIBTOOL CONFIG
  22850. # Which release of libtool.m4 was used?
  22851. macro_version=$macro_version
  22852. macro_revision=$macro_revision
  22853. # Assembler program.
  22854. AS=$lt_AS
  22855. # DLL creation program.
  22856. DLLTOOL=$lt_DLLTOOL
  22857. # Object dumper program.
  22858. OBJDUMP=$lt_OBJDUMP
  22859. # Whether or not to build shared libraries.
  22860. build_libtool_libs=$enable_shared
  22861. # Whether or not to build static libraries.
  22862. build_old_libs=$enable_static
  22863. # What type of objects to build.
  22864. pic_mode=$pic_mode
  22865. # Whether or not to optimize for fast installation.
  22866. fast_install=$enable_fast_install
  22867. # Shell to use when invoking shell scripts.
  22868. SHELL=$lt_SHELL
  22869. # An echo program that protects backslashes.
  22870. ECHO=$lt_ECHO
  22871. # The PATH separator for the build system.
  22872. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22873. # The host system.
  22874. host_alias=$host_alias
  22875. host=$host
  22876. host_os=$host_os
  22877. # The build system.
  22878. build_alias=$build_alias
  22879. build=$build
  22880. build_os=$build_os
  22881. # A sed program that does not truncate output.
  22882. SED=$lt_SED
  22883. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22884. Xsed="\$SED -e 1s/^X//"
  22885. # A grep program that handles long lines.
  22886. GREP=$lt_GREP
  22887. # An ERE matcher.
  22888. EGREP=$lt_EGREP
  22889. # A literal string matcher.
  22890. FGREP=$lt_FGREP
  22891. # A BSD- or MS-compatible name lister.
  22892. NM=$lt_NM
  22893. # Whether we need soft or hard links.
  22894. LN_S=$lt_LN_S
  22895. # What is the maximum length of a command?
  22896. max_cmd_len=$max_cmd_len
  22897. # Object file suffix (normally "o").
  22898. objext=$ac_objext
  22899. # Executable file suffix (normally "").
  22900. exeext=$exeext
  22901. # whether the shell understands "unset".
  22902. lt_unset=$lt_unset
  22903. # turn spaces into newlines.
  22904. SP2NL=$lt_lt_SP2NL
  22905. # turn newlines into spaces.
  22906. NL2SP=$lt_lt_NL2SP
  22907. # convert \$build file names to \$host format.
  22908. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22909. # convert \$build files to toolchain format.
  22910. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22911. # Method to check whether dependent libraries are shared objects.
  22912. deplibs_check_method=$lt_deplibs_check_method
  22913. # Command to use when deplibs_check_method = "file_magic".
  22914. file_magic_cmd=$lt_file_magic_cmd
  22915. # How to find potential files when deplibs_check_method = "file_magic".
  22916. file_magic_glob=$lt_file_magic_glob
  22917. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22918. want_nocaseglob=$lt_want_nocaseglob
  22919. # Command to associate shared and link libraries.
  22920. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22921. # The archiver.
  22922. AR=$lt_AR
  22923. # Flags to create an archive.
  22924. AR_FLAGS=$lt_AR_FLAGS
  22925. # How to feed a file listing to the archiver.
  22926. archiver_list_spec=$lt_archiver_list_spec
  22927. # A symbol stripping program.
  22928. STRIP=$lt_STRIP
  22929. # Commands used to install an old-style archive.
  22930. RANLIB=$lt_RANLIB
  22931. old_postinstall_cmds=$lt_old_postinstall_cmds
  22932. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22933. # Whether to use a lock for old archive extraction.
  22934. lock_old_archive_extraction=$lock_old_archive_extraction
  22935. # A C compiler.
  22936. LTCC=$lt_CC
  22937. # LTCC compiler flags.
  22938. LTCFLAGS=$lt_CFLAGS
  22939. # Take the output of nm and produce a listing of raw symbols and C names.
  22940. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22941. # Transform the output of nm in a proper C declaration.
  22942. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22943. # Transform the output of nm in a C name address pair.
  22944. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22945. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22946. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22947. # Specify filename containing input files for \$NM.
  22948. nm_file_list_spec=$lt_nm_file_list_spec
  22949. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22950. lt_sysroot=$lt_sysroot
  22951. # The name of the directory that contains temporary libtool files.
  22952. objdir=$objdir
  22953. # Used to examine libraries when file_magic_cmd begins with "file".
  22954. MAGIC_CMD=$MAGIC_CMD
  22955. # Must we lock files when doing compilation?
  22956. need_locks=$lt_need_locks
  22957. # Manifest tool.
  22958. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22959. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22960. DSYMUTIL=$lt_DSYMUTIL
  22961. # Tool to change global to local symbols on Mac OS X.
  22962. NMEDIT=$lt_NMEDIT
  22963. # Tool to manipulate fat objects and archives on Mac OS X.
  22964. LIPO=$lt_LIPO
  22965. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22966. OTOOL=$lt_OTOOL
  22967. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22968. OTOOL64=$lt_OTOOL64
  22969. # Old archive suffix (normally "a").
  22970. libext=$libext
  22971. # Shared library suffix (normally ".so").
  22972. shrext_cmds=$lt_shrext_cmds
  22973. # The commands to extract the exported symbol list from a shared archive.
  22974. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22975. # Variables whose values should be saved in libtool wrapper scripts and
  22976. # restored at link time.
  22977. variables_saved_for_relink=$lt_variables_saved_for_relink
  22978. # Do we need the "lib" prefix for modules?
  22979. need_lib_prefix=$need_lib_prefix
  22980. # Do we need a version for libraries?
  22981. need_version=$need_version
  22982. # Library versioning type.
  22983. version_type=$version_type
  22984. # Shared library runtime path variable.
  22985. runpath_var=$runpath_var
  22986. # Shared library path variable.
  22987. shlibpath_var=$shlibpath_var
  22988. # Is shlibpath searched before the hard-coded library search path?
  22989. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22990. # Format of library name prefix.
  22991. libname_spec=$lt_libname_spec
  22992. # List of archive names. First name is the real one, the rest are links.
  22993. # The last name is the one that the linker finds with -lNAME
  22994. library_names_spec=$lt_library_names_spec
  22995. # The coded name of the library, if different from the real name.
  22996. soname_spec=$lt_soname_spec
  22997. # Permission mode override for installation of shared libraries.
  22998. install_override_mode=$lt_install_override_mode
  22999. # Command to use after installation of a shared archive.
  23000. postinstall_cmds=$lt_postinstall_cmds
  23001. # Command to use after uninstallation of a shared archive.
  23002. postuninstall_cmds=$lt_postuninstall_cmds
  23003. # Commands used to finish a libtool library installation in a directory.
  23004. finish_cmds=$lt_finish_cmds
  23005. # As "finish_cmds", except a single script fragment to be evaled but
  23006. # not shown.
  23007. finish_eval=$lt_finish_eval
  23008. # Whether we should hardcode library paths into libraries.
  23009. hardcode_into_libs=$hardcode_into_libs
  23010. # Compile-time system search path for libraries.
  23011. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23012. # Run-time system search path for libraries.
  23013. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23014. # Whether dlopen is supported.
  23015. dlopen_support=$enable_dlopen
  23016. # Whether dlopen of programs is supported.
  23017. dlopen_self=$enable_dlopen_self
  23018. # Whether dlopen of statically linked programs is supported.
  23019. dlopen_self_static=$enable_dlopen_self_static
  23020. # Commands to strip libraries.
  23021. old_striplib=$lt_old_striplib
  23022. striplib=$lt_striplib
  23023. # The linker used to build libraries.
  23024. LD=$lt_LD
  23025. # How to create reloadable object files.
  23026. reload_flag=$lt_reload_flag
  23027. reload_cmds=$lt_reload_cmds
  23028. # Commands used to build an old-style archive.
  23029. old_archive_cmds=$lt_old_archive_cmds
  23030. # A language specific compiler.
  23031. CC=$lt_compiler
  23032. # Is the compiler the GNU compiler?
  23033. with_gcc=$GCC
  23034. # Compiler flag to turn off builtin functions.
  23035. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23036. # Additional compiler flags for building library objects.
  23037. pic_flag=$lt_lt_prog_compiler_pic
  23038. # How to pass a linker flag through the compiler.
  23039. wl=$lt_lt_prog_compiler_wl
  23040. # Compiler flag to prevent dynamic linking.
  23041. link_static_flag=$lt_lt_prog_compiler_static
  23042. # Does compiler simultaneously support -c and -o options?
  23043. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23044. # Whether or not to add -lc for building shared libraries.
  23045. build_libtool_need_lc=$archive_cmds_need_lc
  23046. # Whether or not to disallow shared libs when runtime libs are static.
  23047. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23048. # Compiler flag to allow reflexive dlopens.
  23049. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23050. # Compiler flag to generate shared objects directly from archives.
  23051. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23052. # Whether the compiler copes with passing no objects directly.
  23053. compiler_needs_object=$lt_compiler_needs_object
  23054. # Create an old-style archive from a shared archive.
  23055. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23056. # Create a temporary old-style archive to link instead of a shared archive.
  23057. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23058. # Commands used to build a shared archive.
  23059. archive_cmds=$lt_archive_cmds
  23060. archive_expsym_cmds=$lt_archive_expsym_cmds
  23061. # Commands used to build a loadable module if different from building
  23062. # a shared archive.
  23063. module_cmds=$lt_module_cmds
  23064. module_expsym_cmds=$lt_module_expsym_cmds
  23065. # Whether we are building with GNU ld or not.
  23066. with_gnu_ld=$lt_with_gnu_ld
  23067. # Flag that allows shared libraries with undefined symbols to be built.
  23068. allow_undefined_flag=$lt_allow_undefined_flag
  23069. # Flag that enforces no undefined symbols.
  23070. no_undefined_flag=$lt_no_undefined_flag
  23071. # Flag to hardcode \$libdir into a binary during linking.
  23072. # This must work even if \$libdir does not exist
  23073. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23074. # Whether we need a single "-rpath" flag with a separated argument.
  23075. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23076. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23077. # DIR into the resulting binary.
  23078. hardcode_direct=$hardcode_direct
  23079. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23080. # DIR into the resulting binary and the resulting library dependency is
  23081. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23082. # library is relocated.
  23083. hardcode_direct_absolute=$hardcode_direct_absolute
  23084. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23085. # into the resulting binary.
  23086. hardcode_minus_L=$hardcode_minus_L
  23087. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23088. # into the resulting binary.
  23089. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23090. # Set to "yes" if building a shared library automatically hardcodes DIR
  23091. # into the library and all subsequent libraries and executables linked
  23092. # against it.
  23093. hardcode_automatic=$hardcode_automatic
  23094. # Set to yes if linker adds runtime paths of dependent libraries
  23095. # to runtime path list.
  23096. inherit_rpath=$inherit_rpath
  23097. # Whether libtool must link a program against all its dependency libraries.
  23098. link_all_deplibs=$link_all_deplibs
  23099. # Set to "yes" if exported symbols are required.
  23100. always_export_symbols=$always_export_symbols
  23101. # The commands to list exported symbols.
  23102. export_symbols_cmds=$lt_export_symbols_cmds
  23103. # Symbols that should not be listed in the preloaded symbols.
  23104. exclude_expsyms=$lt_exclude_expsyms
  23105. # Symbols that must always be exported.
  23106. include_expsyms=$lt_include_expsyms
  23107. # Commands necessary for linking programs (against libraries) with templates.
  23108. prelink_cmds=$lt_prelink_cmds
  23109. # Commands necessary for finishing linking programs.
  23110. postlink_cmds=$lt_postlink_cmds
  23111. # Specify filename containing input files.
  23112. file_list_spec=$lt_file_list_spec
  23113. # How to hardcode a shared library path into an executable.
  23114. hardcode_action=$hardcode_action
  23115. # The directories searched by this compiler when creating a shared library.
  23116. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23117. # Dependencies to place before and after the objects being linked to
  23118. # create a shared library.
  23119. predep_objects=$lt_predep_objects
  23120. postdep_objects=$lt_postdep_objects
  23121. predeps=$lt_predeps
  23122. postdeps=$lt_postdeps
  23123. # The library search path used internally by the compiler when linking
  23124. # a shared library.
  23125. compiler_lib_search_path=$lt_compiler_lib_search_path
  23126. # ### END LIBTOOL CONFIG
  23127. _LT_EOF
  23128. case $host_os in
  23129. aix3*)
  23130. cat <<\_LT_EOF >> "$cfgfile"
  23131. # AIX sometimes has problems with the GCC collect2 program. For some
  23132. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23133. # vanish in a puff of smoke.
  23134. if test "X${COLLECT_NAMES+set}" != Xset; then
  23135. COLLECT_NAMES=
  23136. export COLLECT_NAMES
  23137. fi
  23138. _LT_EOF
  23139. ;;
  23140. esac
  23141. ltmain="$ac_aux_dir/ltmain.sh"
  23142. # We use sed instead of cat because bash on DJGPP gets confused if
  23143. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23144. # text mode, it properly converts lines to CR/LF. This bash problem
  23145. # is reportedly fixed, but why not run on old versions too?
  23146. sed '$q' "$ltmain" >> "$cfgfile" \
  23147. || (rm -f "$cfgfile"; exit 1)
  23148. if test x"$xsi_shell" = xyes; then
  23149. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23150. func_dirname ()\
  23151. {\
  23152. \ case ${1} in\
  23153. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23154. \ * ) func_dirname_result="${3}" ;;\
  23155. \ esac\
  23156. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23157. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23158. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23159. test 0 -eq $? || _lt_function_replace_fail=:
  23160. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23161. func_basename ()\
  23162. {\
  23163. \ func_basename_result="${1##*/}"\
  23164. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23165. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23166. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23167. test 0 -eq $? || _lt_function_replace_fail=:
  23168. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23169. func_dirname_and_basename ()\
  23170. {\
  23171. \ case ${1} in\
  23172. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23173. \ * ) func_dirname_result="${3}" ;;\
  23174. \ esac\
  23175. \ func_basename_result="${1##*/}"\
  23176. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23177. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23178. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23179. test 0 -eq $? || _lt_function_replace_fail=:
  23180. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23181. func_stripname ()\
  23182. {\
  23183. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23184. \ # positional parameters, so assign one to ordinary parameter first.\
  23185. \ func_stripname_result=${3}\
  23186. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23187. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23188. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23189. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23190. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23191. test 0 -eq $? || _lt_function_replace_fail=:
  23192. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23193. func_split_long_opt ()\
  23194. {\
  23195. \ func_split_long_opt_name=${1%%=*}\
  23196. \ func_split_long_opt_arg=${1#*=}\
  23197. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23198. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23199. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23200. test 0 -eq $? || _lt_function_replace_fail=:
  23201. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23202. func_split_short_opt ()\
  23203. {\
  23204. \ func_split_short_opt_arg=${1#??}\
  23205. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23206. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23207. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23208. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23209. test 0 -eq $? || _lt_function_replace_fail=:
  23210. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23211. func_lo2o ()\
  23212. {\
  23213. \ case ${1} in\
  23214. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23215. \ *) func_lo2o_result=${1} ;;\
  23216. \ esac\
  23217. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23218. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23219. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23220. test 0 -eq $? || _lt_function_replace_fail=:
  23221. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23222. func_xform ()\
  23223. {\
  23224. func_xform_result=${1%.*}.lo\
  23225. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  23226. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23227. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23228. test 0 -eq $? || _lt_function_replace_fail=:
  23229. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  23230. func_arith ()\
  23231. {\
  23232. func_arith_result=$(( $* ))\
  23233. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  23234. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23235. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23236. test 0 -eq $? || _lt_function_replace_fail=:
  23237. sed -e '/^func_len ()$/,/^} # func_len /c\
  23238. func_len ()\
  23239. {\
  23240. func_len_result=${#1}\
  23241. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  23242. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23243. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23244. test 0 -eq $? || _lt_function_replace_fail=:
  23245. fi
  23246. if test x"$lt_shell_append" = xyes; then
  23247. sed -e '/^func_append ()$/,/^} # func_append /c\
  23248. func_append ()\
  23249. {\
  23250. eval "${1}+=\\${2}"\
  23251. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23252. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23253. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23254. test 0 -eq $? || _lt_function_replace_fail=:
  23255. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23256. func_append_quoted ()\
  23257. {\
  23258. \ func_quote_for_eval "${2}"\
  23259. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23260. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23261. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23262. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23263. test 0 -eq $? || _lt_function_replace_fail=:
  23264. # Save a `func_append' function call where possible by direct use of '+='
  23265. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23266. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23267. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23268. test 0 -eq $? || _lt_function_replace_fail=:
  23269. else
  23270. # Save a `func_append' function call even when '+=' is not available
  23271. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23272. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23273. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23274. test 0 -eq $? || _lt_function_replace_fail=:
  23275. fi
  23276. if test x"$_lt_function_replace_fail" = x":"; then
  23277. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23278. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23279. fi
  23280. mv -f "$cfgfile" "$ofile" ||
  23281. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23282. chmod +x "$ofile"
  23283. cat <<_LT_EOF >> "$ofile"
  23284. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23285. # The linker used to build libraries.
  23286. LD=$lt_LD_CXX
  23287. # How to create reloadable object files.
  23288. reload_flag=$lt_reload_flag_CXX
  23289. reload_cmds=$lt_reload_cmds_CXX
  23290. # Commands used to build an old-style archive.
  23291. old_archive_cmds=$lt_old_archive_cmds_CXX
  23292. # A language specific compiler.
  23293. CC=$lt_compiler_CXX
  23294. # Is the compiler the GNU compiler?
  23295. with_gcc=$GCC_CXX
  23296. # Compiler flag to turn off builtin functions.
  23297. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23298. # Additional compiler flags for building library objects.
  23299. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23300. # How to pass a linker flag through the compiler.
  23301. wl=$lt_lt_prog_compiler_wl_CXX
  23302. # Compiler flag to prevent dynamic linking.
  23303. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23304. # Does compiler simultaneously support -c and -o options?
  23305. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23306. # Whether or not to add -lc for building shared libraries.
  23307. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23308. # Whether or not to disallow shared libs when runtime libs are static.
  23309. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23310. # Compiler flag to allow reflexive dlopens.
  23311. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23312. # Compiler flag to generate shared objects directly from archives.
  23313. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23314. # Whether the compiler copes with passing no objects directly.
  23315. compiler_needs_object=$lt_compiler_needs_object_CXX
  23316. # Create an old-style archive from a shared archive.
  23317. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23318. # Create a temporary old-style archive to link instead of a shared archive.
  23319. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23320. # Commands used to build a shared archive.
  23321. archive_cmds=$lt_archive_cmds_CXX
  23322. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23323. # Commands used to build a loadable module if different from building
  23324. # a shared archive.
  23325. module_cmds=$lt_module_cmds_CXX
  23326. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23327. # Whether we are building with GNU ld or not.
  23328. with_gnu_ld=$lt_with_gnu_ld_CXX
  23329. # Flag that allows shared libraries with undefined symbols to be built.
  23330. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23331. # Flag that enforces no undefined symbols.
  23332. no_undefined_flag=$lt_no_undefined_flag_CXX
  23333. # Flag to hardcode \$libdir into a binary during linking.
  23334. # This must work even if \$libdir does not exist
  23335. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23336. # Whether we need a single "-rpath" flag with a separated argument.
  23337. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23338. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23339. # DIR into the resulting binary.
  23340. hardcode_direct=$hardcode_direct_CXX
  23341. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23342. # DIR into the resulting binary and the resulting library dependency is
  23343. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23344. # library is relocated.
  23345. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23346. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23347. # into the resulting binary.
  23348. hardcode_minus_L=$hardcode_minus_L_CXX
  23349. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23350. # into the resulting binary.
  23351. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23352. # Set to "yes" if building a shared library automatically hardcodes DIR
  23353. # into the library and all subsequent libraries and executables linked
  23354. # against it.
  23355. hardcode_automatic=$hardcode_automatic_CXX
  23356. # Set to yes if linker adds runtime paths of dependent libraries
  23357. # to runtime path list.
  23358. inherit_rpath=$inherit_rpath_CXX
  23359. # Whether libtool must link a program against all its dependency libraries.
  23360. link_all_deplibs=$link_all_deplibs_CXX
  23361. # Set to "yes" if exported symbols are required.
  23362. always_export_symbols=$always_export_symbols_CXX
  23363. # The commands to list exported symbols.
  23364. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23365. # Symbols that should not be listed in the preloaded symbols.
  23366. exclude_expsyms=$lt_exclude_expsyms_CXX
  23367. # Symbols that must always be exported.
  23368. include_expsyms=$lt_include_expsyms_CXX
  23369. # Commands necessary for linking programs (against libraries) with templates.
  23370. prelink_cmds=$lt_prelink_cmds_CXX
  23371. # Commands necessary for finishing linking programs.
  23372. postlink_cmds=$lt_postlink_cmds_CXX
  23373. # Specify filename containing input files.
  23374. file_list_spec=$lt_file_list_spec_CXX
  23375. # How to hardcode a shared library path into an executable.
  23376. hardcode_action=$hardcode_action_CXX
  23377. # The directories searched by this compiler when creating a shared library.
  23378. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23379. # Dependencies to place before and after the objects being linked to
  23380. # create a shared library.
  23381. predep_objects=$lt_predep_objects_CXX
  23382. postdep_objects=$lt_postdep_objects_CXX
  23383. predeps=$lt_predeps_CXX
  23384. postdeps=$lt_postdeps_CXX
  23385. # The library search path used internally by the compiler when linking
  23386. # a shared library.
  23387. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23388. # ### END LIBTOOL TAG CONFIG: CXX
  23389. _LT_EOF
  23390. ;;
  23391. "sdl2_config":C) chmod a+x sdl2-config ;;
  23392. "summary":C) echo -en "$SUMMARY" ;;
  23393. esac
  23394. done # for ac_tag
  23395. as_fn_exit 0
  23396. _ACEOF
  23397. ac_clean_files=$ac_clean_files_save
  23398. test $ac_write_fail = 0 ||
  23399. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23400. # configure is writing to config.log, and then calls config.status.
  23401. # config.status does its own redirection, appending to config.log.
  23402. # Unfortunately, on DOS this fails, as config.log is still kept open
  23403. # by configure, so config.status won't be able to write to it; its
  23404. # output is simply discarded. So we exec the FD to /dev/null,
  23405. # effectively closing config.log, so it can be properly (re)opened and
  23406. # appended to by config.status. When coming back to configure, we
  23407. # need to make the FD available again.
  23408. if test "$no_create" != yes; then
  23409. ac_cs_success=:
  23410. ac_config_status_args=
  23411. test "$silent" = yes &&
  23412. ac_config_status_args="$ac_config_status_args --quiet"
  23413. exec 5>/dev/null
  23414. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23415. exec 5>>config.log
  23416. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23417. # would make configure fail if this is the last instruction.
  23418. $ac_cs_success || as_fn_exit 1
  23419. fi
  23420. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23421. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23422. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23423. fi