configure 805 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503
  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_power
  737. enable_filesystem
  738. enable_threads
  739. enable_timers
  740. enable_file
  741. enable_loadso
  742. enable_cpuinfo
  743. enable_assembly
  744. enable_ssemath
  745. enable_mmx
  746. enable_3dnow
  747. enable_sse
  748. enable_sse2
  749. enable_sse3
  750. enable_altivec
  751. enable_oss
  752. enable_alsa
  753. with_alsa_prefix
  754. with_alsa_inc_prefix
  755. enable_alsatest
  756. enable_alsa_shared
  757. enable_jack
  758. enable_jack_shared
  759. enable_esd
  760. with_esd_prefix
  761. with_esd_exec_prefix
  762. enable_esdtest
  763. enable_esd_shared
  764. enable_pulseaudio
  765. enable_pulseaudio_shared
  766. enable_arts
  767. enable_arts_shared
  768. enable_nas
  769. enable_nas_shared
  770. enable_sndio
  771. enable_sndio_shared
  772. enable_fusionsound
  773. enable_fusionsound_shared
  774. enable_diskaudio
  775. enable_dummyaudio
  776. enable_libsamplerate
  777. enable_libsamplerate_shared
  778. enable_video_wayland
  779. enable_video_wayland_qt_touch
  780. enable_wayland_shared
  781. enable_video_mir
  782. enable_mir_shared
  783. enable_video_rpi
  784. enable_video_x11
  785. with_x
  786. enable_x11_shared
  787. enable_video_x11_xcursor
  788. enable_video_x11_xdbe
  789. enable_video_x11_xinerama
  790. enable_video_x11_xinput
  791. enable_video_x11_xrandr
  792. enable_video_x11_scrnsaver
  793. enable_video_x11_xshape
  794. enable_video_x11_vm
  795. enable_video_vivante
  796. enable_video_cocoa
  797. enable_render_metal
  798. enable_video_directfb
  799. enable_directfb_shared
  800. enable_video_kmsdrm
  801. enable_kmsdrm_shared
  802. enable_video_dummy
  803. enable_video_opengl
  804. enable_video_opengles
  805. enable_video_opengles1
  806. enable_video_opengles2
  807. enable_video_vulkan
  808. enable_libudev
  809. enable_dbus
  810. enable_ime
  811. enable_ibus
  812. enable_fcitx
  813. enable_input_tslib
  814. enable_pthreads
  815. enable_pthread_sem
  816. enable_directx
  817. enable_wasapi
  818. enable_sdl_dlopen
  819. enable_hidapi
  820. enable_clock_gettime
  821. enable_rpath
  822. enable_render_d3d
  823. '
  824. ac_precious_vars='build_alias
  825. host_alias
  826. target_alias
  827. CC
  828. CFLAGS
  829. LDFLAGS
  830. LIBS
  831. CPPFLAGS
  832. CPP
  833. CXX
  834. CXXFLAGS
  835. CCC
  836. CXXCPP
  837. XMKMF'
  838. # Initialize some variables set by options.
  839. ac_init_help=
  840. ac_init_version=false
  841. ac_unrecognized_opts=
  842. ac_unrecognized_sep=
  843. # The variables have the same names as the options, with
  844. # dashes changed to underlines.
  845. cache_file=/dev/null
  846. exec_prefix=NONE
  847. no_create=
  848. no_recursion=
  849. prefix=NONE
  850. program_prefix=NONE
  851. program_suffix=NONE
  852. program_transform_name=s,x,x,
  853. silent=
  854. site=
  855. srcdir=
  856. verbose=
  857. x_includes=NONE
  858. x_libraries=NONE
  859. # Installation directory options.
  860. # These are left unexpanded so users can "make install exec_prefix=/foo"
  861. # and all the variables that are supposed to be based on exec_prefix
  862. # by default will actually change.
  863. # Use braces instead of parens because sh, perl, etc. also accept them.
  864. # (The list follows the same order as the GNU Coding Standards.)
  865. bindir='${exec_prefix}/bin'
  866. sbindir='${exec_prefix}/sbin'
  867. libexecdir='${exec_prefix}/libexec'
  868. datarootdir='${prefix}/share'
  869. datadir='${datarootdir}'
  870. sysconfdir='${prefix}/etc'
  871. sharedstatedir='${prefix}/com'
  872. localstatedir='${prefix}/var'
  873. includedir='${prefix}/include'
  874. oldincludedir='/usr/include'
  875. docdir='${datarootdir}/doc/${PACKAGE}'
  876. infodir='${datarootdir}/info'
  877. htmldir='${docdir}'
  878. dvidir='${docdir}'
  879. pdfdir='${docdir}'
  880. psdir='${docdir}'
  881. libdir='${exec_prefix}/lib'
  882. localedir='${datarootdir}/locale'
  883. mandir='${datarootdir}/man'
  884. ac_prev=
  885. ac_dashdash=
  886. for ac_option
  887. do
  888. # If the previous option needs an argument, assign it.
  889. if test -n "$ac_prev"; then
  890. eval $ac_prev=\$ac_option
  891. ac_prev=
  892. continue
  893. fi
  894. case $ac_option in
  895. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  896. *=) ac_optarg= ;;
  897. *) ac_optarg=yes ;;
  898. esac
  899. # Accept the important Cygnus configure options, so we can diagnose typos.
  900. case $ac_dashdash$ac_option in
  901. --)
  902. ac_dashdash=yes ;;
  903. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  904. ac_prev=bindir ;;
  905. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  906. bindir=$ac_optarg ;;
  907. -build | --build | --buil | --bui | --bu)
  908. ac_prev=build_alias ;;
  909. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  910. build_alias=$ac_optarg ;;
  911. -cache-file | --cache-file | --cache-fil | --cache-fi \
  912. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  913. ac_prev=cache_file ;;
  914. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  915. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  916. cache_file=$ac_optarg ;;
  917. --config-cache | -C)
  918. cache_file=config.cache ;;
  919. -datadir | --datadir | --datadi | --datad)
  920. ac_prev=datadir ;;
  921. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  922. datadir=$ac_optarg ;;
  923. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  924. | --dataroo | --dataro | --datar)
  925. ac_prev=datarootdir ;;
  926. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  927. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  928. datarootdir=$ac_optarg ;;
  929. -disable-* | --disable-*)
  930. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  933. as_fn_error $? "invalid feature name: $ac_useropt"
  934. ac_useropt_orig=$ac_useropt
  935. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  936. case $ac_user_opts in
  937. *"
  938. "enable_$ac_useropt"
  939. "*) ;;
  940. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  941. ac_unrecognized_sep=', ';;
  942. esac
  943. eval enable_$ac_useropt=no ;;
  944. -docdir | --docdir | --docdi | --doc | --do)
  945. ac_prev=docdir ;;
  946. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  947. docdir=$ac_optarg ;;
  948. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  949. ac_prev=dvidir ;;
  950. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  951. dvidir=$ac_optarg ;;
  952. -enable-* | --enable-*)
  953. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  954. # Reject names that are not valid shell variable names.
  955. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  956. as_fn_error $? "invalid feature name: $ac_useropt"
  957. ac_useropt_orig=$ac_useropt
  958. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  959. case $ac_user_opts in
  960. *"
  961. "enable_$ac_useropt"
  962. "*) ;;
  963. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  964. ac_unrecognized_sep=', ';;
  965. esac
  966. eval enable_$ac_useropt=\$ac_optarg ;;
  967. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  968. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  969. | --exec | --exe | --ex)
  970. ac_prev=exec_prefix ;;
  971. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  972. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  973. | --exec=* | --exe=* | --ex=*)
  974. exec_prefix=$ac_optarg ;;
  975. -gas | --gas | --ga | --g)
  976. # Obsolete; use --with-gas.
  977. with_gas=yes ;;
  978. -help | --help | --hel | --he | -h)
  979. ac_init_help=long ;;
  980. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  981. ac_init_help=recursive ;;
  982. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  983. ac_init_help=short ;;
  984. -host | --host | --hos | --ho)
  985. ac_prev=host_alias ;;
  986. -host=* | --host=* | --hos=* | --ho=*)
  987. host_alias=$ac_optarg ;;
  988. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  989. ac_prev=htmldir ;;
  990. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  991. | --ht=*)
  992. htmldir=$ac_optarg ;;
  993. -includedir | --includedir | --includedi | --included | --include \
  994. | --includ | --inclu | --incl | --inc)
  995. ac_prev=includedir ;;
  996. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  997. | --includ=* | --inclu=* | --incl=* | --inc=*)
  998. includedir=$ac_optarg ;;
  999. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1000. ac_prev=infodir ;;
  1001. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1002. infodir=$ac_optarg ;;
  1003. -libdir | --libdir | --libdi | --libd)
  1004. ac_prev=libdir ;;
  1005. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1006. libdir=$ac_optarg ;;
  1007. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1008. | --libexe | --libex | --libe)
  1009. ac_prev=libexecdir ;;
  1010. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1011. | --libexe=* | --libex=* | --libe=*)
  1012. libexecdir=$ac_optarg ;;
  1013. -localedir | --localedir | --localedi | --localed | --locale)
  1014. ac_prev=localedir ;;
  1015. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1016. localedir=$ac_optarg ;;
  1017. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1018. | --localstate | --localstat | --localsta | --localst | --locals)
  1019. ac_prev=localstatedir ;;
  1020. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1021. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1022. localstatedir=$ac_optarg ;;
  1023. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1024. ac_prev=mandir ;;
  1025. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1026. mandir=$ac_optarg ;;
  1027. -nfp | --nfp | --nf)
  1028. # Obsolete; use --without-fp.
  1029. with_fp=no ;;
  1030. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1031. | --no-cr | --no-c | -n)
  1032. no_create=yes ;;
  1033. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1034. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1035. no_recursion=yes ;;
  1036. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1037. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1038. | --oldin | --oldi | --old | --ol | --o)
  1039. ac_prev=oldincludedir ;;
  1040. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1041. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1042. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1043. oldincludedir=$ac_optarg ;;
  1044. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1045. ac_prev=prefix ;;
  1046. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1047. prefix=$ac_optarg ;;
  1048. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1049. | --program-pre | --program-pr | --program-p)
  1050. ac_prev=program_prefix ;;
  1051. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1052. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1053. program_prefix=$ac_optarg ;;
  1054. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1055. | --program-suf | --program-su | --program-s)
  1056. ac_prev=program_suffix ;;
  1057. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1058. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1059. program_suffix=$ac_optarg ;;
  1060. -program-transform-name | --program-transform-name \
  1061. | --program-transform-nam | --program-transform-na \
  1062. | --program-transform-n | --program-transform- \
  1063. | --program-transform | --program-transfor \
  1064. | --program-transfo | --program-transf \
  1065. | --program-trans | --program-tran \
  1066. | --progr-tra | --program-tr | --program-t)
  1067. ac_prev=program_transform_name ;;
  1068. -program-transform-name=* | --program-transform-name=* \
  1069. | --program-transform-nam=* | --program-transform-na=* \
  1070. | --program-transform-n=* | --program-transform-=* \
  1071. | --program-transform=* | --program-transfor=* \
  1072. | --program-transfo=* | --program-transf=* \
  1073. | --program-trans=* | --program-tran=* \
  1074. | --progr-tra=* | --program-tr=* | --program-t=*)
  1075. program_transform_name=$ac_optarg ;;
  1076. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1077. ac_prev=pdfdir ;;
  1078. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1079. pdfdir=$ac_optarg ;;
  1080. -psdir | --psdir | --psdi | --psd | --ps)
  1081. ac_prev=psdir ;;
  1082. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1083. psdir=$ac_optarg ;;
  1084. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1085. | -silent | --silent | --silen | --sile | --sil)
  1086. silent=yes ;;
  1087. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1088. ac_prev=sbindir ;;
  1089. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1090. | --sbi=* | --sb=*)
  1091. sbindir=$ac_optarg ;;
  1092. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1093. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1094. | --sharedst | --shareds | --shared | --share | --shar \
  1095. | --sha | --sh)
  1096. ac_prev=sharedstatedir ;;
  1097. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1098. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1099. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1100. | --sha=* | --sh=*)
  1101. sharedstatedir=$ac_optarg ;;
  1102. -site | --site | --sit)
  1103. ac_prev=site ;;
  1104. -site=* | --site=* | --sit=*)
  1105. site=$ac_optarg ;;
  1106. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1107. ac_prev=srcdir ;;
  1108. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1109. srcdir=$ac_optarg ;;
  1110. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1111. | --syscon | --sysco | --sysc | --sys | --sy)
  1112. ac_prev=sysconfdir ;;
  1113. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1114. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1115. sysconfdir=$ac_optarg ;;
  1116. -target | --target | --targe | --targ | --tar | --ta | --t)
  1117. ac_prev=target_alias ;;
  1118. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1119. target_alias=$ac_optarg ;;
  1120. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1121. verbose=yes ;;
  1122. -version | --version | --versio | --versi | --vers | -V)
  1123. ac_init_version=: ;;
  1124. -with-* | --with-*)
  1125. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1126. # Reject names that are not valid shell variable names.
  1127. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1128. as_fn_error $? "invalid package name: $ac_useropt"
  1129. ac_useropt_orig=$ac_useropt
  1130. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1131. case $ac_user_opts in
  1132. *"
  1133. "with_$ac_useropt"
  1134. "*) ;;
  1135. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1136. ac_unrecognized_sep=', ';;
  1137. esac
  1138. eval with_$ac_useropt=\$ac_optarg ;;
  1139. -without-* | --without-*)
  1140. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1141. # Reject names that are not valid shell variable names.
  1142. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1143. as_fn_error $? "invalid package name: $ac_useropt"
  1144. ac_useropt_orig=$ac_useropt
  1145. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1146. case $ac_user_opts in
  1147. *"
  1148. "with_$ac_useropt"
  1149. "*) ;;
  1150. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1151. ac_unrecognized_sep=', ';;
  1152. esac
  1153. eval with_$ac_useropt=no ;;
  1154. --x)
  1155. # Obsolete; use --with-x.
  1156. with_x=yes ;;
  1157. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1158. | --x-incl | --x-inc | --x-in | --x-i)
  1159. ac_prev=x_includes ;;
  1160. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1161. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1162. x_includes=$ac_optarg ;;
  1163. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1164. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1165. ac_prev=x_libraries ;;
  1166. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1167. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1168. x_libraries=$ac_optarg ;;
  1169. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1170. Try \`$0 --help' for more information"
  1171. ;;
  1172. *=*)
  1173. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1174. # Reject names that are not valid shell variable names.
  1175. case $ac_envvar in #(
  1176. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1177. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1178. esac
  1179. eval $ac_envvar=\$ac_optarg
  1180. export $ac_envvar ;;
  1181. *)
  1182. # FIXME: should be removed in autoconf 3.0.
  1183. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1184. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1185. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1186. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1187. ;;
  1188. esac
  1189. done
  1190. if test -n "$ac_prev"; then
  1191. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1192. as_fn_error $? "missing argument to $ac_option"
  1193. fi
  1194. if test -n "$ac_unrecognized_opts"; then
  1195. case $enable_option_checking in
  1196. no) ;;
  1197. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1198. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1199. esac
  1200. fi
  1201. # Check all directory arguments for consistency.
  1202. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1203. datadir sysconfdir sharedstatedir localstatedir includedir \
  1204. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1205. libdir localedir mandir
  1206. do
  1207. eval ac_val=\$$ac_var
  1208. # Remove trailing slashes.
  1209. case $ac_val in
  1210. */ )
  1211. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1212. eval $ac_var=\$ac_val;;
  1213. esac
  1214. # Be sure to have absolute directory names.
  1215. case $ac_val in
  1216. [\\/$]* | ?:[\\/]* ) continue;;
  1217. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1218. esac
  1219. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1220. done
  1221. # There might be people who depend on the old broken behavior: `$host'
  1222. # used to hold the argument of --host etc.
  1223. # FIXME: To remove some day.
  1224. build=$build_alias
  1225. host=$host_alias
  1226. target=$target_alias
  1227. # FIXME: To remove some day.
  1228. if test "x$host_alias" != x; then
  1229. if test "x$build_alias" = x; then
  1230. cross_compiling=maybe
  1231. elif test "x$build_alias" != "x$host_alias"; then
  1232. cross_compiling=yes
  1233. fi
  1234. fi
  1235. ac_tool_prefix=
  1236. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1237. test "$silent" = yes && exec 6>/dev/null
  1238. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1239. ac_ls_di=`ls -di .` &&
  1240. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1241. as_fn_error $? "working directory cannot be determined"
  1242. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1243. as_fn_error $? "pwd does not report name of working directory"
  1244. # Find the source files, if location was not specified.
  1245. if test -z "$srcdir"; then
  1246. ac_srcdir_defaulted=yes
  1247. # Try the directory containing this script, then the parent directory.
  1248. ac_confdir=`$as_dirname -- "$as_myself" ||
  1249. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1250. X"$as_myself" : 'X\(//\)[^/]' \| \
  1251. X"$as_myself" : 'X\(//\)$' \| \
  1252. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1253. $as_echo X"$as_myself" |
  1254. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1255. s//\1/
  1256. q
  1257. }
  1258. /^X\(\/\/\)[^/].*/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\/\)$/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\).*/{
  1267. s//\1/
  1268. q
  1269. }
  1270. s/.*/./; q'`
  1271. srcdir=$ac_confdir
  1272. if test ! -r "$srcdir/$ac_unique_file"; then
  1273. srcdir=..
  1274. fi
  1275. else
  1276. ac_srcdir_defaulted=no
  1277. fi
  1278. if test ! -r "$srcdir/$ac_unique_file"; then
  1279. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1280. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1281. fi
  1282. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1283. ac_abs_confdir=`(
  1284. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1285. pwd)`
  1286. # When building in place, set srcdir=.
  1287. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1288. srcdir=.
  1289. fi
  1290. # Remove unnecessary trailing slashes from srcdir.
  1291. # Double slashes in file names in object file debugging info
  1292. # mess up M-x gdb in Emacs.
  1293. case $srcdir in
  1294. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1295. esac
  1296. for ac_var in $ac_precious_vars; do
  1297. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1298. eval ac_env_${ac_var}_value=\$${ac_var}
  1299. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1301. done
  1302. #
  1303. # Report the --help message.
  1304. #
  1305. if test "$ac_init_help" = "long"; then
  1306. # Omit some internal or obsolete options to make the list less imposing.
  1307. # This message is too long to be a string in the A/UX 3.1 sh.
  1308. cat <<_ACEOF
  1309. \`configure' configures this package to adapt to many kinds of systems.
  1310. Usage: $0 [OPTION]... [VAR=VALUE]...
  1311. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1312. VAR=VALUE. See below for descriptions of some of the useful variables.
  1313. Defaults for the options are specified in brackets.
  1314. Configuration:
  1315. -h, --help display this help and exit
  1316. --help=short display options specific to this package
  1317. --help=recursive display the short help of all the included packages
  1318. -V, --version display version information and exit
  1319. -q, --quiet, --silent do not print \`checking ...' messages
  1320. --cache-file=FILE cache test results in FILE [disabled]
  1321. -C, --config-cache alias for \`--cache-file=config.cache'
  1322. -n, --no-create do not create output files
  1323. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1324. Installation directories:
  1325. --prefix=PREFIX install architecture-independent files in PREFIX
  1326. [$ac_default_prefix]
  1327. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1328. [PREFIX]
  1329. By default, \`make install' will install all the files in
  1330. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1331. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1332. for instance \`--prefix=\$HOME'.
  1333. For better control, use the options below.
  1334. Fine tuning of the installation directories:
  1335. --bindir=DIR user executables [EPREFIX/bin]
  1336. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1337. --libexecdir=DIR program executables [EPREFIX/libexec]
  1338. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1339. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1340. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1341. --libdir=DIR object code libraries [EPREFIX/lib]
  1342. --includedir=DIR C header files [PREFIX/include]
  1343. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1344. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1345. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1346. --infodir=DIR info documentation [DATAROOTDIR/info]
  1347. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1348. --mandir=DIR man documentation [DATAROOTDIR/man]
  1349. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1350. --htmldir=DIR html documentation [DOCDIR]
  1351. --dvidir=DIR dvi documentation [DOCDIR]
  1352. --pdfdir=DIR pdf documentation [DOCDIR]
  1353. --psdir=DIR ps documentation [DOCDIR]
  1354. _ACEOF
  1355. cat <<\_ACEOF
  1356. X features:
  1357. --x-includes=DIR X include files are in DIR
  1358. --x-libraries=DIR X library files are in DIR
  1359. System types:
  1360. --build=BUILD configure for building on BUILD [guessed]
  1361. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1362. _ACEOF
  1363. fi
  1364. if test -n "$ac_init_help"; then
  1365. cat <<\_ACEOF
  1366. Optional Features:
  1367. --disable-option-checking ignore unrecognized --enable/--with options
  1368. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1369. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1370. --enable-shared[=PKGS] build shared libraries [default=yes]
  1371. --enable-static[=PKGS] build static libraries [default=yes]
  1372. --enable-fast-install[=PKGS]
  1373. optimize for fast installation [default=yes]
  1374. --disable-libtool-lock avoid locking (might break parallel builds)
  1375. --enable-assertions Enable internal sanity checks
  1376. (auto/disabled/release/enabled/paranoid)
  1377. [[default=auto]]
  1378. --enable-dependency-tracking
  1379. Use gcc -MMD -MT dependency tracking [[default=yes]]
  1380. --enable-libc Use the system C library [[default=yes]]
  1381. --enable-gcc-atomics Use gcc builtin atomics [[default=yes]]
  1382. --enable-atomic Enable the atomic operations subsystem
  1383. [[default=yes]]
  1384. --enable-audio Enable the audio subsystem [[default=yes]]
  1385. --enable-video Enable the video subsystem [[default=yes]]
  1386. --enable-render Enable the render subsystem [[default=yes]]
  1387. --enable-events Enable the events subsystem [[default=yes]]
  1388. --enable-joystick Enable the joystick subsystem [[default=yes]]
  1389. --enable-haptic Enable the haptic (force feedback) subsystem
  1390. [[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-mir use Mir video driver [[default=no]]
  1443. --enable-mir-shared dynamically load Mir support [[default=maybe]]
  1444. --enable-video-rpi use Raspberry Pi video driver [[default=yes]]
  1445. --enable-video-x11 use X11 video driver [[default=yes]]
  1446. --enable-x11-shared dynamically load X11 support [[default=maybe]]
  1447. --enable-video-x11-xcursor
  1448. enable X11 Xcursor support [[default=yes]]
  1449. --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1450. --enable-video-x11-xinerama
  1451. enable X11 Xinerama support [[default=yes]]
  1452. --enable-video-x11-xinput
  1453. enable X11 XInput extension for manymouse, tablets,
  1454. etc [[default=yes]]
  1455. --enable-video-x11-xrandr
  1456. enable X11 Xrandr extension for fullscreen
  1457. [[default=yes]]
  1458. --enable-video-x11-scrnsaver
  1459. enable X11 screensaver extension [[default=yes]]
  1460. --enable-video-x11-xshape
  1461. enable X11 XShape support [[default=yes]]
  1462. --enable-video-x11-vm use X11 VM extension for fullscreen [[default=yes]]
  1463. --enable-video-vivante use Vivante EGL video driver [[default=yes]]
  1464. --enable-video-cocoa use Cocoa video driver [[default=yes]]
  1465. --enable-render-metal enable the Metal render driver [[default=yes]]
  1466. --enable-video-directfb use DirectFB video driver [[default=no]]
  1467. --enable-directfb-shared
  1468. dynamically load directfb support [[default=yes]]
  1469. --enable-video-kmsdrm use KMSDRM video driver [[default=no]]
  1470. --enable-kmsdrm-shared dynamically load kmsdrm support [[default=yes]]
  1471. --enable-video-dummy use dummy video driver [[default=yes]]
  1472. --enable-video-opengl include OpenGL support [[default=yes]]
  1473. --enable-video-opengles include OpenGL ES support [[default=yes]]
  1474. --enable-video-opengles1
  1475. include OpenGL ES 1.1 support [[default=yes]]
  1476. --enable-video-opengles2
  1477. include OpenGL ES 2.0 support [[default=yes]]
  1478. --enable-video-vulkan include Vulkan support [[default=yes]]
  1479. --enable-libudev enable libudev support [[default=yes]]
  1480. --enable-dbus enable D-Bus support [[default=yes]]
  1481. --enable-ime enable IME support [[default=yes]]
  1482. --enable-ibus enable IBus support [[default=yes]]
  1483. --enable-fcitx enable fcitx support [[default=yes]]
  1484. --enable-input-tslib use the Touchscreen library for input
  1485. [[default=yes]]
  1486. --enable-pthreads use POSIX threads for multi-threading
  1487. [[default=yes]]
  1488. --enable-pthread-sem use pthread semaphores [[default=yes]]
  1489. --enable-directx use DirectX for Windows audio/video [[default=yes]]
  1490. --enable-wasapi use the Windows WASAPI audio driver [[default=yes]]
  1491. --enable-sdl-dlopen use dlopen for shared object loading [[default=yes]]
  1492. --enable-hidapi use HIDAPI for low level joystick drivers
  1493. [[default=no]]
  1494. --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
  1495. UNIX [[default=yes]]
  1496. --enable-rpath use an rpath when linking SDL [[default=yes]]
  1497. --enable-render-d3d enable the Direct3D render driver [[default=yes]]
  1498. Optional Packages:
  1499. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1500. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1501. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1502. both]
  1503. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1504. --with-sysroot=DIR Search for dependent libraries within DIR
  1505. (or the compiler's sysroot if not specified).
  1506. --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
  1507. --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
  1508. --with-esd-prefix=PFX Prefix where ESD is installed (optional)
  1509. --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
  1510. --with-x use the X Window System
  1511. Some influential environment variables:
  1512. CC C compiler command
  1513. CFLAGS C compiler flags
  1514. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1515. nonstandard directory <lib dir>
  1516. LIBS libraries to pass to the linker, e.g. -l<library>
  1517. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1518. you have headers in a nonstandard directory <include dir>
  1519. CPP C preprocessor
  1520. CXX C++ compiler command
  1521. CXXFLAGS C++ compiler flags
  1522. CXXCPP C++ preprocessor
  1523. XMKMF Path to xmkmf, Makefile generator for X Window System
  1524. Use these variables to override the choices made by `configure' or to help
  1525. it to find libraries and programs with nonstandard names/locations.
  1526. Report bugs to the package provider.
  1527. _ACEOF
  1528. ac_status=$?
  1529. fi
  1530. if test "$ac_init_help" = "recursive"; then
  1531. # If there are subdirs, report their specific --help.
  1532. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1533. test -d "$ac_dir" ||
  1534. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1535. continue
  1536. ac_builddir=.
  1537. case "$ac_dir" in
  1538. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1539. *)
  1540. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1541. # A ".." for each directory in $ac_dir_suffix.
  1542. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1543. case $ac_top_builddir_sub in
  1544. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1545. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1546. esac ;;
  1547. esac
  1548. ac_abs_top_builddir=$ac_pwd
  1549. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1550. # for backward compatibility:
  1551. ac_top_builddir=$ac_top_build_prefix
  1552. case $srcdir in
  1553. .) # We are building in place.
  1554. ac_srcdir=.
  1555. ac_top_srcdir=$ac_top_builddir_sub
  1556. ac_abs_top_srcdir=$ac_pwd ;;
  1557. [\\/]* | ?:[\\/]* ) # Absolute name.
  1558. ac_srcdir=$srcdir$ac_dir_suffix;
  1559. ac_top_srcdir=$srcdir
  1560. ac_abs_top_srcdir=$srcdir ;;
  1561. *) # Relative name.
  1562. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1563. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1564. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1565. esac
  1566. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1567. cd "$ac_dir" || { ac_status=$?; continue; }
  1568. # Check for guested configure.
  1569. if test -f "$ac_srcdir/configure.gnu"; then
  1570. echo &&
  1571. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1572. elif test -f "$ac_srcdir/configure"; then
  1573. echo &&
  1574. $SHELL "$ac_srcdir/configure" --help=recursive
  1575. else
  1576. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1577. fi || ac_status=$?
  1578. cd "$ac_pwd" || { ac_status=$?; break; }
  1579. done
  1580. fi
  1581. test -n "$ac_init_help" && exit $ac_status
  1582. if $ac_init_version; then
  1583. cat <<\_ACEOF
  1584. configure
  1585. generated by GNU Autoconf 2.69
  1586. Copyright (C) 2012 Free Software Foundation, Inc.
  1587. This configure script is free software; the Free Software Foundation
  1588. gives unlimited permission to copy, distribute and modify it.
  1589. _ACEOF
  1590. exit
  1591. fi
  1592. ## ------------------------ ##
  1593. ## Autoconf initialization. ##
  1594. ## ------------------------ ##
  1595. # ac_fn_c_try_compile LINENO
  1596. # --------------------------
  1597. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1598. ac_fn_c_try_compile ()
  1599. {
  1600. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1601. rm -f conftest.$ac_objext
  1602. if { { ac_try="$ac_compile"
  1603. case "(($ac_try" in
  1604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1605. *) ac_try_echo=$ac_try;;
  1606. esac
  1607. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1608. $as_echo "$ac_try_echo"; } >&5
  1609. (eval "$ac_compile") 2>conftest.err
  1610. ac_status=$?
  1611. if test -s conftest.err; then
  1612. grep -v '^ *+' conftest.err >conftest.er1
  1613. cat conftest.er1 >&5
  1614. mv -f conftest.er1 conftest.err
  1615. fi
  1616. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1617. test $ac_status = 0; } && {
  1618. test -z "$ac_c_werror_flag" ||
  1619. test ! -s conftest.err
  1620. } && test -s conftest.$ac_objext; then :
  1621. ac_retval=0
  1622. else
  1623. $as_echo "$as_me: failed program was:" >&5
  1624. sed 's/^/| /' conftest.$ac_ext >&5
  1625. ac_retval=1
  1626. fi
  1627. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1628. as_fn_set_status $ac_retval
  1629. } # ac_fn_c_try_compile
  1630. # ac_fn_c_try_link LINENO
  1631. # -----------------------
  1632. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1633. ac_fn_c_try_link ()
  1634. {
  1635. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1636. rm -f conftest.$ac_objext conftest$ac_exeext
  1637. if { { ac_try="$ac_link"
  1638. case "(($ac_try" in
  1639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1640. *) ac_try_echo=$ac_try;;
  1641. esac
  1642. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1643. $as_echo "$ac_try_echo"; } >&5
  1644. (eval "$ac_link") 2>conftest.err
  1645. ac_status=$?
  1646. if test -s conftest.err; then
  1647. grep -v '^ *+' conftest.err >conftest.er1
  1648. cat conftest.er1 >&5
  1649. mv -f conftest.er1 conftest.err
  1650. fi
  1651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1652. test $ac_status = 0; } && {
  1653. test -z "$ac_c_werror_flag" ||
  1654. test ! -s conftest.err
  1655. } && test -s conftest$ac_exeext && {
  1656. test "$cross_compiling" = yes ||
  1657. test -x conftest$ac_exeext
  1658. }; then :
  1659. ac_retval=0
  1660. else
  1661. $as_echo "$as_me: failed program was:" >&5
  1662. sed 's/^/| /' conftest.$ac_ext >&5
  1663. ac_retval=1
  1664. fi
  1665. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1666. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1667. # interfere with the next link command; also delete a directory that is
  1668. # left behind by Apple's compiler. We do this before executing the actions.
  1669. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1670. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1671. as_fn_set_status $ac_retval
  1672. } # ac_fn_c_try_link
  1673. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1674. # -------------------------------------------------------
  1675. # Tests whether HEADER exists and can be compiled using the include files in
  1676. # INCLUDES, setting the cache variable VAR accordingly.
  1677. ac_fn_c_check_header_compile ()
  1678. {
  1679. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1681. $as_echo_n "checking for $2... " >&6; }
  1682. if eval \${$3+:} false; then :
  1683. $as_echo_n "(cached) " >&6
  1684. else
  1685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1686. /* end confdefs.h. */
  1687. $4
  1688. #include <$2>
  1689. _ACEOF
  1690. if ac_fn_c_try_compile "$LINENO"; then :
  1691. eval "$3=yes"
  1692. else
  1693. eval "$3=no"
  1694. fi
  1695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1696. fi
  1697. eval ac_res=\$$3
  1698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1699. $as_echo "$ac_res" >&6; }
  1700. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1701. } # ac_fn_c_check_header_compile
  1702. # ac_fn_c_try_cpp LINENO
  1703. # ----------------------
  1704. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1705. ac_fn_c_try_cpp ()
  1706. {
  1707. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1708. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1709. case "(($ac_try" in
  1710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1711. *) ac_try_echo=$ac_try;;
  1712. esac
  1713. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1714. $as_echo "$ac_try_echo"; } >&5
  1715. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1716. ac_status=$?
  1717. if test -s conftest.err; then
  1718. grep -v '^ *+' conftest.err >conftest.er1
  1719. cat conftest.er1 >&5
  1720. mv -f conftest.er1 conftest.err
  1721. fi
  1722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1723. test $ac_status = 0; } > conftest.i && {
  1724. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1725. test ! -s conftest.err
  1726. }; then :
  1727. ac_retval=0
  1728. else
  1729. $as_echo "$as_me: failed program was:" >&5
  1730. sed 's/^/| /' conftest.$ac_ext >&5
  1731. ac_retval=1
  1732. fi
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. as_fn_set_status $ac_retval
  1735. } # ac_fn_c_try_cpp
  1736. # ac_fn_c_try_run LINENO
  1737. # ----------------------
  1738. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1739. # that executables *can* be run.
  1740. ac_fn_c_try_run ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. if { { ac_try="$ac_link"
  1744. case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_link") 2>&5
  1751. ac_status=$?
  1752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1753. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1754. { { case "(($ac_try" in
  1755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1756. *) ac_try_echo=$ac_try;;
  1757. esac
  1758. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1759. $as_echo "$ac_try_echo"; } >&5
  1760. (eval "$ac_try") 2>&5
  1761. ac_status=$?
  1762. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1763. test $ac_status = 0; }; }; then :
  1764. ac_retval=0
  1765. else
  1766. $as_echo "$as_me: program exited with status $ac_status" >&5
  1767. $as_echo "$as_me: failed program was:" >&5
  1768. sed 's/^/| /' conftest.$ac_ext >&5
  1769. ac_retval=$ac_status
  1770. fi
  1771. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1772. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1773. as_fn_set_status $ac_retval
  1774. } # ac_fn_c_try_run
  1775. # ac_fn_c_check_func LINENO FUNC VAR
  1776. # ----------------------------------
  1777. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1778. ac_fn_c_check_func ()
  1779. {
  1780. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1782. $as_echo_n "checking for $2... " >&6; }
  1783. if eval \${$3+:} false; then :
  1784. $as_echo_n "(cached) " >&6
  1785. else
  1786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1787. /* end confdefs.h. */
  1788. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1789. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1790. #define $2 innocuous_$2
  1791. /* System header to define __stub macros and hopefully few prototypes,
  1792. which can conflict with char $2 (); below.
  1793. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1794. <limits.h> exists even on freestanding compilers. */
  1795. #ifdef __STDC__
  1796. # include <limits.h>
  1797. #else
  1798. # include <assert.h>
  1799. #endif
  1800. #undef $2
  1801. /* Override any GCC internal prototype to avoid an error.
  1802. Use char because int might match the return type of a GCC
  1803. builtin and then its argument prototype would still apply. */
  1804. #ifdef __cplusplus
  1805. extern "C"
  1806. #endif
  1807. char $2 ();
  1808. /* The GNU C library defines this for functions which it implements
  1809. to always fail with ENOSYS. Some functions are actually named
  1810. something starting with __ and the normal name is an alias. */
  1811. #if defined __stub_$2 || defined __stub___$2
  1812. choke me
  1813. #endif
  1814. int
  1815. main ()
  1816. {
  1817. return $2 ();
  1818. ;
  1819. return 0;
  1820. }
  1821. _ACEOF
  1822. if ac_fn_c_try_link "$LINENO"; then :
  1823. eval "$3=yes"
  1824. else
  1825. eval "$3=no"
  1826. fi
  1827. rm -f core conftest.err conftest.$ac_objext \
  1828. conftest$ac_exeext conftest.$ac_ext
  1829. fi
  1830. eval ac_res=\$$3
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1832. $as_echo "$ac_res" >&6; }
  1833. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1834. } # ac_fn_c_check_func
  1835. # ac_fn_cxx_try_compile LINENO
  1836. # ----------------------------
  1837. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1838. ac_fn_cxx_try_compile ()
  1839. {
  1840. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1841. rm -f conftest.$ac_objext
  1842. if { { ac_try="$ac_compile"
  1843. case "(($ac_try" in
  1844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1845. *) ac_try_echo=$ac_try;;
  1846. esac
  1847. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1848. $as_echo "$ac_try_echo"; } >&5
  1849. (eval "$ac_compile") 2>conftest.err
  1850. ac_status=$?
  1851. if test -s conftest.err; then
  1852. grep -v '^ *+' conftest.err >conftest.er1
  1853. cat conftest.er1 >&5
  1854. mv -f conftest.er1 conftest.err
  1855. fi
  1856. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1857. test $ac_status = 0; } && {
  1858. test -z "$ac_cxx_werror_flag" ||
  1859. test ! -s conftest.err
  1860. } && test -s conftest.$ac_objext; then :
  1861. ac_retval=0
  1862. else
  1863. $as_echo "$as_me: failed program was:" >&5
  1864. sed 's/^/| /' conftest.$ac_ext >&5
  1865. ac_retval=1
  1866. fi
  1867. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1868. as_fn_set_status $ac_retval
  1869. } # ac_fn_cxx_try_compile
  1870. # ac_fn_cxx_try_cpp LINENO
  1871. # ------------------------
  1872. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1873. ac_fn_cxx_try_cpp ()
  1874. {
  1875. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1876. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1877. case "(($ac_try" in
  1878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1879. *) ac_try_echo=$ac_try;;
  1880. esac
  1881. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1882. $as_echo "$ac_try_echo"; } >&5
  1883. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1884. ac_status=$?
  1885. if test -s conftest.err; then
  1886. grep -v '^ *+' conftest.err >conftest.er1
  1887. cat conftest.er1 >&5
  1888. mv -f conftest.er1 conftest.err
  1889. fi
  1890. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1891. test $ac_status = 0; } > conftest.i && {
  1892. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1893. test ! -s conftest.err
  1894. }; then :
  1895. ac_retval=0
  1896. else
  1897. $as_echo "$as_me: failed program was:" >&5
  1898. sed 's/^/| /' conftest.$ac_ext >&5
  1899. ac_retval=1
  1900. fi
  1901. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1902. as_fn_set_status $ac_retval
  1903. } # ac_fn_cxx_try_cpp
  1904. # ac_fn_cxx_try_link LINENO
  1905. # -------------------------
  1906. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1907. ac_fn_cxx_try_link ()
  1908. {
  1909. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1910. rm -f conftest.$ac_objext conftest$ac_exeext
  1911. if { { ac_try="$ac_link"
  1912. case "(($ac_try" in
  1913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1914. *) ac_try_echo=$ac_try;;
  1915. esac
  1916. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1917. $as_echo "$ac_try_echo"; } >&5
  1918. (eval "$ac_link") 2>conftest.err
  1919. ac_status=$?
  1920. if test -s conftest.err; then
  1921. grep -v '^ *+' conftest.err >conftest.er1
  1922. cat conftest.er1 >&5
  1923. mv -f conftest.er1 conftest.err
  1924. fi
  1925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1926. test $ac_status = 0; } && {
  1927. test -z "$ac_cxx_werror_flag" ||
  1928. test ! -s conftest.err
  1929. } && test -s conftest$ac_exeext && {
  1930. test "$cross_compiling" = yes ||
  1931. test -x conftest$ac_exeext
  1932. }; then :
  1933. ac_retval=0
  1934. else
  1935. $as_echo "$as_me: failed program was:" >&5
  1936. sed 's/^/| /' conftest.$ac_ext >&5
  1937. ac_retval=1
  1938. fi
  1939. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1940. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1941. # interfere with the next link command; also delete a directory that is
  1942. # left behind by Apple's compiler. We do this before executing the actions.
  1943. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1944. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1945. as_fn_set_status $ac_retval
  1946. } # ac_fn_cxx_try_link
  1947. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1948. # -------------------------------------------------------
  1949. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1950. # the include files in INCLUDES and setting the cache variable VAR
  1951. # accordingly.
  1952. ac_fn_c_check_header_mongrel ()
  1953. {
  1954. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1955. if eval \${$3+:} false; then :
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1957. $as_echo_n "checking for $2... " >&6; }
  1958. if eval \${$3+:} false; then :
  1959. $as_echo_n "(cached) " >&6
  1960. fi
  1961. eval ac_res=\$$3
  1962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1963. $as_echo "$ac_res" >&6; }
  1964. else
  1965. # Is the header compilable?
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1967. $as_echo_n "checking $2 usability... " >&6; }
  1968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1969. /* end confdefs.h. */
  1970. $4
  1971. #include <$2>
  1972. _ACEOF
  1973. if ac_fn_c_try_compile "$LINENO"; then :
  1974. ac_header_compiler=yes
  1975. else
  1976. ac_header_compiler=no
  1977. fi
  1978. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1980. $as_echo "$ac_header_compiler" >&6; }
  1981. # Is the header present?
  1982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1983. $as_echo_n "checking $2 presence... " >&6; }
  1984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1985. /* end confdefs.h. */
  1986. #include <$2>
  1987. _ACEOF
  1988. if ac_fn_c_try_cpp "$LINENO"; then :
  1989. ac_header_preproc=yes
  1990. else
  1991. ac_header_preproc=no
  1992. fi
  1993. rm -f conftest.err conftest.i conftest.$ac_ext
  1994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1995. $as_echo "$ac_header_preproc" >&6; }
  1996. # So? What about this header?
  1997. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1998. yes:no: )
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2000. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2002. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2003. ;;
  2004. no:yes:* )
  2005. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2006. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2008. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2010. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2012. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2014. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2015. ;;
  2016. esac
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2018. $as_echo_n "checking for $2... " >&6; }
  2019. if eval \${$3+:} false; then :
  2020. $as_echo_n "(cached) " >&6
  2021. else
  2022. eval "$3=\$ac_header_compiler"
  2023. fi
  2024. eval ac_res=\$$3
  2025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2026. $as_echo "$ac_res" >&6; }
  2027. fi
  2028. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2029. } # ac_fn_c_check_header_mongrel
  2030. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2031. # -------------------------------------------
  2032. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2033. # variable VAR accordingly.
  2034. ac_fn_c_check_type ()
  2035. {
  2036. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2038. $as_echo_n "checking for $2... " >&6; }
  2039. if eval \${$3+:} false; then :
  2040. $as_echo_n "(cached) " >&6
  2041. else
  2042. eval "$3=no"
  2043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2044. /* end confdefs.h. */
  2045. $4
  2046. int
  2047. main ()
  2048. {
  2049. if (sizeof ($2))
  2050. return 0;
  2051. ;
  2052. return 0;
  2053. }
  2054. _ACEOF
  2055. if ac_fn_c_try_compile "$LINENO"; then :
  2056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2057. /* end confdefs.h. */
  2058. $4
  2059. int
  2060. main ()
  2061. {
  2062. if (sizeof (($2)))
  2063. return 0;
  2064. ;
  2065. return 0;
  2066. }
  2067. _ACEOF
  2068. if ac_fn_c_try_compile "$LINENO"; then :
  2069. else
  2070. eval "$3=yes"
  2071. fi
  2072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2073. fi
  2074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2075. fi
  2076. eval ac_res=\$$3
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2078. $as_echo "$ac_res" >&6; }
  2079. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2080. } # ac_fn_c_check_type
  2081. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2082. # ----------------------------------------------------
  2083. # Tries to find if the field MEMBER exists in type AGGR, after including
  2084. # INCLUDES, setting cache variable VAR accordingly.
  2085. ac_fn_c_check_member ()
  2086. {
  2087. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2089. $as_echo_n "checking for $2.$3... " >&6; }
  2090. if eval \${$4+:} false; then :
  2091. $as_echo_n "(cached) " >&6
  2092. else
  2093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2094. /* end confdefs.h. */
  2095. $5
  2096. int
  2097. main ()
  2098. {
  2099. static $2 ac_aggr;
  2100. if (ac_aggr.$3)
  2101. return 0;
  2102. ;
  2103. return 0;
  2104. }
  2105. _ACEOF
  2106. if ac_fn_c_try_compile "$LINENO"; then :
  2107. eval "$4=yes"
  2108. else
  2109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2110. /* end confdefs.h. */
  2111. $5
  2112. int
  2113. main ()
  2114. {
  2115. static $2 ac_aggr;
  2116. if (sizeof ac_aggr.$3)
  2117. return 0;
  2118. ;
  2119. return 0;
  2120. }
  2121. _ACEOF
  2122. if ac_fn_c_try_compile "$LINENO"; then :
  2123. eval "$4=yes"
  2124. else
  2125. eval "$4=no"
  2126. fi
  2127. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2128. fi
  2129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2130. fi
  2131. eval ac_res=\$$4
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2133. $as_echo "$ac_res" >&6; }
  2134. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2135. } # ac_fn_c_check_member
  2136. cat >config.log <<_ACEOF
  2137. This file contains any messages produced by compilers while
  2138. running configure, to aid debugging if configure makes a mistake.
  2139. It was created by $as_me, which was
  2140. generated by GNU Autoconf 2.69. Invocation command line was
  2141. $ $0 $@
  2142. _ACEOF
  2143. exec 5>>config.log
  2144. {
  2145. cat <<_ASUNAME
  2146. ## --------- ##
  2147. ## Platform. ##
  2148. ## --------- ##
  2149. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2150. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2151. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2152. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2153. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2154. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2155. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2156. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2157. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2158. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2159. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2160. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2161. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2162. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2163. _ASUNAME
  2164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2165. for as_dir in $PATH
  2166. do
  2167. IFS=$as_save_IFS
  2168. test -z "$as_dir" && as_dir=.
  2169. $as_echo "PATH: $as_dir"
  2170. done
  2171. IFS=$as_save_IFS
  2172. } >&5
  2173. cat >&5 <<_ACEOF
  2174. ## ----------- ##
  2175. ## Core tests. ##
  2176. ## ----------- ##
  2177. _ACEOF
  2178. # Keep a trace of the command line.
  2179. # Strip out --no-create and --no-recursion so they do not pile up.
  2180. # Strip out --silent because we don't want to record it for future runs.
  2181. # Also quote any args containing shell meta-characters.
  2182. # Make two passes to allow for proper duplicate-argument suppression.
  2183. ac_configure_args=
  2184. ac_configure_args0=
  2185. ac_configure_args1=
  2186. ac_must_keep_next=false
  2187. for ac_pass in 1 2
  2188. do
  2189. for ac_arg
  2190. do
  2191. case $ac_arg in
  2192. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2193. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2194. | -silent | --silent | --silen | --sile | --sil)
  2195. continue ;;
  2196. *\'*)
  2197. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2198. esac
  2199. case $ac_pass in
  2200. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2201. 2)
  2202. as_fn_append ac_configure_args1 " '$ac_arg'"
  2203. if test $ac_must_keep_next = true; then
  2204. ac_must_keep_next=false # Got value, back to normal.
  2205. else
  2206. case $ac_arg in
  2207. *=* | --config-cache | -C | -disable-* | --disable-* \
  2208. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2209. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2210. | -with-* | --with-* | -without-* | --without-* | --x)
  2211. case "$ac_configure_args0 " in
  2212. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2213. esac
  2214. ;;
  2215. -* ) ac_must_keep_next=true ;;
  2216. esac
  2217. fi
  2218. as_fn_append ac_configure_args " '$ac_arg'"
  2219. ;;
  2220. esac
  2221. done
  2222. done
  2223. { ac_configure_args0=; unset ac_configure_args0;}
  2224. { ac_configure_args1=; unset ac_configure_args1;}
  2225. # When interrupted or exit'd, cleanup temporary files, and complete
  2226. # config.log. We remove comments because anyway the quotes in there
  2227. # would cause problems or look ugly.
  2228. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2229. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2230. trap 'exit_status=$?
  2231. # Save into config.log some information that might help in debugging.
  2232. {
  2233. echo
  2234. $as_echo "## ---------------- ##
  2235. ## Cache variables. ##
  2236. ## ---------------- ##"
  2237. echo
  2238. # The following way of writing the cache mishandles newlines in values,
  2239. (
  2240. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2241. eval ac_val=\$$ac_var
  2242. case $ac_val in #(
  2243. *${as_nl}*)
  2244. case $ac_var in #(
  2245. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2246. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2247. esac
  2248. case $ac_var in #(
  2249. _ | IFS | as_nl) ;; #(
  2250. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2251. *) { eval $ac_var=; unset $ac_var;} ;;
  2252. esac ;;
  2253. esac
  2254. done
  2255. (set) 2>&1 |
  2256. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2257. *${as_nl}ac_space=\ *)
  2258. sed -n \
  2259. "s/'\''/'\''\\\\'\'''\''/g;
  2260. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2261. ;; #(
  2262. *)
  2263. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2264. ;;
  2265. esac |
  2266. sort
  2267. )
  2268. echo
  2269. $as_echo "## ----------------- ##
  2270. ## Output variables. ##
  2271. ## ----------------- ##"
  2272. echo
  2273. for ac_var in $ac_subst_vars
  2274. do
  2275. eval ac_val=\$$ac_var
  2276. case $ac_val in
  2277. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2278. esac
  2279. $as_echo "$ac_var='\''$ac_val'\''"
  2280. done | sort
  2281. echo
  2282. if test -n "$ac_subst_files"; then
  2283. $as_echo "## ------------------- ##
  2284. ## File substitutions. ##
  2285. ## ------------------- ##"
  2286. echo
  2287. for ac_var in $ac_subst_files
  2288. do
  2289. eval ac_val=\$$ac_var
  2290. case $ac_val in
  2291. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2292. esac
  2293. $as_echo "$ac_var='\''$ac_val'\''"
  2294. done | sort
  2295. echo
  2296. fi
  2297. if test -s confdefs.h; then
  2298. $as_echo "## ----------- ##
  2299. ## confdefs.h. ##
  2300. ## ----------- ##"
  2301. echo
  2302. cat confdefs.h
  2303. echo
  2304. fi
  2305. test "$ac_signal" != 0 &&
  2306. $as_echo "$as_me: caught signal $ac_signal"
  2307. $as_echo "$as_me: exit $exit_status"
  2308. } >&5
  2309. rm -f core *.core core.conftest.* &&
  2310. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2311. exit $exit_status
  2312. ' 0
  2313. for ac_signal in 1 2 13 15; do
  2314. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2315. done
  2316. ac_signal=0
  2317. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2318. rm -f -r conftest* confdefs.h
  2319. $as_echo "/* confdefs.h */" > confdefs.h
  2320. # Predefined preprocessor variables.
  2321. cat >>confdefs.h <<_ACEOF
  2322. #define PACKAGE_NAME "$PACKAGE_NAME"
  2323. _ACEOF
  2324. cat >>confdefs.h <<_ACEOF
  2325. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2326. _ACEOF
  2327. cat >>confdefs.h <<_ACEOF
  2328. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2329. _ACEOF
  2330. cat >>confdefs.h <<_ACEOF
  2331. #define PACKAGE_STRING "$PACKAGE_STRING"
  2332. _ACEOF
  2333. cat >>confdefs.h <<_ACEOF
  2334. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2335. _ACEOF
  2336. cat >>confdefs.h <<_ACEOF
  2337. #define PACKAGE_URL "$PACKAGE_URL"
  2338. _ACEOF
  2339. # Let the site file select an alternate cache file if it wants to.
  2340. # Prefer an explicitly selected file to automatically selected ones.
  2341. ac_site_file1=NONE
  2342. ac_site_file2=NONE
  2343. if test -n "$CONFIG_SITE"; then
  2344. # We do not want a PATH search for config.site.
  2345. case $CONFIG_SITE in #((
  2346. -*) ac_site_file1=./$CONFIG_SITE;;
  2347. */*) ac_site_file1=$CONFIG_SITE;;
  2348. *) ac_site_file1=./$CONFIG_SITE;;
  2349. esac
  2350. elif test "x$prefix" != xNONE; then
  2351. ac_site_file1=$prefix/share/config.site
  2352. ac_site_file2=$prefix/etc/config.site
  2353. else
  2354. ac_site_file1=$ac_default_prefix/share/config.site
  2355. ac_site_file2=$ac_default_prefix/etc/config.site
  2356. fi
  2357. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2358. do
  2359. test "x$ac_site_file" = xNONE && continue
  2360. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2362. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2363. sed 's/^/| /' "$ac_site_file" >&5
  2364. . "$ac_site_file" \
  2365. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2366. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2367. as_fn_error $? "failed to load site script $ac_site_file
  2368. See \`config.log' for more details" "$LINENO" 5; }
  2369. fi
  2370. done
  2371. if test -r "$cache_file"; then
  2372. # Some versions of bash will fail to source /dev/null (special files
  2373. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2374. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2376. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2377. case $cache_file in
  2378. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2379. *) . "./$cache_file";;
  2380. esac
  2381. fi
  2382. else
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2384. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2385. >$cache_file
  2386. fi
  2387. # Check that the precious variables saved in the cache have kept the same
  2388. # value.
  2389. ac_cache_corrupted=false
  2390. for ac_var in $ac_precious_vars; do
  2391. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2392. eval ac_new_set=\$ac_env_${ac_var}_set
  2393. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2394. eval ac_new_val=\$ac_env_${ac_var}_value
  2395. case $ac_old_set,$ac_new_set in
  2396. set,)
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2398. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2399. ac_cache_corrupted=: ;;
  2400. ,set)
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2402. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2403. ac_cache_corrupted=: ;;
  2404. ,);;
  2405. *)
  2406. if test "x$ac_old_val" != "x$ac_new_val"; then
  2407. # differences in whitespace do not lead to failure.
  2408. ac_old_val_w=`echo x $ac_old_val`
  2409. ac_new_val_w=`echo x $ac_new_val`
  2410. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2412. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2413. ac_cache_corrupted=:
  2414. else
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2416. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2417. eval $ac_var=\$ac_old_val
  2418. fi
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2420. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2421. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2422. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2423. fi;;
  2424. esac
  2425. # Pass precious variables to config.status.
  2426. if test "$ac_new_set" = set; then
  2427. case $ac_new_val in
  2428. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2429. *) ac_arg=$ac_var=$ac_new_val ;;
  2430. esac
  2431. case " $ac_configure_args " in
  2432. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2433. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2434. esac
  2435. fi
  2436. done
  2437. if $ac_cache_corrupted; then
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2439. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2441. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2442. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2443. fi
  2444. ## -------------------- ##
  2445. ## Main body of script. ##
  2446. ## -------------------- ##
  2447. ac_ext=c
  2448. ac_cpp='$CPP $CPPFLAGS'
  2449. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2450. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2451. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2452. ac_config_headers="$ac_config_headers include/SDL_config.h"
  2453. ac_aux_dir=
  2454. for ac_dir in build-scripts "$srcdir"/build-scripts; do
  2455. if test -f "$ac_dir/install-sh"; then
  2456. ac_aux_dir=$ac_dir
  2457. ac_install_sh="$ac_aux_dir/install-sh -c"
  2458. break
  2459. elif test -f "$ac_dir/install.sh"; then
  2460. ac_aux_dir=$ac_dir
  2461. ac_install_sh="$ac_aux_dir/install.sh -c"
  2462. break
  2463. elif test -f "$ac_dir/shtool"; then
  2464. ac_aux_dir=$ac_dir
  2465. ac_install_sh="$ac_aux_dir/shtool install -c"
  2466. break
  2467. fi
  2468. done
  2469. if test -z "$ac_aux_dir"; then
  2470. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-scripts \"$srcdir\"/build-scripts" "$LINENO" 5
  2471. fi
  2472. # These three variables are undocumented and unsupported,
  2473. # and are intended to be withdrawn in a future Autoconf release.
  2474. # They can cause serious problems if a builder's source tree is in a directory
  2475. # whose full name contains unusual characters.
  2476. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2477. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2478. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2479. orig_CFLAGS="$CFLAGS"
  2480. #
  2481. # Making releases:
  2482. # Edit include/SDL_version.h and change the version, then:
  2483. # SDL_MICRO_VERSION += 1;
  2484. # SDL_INTERFACE_AGE += 1;
  2485. # SDL_BINARY_AGE += 1;
  2486. # if any functions have been added, set SDL_INTERFACE_AGE to 0.
  2487. # if backwards compatibility has been broken,
  2488. # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
  2489. #
  2490. SDL_MAJOR_VERSION=2
  2491. SDL_MINOR_VERSION=0
  2492. SDL_MICRO_VERSION=8
  2493. SDL_INTERFACE_AGE=0
  2494. SDL_BINARY_AGE=8
  2495. SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
  2496. # libtool versioning
  2497. case `pwd` in
  2498. *\ * | *\ *)
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  2500. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  2501. esac
  2502. macro_version='2.4.2'
  2503. macro_revision='1.3337'
  2504. ltmain="$ac_aux_dir/ltmain.sh"
  2505. # Make sure we can run config.sub.
  2506. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2507. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2509. $as_echo_n "checking build system type... " >&6; }
  2510. if ${ac_cv_build+:} false; then :
  2511. $as_echo_n "(cached) " >&6
  2512. else
  2513. ac_build_alias=$build_alias
  2514. test "x$ac_build_alias" = x &&
  2515. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2516. test "x$ac_build_alias" = x &&
  2517. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2518. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2519. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2520. fi
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2522. $as_echo "$ac_cv_build" >&6; }
  2523. case $ac_cv_build in
  2524. *-*-*) ;;
  2525. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2526. esac
  2527. build=$ac_cv_build
  2528. ac_save_IFS=$IFS; IFS='-'
  2529. set x $ac_cv_build
  2530. shift
  2531. build_cpu=$1
  2532. build_vendor=$2
  2533. shift; shift
  2534. # Remember, the first character of IFS is used to create $*,
  2535. # except with old shells:
  2536. build_os=$*
  2537. IFS=$ac_save_IFS
  2538. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2540. $as_echo_n "checking host system type... " >&6; }
  2541. if ${ac_cv_host+:} false; then :
  2542. $as_echo_n "(cached) " >&6
  2543. else
  2544. if test "x$host_alias" = x; then
  2545. ac_cv_host=$ac_cv_build
  2546. else
  2547. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2548. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2549. fi
  2550. fi
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2552. $as_echo "$ac_cv_host" >&6; }
  2553. case $ac_cv_host in
  2554. *-*-*) ;;
  2555. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2556. esac
  2557. host=$ac_cv_host
  2558. ac_save_IFS=$IFS; IFS='-'
  2559. set x $ac_cv_host
  2560. shift
  2561. host_cpu=$1
  2562. host_vendor=$2
  2563. shift; shift
  2564. # Remember, the first character of IFS is used to create $*,
  2565. # except with old shells:
  2566. host_os=$*
  2567. IFS=$ac_save_IFS
  2568. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2569. # Backslashify metacharacters that are still active within
  2570. # double-quoted strings.
  2571. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  2572. # Same as above, but do not quote variable references.
  2573. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  2574. # Sed substitution to delay expansion of an escaped shell variable in a
  2575. # double_quote_subst'ed string.
  2576. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  2577. # Sed substitution to delay expansion of an escaped single quote.
  2578. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  2579. # Sed substitution to avoid accidental globbing in evaled expressions
  2580. no_glob_subst='s/\*/\\\*/g'
  2581. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  2582. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  2583. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  2585. $as_echo_n "checking how to print strings... " >&6; }
  2586. # Test print first, because it will be a builtin if present.
  2587. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  2588. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  2589. ECHO='print -r --'
  2590. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  2591. ECHO='printf %s\n'
  2592. else
  2593. # Use this function as a fallback that always works.
  2594. func_fallback_echo ()
  2595. {
  2596. eval 'cat <<_LTECHO_EOF
  2597. $1
  2598. _LTECHO_EOF'
  2599. }
  2600. ECHO='func_fallback_echo'
  2601. fi
  2602. # func_echo_all arg...
  2603. # Invoke $ECHO with all args, space-separated.
  2604. func_echo_all ()
  2605. {
  2606. $ECHO ""
  2607. }
  2608. case "$ECHO" in
  2609. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  2610. $as_echo "printf" >&6; } ;;
  2611. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  2612. $as_echo "print -r" >&6; } ;;
  2613. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  2614. $as_echo "cat" >&6; } ;;
  2615. esac
  2616. ac_ext=c
  2617. ac_cpp='$CPP $CPPFLAGS'
  2618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2621. if test -n "$ac_tool_prefix"; then
  2622. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2623. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2625. $as_echo_n "checking for $ac_word... " >&6; }
  2626. if ${ac_cv_prog_CC+:} false; then :
  2627. $as_echo_n "(cached) " >&6
  2628. else
  2629. if test -n "$CC"; then
  2630. ac_cv_prog_CC="$CC" # Let the user override the test.
  2631. else
  2632. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2633. for as_dir in $PATH
  2634. do
  2635. IFS=$as_save_IFS
  2636. test -z "$as_dir" && as_dir=.
  2637. for ac_exec_ext in '' $ac_executable_extensions; do
  2638. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2639. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2640. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2641. break 2
  2642. fi
  2643. done
  2644. done
  2645. IFS=$as_save_IFS
  2646. fi
  2647. fi
  2648. CC=$ac_cv_prog_CC
  2649. if test -n "$CC"; then
  2650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2651. $as_echo "$CC" >&6; }
  2652. else
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2654. $as_echo "no" >&6; }
  2655. fi
  2656. fi
  2657. if test -z "$ac_cv_prog_CC"; then
  2658. ac_ct_CC=$CC
  2659. # Extract the first word of "gcc", so it can be a program name with args.
  2660. set dummy gcc; ac_word=$2
  2661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2662. $as_echo_n "checking for $ac_word... " >&6; }
  2663. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2664. $as_echo_n "(cached) " >&6
  2665. else
  2666. if test -n "$ac_ct_CC"; then
  2667. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2668. else
  2669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2670. for as_dir in $PATH
  2671. do
  2672. IFS=$as_save_IFS
  2673. test -z "$as_dir" && as_dir=.
  2674. for ac_exec_ext in '' $ac_executable_extensions; do
  2675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2676. ac_cv_prog_ac_ct_CC="gcc"
  2677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2678. break 2
  2679. fi
  2680. done
  2681. done
  2682. IFS=$as_save_IFS
  2683. fi
  2684. fi
  2685. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2686. if test -n "$ac_ct_CC"; then
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2688. $as_echo "$ac_ct_CC" >&6; }
  2689. else
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2691. $as_echo "no" >&6; }
  2692. fi
  2693. if test "x$ac_ct_CC" = x; then
  2694. CC=""
  2695. else
  2696. case $cross_compiling:$ac_tool_warned in
  2697. yes:)
  2698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2700. ac_tool_warned=yes ;;
  2701. esac
  2702. CC=$ac_ct_CC
  2703. fi
  2704. else
  2705. CC="$ac_cv_prog_CC"
  2706. fi
  2707. if test -z "$CC"; then
  2708. if test -n "$ac_tool_prefix"; then
  2709. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2710. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2712. $as_echo_n "checking for $ac_word... " >&6; }
  2713. if ${ac_cv_prog_CC+:} false; then :
  2714. $as_echo_n "(cached) " >&6
  2715. else
  2716. if test -n "$CC"; then
  2717. ac_cv_prog_CC="$CC" # Let the user override the test.
  2718. else
  2719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2720. for as_dir in $PATH
  2721. do
  2722. IFS=$as_save_IFS
  2723. test -z "$as_dir" && as_dir=.
  2724. for ac_exec_ext in '' $ac_executable_extensions; do
  2725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2726. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2728. break 2
  2729. fi
  2730. done
  2731. done
  2732. IFS=$as_save_IFS
  2733. fi
  2734. fi
  2735. CC=$ac_cv_prog_CC
  2736. if test -n "$CC"; then
  2737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2738. $as_echo "$CC" >&6; }
  2739. else
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2741. $as_echo "no" >&6; }
  2742. fi
  2743. fi
  2744. fi
  2745. if test -z "$CC"; then
  2746. # Extract the first word of "cc", so it can be a program name with args.
  2747. set dummy cc; ac_word=$2
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2749. $as_echo_n "checking for $ac_word... " >&6; }
  2750. if ${ac_cv_prog_CC+:} false; then :
  2751. $as_echo_n "(cached) " >&6
  2752. else
  2753. if test -n "$CC"; then
  2754. ac_cv_prog_CC="$CC" # Let the user override the test.
  2755. else
  2756. ac_prog_rejected=no
  2757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2758. for as_dir in $PATH
  2759. do
  2760. IFS=$as_save_IFS
  2761. test -z "$as_dir" && as_dir=.
  2762. for ac_exec_ext in '' $ac_executable_extensions; do
  2763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2764. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2765. ac_prog_rejected=yes
  2766. continue
  2767. fi
  2768. ac_cv_prog_CC="cc"
  2769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2770. break 2
  2771. fi
  2772. done
  2773. done
  2774. IFS=$as_save_IFS
  2775. if test $ac_prog_rejected = yes; then
  2776. # We found a bogon in the path, so make sure we never use it.
  2777. set dummy $ac_cv_prog_CC
  2778. shift
  2779. if test $# != 0; then
  2780. # We chose a different compiler from the bogus one.
  2781. # However, it has the same basename, so the bogon will be chosen
  2782. # first if we set CC to just the basename; use the full file name.
  2783. shift
  2784. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2785. fi
  2786. fi
  2787. fi
  2788. fi
  2789. CC=$ac_cv_prog_CC
  2790. if test -n "$CC"; then
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2792. $as_echo "$CC" >&6; }
  2793. else
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2795. $as_echo "no" >&6; }
  2796. fi
  2797. fi
  2798. if test -z "$CC"; then
  2799. if test -n "$ac_tool_prefix"; then
  2800. for ac_prog in cl.exe
  2801. do
  2802. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2803. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2805. $as_echo_n "checking for $ac_word... " >&6; }
  2806. if ${ac_cv_prog_CC+:} false; then :
  2807. $as_echo_n "(cached) " >&6
  2808. else
  2809. if test -n "$CC"; then
  2810. ac_cv_prog_CC="$CC" # Let the user override the test.
  2811. else
  2812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813. for as_dir in $PATH
  2814. do
  2815. IFS=$as_save_IFS
  2816. test -z "$as_dir" && as_dir=.
  2817. for ac_exec_ext in '' $ac_executable_extensions; do
  2818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2819. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2821. break 2
  2822. fi
  2823. done
  2824. done
  2825. IFS=$as_save_IFS
  2826. fi
  2827. fi
  2828. CC=$ac_cv_prog_CC
  2829. if test -n "$CC"; then
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2831. $as_echo "$CC" >&6; }
  2832. else
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2834. $as_echo "no" >&6; }
  2835. fi
  2836. test -n "$CC" && break
  2837. done
  2838. fi
  2839. if test -z "$CC"; then
  2840. ac_ct_CC=$CC
  2841. for ac_prog in cl.exe
  2842. do
  2843. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2844. set dummy $ac_prog; ac_word=$2
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2846. $as_echo_n "checking for $ac_word... " >&6; }
  2847. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2848. $as_echo_n "(cached) " >&6
  2849. else
  2850. if test -n "$ac_ct_CC"; then
  2851. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2852. else
  2853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2854. for as_dir in $PATH
  2855. do
  2856. IFS=$as_save_IFS
  2857. test -z "$as_dir" && as_dir=.
  2858. for ac_exec_ext in '' $ac_executable_extensions; do
  2859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2860. ac_cv_prog_ac_ct_CC="$ac_prog"
  2861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2862. break 2
  2863. fi
  2864. done
  2865. done
  2866. IFS=$as_save_IFS
  2867. fi
  2868. fi
  2869. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2870. if test -n "$ac_ct_CC"; then
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2872. $as_echo "$ac_ct_CC" >&6; }
  2873. else
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2875. $as_echo "no" >&6; }
  2876. fi
  2877. test -n "$ac_ct_CC" && break
  2878. done
  2879. if test "x$ac_ct_CC" = x; then
  2880. CC=""
  2881. else
  2882. case $cross_compiling:$ac_tool_warned in
  2883. yes:)
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2885. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2886. ac_tool_warned=yes ;;
  2887. esac
  2888. CC=$ac_ct_CC
  2889. fi
  2890. fi
  2891. fi
  2892. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2893. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2894. as_fn_error $? "no acceptable C compiler found in \$PATH
  2895. See \`config.log' for more details" "$LINENO" 5; }
  2896. # Provide some information about the compiler.
  2897. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2898. set X $ac_compile
  2899. ac_compiler=$2
  2900. for ac_option in --version -v -V -qversion; do
  2901. { { ac_try="$ac_compiler $ac_option >&5"
  2902. case "(($ac_try" in
  2903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2904. *) ac_try_echo=$ac_try;;
  2905. esac
  2906. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2907. $as_echo "$ac_try_echo"; } >&5
  2908. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2909. ac_status=$?
  2910. if test -s conftest.err; then
  2911. sed '10a\
  2912. ... rest of stderr output deleted ...
  2913. 10q' conftest.err >conftest.er1
  2914. cat conftest.er1 >&5
  2915. fi
  2916. rm -f conftest.er1 conftest.err
  2917. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2918. test $ac_status = 0; }
  2919. done
  2920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2921. /* end confdefs.h. */
  2922. int
  2923. main ()
  2924. {
  2925. ;
  2926. return 0;
  2927. }
  2928. _ACEOF
  2929. ac_clean_files_save=$ac_clean_files
  2930. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2931. # Try to create an executable without -o first, disregard a.out.
  2932. # It will help us diagnose broken compilers, and finding out an intuition
  2933. # of exeext.
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2935. $as_echo_n "checking whether the C compiler works... " >&6; }
  2936. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2937. # The possible output files:
  2938. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2939. ac_rmfiles=
  2940. for ac_file in $ac_files
  2941. do
  2942. case $ac_file in
  2943. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2944. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2945. esac
  2946. done
  2947. rm -f $ac_rmfiles
  2948. if { { ac_try="$ac_link_default"
  2949. case "(($ac_try" in
  2950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2951. *) ac_try_echo=$ac_try;;
  2952. esac
  2953. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2954. $as_echo "$ac_try_echo"; } >&5
  2955. (eval "$ac_link_default") 2>&5
  2956. ac_status=$?
  2957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2958. test $ac_status = 0; }; then :
  2959. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2960. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2961. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2962. # so that the user can short-circuit this test for compilers unknown to
  2963. # Autoconf.
  2964. for ac_file in $ac_files ''
  2965. do
  2966. test -f "$ac_file" || continue
  2967. case $ac_file in
  2968. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2969. ;;
  2970. [ab].out )
  2971. # We found the default executable, but exeext='' is most
  2972. # certainly right.
  2973. break;;
  2974. *.* )
  2975. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2976. then :; else
  2977. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2978. fi
  2979. # We set ac_cv_exeext here because the later test for it is not
  2980. # safe: cross compilers may not add the suffix if given an `-o'
  2981. # argument, so we may need to know it at that point already.
  2982. # Even if this section looks crufty: it has the advantage of
  2983. # actually working.
  2984. break;;
  2985. * )
  2986. break;;
  2987. esac
  2988. done
  2989. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2990. else
  2991. ac_file=''
  2992. fi
  2993. if test -z "$ac_file"; then :
  2994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2995. $as_echo "no" >&6; }
  2996. $as_echo "$as_me: failed program was:" >&5
  2997. sed 's/^/| /' conftest.$ac_ext >&5
  2998. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2999. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3000. as_fn_error 77 "C compiler cannot create executables
  3001. See \`config.log' for more details" "$LINENO" 5; }
  3002. else
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3004. $as_echo "yes" >&6; }
  3005. fi
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3007. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3009. $as_echo "$ac_file" >&6; }
  3010. ac_exeext=$ac_cv_exeext
  3011. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3012. ac_clean_files=$ac_clean_files_save
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3014. $as_echo_n "checking for suffix of executables... " >&6; }
  3015. if { { ac_try="$ac_link"
  3016. case "(($ac_try" in
  3017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3018. *) ac_try_echo=$ac_try;;
  3019. esac
  3020. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3021. $as_echo "$ac_try_echo"; } >&5
  3022. (eval "$ac_link") 2>&5
  3023. ac_status=$?
  3024. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3025. test $ac_status = 0; }; then :
  3026. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3027. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3028. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3029. # `rm'.
  3030. for ac_file in conftest.exe conftest conftest.*; do
  3031. test -f "$ac_file" || continue
  3032. case $ac_file in
  3033. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3034. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3035. break;;
  3036. * ) break;;
  3037. esac
  3038. done
  3039. else
  3040. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3041. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3042. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3043. See \`config.log' for more details" "$LINENO" 5; }
  3044. fi
  3045. rm -f conftest conftest$ac_cv_exeext
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3047. $as_echo "$ac_cv_exeext" >&6; }
  3048. rm -f conftest.$ac_ext
  3049. EXEEXT=$ac_cv_exeext
  3050. ac_exeext=$EXEEXT
  3051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3052. /* end confdefs.h. */
  3053. #include <stdio.h>
  3054. int
  3055. main ()
  3056. {
  3057. FILE *f = fopen ("conftest.out", "w");
  3058. return ferror (f) || fclose (f) != 0;
  3059. ;
  3060. return 0;
  3061. }
  3062. _ACEOF
  3063. ac_clean_files="$ac_clean_files conftest.out"
  3064. # Check that the compiler produces executables we can run. If not, either
  3065. # the compiler is broken, or we cross compile.
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3067. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3068. if test "$cross_compiling" != yes; then
  3069. { { ac_try="$ac_link"
  3070. case "(($ac_try" in
  3071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3072. *) ac_try_echo=$ac_try;;
  3073. esac
  3074. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3075. $as_echo "$ac_try_echo"; } >&5
  3076. (eval "$ac_link") 2>&5
  3077. ac_status=$?
  3078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3079. test $ac_status = 0; }
  3080. if { ac_try='./conftest$ac_cv_exeext'
  3081. { { case "(($ac_try" in
  3082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3083. *) ac_try_echo=$ac_try;;
  3084. esac
  3085. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3086. $as_echo "$ac_try_echo"; } >&5
  3087. (eval "$ac_try") 2>&5
  3088. ac_status=$?
  3089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3090. test $ac_status = 0; }; }; then
  3091. cross_compiling=no
  3092. else
  3093. if test "$cross_compiling" = maybe; then
  3094. cross_compiling=yes
  3095. else
  3096. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3097. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3098. as_fn_error $? "cannot run C compiled programs.
  3099. If you meant to cross compile, use \`--host'.
  3100. See \`config.log' for more details" "$LINENO" 5; }
  3101. fi
  3102. fi
  3103. fi
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3105. $as_echo "$cross_compiling" >&6; }
  3106. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3107. ac_clean_files=$ac_clean_files_save
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3109. $as_echo_n "checking for suffix of object files... " >&6; }
  3110. if ${ac_cv_objext+:} false; then :
  3111. $as_echo_n "(cached) " >&6
  3112. else
  3113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3114. /* end confdefs.h. */
  3115. int
  3116. main ()
  3117. {
  3118. ;
  3119. return 0;
  3120. }
  3121. _ACEOF
  3122. rm -f conftest.o conftest.obj
  3123. if { { ac_try="$ac_compile"
  3124. case "(($ac_try" in
  3125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3126. *) ac_try_echo=$ac_try;;
  3127. esac
  3128. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3129. $as_echo "$ac_try_echo"; } >&5
  3130. (eval "$ac_compile") 2>&5
  3131. ac_status=$?
  3132. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3133. test $ac_status = 0; }; then :
  3134. for ac_file in conftest.o conftest.obj conftest.*; do
  3135. test -f "$ac_file" || continue;
  3136. case $ac_file in
  3137. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3138. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3139. break;;
  3140. esac
  3141. done
  3142. else
  3143. $as_echo "$as_me: failed program was:" >&5
  3144. sed 's/^/| /' conftest.$ac_ext >&5
  3145. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3146. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3147. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3148. See \`config.log' for more details" "$LINENO" 5; }
  3149. fi
  3150. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3151. fi
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3153. $as_echo "$ac_cv_objext" >&6; }
  3154. OBJEXT=$ac_cv_objext
  3155. ac_objext=$OBJEXT
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3157. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3158. if ${ac_cv_c_compiler_gnu+:} false; then :
  3159. $as_echo_n "(cached) " >&6
  3160. else
  3161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3162. /* end confdefs.h. */
  3163. int
  3164. main ()
  3165. {
  3166. #ifndef __GNUC__
  3167. choke me
  3168. #endif
  3169. ;
  3170. return 0;
  3171. }
  3172. _ACEOF
  3173. if ac_fn_c_try_compile "$LINENO"; then :
  3174. ac_compiler_gnu=yes
  3175. else
  3176. ac_compiler_gnu=no
  3177. fi
  3178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3179. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3180. fi
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3182. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3183. if test $ac_compiler_gnu = yes; then
  3184. GCC=yes
  3185. else
  3186. GCC=
  3187. fi
  3188. ac_test_CFLAGS=${CFLAGS+set}
  3189. ac_save_CFLAGS=$CFLAGS
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3191. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3192. if ${ac_cv_prog_cc_g+:} false; then :
  3193. $as_echo_n "(cached) " >&6
  3194. else
  3195. ac_save_c_werror_flag=$ac_c_werror_flag
  3196. ac_c_werror_flag=yes
  3197. ac_cv_prog_cc_g=no
  3198. CFLAGS="-g"
  3199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3200. /* end confdefs.h. */
  3201. int
  3202. main ()
  3203. {
  3204. ;
  3205. return 0;
  3206. }
  3207. _ACEOF
  3208. if ac_fn_c_try_compile "$LINENO"; then :
  3209. ac_cv_prog_cc_g=yes
  3210. else
  3211. CFLAGS=""
  3212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3213. /* end confdefs.h. */
  3214. int
  3215. main ()
  3216. {
  3217. ;
  3218. return 0;
  3219. }
  3220. _ACEOF
  3221. if ac_fn_c_try_compile "$LINENO"; then :
  3222. else
  3223. ac_c_werror_flag=$ac_save_c_werror_flag
  3224. CFLAGS="-g"
  3225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3226. /* end confdefs.h. */
  3227. int
  3228. main ()
  3229. {
  3230. ;
  3231. return 0;
  3232. }
  3233. _ACEOF
  3234. if ac_fn_c_try_compile "$LINENO"; then :
  3235. ac_cv_prog_cc_g=yes
  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. fi
  3241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3242. ac_c_werror_flag=$ac_save_c_werror_flag
  3243. fi
  3244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3245. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3246. if test "$ac_test_CFLAGS" = set; then
  3247. CFLAGS=$ac_save_CFLAGS
  3248. elif test $ac_cv_prog_cc_g = yes; then
  3249. if test "$GCC" = yes; then
  3250. CFLAGS="-g -O2"
  3251. else
  3252. CFLAGS="-g"
  3253. fi
  3254. else
  3255. if test "$GCC" = yes; then
  3256. CFLAGS="-O2"
  3257. else
  3258. CFLAGS=
  3259. fi
  3260. fi
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3262. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3263. if ${ac_cv_prog_cc_c89+:} false; then :
  3264. $as_echo_n "(cached) " >&6
  3265. else
  3266. ac_cv_prog_cc_c89=no
  3267. ac_save_CC=$CC
  3268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3269. /* end confdefs.h. */
  3270. #include <stdarg.h>
  3271. #include <stdio.h>
  3272. struct stat;
  3273. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3274. struct buf { int x; };
  3275. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3276. static char *e (p, i)
  3277. char **p;
  3278. int i;
  3279. {
  3280. return p[i];
  3281. }
  3282. static char *f (char * (*g) (char **, int), char **p, ...)
  3283. {
  3284. char *s;
  3285. va_list v;
  3286. va_start (v,p);
  3287. s = g (p, va_arg (v,int));
  3288. va_end (v);
  3289. return s;
  3290. }
  3291. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3292. function prototypes and stuff, but not '\xHH' hex character constants.
  3293. These don't provoke an error unfortunately, instead are silently treated
  3294. as 'x'. The following induces an error, until -std is added to get
  3295. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3296. array size at least. It's necessary to write '\x00'==0 to get something
  3297. that's true only with -std. */
  3298. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3299. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3300. inside strings and character constants. */
  3301. #define FOO(x) 'x'
  3302. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3303. int test (int i, double x);
  3304. struct s1 {int (*f) (int a);};
  3305. struct s2 {int (*f) (double a);};
  3306. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3307. int argc;
  3308. char **argv;
  3309. int
  3310. main ()
  3311. {
  3312. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3313. ;
  3314. return 0;
  3315. }
  3316. _ACEOF
  3317. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3318. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3319. do
  3320. CC="$ac_save_CC $ac_arg"
  3321. if ac_fn_c_try_compile "$LINENO"; then :
  3322. ac_cv_prog_cc_c89=$ac_arg
  3323. fi
  3324. rm -f core conftest.err conftest.$ac_objext
  3325. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3326. done
  3327. rm -f conftest.$ac_ext
  3328. CC=$ac_save_CC
  3329. fi
  3330. # AC_CACHE_VAL
  3331. case "x$ac_cv_prog_cc_c89" in
  3332. x)
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3334. $as_echo "none needed" >&6; } ;;
  3335. xno)
  3336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3337. $as_echo "unsupported" >&6; } ;;
  3338. *)
  3339. CC="$CC $ac_cv_prog_cc_c89"
  3340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3341. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3342. esac
  3343. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3344. fi
  3345. ac_ext=c
  3346. ac_cpp='$CPP $CPPFLAGS'
  3347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3351. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3352. if ${ac_cv_path_SED+:} false; then :
  3353. $as_echo_n "(cached) " >&6
  3354. else
  3355. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3356. for ac_i in 1 2 3 4 5 6 7; do
  3357. ac_script="$ac_script$as_nl$ac_script"
  3358. done
  3359. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3360. { ac_script=; unset ac_script;}
  3361. if test -z "$SED"; then
  3362. ac_path_SED_found=false
  3363. # Loop through the user's path and test for each of PROGNAME-LIST
  3364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3365. for as_dir in $PATH
  3366. do
  3367. IFS=$as_save_IFS
  3368. test -z "$as_dir" && as_dir=.
  3369. for ac_prog in sed gsed; do
  3370. for ac_exec_ext in '' $ac_executable_extensions; do
  3371. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3372. as_fn_executable_p "$ac_path_SED" || continue
  3373. # Check for GNU ac_path_SED and select it if it is found.
  3374. # Check for GNU $ac_path_SED
  3375. case `"$ac_path_SED" --version 2>&1` in
  3376. *GNU*)
  3377. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3378. *)
  3379. ac_count=0
  3380. $as_echo_n 0123456789 >"conftest.in"
  3381. while :
  3382. do
  3383. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3384. mv "conftest.tmp" "conftest.in"
  3385. cp "conftest.in" "conftest.nl"
  3386. $as_echo '' >> "conftest.nl"
  3387. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3388. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3389. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3390. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3391. # Best one so far, save it but keep looking for a better one
  3392. ac_cv_path_SED="$ac_path_SED"
  3393. ac_path_SED_max=$ac_count
  3394. fi
  3395. # 10*(2^10) chars as input seems more than enough
  3396. test $ac_count -gt 10 && break
  3397. done
  3398. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3399. esac
  3400. $ac_path_SED_found && break 3
  3401. done
  3402. done
  3403. done
  3404. IFS=$as_save_IFS
  3405. if test -z "$ac_cv_path_SED"; then
  3406. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3407. fi
  3408. else
  3409. ac_cv_path_SED=$SED
  3410. fi
  3411. fi
  3412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3413. $as_echo "$ac_cv_path_SED" >&6; }
  3414. SED="$ac_cv_path_SED"
  3415. rm -f conftest.sed
  3416. test -z "$SED" && SED=sed
  3417. Xsed="$SED -e 1s/^X//"
  3418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3419. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3420. if ${ac_cv_path_GREP+:} false; then :
  3421. $as_echo_n "(cached) " >&6
  3422. else
  3423. if test -z "$GREP"; then
  3424. ac_path_GREP_found=false
  3425. # Loop through the user's path and test for each of PROGNAME-LIST
  3426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3427. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3428. do
  3429. IFS=$as_save_IFS
  3430. test -z "$as_dir" && as_dir=.
  3431. for ac_prog in grep ggrep; do
  3432. for ac_exec_ext in '' $ac_executable_extensions; do
  3433. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3434. as_fn_executable_p "$ac_path_GREP" || continue
  3435. # Check for GNU ac_path_GREP and select it if it is found.
  3436. # Check for GNU $ac_path_GREP
  3437. case `"$ac_path_GREP" --version 2>&1` in
  3438. *GNU*)
  3439. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3440. *)
  3441. ac_count=0
  3442. $as_echo_n 0123456789 >"conftest.in"
  3443. while :
  3444. do
  3445. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3446. mv "conftest.tmp" "conftest.in"
  3447. cp "conftest.in" "conftest.nl"
  3448. $as_echo 'GREP' >> "conftest.nl"
  3449. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3450. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3451. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3452. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3453. # Best one so far, save it but keep looking for a better one
  3454. ac_cv_path_GREP="$ac_path_GREP"
  3455. ac_path_GREP_max=$ac_count
  3456. fi
  3457. # 10*(2^10) chars as input seems more than enough
  3458. test $ac_count -gt 10 && break
  3459. done
  3460. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3461. esac
  3462. $ac_path_GREP_found && break 3
  3463. done
  3464. done
  3465. done
  3466. IFS=$as_save_IFS
  3467. if test -z "$ac_cv_path_GREP"; then
  3468. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3469. fi
  3470. else
  3471. ac_cv_path_GREP=$GREP
  3472. fi
  3473. fi
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3475. $as_echo "$ac_cv_path_GREP" >&6; }
  3476. GREP="$ac_cv_path_GREP"
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3478. $as_echo_n "checking for egrep... " >&6; }
  3479. if ${ac_cv_path_EGREP+:} false; then :
  3480. $as_echo_n "(cached) " >&6
  3481. else
  3482. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3483. then ac_cv_path_EGREP="$GREP -E"
  3484. else
  3485. if test -z "$EGREP"; then
  3486. ac_path_EGREP_found=false
  3487. # Loop through the user's path and test for each of PROGNAME-LIST
  3488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3489. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3490. do
  3491. IFS=$as_save_IFS
  3492. test -z "$as_dir" && as_dir=.
  3493. for ac_prog in egrep; do
  3494. for ac_exec_ext in '' $ac_executable_extensions; do
  3495. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3496. as_fn_executable_p "$ac_path_EGREP" || continue
  3497. # Check for GNU ac_path_EGREP and select it if it is found.
  3498. # Check for GNU $ac_path_EGREP
  3499. case `"$ac_path_EGREP" --version 2>&1` in
  3500. *GNU*)
  3501. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3502. *)
  3503. ac_count=0
  3504. $as_echo_n 0123456789 >"conftest.in"
  3505. while :
  3506. do
  3507. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3508. mv "conftest.tmp" "conftest.in"
  3509. cp "conftest.in" "conftest.nl"
  3510. $as_echo 'EGREP' >> "conftest.nl"
  3511. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3512. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3513. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3514. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3515. # Best one so far, save it but keep looking for a better one
  3516. ac_cv_path_EGREP="$ac_path_EGREP"
  3517. ac_path_EGREP_max=$ac_count
  3518. fi
  3519. # 10*(2^10) chars as input seems more than enough
  3520. test $ac_count -gt 10 && break
  3521. done
  3522. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3523. esac
  3524. $ac_path_EGREP_found && break 3
  3525. done
  3526. done
  3527. done
  3528. IFS=$as_save_IFS
  3529. if test -z "$ac_cv_path_EGREP"; then
  3530. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3531. fi
  3532. else
  3533. ac_cv_path_EGREP=$EGREP
  3534. fi
  3535. fi
  3536. fi
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3538. $as_echo "$ac_cv_path_EGREP" >&6; }
  3539. EGREP="$ac_cv_path_EGREP"
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3541. $as_echo_n "checking for fgrep... " >&6; }
  3542. if ${ac_cv_path_FGREP+:} false; then :
  3543. $as_echo_n "(cached) " >&6
  3544. else
  3545. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3546. then ac_cv_path_FGREP="$GREP -F"
  3547. else
  3548. if test -z "$FGREP"; then
  3549. ac_path_FGREP_found=false
  3550. # Loop through the user's path and test for each of PROGNAME-LIST
  3551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3552. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3553. do
  3554. IFS=$as_save_IFS
  3555. test -z "$as_dir" && as_dir=.
  3556. for ac_prog in fgrep; do
  3557. for ac_exec_ext in '' $ac_executable_extensions; do
  3558. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3559. as_fn_executable_p "$ac_path_FGREP" || continue
  3560. # Check for GNU ac_path_FGREP and select it if it is found.
  3561. # Check for GNU $ac_path_FGREP
  3562. case `"$ac_path_FGREP" --version 2>&1` in
  3563. *GNU*)
  3564. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3565. *)
  3566. ac_count=0
  3567. $as_echo_n 0123456789 >"conftest.in"
  3568. while :
  3569. do
  3570. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3571. mv "conftest.tmp" "conftest.in"
  3572. cp "conftest.in" "conftest.nl"
  3573. $as_echo 'FGREP' >> "conftest.nl"
  3574. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3575. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3576. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3577. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3578. # Best one so far, save it but keep looking for a better one
  3579. ac_cv_path_FGREP="$ac_path_FGREP"
  3580. ac_path_FGREP_max=$ac_count
  3581. fi
  3582. # 10*(2^10) chars as input seems more than enough
  3583. test $ac_count -gt 10 && break
  3584. done
  3585. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3586. esac
  3587. $ac_path_FGREP_found && break 3
  3588. done
  3589. done
  3590. done
  3591. IFS=$as_save_IFS
  3592. if test -z "$ac_cv_path_FGREP"; then
  3593. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3594. fi
  3595. else
  3596. ac_cv_path_FGREP=$FGREP
  3597. fi
  3598. fi
  3599. fi
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3601. $as_echo "$ac_cv_path_FGREP" >&6; }
  3602. FGREP="$ac_cv_path_FGREP"
  3603. test -z "$GREP" && GREP=grep
  3604. # Check whether --with-gnu-ld was given.
  3605. if test "${with_gnu_ld+set}" = set; then :
  3606. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3607. else
  3608. with_gnu_ld=no
  3609. fi
  3610. ac_prog=ld
  3611. if test "$GCC" = yes; then
  3612. # Check if gcc -print-prog-name=ld gives a path.
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3614. $as_echo_n "checking for ld used by $CC... " >&6; }
  3615. case $host in
  3616. *-*-mingw*)
  3617. # gcc leaves a trailing carriage return which upsets mingw
  3618. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3619. *)
  3620. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3621. esac
  3622. case $ac_prog in
  3623. # Accept absolute paths.
  3624. [\\/]* | ?:[\\/]*)
  3625. re_direlt='/[^/][^/]*/\.\./'
  3626. # Canonicalize the pathname of ld
  3627. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3628. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3629. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3630. done
  3631. test -z "$LD" && LD="$ac_prog"
  3632. ;;
  3633. "")
  3634. # If it fails, then pretend we aren't using GCC.
  3635. ac_prog=ld
  3636. ;;
  3637. *)
  3638. # If it is relative, then search for the first ld in PATH.
  3639. with_gnu_ld=unknown
  3640. ;;
  3641. esac
  3642. elif test "$with_gnu_ld" = yes; then
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3644. $as_echo_n "checking for GNU ld... " >&6; }
  3645. else
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3647. $as_echo_n "checking for non-GNU ld... " >&6; }
  3648. fi
  3649. if ${lt_cv_path_LD+:} false; then :
  3650. $as_echo_n "(cached) " >&6
  3651. else
  3652. if test -z "$LD"; then
  3653. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3654. for ac_dir in $PATH; do
  3655. IFS="$lt_save_ifs"
  3656. test -z "$ac_dir" && ac_dir=.
  3657. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3658. lt_cv_path_LD="$ac_dir/$ac_prog"
  3659. # Check to see if the program is GNU ld. I'd rather use --version,
  3660. # but apparently some variants of GNU ld only accept -v.
  3661. # Break only if it was the GNU/non-GNU ld that we prefer.
  3662. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3663. *GNU* | *'with BFD'*)
  3664. test "$with_gnu_ld" != no && break
  3665. ;;
  3666. *)
  3667. test "$with_gnu_ld" != yes && break
  3668. ;;
  3669. esac
  3670. fi
  3671. done
  3672. IFS="$lt_save_ifs"
  3673. else
  3674. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3675. fi
  3676. fi
  3677. LD="$lt_cv_path_LD"
  3678. if test -n "$LD"; then
  3679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3680. $as_echo "$LD" >&6; }
  3681. else
  3682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3683. $as_echo "no" >&6; }
  3684. fi
  3685. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3687. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3688. if ${lt_cv_prog_gnu_ld+:} false; then :
  3689. $as_echo_n "(cached) " >&6
  3690. else
  3691. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3692. case `$LD -v 2>&1 </dev/null` in
  3693. *GNU* | *'with BFD'*)
  3694. lt_cv_prog_gnu_ld=yes
  3695. ;;
  3696. *)
  3697. lt_cv_prog_gnu_ld=no
  3698. ;;
  3699. esac
  3700. fi
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3702. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3703. with_gnu_ld=$lt_cv_prog_gnu_ld
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3705. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3706. if ${lt_cv_path_NM+:} false; then :
  3707. $as_echo_n "(cached) " >&6
  3708. else
  3709. if test -n "$NM"; then
  3710. # Let the user override the test.
  3711. lt_cv_path_NM="$NM"
  3712. else
  3713. lt_nm_to_check="${ac_tool_prefix}nm"
  3714. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3715. lt_nm_to_check="$lt_nm_to_check nm"
  3716. fi
  3717. for lt_tmp_nm in $lt_nm_to_check; do
  3718. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3719. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3720. IFS="$lt_save_ifs"
  3721. test -z "$ac_dir" && ac_dir=.
  3722. tmp_nm="$ac_dir/$lt_tmp_nm"
  3723. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3724. # Check to see if the nm accepts a BSD-compat flag.
  3725. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3726. # nm: unknown option "B" ignored
  3727. # Tru64's nm complains that /dev/null is an invalid object file
  3728. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3729. */dev/null* | *'Invalid file or object type'*)
  3730. lt_cv_path_NM="$tmp_nm -B"
  3731. break
  3732. ;;
  3733. *)
  3734. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3735. */dev/null*)
  3736. lt_cv_path_NM="$tmp_nm -p"
  3737. break
  3738. ;;
  3739. *)
  3740. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3741. continue # so that we can try to find one that supports BSD flags
  3742. ;;
  3743. esac
  3744. ;;
  3745. esac
  3746. fi
  3747. done
  3748. IFS="$lt_save_ifs"
  3749. done
  3750. : ${lt_cv_path_NM=no}
  3751. fi
  3752. fi
  3753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3754. $as_echo "$lt_cv_path_NM" >&6; }
  3755. if test "$lt_cv_path_NM" != "no"; then
  3756. NM="$lt_cv_path_NM"
  3757. else
  3758. # Didn't find any BSD compatible name lister, look for dumpbin.
  3759. if test -n "$DUMPBIN"; then :
  3760. # Let the user override the test.
  3761. else
  3762. if test -n "$ac_tool_prefix"; then
  3763. for ac_prog in dumpbin "link -dump"
  3764. do
  3765. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3766. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3768. $as_echo_n "checking for $ac_word... " >&6; }
  3769. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3770. $as_echo_n "(cached) " >&6
  3771. else
  3772. if test -n "$DUMPBIN"; then
  3773. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3774. else
  3775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3776. for as_dir in $PATH
  3777. do
  3778. IFS=$as_save_IFS
  3779. test -z "$as_dir" && as_dir=.
  3780. for ac_exec_ext in '' $ac_executable_extensions; do
  3781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3782. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3784. break 2
  3785. fi
  3786. done
  3787. done
  3788. IFS=$as_save_IFS
  3789. fi
  3790. fi
  3791. DUMPBIN=$ac_cv_prog_DUMPBIN
  3792. if test -n "$DUMPBIN"; then
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3794. $as_echo "$DUMPBIN" >&6; }
  3795. else
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3797. $as_echo "no" >&6; }
  3798. fi
  3799. test -n "$DUMPBIN" && break
  3800. done
  3801. fi
  3802. if test -z "$DUMPBIN"; then
  3803. ac_ct_DUMPBIN=$DUMPBIN
  3804. for ac_prog in dumpbin "link -dump"
  3805. do
  3806. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3807. set dummy $ac_prog; ac_word=$2
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3809. $as_echo_n "checking for $ac_word... " >&6; }
  3810. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3811. $as_echo_n "(cached) " >&6
  3812. else
  3813. if test -n "$ac_ct_DUMPBIN"; then
  3814. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3815. else
  3816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3817. for as_dir in $PATH
  3818. do
  3819. IFS=$as_save_IFS
  3820. test -z "$as_dir" && as_dir=.
  3821. for ac_exec_ext in '' $ac_executable_extensions; do
  3822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3823. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3825. break 2
  3826. fi
  3827. done
  3828. done
  3829. IFS=$as_save_IFS
  3830. fi
  3831. fi
  3832. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3833. if test -n "$ac_ct_DUMPBIN"; then
  3834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3835. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3836. else
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3838. $as_echo "no" >&6; }
  3839. fi
  3840. test -n "$ac_ct_DUMPBIN" && break
  3841. done
  3842. if test "x$ac_ct_DUMPBIN" = x; then
  3843. DUMPBIN=":"
  3844. else
  3845. case $cross_compiling:$ac_tool_warned in
  3846. yes:)
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3848. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3849. ac_tool_warned=yes ;;
  3850. esac
  3851. DUMPBIN=$ac_ct_DUMPBIN
  3852. fi
  3853. fi
  3854. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3855. *COFF*)
  3856. DUMPBIN="$DUMPBIN -symbols"
  3857. ;;
  3858. *)
  3859. DUMPBIN=:
  3860. ;;
  3861. esac
  3862. fi
  3863. if test "$DUMPBIN" != ":"; then
  3864. NM="$DUMPBIN"
  3865. fi
  3866. fi
  3867. test -z "$NM" && NM=nm
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  3869. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  3870. if ${lt_cv_nm_interface+:} false; then :
  3871. $as_echo_n "(cached) " >&6
  3872. else
  3873. lt_cv_nm_interface="BSD nm"
  3874. echo "int some_variable = 0;" > conftest.$ac_ext
  3875. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  3876. (eval "$ac_compile" 2>conftest.err)
  3877. cat conftest.err >&5
  3878. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3879. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3880. cat conftest.err >&5
  3881. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  3882. cat conftest.out >&5
  3883. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3884. lt_cv_nm_interface="MS dumpbin"
  3885. fi
  3886. rm -f conftest*
  3887. fi
  3888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  3889. $as_echo "$lt_cv_nm_interface" >&6; }
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  3891. $as_echo_n "checking whether ln -s works... " >&6; }
  3892. LN_S=$as_ln_s
  3893. if test "$LN_S" = "ln -s"; then
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3895. $as_echo "yes" >&6; }
  3896. else
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  3898. $as_echo "no, using $LN_S" >&6; }
  3899. fi
  3900. # find the maximum length of command line arguments
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  3902. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  3903. if ${lt_cv_sys_max_cmd_len+:} false; then :
  3904. $as_echo_n "(cached) " >&6
  3905. else
  3906. i=0
  3907. teststring="ABCD"
  3908. case $build_os in
  3909. msdosdjgpp*)
  3910. # On DJGPP, this test can blow up pretty badly due to problems in libc
  3911. # (any single argument exceeding 2000 bytes causes a buffer overrun
  3912. # during glob expansion). Even if it were fixed, the result of this
  3913. # check would be larger than it should be.
  3914. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3915. ;;
  3916. gnu*)
  3917. # Under GNU Hurd, this test is not required because there is
  3918. # no limit to the length of command line arguments.
  3919. # Libtool will interpret -1 as no limit whatsoever
  3920. lt_cv_sys_max_cmd_len=-1;
  3921. ;;
  3922. cygwin* | mingw* | cegcc*)
  3923. # On Win9x/ME, this test blows up -- it succeeds, but takes
  3924. # about 5 minutes as the teststring grows exponentially.
  3925. # Worse, since 9x/ME are not pre-emptively multitasking,
  3926. # you end up with a "frozen" computer, even though with patience
  3927. # the test eventually succeeds (with a max line length of 256k).
  3928. # Instead, let's just punt: use the minimum linelength reported by
  3929. # all of the supported platforms: 8192 (on NT/2K/XP).
  3930. lt_cv_sys_max_cmd_len=8192;
  3931. ;;
  3932. mint*)
  3933. # On MiNT this can take a long time and run out of memory.
  3934. lt_cv_sys_max_cmd_len=8192;
  3935. ;;
  3936. amigaos*)
  3937. # On AmigaOS with pdksh, this test takes hours, literally.
  3938. # So we just punt and use a minimum line length of 8192.
  3939. lt_cv_sys_max_cmd_len=8192;
  3940. ;;
  3941. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3942. # This has been around since 386BSD, at least. Likely further.
  3943. if test -x /sbin/sysctl; then
  3944. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3945. elif test -x /usr/sbin/sysctl; then
  3946. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3947. else
  3948. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3949. fi
  3950. # And add a safety zone
  3951. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3952. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3953. ;;
  3954. interix*)
  3955. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3956. lt_cv_sys_max_cmd_len=196608
  3957. ;;
  3958. os2*)
  3959. # The test takes a long time on OS/2.
  3960. lt_cv_sys_max_cmd_len=8192
  3961. ;;
  3962. osf*)
  3963. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3964. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3965. # nice to cause kernel panics so lets avoid the loop below.
  3966. # First set a reasonable default.
  3967. lt_cv_sys_max_cmd_len=16384
  3968. #
  3969. if test -x /sbin/sysconfig; then
  3970. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3971. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3972. esac
  3973. fi
  3974. ;;
  3975. sco3.2v5*)
  3976. lt_cv_sys_max_cmd_len=102400
  3977. ;;
  3978. sysv5* | sco5v6* | sysv4.2uw2*)
  3979. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3980. if test -n "$kargmax"; then
  3981. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  3982. else
  3983. lt_cv_sys_max_cmd_len=32768
  3984. fi
  3985. ;;
  3986. *)
  3987. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  3988. if test -n "$lt_cv_sys_max_cmd_len"; then
  3989. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3990. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3991. else
  3992. # Make teststring a little bigger before we do anything with it.
  3993. # a 1K string should be a reasonable start.
  3994. for i in 1 2 3 4 5 6 7 8 ; do
  3995. teststring=$teststring$teststring
  3996. done
  3997. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3998. # If test is not a shell built-in, we'll probably end up computing a
  3999. # maximum length that is only half of the actual maximum length, but
  4000. # we can't tell.
  4001. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4002. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4003. test $i != 17 # 1/2 MB should be enough
  4004. do
  4005. i=`expr $i + 1`
  4006. teststring=$teststring$teststring
  4007. done
  4008. # Only check the string length outside the loop.
  4009. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4010. teststring=
  4011. # Add a significant safety factor because C++ compilers can tack on
  4012. # massive amounts of additional arguments before passing them to the
  4013. # linker. It appears as though 1/2 is a usable value.
  4014. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4015. fi
  4016. ;;
  4017. esac
  4018. fi
  4019. if test -n $lt_cv_sys_max_cmd_len ; then
  4020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4021. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4022. else
  4023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4024. $as_echo "none" >&6; }
  4025. fi
  4026. max_cmd_len=$lt_cv_sys_max_cmd_len
  4027. : ${CP="cp -f"}
  4028. : ${MV="mv -f"}
  4029. : ${RM="rm -f"}
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4031. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4032. # Try some XSI features
  4033. xsi_shell=no
  4034. ( _lt_dummy="a/b/c"
  4035. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4036. = c,a/b,b/c, \
  4037. && eval 'test $(( 1 + 1 )) -eq 2 \
  4038. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4039. && xsi_shell=yes
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4041. $as_echo "$xsi_shell" >&6; }
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4043. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4044. lt_shell_append=no
  4045. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4046. >/dev/null 2>&1 \
  4047. && lt_shell_append=yes
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4049. $as_echo "$lt_shell_append" >&6; }
  4050. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4051. lt_unset=unset
  4052. else
  4053. lt_unset=false
  4054. fi
  4055. # test EBCDIC or ASCII
  4056. case `echo X|tr X '\101'` in
  4057. A) # ASCII based system
  4058. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4059. lt_SP2NL='tr \040 \012'
  4060. lt_NL2SP='tr \015\012 \040\040'
  4061. ;;
  4062. *) # EBCDIC based system
  4063. lt_SP2NL='tr \100 \n'
  4064. lt_NL2SP='tr \r\n \100\100'
  4065. ;;
  4066. esac
  4067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4068. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4069. if ${lt_cv_to_host_file_cmd+:} false; then :
  4070. $as_echo_n "(cached) " >&6
  4071. else
  4072. case $host in
  4073. *-*-mingw* )
  4074. case $build in
  4075. *-*-mingw* ) # actually msys
  4076. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4077. ;;
  4078. *-*-cygwin* )
  4079. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4080. ;;
  4081. * ) # otherwise, assume *nix
  4082. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4083. ;;
  4084. esac
  4085. ;;
  4086. *-*-cygwin* )
  4087. case $build in
  4088. *-*-mingw* ) # actually msys
  4089. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4090. ;;
  4091. *-*-cygwin* )
  4092. lt_cv_to_host_file_cmd=func_convert_file_noop
  4093. ;;
  4094. * ) # otherwise, assume *nix
  4095. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4096. ;;
  4097. esac
  4098. ;;
  4099. * ) # unhandled hosts (and "normal" native builds)
  4100. lt_cv_to_host_file_cmd=func_convert_file_noop
  4101. ;;
  4102. esac
  4103. fi
  4104. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4106. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4108. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4109. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4110. $as_echo_n "(cached) " >&6
  4111. else
  4112. #assume ordinary cross tools, or native build.
  4113. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4114. case $host in
  4115. *-*-mingw* )
  4116. case $build in
  4117. *-*-mingw* ) # actually msys
  4118. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4119. ;;
  4120. esac
  4121. ;;
  4122. esac
  4123. fi
  4124. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4126. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4128. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4129. if ${lt_cv_ld_reload_flag+:} false; then :
  4130. $as_echo_n "(cached) " >&6
  4131. else
  4132. lt_cv_ld_reload_flag='-r'
  4133. fi
  4134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4135. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4136. reload_flag=$lt_cv_ld_reload_flag
  4137. case $reload_flag in
  4138. "" | " "*) ;;
  4139. *) reload_flag=" $reload_flag" ;;
  4140. esac
  4141. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4142. case $host_os in
  4143. cygwin* | mingw* | pw32* | cegcc*)
  4144. if test "$GCC" != yes; then
  4145. reload_cmds=false
  4146. fi
  4147. ;;
  4148. darwin*)
  4149. if test "$GCC" = yes; then
  4150. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4151. else
  4152. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4153. fi
  4154. ;;
  4155. esac
  4156. if test -n "$ac_tool_prefix"; then
  4157. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4158. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4160. $as_echo_n "checking for $ac_word... " >&6; }
  4161. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4162. $as_echo_n "(cached) " >&6
  4163. else
  4164. if test -n "$OBJDUMP"; then
  4165. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4166. else
  4167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4168. for as_dir in $PATH
  4169. do
  4170. IFS=$as_save_IFS
  4171. test -z "$as_dir" && as_dir=.
  4172. for ac_exec_ext in '' $ac_executable_extensions; do
  4173. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4174. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4176. break 2
  4177. fi
  4178. done
  4179. done
  4180. IFS=$as_save_IFS
  4181. fi
  4182. fi
  4183. OBJDUMP=$ac_cv_prog_OBJDUMP
  4184. if test -n "$OBJDUMP"; then
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4186. $as_echo "$OBJDUMP" >&6; }
  4187. else
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4189. $as_echo "no" >&6; }
  4190. fi
  4191. fi
  4192. if test -z "$ac_cv_prog_OBJDUMP"; then
  4193. ac_ct_OBJDUMP=$OBJDUMP
  4194. # Extract the first word of "objdump", so it can be a program name with args.
  4195. set dummy objdump; ac_word=$2
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4197. $as_echo_n "checking for $ac_word... " >&6; }
  4198. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4199. $as_echo_n "(cached) " >&6
  4200. else
  4201. if test -n "$ac_ct_OBJDUMP"; then
  4202. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4203. else
  4204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4205. for as_dir in $PATH
  4206. do
  4207. IFS=$as_save_IFS
  4208. test -z "$as_dir" && as_dir=.
  4209. for ac_exec_ext in '' $ac_executable_extensions; do
  4210. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4211. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4212. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4213. break 2
  4214. fi
  4215. done
  4216. done
  4217. IFS=$as_save_IFS
  4218. fi
  4219. fi
  4220. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4221. if test -n "$ac_ct_OBJDUMP"; then
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4223. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4224. else
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4226. $as_echo "no" >&6; }
  4227. fi
  4228. if test "x$ac_ct_OBJDUMP" = x; then
  4229. OBJDUMP="false"
  4230. else
  4231. case $cross_compiling:$ac_tool_warned in
  4232. yes:)
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4234. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4235. ac_tool_warned=yes ;;
  4236. esac
  4237. OBJDUMP=$ac_ct_OBJDUMP
  4238. fi
  4239. else
  4240. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4241. fi
  4242. test -z "$OBJDUMP" && OBJDUMP=objdump
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4244. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4245. if ${lt_cv_deplibs_check_method+:} false; then :
  4246. $as_echo_n "(cached) " >&6
  4247. else
  4248. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4249. lt_cv_file_magic_test_file=
  4250. lt_cv_deplibs_check_method='unknown'
  4251. # Need to set the preceding variable on all platforms that support
  4252. # interlibrary dependencies.
  4253. # 'none' -- dependencies not supported.
  4254. # `unknown' -- same as none, but documents that we really don't know.
  4255. # 'pass_all' -- all dependencies passed with no checks.
  4256. # 'test_compile' -- check by making test program.
  4257. # 'file_magic [[regex]]' -- check by looking for files in library path
  4258. # which responds to the $file_magic_cmd with a given extended regex.
  4259. # If you have `file' or equivalent on your system and you're not sure
  4260. # whether `pass_all' will *always* work, you probably want this one.
  4261. case $host_os in
  4262. aix[4-9]*)
  4263. lt_cv_deplibs_check_method=pass_all
  4264. ;;
  4265. beos*)
  4266. lt_cv_deplibs_check_method=pass_all
  4267. ;;
  4268. bsdi[45]*)
  4269. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4270. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4271. lt_cv_file_magic_test_file=/shlib/libc.so
  4272. ;;
  4273. cygwin*)
  4274. # func_win32_libid is a shell function defined in ltmain.sh
  4275. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4276. lt_cv_file_magic_cmd='func_win32_libid'
  4277. lt_cv_deplibs_check_method=pass_all
  4278. ;;
  4279. mingw* | pw32*)
  4280. # Base MSYS/MinGW do not provide the 'file' command needed by
  4281. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4282. # unless we find 'file', for example because we are cross-compiling.
  4283. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4284. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4285. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4286. lt_cv_file_magic_cmd='func_win32_libid'
  4287. else
  4288. # Keep this pattern in sync with the one in func_win32_libid.
  4289. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4290. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4291. fi
  4292. lt_cv_deplibs_check_method=pass_all
  4293. ;;
  4294. cegcc*)
  4295. # use the weaker test based on 'objdump'. See mingw*.
  4296. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4297. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4298. ;;
  4299. darwin* | rhapsody*)
  4300. lt_cv_deplibs_check_method=pass_all
  4301. ;;
  4302. freebsd* | dragonfly*)
  4303. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4304. case $host_cpu in
  4305. i*86 )
  4306. # Not sure whether the presence of OpenBSD here was a mistake.
  4307. # Let's accept both of them until this is cleared up.
  4308. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4309. lt_cv_file_magic_cmd=/usr/bin/file
  4310. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4311. ;;
  4312. esac
  4313. else
  4314. lt_cv_deplibs_check_method=pass_all
  4315. fi
  4316. ;;
  4317. gnu*)
  4318. lt_cv_deplibs_check_method=pass_all
  4319. ;;
  4320. haiku*)
  4321. lt_cv_deplibs_check_method=pass_all
  4322. ;;
  4323. hpux10.20* | hpux11*)
  4324. lt_cv_file_magic_cmd=/usr/bin/file
  4325. case $host_cpu in
  4326. ia64*)
  4327. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4328. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4329. ;;
  4330. hppa*64*)
  4331. 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]'
  4332. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4333. ;;
  4334. *)
  4335. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4336. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4337. ;;
  4338. esac
  4339. ;;
  4340. interix[3-9]*)
  4341. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4342. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4343. ;;
  4344. irix5* | irix6* | nonstopux*)
  4345. case $LD in
  4346. *-32|*"-32 ") libmagic=32-bit;;
  4347. *-n32|*"-n32 ") libmagic=N32;;
  4348. *-64|*"-64 ") libmagic=64-bit;;
  4349. *) libmagic=never-match;;
  4350. esac
  4351. lt_cv_deplibs_check_method=pass_all
  4352. ;;
  4353. # This must be glibc/ELF.
  4354. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4355. lt_cv_deplibs_check_method=pass_all
  4356. ;;
  4357. netbsd*)
  4358. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4359. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4360. else
  4361. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4362. fi
  4363. ;;
  4364. newos6*)
  4365. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4366. lt_cv_file_magic_cmd=/usr/bin/file
  4367. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4368. ;;
  4369. *nto* | *qnx*)
  4370. lt_cv_deplibs_check_method=pass_all
  4371. ;;
  4372. openbsd*)
  4373. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4374. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4375. else
  4376. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4377. fi
  4378. ;;
  4379. osf3* | osf4* | osf5*)
  4380. lt_cv_deplibs_check_method=pass_all
  4381. ;;
  4382. rdos*)
  4383. lt_cv_deplibs_check_method=pass_all
  4384. ;;
  4385. solaris*)
  4386. lt_cv_deplibs_check_method=pass_all
  4387. ;;
  4388. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4389. lt_cv_deplibs_check_method=pass_all
  4390. ;;
  4391. sysv4 | sysv4.3*)
  4392. case $host_vendor in
  4393. motorola)
  4394. 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]'
  4395. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4396. ;;
  4397. ncr)
  4398. lt_cv_deplibs_check_method=pass_all
  4399. ;;
  4400. sequent)
  4401. lt_cv_file_magic_cmd='/bin/file'
  4402. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4403. ;;
  4404. sni)
  4405. lt_cv_file_magic_cmd='/bin/file'
  4406. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4407. lt_cv_file_magic_test_file=/lib/libc.so
  4408. ;;
  4409. siemens)
  4410. lt_cv_deplibs_check_method=pass_all
  4411. ;;
  4412. pc)
  4413. lt_cv_deplibs_check_method=pass_all
  4414. ;;
  4415. esac
  4416. ;;
  4417. tpf*)
  4418. lt_cv_deplibs_check_method=pass_all
  4419. ;;
  4420. esac
  4421. fi
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4423. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4424. file_magic_glob=
  4425. want_nocaseglob=no
  4426. if test "$build" = "$host"; then
  4427. case $host_os in
  4428. mingw* | pw32*)
  4429. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4430. want_nocaseglob=yes
  4431. else
  4432. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4433. fi
  4434. ;;
  4435. esac
  4436. fi
  4437. file_magic_cmd=$lt_cv_file_magic_cmd
  4438. deplibs_check_method=$lt_cv_deplibs_check_method
  4439. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4440. if test -n "$ac_tool_prefix"; then
  4441. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4442. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4444. $as_echo_n "checking for $ac_word... " >&6; }
  4445. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. if test -n "$DLLTOOL"; then
  4449. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4450. else
  4451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4452. for as_dir in $PATH
  4453. do
  4454. IFS=$as_save_IFS
  4455. test -z "$as_dir" && as_dir=.
  4456. for ac_exec_ext in '' $ac_executable_extensions; do
  4457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4458. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4460. break 2
  4461. fi
  4462. done
  4463. done
  4464. IFS=$as_save_IFS
  4465. fi
  4466. fi
  4467. DLLTOOL=$ac_cv_prog_DLLTOOL
  4468. if test -n "$DLLTOOL"; then
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4470. $as_echo "$DLLTOOL" >&6; }
  4471. else
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4473. $as_echo "no" >&6; }
  4474. fi
  4475. fi
  4476. if test -z "$ac_cv_prog_DLLTOOL"; then
  4477. ac_ct_DLLTOOL=$DLLTOOL
  4478. # Extract the first word of "dlltool", so it can be a program name with args.
  4479. set dummy dlltool; ac_word=$2
  4480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4481. $as_echo_n "checking for $ac_word... " >&6; }
  4482. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. if test -n "$ac_ct_DLLTOOL"; then
  4486. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4487. else
  4488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4489. for as_dir in $PATH
  4490. do
  4491. IFS=$as_save_IFS
  4492. test -z "$as_dir" && as_dir=.
  4493. for ac_exec_ext in '' $ac_executable_extensions; do
  4494. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4495. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4497. break 2
  4498. fi
  4499. done
  4500. done
  4501. IFS=$as_save_IFS
  4502. fi
  4503. fi
  4504. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4505. if test -n "$ac_ct_DLLTOOL"; then
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4507. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4508. else
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4510. $as_echo "no" >&6; }
  4511. fi
  4512. if test "x$ac_ct_DLLTOOL" = x; then
  4513. DLLTOOL="false"
  4514. else
  4515. case $cross_compiling:$ac_tool_warned in
  4516. yes:)
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4519. ac_tool_warned=yes ;;
  4520. esac
  4521. DLLTOOL=$ac_ct_DLLTOOL
  4522. fi
  4523. else
  4524. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4525. fi
  4526. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4528. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4529. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4530. $as_echo_n "(cached) " >&6
  4531. else
  4532. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4533. case $host_os in
  4534. cygwin* | mingw* | pw32* | cegcc*)
  4535. # two different shell functions defined in ltmain.sh
  4536. # decide which to use based on capabilities of $DLLTOOL
  4537. case `$DLLTOOL --help 2>&1` in
  4538. *--identify-strict*)
  4539. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4540. ;;
  4541. *)
  4542. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4543. ;;
  4544. esac
  4545. ;;
  4546. *)
  4547. # fallback: assume linklib IS sharedlib
  4548. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4549. ;;
  4550. esac
  4551. fi
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4553. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4554. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4555. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4556. if test -n "$ac_tool_prefix"; then
  4557. for ac_prog in ar
  4558. do
  4559. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4560. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4562. $as_echo_n "checking for $ac_word... " >&6; }
  4563. if ${ac_cv_prog_AR+:} false; then :
  4564. $as_echo_n "(cached) " >&6
  4565. else
  4566. if test -n "$AR"; then
  4567. ac_cv_prog_AR="$AR" # Let the user override the test.
  4568. else
  4569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4570. for as_dir in $PATH
  4571. do
  4572. IFS=$as_save_IFS
  4573. test -z "$as_dir" && as_dir=.
  4574. for ac_exec_ext in '' $ac_executable_extensions; do
  4575. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4576. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4578. break 2
  4579. fi
  4580. done
  4581. done
  4582. IFS=$as_save_IFS
  4583. fi
  4584. fi
  4585. AR=$ac_cv_prog_AR
  4586. if test -n "$AR"; then
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4588. $as_echo "$AR" >&6; }
  4589. else
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4591. $as_echo "no" >&6; }
  4592. fi
  4593. test -n "$AR" && break
  4594. done
  4595. fi
  4596. if test -z "$AR"; then
  4597. ac_ct_AR=$AR
  4598. for ac_prog in ar
  4599. do
  4600. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4601. set dummy $ac_prog; ac_word=$2
  4602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4603. $as_echo_n "checking for $ac_word... " >&6; }
  4604. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4605. $as_echo_n "(cached) " >&6
  4606. else
  4607. if test -n "$ac_ct_AR"; then
  4608. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4609. else
  4610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4611. for as_dir in $PATH
  4612. do
  4613. IFS=$as_save_IFS
  4614. test -z "$as_dir" && as_dir=.
  4615. for ac_exec_ext in '' $ac_executable_extensions; do
  4616. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4617. ac_cv_prog_ac_ct_AR="$ac_prog"
  4618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4619. break 2
  4620. fi
  4621. done
  4622. done
  4623. IFS=$as_save_IFS
  4624. fi
  4625. fi
  4626. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4627. if test -n "$ac_ct_AR"; then
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4629. $as_echo "$ac_ct_AR" >&6; }
  4630. else
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4632. $as_echo "no" >&6; }
  4633. fi
  4634. test -n "$ac_ct_AR" && break
  4635. done
  4636. if test "x$ac_ct_AR" = x; then
  4637. AR="false"
  4638. else
  4639. case $cross_compiling:$ac_tool_warned in
  4640. yes:)
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4642. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4643. ac_tool_warned=yes ;;
  4644. esac
  4645. AR=$ac_ct_AR
  4646. fi
  4647. fi
  4648. : ${AR=ar}
  4649. : ${AR_FLAGS=cru}
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4651. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4652. if ${lt_cv_ar_at_file+:} false; then :
  4653. $as_echo_n "(cached) " >&6
  4654. else
  4655. lt_cv_ar_at_file=no
  4656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4657. /* end confdefs.h. */
  4658. int
  4659. main ()
  4660. {
  4661. ;
  4662. return 0;
  4663. }
  4664. _ACEOF
  4665. if ac_fn_c_try_compile "$LINENO"; then :
  4666. echo conftest.$ac_objext > conftest.lst
  4667. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4668. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4669. (eval $lt_ar_try) 2>&5
  4670. ac_status=$?
  4671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4672. test $ac_status = 0; }
  4673. if test "$ac_status" -eq 0; then
  4674. # Ensure the archiver fails upon bogus file names.
  4675. rm -f conftest.$ac_objext libconftest.a
  4676. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4677. (eval $lt_ar_try) 2>&5
  4678. ac_status=$?
  4679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4680. test $ac_status = 0; }
  4681. if test "$ac_status" -ne 0; then
  4682. lt_cv_ar_at_file=@
  4683. fi
  4684. fi
  4685. rm -f conftest.* libconftest.a
  4686. fi
  4687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. fi
  4689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4690. $as_echo "$lt_cv_ar_at_file" >&6; }
  4691. if test "x$lt_cv_ar_at_file" = xno; then
  4692. archiver_list_spec=
  4693. else
  4694. archiver_list_spec=$lt_cv_ar_at_file
  4695. fi
  4696. if test -n "$ac_tool_prefix"; then
  4697. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4698. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4700. $as_echo_n "checking for $ac_word... " >&6; }
  4701. if ${ac_cv_prog_STRIP+:} false; then :
  4702. $as_echo_n "(cached) " >&6
  4703. else
  4704. if test -n "$STRIP"; then
  4705. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4706. else
  4707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4708. for as_dir in $PATH
  4709. do
  4710. IFS=$as_save_IFS
  4711. test -z "$as_dir" && as_dir=.
  4712. for ac_exec_ext in '' $ac_executable_extensions; do
  4713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4714. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4716. break 2
  4717. fi
  4718. done
  4719. done
  4720. IFS=$as_save_IFS
  4721. fi
  4722. fi
  4723. STRIP=$ac_cv_prog_STRIP
  4724. if test -n "$STRIP"; then
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4726. $as_echo "$STRIP" >&6; }
  4727. else
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4729. $as_echo "no" >&6; }
  4730. fi
  4731. fi
  4732. if test -z "$ac_cv_prog_STRIP"; then
  4733. ac_ct_STRIP=$STRIP
  4734. # Extract the first word of "strip", so it can be a program name with args.
  4735. set dummy strip; ac_word=$2
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4737. $as_echo_n "checking for $ac_word... " >&6; }
  4738. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4739. $as_echo_n "(cached) " >&6
  4740. else
  4741. if test -n "$ac_ct_STRIP"; then
  4742. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4743. else
  4744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4745. for as_dir in $PATH
  4746. do
  4747. IFS=$as_save_IFS
  4748. test -z "$as_dir" && as_dir=.
  4749. for ac_exec_ext in '' $ac_executable_extensions; do
  4750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4751. ac_cv_prog_ac_ct_STRIP="strip"
  4752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4753. break 2
  4754. fi
  4755. done
  4756. done
  4757. IFS=$as_save_IFS
  4758. fi
  4759. fi
  4760. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4761. if test -n "$ac_ct_STRIP"; then
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4763. $as_echo "$ac_ct_STRIP" >&6; }
  4764. else
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4766. $as_echo "no" >&6; }
  4767. fi
  4768. if test "x$ac_ct_STRIP" = x; then
  4769. STRIP=":"
  4770. else
  4771. case $cross_compiling:$ac_tool_warned in
  4772. yes:)
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4774. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4775. ac_tool_warned=yes ;;
  4776. esac
  4777. STRIP=$ac_ct_STRIP
  4778. fi
  4779. else
  4780. STRIP="$ac_cv_prog_STRIP"
  4781. fi
  4782. test -z "$STRIP" && STRIP=:
  4783. if test -n "$ac_tool_prefix"; then
  4784. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4785. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4787. $as_echo_n "checking for $ac_word... " >&6; }
  4788. if ${ac_cv_prog_RANLIB+:} false; then :
  4789. $as_echo_n "(cached) " >&6
  4790. else
  4791. if test -n "$RANLIB"; then
  4792. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4793. else
  4794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4795. for as_dir in $PATH
  4796. do
  4797. IFS=$as_save_IFS
  4798. test -z "$as_dir" && as_dir=.
  4799. for ac_exec_ext in '' $ac_executable_extensions; do
  4800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4801. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4803. break 2
  4804. fi
  4805. done
  4806. done
  4807. IFS=$as_save_IFS
  4808. fi
  4809. fi
  4810. RANLIB=$ac_cv_prog_RANLIB
  4811. if test -n "$RANLIB"; then
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4813. $as_echo "$RANLIB" >&6; }
  4814. else
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4816. $as_echo "no" >&6; }
  4817. fi
  4818. fi
  4819. if test -z "$ac_cv_prog_RANLIB"; then
  4820. ac_ct_RANLIB=$RANLIB
  4821. # Extract the first word of "ranlib", so it can be a program name with args.
  4822. set dummy ranlib; ac_word=$2
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4824. $as_echo_n "checking for $ac_word... " >&6; }
  4825. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4826. $as_echo_n "(cached) " >&6
  4827. else
  4828. if test -n "$ac_ct_RANLIB"; then
  4829. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4830. else
  4831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4832. for as_dir in $PATH
  4833. do
  4834. IFS=$as_save_IFS
  4835. test -z "$as_dir" && as_dir=.
  4836. for ac_exec_ext in '' $ac_executable_extensions; do
  4837. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4838. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4840. break 2
  4841. fi
  4842. done
  4843. done
  4844. IFS=$as_save_IFS
  4845. fi
  4846. fi
  4847. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4848. if test -n "$ac_ct_RANLIB"; then
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4850. $as_echo "$ac_ct_RANLIB" >&6; }
  4851. else
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4853. $as_echo "no" >&6; }
  4854. fi
  4855. if test "x$ac_ct_RANLIB" = x; then
  4856. RANLIB=":"
  4857. else
  4858. case $cross_compiling:$ac_tool_warned in
  4859. yes:)
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4862. ac_tool_warned=yes ;;
  4863. esac
  4864. RANLIB=$ac_ct_RANLIB
  4865. fi
  4866. else
  4867. RANLIB="$ac_cv_prog_RANLIB"
  4868. fi
  4869. test -z "$RANLIB" && RANLIB=:
  4870. # Determine commands to create old-style static archives.
  4871. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  4872. old_postinstall_cmds='chmod 644 $oldlib'
  4873. old_postuninstall_cmds=
  4874. if test -n "$RANLIB"; then
  4875. case $host_os in
  4876. openbsd*)
  4877. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  4878. ;;
  4879. *)
  4880. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  4881. ;;
  4882. esac
  4883. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  4884. fi
  4885. case $host_os in
  4886. darwin*)
  4887. lock_old_archive_extraction=yes ;;
  4888. *)
  4889. lock_old_archive_extraction=no ;;
  4890. esac
  4891. for ac_prog in gawk mawk nawk awk
  4892. do
  4893. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4894. set dummy $ac_prog; ac_word=$2
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4896. $as_echo_n "checking for $ac_word... " >&6; }
  4897. if ${ac_cv_prog_AWK+:} false; then :
  4898. $as_echo_n "(cached) " >&6
  4899. else
  4900. if test -n "$AWK"; then
  4901. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4902. else
  4903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4904. for as_dir in $PATH
  4905. do
  4906. IFS=$as_save_IFS
  4907. test -z "$as_dir" && as_dir=.
  4908. for ac_exec_ext in '' $ac_executable_extensions; do
  4909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4910. ac_cv_prog_AWK="$ac_prog"
  4911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4912. break 2
  4913. fi
  4914. done
  4915. done
  4916. IFS=$as_save_IFS
  4917. fi
  4918. fi
  4919. AWK=$ac_cv_prog_AWK
  4920. if test -n "$AWK"; then
  4921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4922. $as_echo "$AWK" >&6; }
  4923. else
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4925. $as_echo "no" >&6; }
  4926. fi
  4927. test -n "$AWK" && break
  4928. done
  4929. # If no C compiler was specified, use CC.
  4930. LTCC=${LTCC-"$CC"}
  4931. # If no C compiler flags were specified, use CFLAGS.
  4932. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4933. # Allow CC to be a program name with arguments.
  4934. compiler=$CC
  4935. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4937. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4938. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  4939. $as_echo_n "(cached) " >&6
  4940. else
  4941. # These are sane defaults that work on at least a few old systems.
  4942. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4943. # Character class describing NM global symbol codes.
  4944. symcode='[BCDEGRST]'
  4945. # Regexp to match symbols that can be accessed directly from C.
  4946. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4947. # Define system-specific variables.
  4948. case $host_os in
  4949. aix*)
  4950. symcode='[BCDT]'
  4951. ;;
  4952. cygwin* | mingw* | pw32* | cegcc*)
  4953. symcode='[ABCDGISTW]'
  4954. ;;
  4955. hpux*)
  4956. if test "$host_cpu" = ia64; then
  4957. symcode='[ABCDEGRST]'
  4958. fi
  4959. ;;
  4960. irix* | nonstopux*)
  4961. symcode='[BCDEGRST]'
  4962. ;;
  4963. osf*)
  4964. symcode='[BCDEGQRST]'
  4965. ;;
  4966. solaris*)
  4967. symcode='[BDRT]'
  4968. ;;
  4969. sco3.2v5*)
  4970. symcode='[DT]'
  4971. ;;
  4972. sysv4.2uw2*)
  4973. symcode='[DT]'
  4974. ;;
  4975. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  4976. symcode='[ABDT]'
  4977. ;;
  4978. sysv4)
  4979. symcode='[DFNSTU]'
  4980. ;;
  4981. esac
  4982. # If we're using GNU nm, then use its standard symbol codes.
  4983. case `$NM -V 2>&1` in
  4984. *GNU* | *'with BFD'*)
  4985. symcode='[ABCDGIRSTW]' ;;
  4986. esac
  4987. # Transform an extracted symbol line into a proper C declaration.
  4988. # Some systems (esp. on ia64) link data and code symbols differently,
  4989. # so use this general approach.
  4990. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4991. # Transform an extracted symbol line into symbol name and symbol address
  4992. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  4993. 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'"
  4994. # Handle CRLF in mingw tool chain
  4995. opt_cr=
  4996. case $build_os in
  4997. mingw*)
  4998. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4999. ;;
  5000. esac
  5001. # Try without a prefix underscore, then with it.
  5002. for ac_symprfx in "" "_"; do
  5003. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5004. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5005. # Write the raw and C identifiers.
  5006. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5007. # Fake it for dumpbin and say T for any non-static function
  5008. # and D for any global variable.
  5009. # Also find C++ and __fastcall symbols from MSVC++,
  5010. # which start with @ or ?.
  5011. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5012. " {last_section=section; section=\$ 3};"\
  5013. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5014. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5015. " \$ 0!~/External *\|/{next};"\
  5016. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5017. " {if(hide[section]) next};"\
  5018. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5019. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5020. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5021. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5022. " ' prfx=^$ac_symprfx"
  5023. else
  5024. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5025. fi
  5026. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5027. # Check to see that the pipe works correctly.
  5028. pipe_works=no
  5029. rm -f conftest*
  5030. cat > conftest.$ac_ext <<_LT_EOF
  5031. #ifdef __cplusplus
  5032. extern "C" {
  5033. #endif
  5034. char nm_test_var;
  5035. void nm_test_func(void);
  5036. void nm_test_func(void){}
  5037. #ifdef __cplusplus
  5038. }
  5039. #endif
  5040. int main(){nm_test_var='a';nm_test_func();return(0);}
  5041. _LT_EOF
  5042. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5043. (eval $ac_compile) 2>&5
  5044. ac_status=$?
  5045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5046. test $ac_status = 0; }; then
  5047. # Now try to grab the symbols.
  5048. nlist=conftest.nm
  5049. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5050. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5051. ac_status=$?
  5052. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5053. test $ac_status = 0; } && test -s "$nlist"; then
  5054. # Try sorting and uniquifying the output.
  5055. if sort "$nlist" | uniq > "$nlist"T; then
  5056. mv -f "$nlist"T "$nlist"
  5057. else
  5058. rm -f "$nlist"T
  5059. fi
  5060. # Make sure that we snagged all the symbols we need.
  5061. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5062. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5063. cat <<_LT_EOF > conftest.$ac_ext
  5064. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5065. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5066. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5067. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5068. # define LT_DLSYM_CONST
  5069. #elif defined(__osf__)
  5070. /* This system does not cope well with relocations in const data. */
  5071. # define LT_DLSYM_CONST
  5072. #else
  5073. # define LT_DLSYM_CONST const
  5074. #endif
  5075. #ifdef __cplusplus
  5076. extern "C" {
  5077. #endif
  5078. _LT_EOF
  5079. # Now generate the symbol file.
  5080. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5081. cat <<_LT_EOF >> conftest.$ac_ext
  5082. /* The mapping between symbol names and symbols. */
  5083. LT_DLSYM_CONST struct {
  5084. const char *name;
  5085. void *address;
  5086. }
  5087. lt__PROGRAM__LTX_preloaded_symbols[] =
  5088. {
  5089. { "@PROGRAM@", (void *) 0 },
  5090. _LT_EOF
  5091. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5092. cat <<\_LT_EOF >> conftest.$ac_ext
  5093. {0, (void *) 0}
  5094. };
  5095. /* This works around a problem in FreeBSD linker */
  5096. #ifdef FREEBSD_WORKAROUND
  5097. static const void *lt_preloaded_setup() {
  5098. return lt__PROGRAM__LTX_preloaded_symbols;
  5099. }
  5100. #endif
  5101. #ifdef __cplusplus
  5102. }
  5103. #endif
  5104. _LT_EOF
  5105. # Now try linking the two files.
  5106. mv conftest.$ac_objext conftstm.$ac_objext
  5107. lt_globsym_save_LIBS=$LIBS
  5108. lt_globsym_save_CFLAGS=$CFLAGS
  5109. LIBS="conftstm.$ac_objext"
  5110. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5111. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5112. (eval $ac_link) 2>&5
  5113. ac_status=$?
  5114. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5115. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5116. pipe_works=yes
  5117. fi
  5118. LIBS=$lt_globsym_save_LIBS
  5119. CFLAGS=$lt_globsym_save_CFLAGS
  5120. else
  5121. echo "cannot find nm_test_func in $nlist" >&5
  5122. fi
  5123. else
  5124. echo "cannot find nm_test_var in $nlist" >&5
  5125. fi
  5126. else
  5127. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5128. fi
  5129. else
  5130. echo "$progname: failed program was:" >&5
  5131. cat conftest.$ac_ext >&5
  5132. fi
  5133. rm -rf conftest* conftst*
  5134. # Do not use the global_symbol_pipe unless it works.
  5135. if test "$pipe_works" = yes; then
  5136. break
  5137. else
  5138. lt_cv_sys_global_symbol_pipe=
  5139. fi
  5140. done
  5141. fi
  5142. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5143. lt_cv_sys_global_symbol_to_cdecl=
  5144. fi
  5145. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5147. $as_echo "failed" >&6; }
  5148. else
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5150. $as_echo "ok" >&6; }
  5151. fi
  5152. # Response file support.
  5153. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5154. nm_file_list_spec='@'
  5155. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5156. nm_file_list_spec='@'
  5157. fi
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5159. $as_echo_n "checking for sysroot... " >&6; }
  5160. # Check whether --with-sysroot was given.
  5161. if test "${with_sysroot+set}" = set; then :
  5162. withval=$with_sysroot;
  5163. else
  5164. with_sysroot=no
  5165. fi
  5166. lt_sysroot=
  5167. case ${with_sysroot} in #(
  5168. yes)
  5169. if test "$GCC" = yes; then
  5170. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5171. fi
  5172. ;; #(
  5173. /*)
  5174. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5175. ;; #(
  5176. no|'')
  5177. ;; #(
  5178. *)
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5180. $as_echo "${with_sysroot}" >&6; }
  5181. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5182. ;;
  5183. esac
  5184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5185. $as_echo "${lt_sysroot:-no}" >&6; }
  5186. # Check whether --enable-libtool-lock was given.
  5187. if test "${enable_libtool_lock+set}" = set; then :
  5188. enableval=$enable_libtool_lock;
  5189. fi
  5190. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5191. # Some flags need to be propagated to the compiler or linker for good
  5192. # libtool support.
  5193. case $host in
  5194. ia64-*-hpux*)
  5195. # Find out which ABI we are using.
  5196. echo 'int i;' > conftest.$ac_ext
  5197. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5198. (eval $ac_compile) 2>&5
  5199. ac_status=$?
  5200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5201. test $ac_status = 0; }; then
  5202. case `/usr/bin/file conftest.$ac_objext` in
  5203. *ELF-32*)
  5204. HPUX_IA64_MODE="32"
  5205. ;;
  5206. *ELF-64*)
  5207. HPUX_IA64_MODE="64"
  5208. ;;
  5209. esac
  5210. fi
  5211. rm -rf conftest*
  5212. ;;
  5213. *-*-irix6*)
  5214. # Find out which ABI we are using.
  5215. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5216. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5217. (eval $ac_compile) 2>&5
  5218. ac_status=$?
  5219. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5220. test $ac_status = 0; }; then
  5221. if test "$lt_cv_prog_gnu_ld" = yes; then
  5222. case `/usr/bin/file conftest.$ac_objext` in
  5223. *32-bit*)
  5224. LD="${LD-ld} -melf32bsmip"
  5225. ;;
  5226. *N32*)
  5227. LD="${LD-ld} -melf32bmipn32"
  5228. ;;
  5229. *64-bit*)
  5230. LD="${LD-ld} -melf64bmip"
  5231. ;;
  5232. esac
  5233. else
  5234. case `/usr/bin/file conftest.$ac_objext` in
  5235. *32-bit*)
  5236. LD="${LD-ld} -32"
  5237. ;;
  5238. *N32*)
  5239. LD="${LD-ld} -n32"
  5240. ;;
  5241. *64-bit*)
  5242. LD="${LD-ld} -64"
  5243. ;;
  5244. esac
  5245. fi
  5246. fi
  5247. rm -rf conftest*
  5248. ;;
  5249. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5250. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5251. # Find out which ABI we are using.
  5252. echo 'int i;' > conftest.$ac_ext
  5253. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5254. (eval $ac_compile) 2>&5
  5255. ac_status=$?
  5256. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5257. test $ac_status = 0; }; then
  5258. case `/usr/bin/file conftest.o` in
  5259. *32-bit*)
  5260. case $host in
  5261. x86_64-*kfreebsd*-gnu)
  5262. LD="${LD-ld} -m elf_i386_fbsd"
  5263. ;;
  5264. x86_64-*linux*)
  5265. LD="${LD-ld} -m elf_i386"
  5266. ;;
  5267. ppc64-*linux*|powerpc64-*linux*)
  5268. LD="${LD-ld} -m elf32ppclinux"
  5269. ;;
  5270. s390x-*linux*)
  5271. LD="${LD-ld} -m elf_s390"
  5272. ;;
  5273. sparc64-*linux*)
  5274. LD="${LD-ld} -m elf32_sparc"
  5275. ;;
  5276. esac
  5277. ;;
  5278. *64-bit*)
  5279. case $host in
  5280. x86_64-*kfreebsd*-gnu)
  5281. LD="${LD-ld} -m elf_x86_64_fbsd"
  5282. ;;
  5283. x86_64-*linux*)
  5284. LD="${LD-ld} -m elf_x86_64"
  5285. ;;
  5286. powerpc64le-*linux*)
  5287. LD="${LD-ld} -m elf64lppc"
  5288. ;;
  5289. powerpc64-*linux*)
  5290. LD="${LD-ld} -m elf64ppc"
  5291. ;;
  5292. s390*-*linux*|s390*-*tpf*)
  5293. LD="${LD-ld} -m elf64_s390"
  5294. ;;
  5295. sparc*-*linux*)
  5296. LD="${LD-ld} -m elf64_sparc"
  5297. ;;
  5298. esac
  5299. ;;
  5300. esac
  5301. fi
  5302. rm -rf conftest*
  5303. ;;
  5304. *-*-sco3.2v5*)
  5305. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5306. SAVE_CFLAGS="$CFLAGS"
  5307. CFLAGS="$CFLAGS -belf"
  5308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5309. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5310. if ${lt_cv_cc_needs_belf+:} false; then :
  5311. $as_echo_n "(cached) " >&6
  5312. else
  5313. ac_ext=c
  5314. ac_cpp='$CPP $CPPFLAGS'
  5315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5319. /* end confdefs.h. */
  5320. int
  5321. main ()
  5322. {
  5323. ;
  5324. return 0;
  5325. }
  5326. _ACEOF
  5327. if ac_fn_c_try_link "$LINENO"; then :
  5328. lt_cv_cc_needs_belf=yes
  5329. else
  5330. lt_cv_cc_needs_belf=no
  5331. fi
  5332. rm -f core conftest.err conftest.$ac_objext \
  5333. conftest$ac_exeext conftest.$ac_ext
  5334. ac_ext=c
  5335. ac_cpp='$CPP $CPPFLAGS'
  5336. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5337. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5338. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5339. fi
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5341. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5342. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5343. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5344. CFLAGS="$SAVE_CFLAGS"
  5345. fi
  5346. ;;
  5347. *-*solaris*)
  5348. # Find out which ABI we are using.
  5349. echo 'int i;' > conftest.$ac_ext
  5350. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5351. (eval $ac_compile) 2>&5
  5352. ac_status=$?
  5353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5354. test $ac_status = 0; }; then
  5355. case `/usr/bin/file conftest.o` in
  5356. *64-bit*)
  5357. case $lt_cv_prog_gnu_ld in
  5358. yes*)
  5359. case $host in
  5360. i?86-*-solaris*)
  5361. LD="${LD-ld} -m elf_x86_64"
  5362. ;;
  5363. sparc*-*-solaris*)
  5364. LD="${LD-ld} -m elf64_sparc"
  5365. ;;
  5366. esac
  5367. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5368. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5369. LD="${LD-ld}_sol2"
  5370. fi
  5371. ;;
  5372. *)
  5373. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5374. LD="${LD-ld} -64"
  5375. fi
  5376. ;;
  5377. esac
  5378. ;;
  5379. esac
  5380. fi
  5381. rm -rf conftest*
  5382. ;;
  5383. esac
  5384. need_locks="$enable_libtool_lock"
  5385. if test -n "$ac_tool_prefix"; then
  5386. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5387. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5389. $as_echo_n "checking for $ac_word... " >&6; }
  5390. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5391. $as_echo_n "(cached) " >&6
  5392. else
  5393. if test -n "$MANIFEST_TOOL"; then
  5394. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5395. else
  5396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5397. for as_dir in $PATH
  5398. do
  5399. IFS=$as_save_IFS
  5400. test -z "$as_dir" && as_dir=.
  5401. for ac_exec_ext in '' $ac_executable_extensions; do
  5402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5403. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5405. break 2
  5406. fi
  5407. done
  5408. done
  5409. IFS=$as_save_IFS
  5410. fi
  5411. fi
  5412. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5413. if test -n "$MANIFEST_TOOL"; then
  5414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5415. $as_echo "$MANIFEST_TOOL" >&6; }
  5416. else
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5418. $as_echo "no" >&6; }
  5419. fi
  5420. fi
  5421. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5422. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5423. # Extract the first word of "mt", so it can be a program name with args.
  5424. set dummy mt; ac_word=$2
  5425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5426. $as_echo_n "checking for $ac_word... " >&6; }
  5427. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5428. $as_echo_n "(cached) " >&6
  5429. else
  5430. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5431. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5432. else
  5433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5434. for as_dir in $PATH
  5435. do
  5436. IFS=$as_save_IFS
  5437. test -z "$as_dir" && as_dir=.
  5438. for ac_exec_ext in '' $ac_executable_extensions; do
  5439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5440. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5442. break 2
  5443. fi
  5444. done
  5445. done
  5446. IFS=$as_save_IFS
  5447. fi
  5448. fi
  5449. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5450. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5452. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5453. else
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5455. $as_echo "no" >&6; }
  5456. fi
  5457. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5458. MANIFEST_TOOL=":"
  5459. else
  5460. case $cross_compiling:$ac_tool_warned in
  5461. yes:)
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5463. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5464. ac_tool_warned=yes ;;
  5465. esac
  5466. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5467. fi
  5468. else
  5469. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5470. fi
  5471. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5473. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5474. if ${lt_cv_path_mainfest_tool+:} false; then :
  5475. $as_echo_n "(cached) " >&6
  5476. else
  5477. lt_cv_path_mainfest_tool=no
  5478. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5479. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5480. cat conftest.err >&5
  5481. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5482. lt_cv_path_mainfest_tool=yes
  5483. fi
  5484. rm -f conftest*
  5485. fi
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5487. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5488. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5489. MANIFEST_TOOL=:
  5490. fi
  5491. case $host_os in
  5492. rhapsody* | darwin*)
  5493. if test -n "$ac_tool_prefix"; then
  5494. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5495. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5497. $as_echo_n "checking for $ac_word... " >&6; }
  5498. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. if test -n "$DSYMUTIL"; then
  5502. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5503. else
  5504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5505. for as_dir in $PATH
  5506. do
  5507. IFS=$as_save_IFS
  5508. test -z "$as_dir" && as_dir=.
  5509. for ac_exec_ext in '' $ac_executable_extensions; do
  5510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5511. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5513. break 2
  5514. fi
  5515. done
  5516. done
  5517. IFS=$as_save_IFS
  5518. fi
  5519. fi
  5520. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5521. if test -n "$DSYMUTIL"; then
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5523. $as_echo "$DSYMUTIL" >&6; }
  5524. else
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5526. $as_echo "no" >&6; }
  5527. fi
  5528. fi
  5529. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5530. ac_ct_DSYMUTIL=$DSYMUTIL
  5531. # Extract the first word of "dsymutil", so it can be a program name with args.
  5532. set dummy dsymutil; ac_word=$2
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5534. $as_echo_n "checking for $ac_word... " >&6; }
  5535. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. if test -n "$ac_ct_DSYMUTIL"; then
  5539. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5540. else
  5541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5542. for as_dir in $PATH
  5543. do
  5544. IFS=$as_save_IFS
  5545. test -z "$as_dir" && as_dir=.
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5558. if test -n "$ac_ct_DSYMUTIL"; then
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5560. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5561. else
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. $as_echo "no" >&6; }
  5564. fi
  5565. if test "x$ac_ct_DSYMUTIL" = x; then
  5566. DSYMUTIL=":"
  5567. else
  5568. case $cross_compiling:$ac_tool_warned in
  5569. yes:)
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5571. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5572. ac_tool_warned=yes ;;
  5573. esac
  5574. DSYMUTIL=$ac_ct_DSYMUTIL
  5575. fi
  5576. else
  5577. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5578. fi
  5579. if test -n "$ac_tool_prefix"; then
  5580. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5581. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5583. $as_echo_n "checking for $ac_word... " >&6; }
  5584. if ${ac_cv_prog_NMEDIT+:} false; then :
  5585. $as_echo_n "(cached) " >&6
  5586. else
  5587. if test -n "$NMEDIT"; then
  5588. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5589. else
  5590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5591. for as_dir in $PATH
  5592. do
  5593. IFS=$as_save_IFS
  5594. test -z "$as_dir" && as_dir=.
  5595. for ac_exec_ext in '' $ac_executable_extensions; do
  5596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5597. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5598. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5599. break 2
  5600. fi
  5601. done
  5602. done
  5603. IFS=$as_save_IFS
  5604. fi
  5605. fi
  5606. NMEDIT=$ac_cv_prog_NMEDIT
  5607. if test -n "$NMEDIT"; then
  5608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5609. $as_echo "$NMEDIT" >&6; }
  5610. else
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5612. $as_echo "no" >&6; }
  5613. fi
  5614. fi
  5615. if test -z "$ac_cv_prog_NMEDIT"; then
  5616. ac_ct_NMEDIT=$NMEDIT
  5617. # Extract the first word of "nmedit", so it can be a program name with args.
  5618. set dummy nmedit; ac_word=$2
  5619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5620. $as_echo_n "checking for $ac_word... " >&6; }
  5621. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5622. $as_echo_n "(cached) " >&6
  5623. else
  5624. if test -n "$ac_ct_NMEDIT"; then
  5625. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5626. else
  5627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5628. for as_dir in $PATH
  5629. do
  5630. IFS=$as_save_IFS
  5631. test -z "$as_dir" && as_dir=.
  5632. for ac_exec_ext in '' $ac_executable_extensions; do
  5633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5634. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5636. break 2
  5637. fi
  5638. done
  5639. done
  5640. IFS=$as_save_IFS
  5641. fi
  5642. fi
  5643. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5644. if test -n "$ac_ct_NMEDIT"; then
  5645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5646. $as_echo "$ac_ct_NMEDIT" >&6; }
  5647. else
  5648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5649. $as_echo "no" >&6; }
  5650. fi
  5651. if test "x$ac_ct_NMEDIT" = x; then
  5652. NMEDIT=":"
  5653. else
  5654. case $cross_compiling:$ac_tool_warned in
  5655. yes:)
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5658. ac_tool_warned=yes ;;
  5659. esac
  5660. NMEDIT=$ac_ct_NMEDIT
  5661. fi
  5662. else
  5663. NMEDIT="$ac_cv_prog_NMEDIT"
  5664. fi
  5665. if test -n "$ac_tool_prefix"; then
  5666. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5667. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5669. $as_echo_n "checking for $ac_word... " >&6; }
  5670. if ${ac_cv_prog_LIPO+:} false; then :
  5671. $as_echo_n "(cached) " >&6
  5672. else
  5673. if test -n "$LIPO"; then
  5674. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5675. else
  5676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5677. for as_dir in $PATH
  5678. do
  5679. IFS=$as_save_IFS
  5680. test -z "$as_dir" && as_dir=.
  5681. for ac_exec_ext in '' $ac_executable_extensions; do
  5682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5683. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5685. break 2
  5686. fi
  5687. done
  5688. done
  5689. IFS=$as_save_IFS
  5690. fi
  5691. fi
  5692. LIPO=$ac_cv_prog_LIPO
  5693. if test -n "$LIPO"; then
  5694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5695. $as_echo "$LIPO" >&6; }
  5696. else
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5698. $as_echo "no" >&6; }
  5699. fi
  5700. fi
  5701. if test -z "$ac_cv_prog_LIPO"; then
  5702. ac_ct_LIPO=$LIPO
  5703. # Extract the first word of "lipo", so it can be a program name with args.
  5704. set dummy lipo; ac_word=$2
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5706. $as_echo_n "checking for $ac_word... " >&6; }
  5707. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5708. $as_echo_n "(cached) " >&6
  5709. else
  5710. if test -n "$ac_ct_LIPO"; then
  5711. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5712. else
  5713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5714. for as_dir in $PATH
  5715. do
  5716. IFS=$as_save_IFS
  5717. test -z "$as_dir" && as_dir=.
  5718. for ac_exec_ext in '' $ac_executable_extensions; do
  5719. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5720. ac_cv_prog_ac_ct_LIPO="lipo"
  5721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5722. break 2
  5723. fi
  5724. done
  5725. done
  5726. IFS=$as_save_IFS
  5727. fi
  5728. fi
  5729. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5730. if test -n "$ac_ct_LIPO"; then
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5732. $as_echo "$ac_ct_LIPO" >&6; }
  5733. else
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5735. $as_echo "no" >&6; }
  5736. fi
  5737. if test "x$ac_ct_LIPO" = x; then
  5738. LIPO=":"
  5739. else
  5740. case $cross_compiling:$ac_tool_warned in
  5741. yes:)
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5743. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5744. ac_tool_warned=yes ;;
  5745. esac
  5746. LIPO=$ac_ct_LIPO
  5747. fi
  5748. else
  5749. LIPO="$ac_cv_prog_LIPO"
  5750. fi
  5751. if test -n "$ac_tool_prefix"; then
  5752. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5753. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5755. $as_echo_n "checking for $ac_word... " >&6; }
  5756. if ${ac_cv_prog_OTOOL+:} false; then :
  5757. $as_echo_n "(cached) " >&6
  5758. else
  5759. if test -n "$OTOOL"; then
  5760. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5761. else
  5762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5763. for as_dir in $PATH
  5764. do
  5765. IFS=$as_save_IFS
  5766. test -z "$as_dir" && as_dir=.
  5767. for ac_exec_ext in '' $ac_executable_extensions; do
  5768. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5769. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5770. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5771. break 2
  5772. fi
  5773. done
  5774. done
  5775. IFS=$as_save_IFS
  5776. fi
  5777. fi
  5778. OTOOL=$ac_cv_prog_OTOOL
  5779. if test -n "$OTOOL"; then
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5781. $as_echo "$OTOOL" >&6; }
  5782. else
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5784. $as_echo "no" >&6; }
  5785. fi
  5786. fi
  5787. if test -z "$ac_cv_prog_OTOOL"; then
  5788. ac_ct_OTOOL=$OTOOL
  5789. # Extract the first word of "otool", so it can be a program name with args.
  5790. set dummy otool; ac_word=$2
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5792. $as_echo_n "checking for $ac_word... " >&6; }
  5793. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5794. $as_echo_n "(cached) " >&6
  5795. else
  5796. if test -n "$ac_ct_OTOOL"; then
  5797. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5798. else
  5799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5800. for as_dir in $PATH
  5801. do
  5802. IFS=$as_save_IFS
  5803. test -z "$as_dir" && as_dir=.
  5804. for ac_exec_ext in '' $ac_executable_extensions; do
  5805. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5806. ac_cv_prog_ac_ct_OTOOL="otool"
  5807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5808. break 2
  5809. fi
  5810. done
  5811. done
  5812. IFS=$as_save_IFS
  5813. fi
  5814. fi
  5815. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5816. if test -n "$ac_ct_OTOOL"; then
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5818. $as_echo "$ac_ct_OTOOL" >&6; }
  5819. else
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5821. $as_echo "no" >&6; }
  5822. fi
  5823. if test "x$ac_ct_OTOOL" = x; then
  5824. OTOOL=":"
  5825. else
  5826. case $cross_compiling:$ac_tool_warned in
  5827. yes:)
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5829. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5830. ac_tool_warned=yes ;;
  5831. esac
  5832. OTOOL=$ac_ct_OTOOL
  5833. fi
  5834. else
  5835. OTOOL="$ac_cv_prog_OTOOL"
  5836. fi
  5837. if test -n "$ac_tool_prefix"; then
  5838. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5839. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5841. $as_echo_n "checking for $ac_word... " >&6; }
  5842. if ${ac_cv_prog_OTOOL64+:} false; then :
  5843. $as_echo_n "(cached) " >&6
  5844. else
  5845. if test -n "$OTOOL64"; then
  5846. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5847. else
  5848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5849. for as_dir in $PATH
  5850. do
  5851. IFS=$as_save_IFS
  5852. test -z "$as_dir" && as_dir=.
  5853. for ac_exec_ext in '' $ac_executable_extensions; do
  5854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5855. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5857. break 2
  5858. fi
  5859. done
  5860. done
  5861. IFS=$as_save_IFS
  5862. fi
  5863. fi
  5864. OTOOL64=$ac_cv_prog_OTOOL64
  5865. if test -n "$OTOOL64"; then
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5867. $as_echo "$OTOOL64" >&6; }
  5868. else
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5870. $as_echo "no" >&6; }
  5871. fi
  5872. fi
  5873. if test -z "$ac_cv_prog_OTOOL64"; then
  5874. ac_ct_OTOOL64=$OTOOL64
  5875. # Extract the first word of "otool64", so it can be a program name with args.
  5876. set dummy otool64; ac_word=$2
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5878. $as_echo_n "checking for $ac_word... " >&6; }
  5879. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5880. $as_echo_n "(cached) " >&6
  5881. else
  5882. if test -n "$ac_ct_OTOOL64"; then
  5883. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5884. else
  5885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5886. for as_dir in $PATH
  5887. do
  5888. IFS=$as_save_IFS
  5889. test -z "$as_dir" && as_dir=.
  5890. for ac_exec_ext in '' $ac_executable_extensions; do
  5891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5892. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5894. break 2
  5895. fi
  5896. done
  5897. done
  5898. IFS=$as_save_IFS
  5899. fi
  5900. fi
  5901. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5902. if test -n "$ac_ct_OTOOL64"; then
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5904. $as_echo "$ac_ct_OTOOL64" >&6; }
  5905. else
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5907. $as_echo "no" >&6; }
  5908. fi
  5909. if test "x$ac_ct_OTOOL64" = x; then
  5910. OTOOL64=":"
  5911. else
  5912. case $cross_compiling:$ac_tool_warned in
  5913. yes:)
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5915. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5916. ac_tool_warned=yes ;;
  5917. esac
  5918. OTOOL64=$ac_ct_OTOOL64
  5919. fi
  5920. else
  5921. OTOOL64="$ac_cv_prog_OTOOL64"
  5922. fi
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5924. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5925. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5926. $as_echo_n "(cached) " >&6
  5927. else
  5928. lt_cv_apple_cc_single_mod=no
  5929. if test -z "${LT_MULTI_MODULE}"; then
  5930. # By default we will add the -single_module flag. You can override
  5931. # by either setting the environment variable LT_MULTI_MODULE
  5932. # non-empty at configure time, or by adding -multi_module to the
  5933. # link flags.
  5934. rm -rf libconftest.dylib*
  5935. echo "int foo(void){return 1;}" > conftest.c
  5936. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5937. -dynamiclib -Wl,-single_module conftest.c" >&5
  5938. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5939. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5940. _lt_result=$?
  5941. # If there is a non-empty error log, and "single_module"
  5942. # appears in it, assume the flag caused a linker warning
  5943. if test -s conftest.err && $GREP single_module conftest.err; then
  5944. cat conftest.err >&5
  5945. # Otherwise, if the output was created with a 0 exit code from
  5946. # the compiler, it worked.
  5947. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  5948. lt_cv_apple_cc_single_mod=yes
  5949. else
  5950. cat conftest.err >&5
  5951. fi
  5952. rm -rf libconftest.dylib*
  5953. rm -f conftest.*
  5954. fi
  5955. fi
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  5957. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  5959. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  5960. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  5961. $as_echo_n "(cached) " >&6
  5962. else
  5963. lt_cv_ld_exported_symbols_list=no
  5964. save_LDFLAGS=$LDFLAGS
  5965. echo "_main" > conftest.sym
  5966. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  5967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5968. /* end confdefs.h. */
  5969. int
  5970. main ()
  5971. {
  5972. ;
  5973. return 0;
  5974. }
  5975. _ACEOF
  5976. if ac_fn_c_try_link "$LINENO"; then :
  5977. lt_cv_ld_exported_symbols_list=yes
  5978. else
  5979. lt_cv_ld_exported_symbols_list=no
  5980. fi
  5981. rm -f core conftest.err conftest.$ac_objext \
  5982. conftest$ac_exeext conftest.$ac_ext
  5983. LDFLAGS="$save_LDFLAGS"
  5984. fi
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  5986. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  5988. $as_echo_n "checking for -force_load linker flag... " >&6; }
  5989. if ${lt_cv_ld_force_load+:} false; then :
  5990. $as_echo_n "(cached) " >&6
  5991. else
  5992. lt_cv_ld_force_load=no
  5993. cat > conftest.c << _LT_EOF
  5994. int forced_loaded() { return 2;}
  5995. _LT_EOF
  5996. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  5997. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  5998. echo "$AR cru libconftest.a conftest.o" >&5
  5999. $AR cru libconftest.a conftest.o 2>&5
  6000. echo "$RANLIB libconftest.a" >&5
  6001. $RANLIB libconftest.a 2>&5
  6002. cat > conftest.c << _LT_EOF
  6003. int main() { return 0;}
  6004. _LT_EOF
  6005. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6006. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6007. _lt_result=$?
  6008. if test -s conftest.err && $GREP force_load conftest.err; then
  6009. cat conftest.err >&5
  6010. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6011. lt_cv_ld_force_load=yes
  6012. else
  6013. cat conftest.err >&5
  6014. fi
  6015. rm -f conftest.err libconftest.a conftest conftest.c
  6016. rm -rf conftest.dSYM
  6017. fi
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6019. $as_echo "$lt_cv_ld_force_load" >&6; }
  6020. case $host_os in
  6021. rhapsody* | darwin1.[012])
  6022. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6023. darwin1.*)
  6024. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6025. darwin*) # darwin 5.x on
  6026. # if running on 10.5 or later, the deployment target defaults
  6027. # to the OS version, if on x86, and 10.4, the deployment
  6028. # target defaults to 10.4. Don't you love it?
  6029. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6030. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6031. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6032. 10.[012]*)
  6033. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6034. 10.*)
  6035. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6036. esac
  6037. ;;
  6038. esac
  6039. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6040. _lt_dar_single_mod='$single_module'
  6041. fi
  6042. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6043. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6044. else
  6045. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6046. fi
  6047. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6048. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6049. else
  6050. _lt_dsymutil=
  6051. fi
  6052. ;;
  6053. esac
  6054. ac_ext=c
  6055. ac_cpp='$CPP $CPPFLAGS'
  6056. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6057. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6058. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6060. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6061. # On Suns, sometimes $CPP names a directory.
  6062. if test -n "$CPP" && test -d "$CPP"; then
  6063. CPP=
  6064. fi
  6065. if test -z "$CPP"; then
  6066. if ${ac_cv_prog_CPP+:} false; then :
  6067. $as_echo_n "(cached) " >&6
  6068. else
  6069. # Double quotes because CPP needs to be expanded
  6070. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6071. do
  6072. ac_preproc_ok=false
  6073. for ac_c_preproc_warn_flag in '' yes
  6074. do
  6075. # Use a header file that comes with gcc, so configuring glibc
  6076. # with a fresh cross-compiler works.
  6077. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6078. # <limits.h> exists even on freestanding compilers.
  6079. # On the NeXT, cc -E runs the code through the compiler's parser,
  6080. # not just through cpp. "Syntax error" is here to catch this case.
  6081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6082. /* end confdefs.h. */
  6083. #ifdef __STDC__
  6084. # include <limits.h>
  6085. #else
  6086. # include <assert.h>
  6087. #endif
  6088. Syntax error
  6089. _ACEOF
  6090. if ac_fn_c_try_cpp "$LINENO"; then :
  6091. else
  6092. # Broken: fails on valid input.
  6093. continue
  6094. fi
  6095. rm -f conftest.err conftest.i conftest.$ac_ext
  6096. # OK, works on sane cases. Now check whether nonexistent headers
  6097. # can be detected and how.
  6098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6099. /* end confdefs.h. */
  6100. #include <ac_nonexistent.h>
  6101. _ACEOF
  6102. if ac_fn_c_try_cpp "$LINENO"; then :
  6103. # Broken: success on invalid input.
  6104. continue
  6105. else
  6106. # Passes both tests.
  6107. ac_preproc_ok=:
  6108. break
  6109. fi
  6110. rm -f conftest.err conftest.i conftest.$ac_ext
  6111. done
  6112. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6113. rm -f conftest.i conftest.err conftest.$ac_ext
  6114. if $ac_preproc_ok; then :
  6115. break
  6116. fi
  6117. done
  6118. ac_cv_prog_CPP=$CPP
  6119. fi
  6120. CPP=$ac_cv_prog_CPP
  6121. else
  6122. ac_cv_prog_CPP=$CPP
  6123. fi
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6125. $as_echo "$CPP" >&6; }
  6126. ac_preproc_ok=false
  6127. for ac_c_preproc_warn_flag in '' yes
  6128. do
  6129. # Use a header file that comes with gcc, so configuring glibc
  6130. # with a fresh cross-compiler works.
  6131. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6132. # <limits.h> exists even on freestanding compilers.
  6133. # On the NeXT, cc -E runs the code through the compiler's parser,
  6134. # not just through cpp. "Syntax error" is here to catch this case.
  6135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6136. /* end confdefs.h. */
  6137. #ifdef __STDC__
  6138. # include <limits.h>
  6139. #else
  6140. # include <assert.h>
  6141. #endif
  6142. Syntax error
  6143. _ACEOF
  6144. if ac_fn_c_try_cpp "$LINENO"; then :
  6145. else
  6146. # Broken: fails on valid input.
  6147. continue
  6148. fi
  6149. rm -f conftest.err conftest.i conftest.$ac_ext
  6150. # OK, works on sane cases. Now check whether nonexistent headers
  6151. # can be detected and how.
  6152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6153. /* end confdefs.h. */
  6154. #include <ac_nonexistent.h>
  6155. _ACEOF
  6156. if ac_fn_c_try_cpp "$LINENO"; then :
  6157. # Broken: success on invalid input.
  6158. continue
  6159. else
  6160. # Passes both tests.
  6161. ac_preproc_ok=:
  6162. break
  6163. fi
  6164. rm -f conftest.err conftest.i conftest.$ac_ext
  6165. done
  6166. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6167. rm -f conftest.i conftest.err conftest.$ac_ext
  6168. if $ac_preproc_ok; then :
  6169. else
  6170. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6171. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6172. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6173. See \`config.log' for more details" "$LINENO" 5; }
  6174. fi
  6175. ac_ext=c
  6176. ac_cpp='$CPP $CPPFLAGS'
  6177. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6178. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6179. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6181. $as_echo_n "checking for ANSI C header files... " >&6; }
  6182. if ${ac_cv_header_stdc+:} false; then :
  6183. $as_echo_n "(cached) " >&6
  6184. else
  6185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6186. /* end confdefs.h. */
  6187. #include <stdlib.h>
  6188. #include <stdarg.h>
  6189. #include <string.h>
  6190. #include <float.h>
  6191. int
  6192. main ()
  6193. {
  6194. ;
  6195. return 0;
  6196. }
  6197. _ACEOF
  6198. if ac_fn_c_try_compile "$LINENO"; then :
  6199. ac_cv_header_stdc=yes
  6200. else
  6201. ac_cv_header_stdc=no
  6202. fi
  6203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6204. if test $ac_cv_header_stdc = yes; then
  6205. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6207. /* end confdefs.h. */
  6208. #include <string.h>
  6209. _ACEOF
  6210. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6211. $EGREP "memchr" >/dev/null 2>&1; then :
  6212. else
  6213. ac_cv_header_stdc=no
  6214. fi
  6215. rm -f conftest*
  6216. fi
  6217. if test $ac_cv_header_stdc = yes; then
  6218. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6220. /* end confdefs.h. */
  6221. #include <stdlib.h>
  6222. _ACEOF
  6223. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6224. $EGREP "free" >/dev/null 2>&1; then :
  6225. else
  6226. ac_cv_header_stdc=no
  6227. fi
  6228. rm -f conftest*
  6229. fi
  6230. if test $ac_cv_header_stdc = yes; then
  6231. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6232. if test "$cross_compiling" = yes; then :
  6233. :
  6234. else
  6235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6236. /* end confdefs.h. */
  6237. #include <ctype.h>
  6238. #include <stdlib.h>
  6239. #if ((' ' & 0x0FF) == 0x020)
  6240. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6241. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6242. #else
  6243. # define ISLOWER(c) \
  6244. (('a' <= (c) && (c) <= 'i') \
  6245. || ('j' <= (c) && (c) <= 'r') \
  6246. || ('s' <= (c) && (c) <= 'z'))
  6247. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6248. #endif
  6249. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6250. int
  6251. main ()
  6252. {
  6253. int i;
  6254. for (i = 0; i < 256; i++)
  6255. if (XOR (islower (i), ISLOWER (i))
  6256. || toupper (i) != TOUPPER (i))
  6257. return 2;
  6258. return 0;
  6259. }
  6260. _ACEOF
  6261. if ac_fn_c_try_run "$LINENO"; then :
  6262. else
  6263. ac_cv_header_stdc=no
  6264. fi
  6265. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6266. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6267. fi
  6268. fi
  6269. fi
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6271. $as_echo "$ac_cv_header_stdc" >&6; }
  6272. if test $ac_cv_header_stdc = yes; then
  6273. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6274. fi
  6275. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6276. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6277. inttypes.h stdint.h unistd.h
  6278. do :
  6279. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6280. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6281. "
  6282. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6283. cat >>confdefs.h <<_ACEOF
  6284. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6285. _ACEOF
  6286. fi
  6287. done
  6288. for ac_header in dlfcn.h
  6289. do :
  6290. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6291. "
  6292. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6293. cat >>confdefs.h <<_ACEOF
  6294. #define HAVE_DLFCN_H 1
  6295. _ACEOF
  6296. fi
  6297. done
  6298. # Set options
  6299. enable_win32_dll=yes
  6300. case $host in
  6301. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  6302. if test -n "$ac_tool_prefix"; then
  6303. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  6304. set dummy ${ac_tool_prefix}as; ac_word=$2
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6306. $as_echo_n "checking for $ac_word... " >&6; }
  6307. if ${ac_cv_prog_AS+:} false; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. if test -n "$AS"; then
  6311. ac_cv_prog_AS="$AS" # Let the user override the test.
  6312. else
  6313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6314. for as_dir in $PATH
  6315. do
  6316. IFS=$as_save_IFS
  6317. test -z "$as_dir" && as_dir=.
  6318. for ac_exec_ext in '' $ac_executable_extensions; do
  6319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6320. ac_cv_prog_AS="${ac_tool_prefix}as"
  6321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6322. break 2
  6323. fi
  6324. done
  6325. done
  6326. IFS=$as_save_IFS
  6327. fi
  6328. fi
  6329. AS=$ac_cv_prog_AS
  6330. if test -n "$AS"; then
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  6332. $as_echo "$AS" >&6; }
  6333. else
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6335. $as_echo "no" >&6; }
  6336. fi
  6337. fi
  6338. if test -z "$ac_cv_prog_AS"; then
  6339. ac_ct_AS=$AS
  6340. # Extract the first word of "as", so it can be a program name with args.
  6341. set dummy as; ac_word=$2
  6342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6343. $as_echo_n "checking for $ac_word... " >&6; }
  6344. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  6345. $as_echo_n "(cached) " >&6
  6346. else
  6347. if test -n "$ac_ct_AS"; then
  6348. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  6349. else
  6350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6351. for as_dir in $PATH
  6352. do
  6353. IFS=$as_save_IFS
  6354. test -z "$as_dir" && as_dir=.
  6355. for ac_exec_ext in '' $ac_executable_extensions; do
  6356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6357. ac_cv_prog_ac_ct_AS="as"
  6358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6359. break 2
  6360. fi
  6361. done
  6362. done
  6363. IFS=$as_save_IFS
  6364. fi
  6365. fi
  6366. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  6367. if test -n "$ac_ct_AS"; then
  6368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  6369. $as_echo "$ac_ct_AS" >&6; }
  6370. else
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6372. $as_echo "no" >&6; }
  6373. fi
  6374. if test "x$ac_ct_AS" = x; then
  6375. AS="false"
  6376. else
  6377. case $cross_compiling:$ac_tool_warned in
  6378. yes:)
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6380. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6381. ac_tool_warned=yes ;;
  6382. esac
  6383. AS=$ac_ct_AS
  6384. fi
  6385. else
  6386. AS="$ac_cv_prog_AS"
  6387. fi
  6388. if test -n "$ac_tool_prefix"; then
  6389. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  6390. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6392. $as_echo_n "checking for $ac_word... " >&6; }
  6393. if ${ac_cv_prog_DLLTOOL+:} false; then :
  6394. $as_echo_n "(cached) " >&6
  6395. else
  6396. if test -n "$DLLTOOL"; then
  6397. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  6398. else
  6399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6400. for as_dir in $PATH
  6401. do
  6402. IFS=$as_save_IFS
  6403. test -z "$as_dir" && as_dir=.
  6404. for ac_exec_ext in '' $ac_executable_extensions; do
  6405. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6406. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  6407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6408. break 2
  6409. fi
  6410. done
  6411. done
  6412. IFS=$as_save_IFS
  6413. fi
  6414. fi
  6415. DLLTOOL=$ac_cv_prog_DLLTOOL
  6416. if test -n "$DLLTOOL"; then
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  6418. $as_echo "$DLLTOOL" >&6; }
  6419. else
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6421. $as_echo "no" >&6; }
  6422. fi
  6423. fi
  6424. if test -z "$ac_cv_prog_DLLTOOL"; then
  6425. ac_ct_DLLTOOL=$DLLTOOL
  6426. # Extract the first word of "dlltool", so it can be a program name with args.
  6427. set dummy dlltool; ac_word=$2
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6429. $as_echo_n "checking for $ac_word... " >&6; }
  6430. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  6431. $as_echo_n "(cached) " >&6
  6432. else
  6433. if test -n "$ac_ct_DLLTOOL"; then
  6434. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  6435. else
  6436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6437. for as_dir in $PATH
  6438. do
  6439. IFS=$as_save_IFS
  6440. test -z "$as_dir" && as_dir=.
  6441. for ac_exec_ext in '' $ac_executable_extensions; do
  6442. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6443. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  6444. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6445. break 2
  6446. fi
  6447. done
  6448. done
  6449. IFS=$as_save_IFS
  6450. fi
  6451. fi
  6452. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  6453. if test -n "$ac_ct_DLLTOOL"; then
  6454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  6455. $as_echo "$ac_ct_DLLTOOL" >&6; }
  6456. else
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6458. $as_echo "no" >&6; }
  6459. fi
  6460. if test "x$ac_ct_DLLTOOL" = x; then
  6461. DLLTOOL="false"
  6462. else
  6463. case $cross_compiling:$ac_tool_warned in
  6464. yes:)
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6466. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6467. ac_tool_warned=yes ;;
  6468. esac
  6469. DLLTOOL=$ac_ct_DLLTOOL
  6470. fi
  6471. else
  6472. DLLTOOL="$ac_cv_prog_DLLTOOL"
  6473. fi
  6474. if test -n "$ac_tool_prefix"; then
  6475. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6476. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6478. $as_echo_n "checking for $ac_word... " >&6; }
  6479. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6480. $as_echo_n "(cached) " >&6
  6481. else
  6482. if test -n "$OBJDUMP"; then
  6483. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6484. else
  6485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6486. for as_dir in $PATH
  6487. do
  6488. IFS=$as_save_IFS
  6489. test -z "$as_dir" && as_dir=.
  6490. for ac_exec_ext in '' $ac_executable_extensions; do
  6491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6492. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6494. break 2
  6495. fi
  6496. done
  6497. done
  6498. IFS=$as_save_IFS
  6499. fi
  6500. fi
  6501. OBJDUMP=$ac_cv_prog_OBJDUMP
  6502. if test -n "$OBJDUMP"; then
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6504. $as_echo "$OBJDUMP" >&6; }
  6505. else
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6507. $as_echo "no" >&6; }
  6508. fi
  6509. fi
  6510. if test -z "$ac_cv_prog_OBJDUMP"; then
  6511. ac_ct_OBJDUMP=$OBJDUMP
  6512. # Extract the first word of "objdump", so it can be a program name with args.
  6513. set dummy objdump; ac_word=$2
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6515. $as_echo_n "checking for $ac_word... " >&6; }
  6516. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6517. $as_echo_n "(cached) " >&6
  6518. else
  6519. if test -n "$ac_ct_OBJDUMP"; then
  6520. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6521. else
  6522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6523. for as_dir in $PATH
  6524. do
  6525. IFS=$as_save_IFS
  6526. test -z "$as_dir" && as_dir=.
  6527. for ac_exec_ext in '' $ac_executable_extensions; do
  6528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6529. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6531. break 2
  6532. fi
  6533. done
  6534. done
  6535. IFS=$as_save_IFS
  6536. fi
  6537. fi
  6538. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6539. if test -n "$ac_ct_OBJDUMP"; then
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6541. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6542. else
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6544. $as_echo "no" >&6; }
  6545. fi
  6546. if test "x$ac_ct_OBJDUMP" = x; then
  6547. OBJDUMP="false"
  6548. else
  6549. case $cross_compiling:$ac_tool_warned in
  6550. yes:)
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6552. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6553. ac_tool_warned=yes ;;
  6554. esac
  6555. OBJDUMP=$ac_ct_OBJDUMP
  6556. fi
  6557. else
  6558. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6559. fi
  6560. ;;
  6561. esac
  6562. test -z "$AS" && AS=as
  6563. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6564. test -z "$OBJDUMP" && OBJDUMP=objdump
  6565. enable_dlopen=no
  6566. # Check whether --enable-shared was given.
  6567. if test "${enable_shared+set}" = set; then :
  6568. enableval=$enable_shared; p=${PACKAGE-default}
  6569. case $enableval in
  6570. yes) enable_shared=yes ;;
  6571. no) enable_shared=no ;;
  6572. *)
  6573. enable_shared=no
  6574. # Look at the argument we got. We use all the common list separators.
  6575. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6576. for pkg in $enableval; do
  6577. IFS="$lt_save_ifs"
  6578. if test "X$pkg" = "X$p"; then
  6579. enable_shared=yes
  6580. fi
  6581. done
  6582. IFS="$lt_save_ifs"
  6583. ;;
  6584. esac
  6585. else
  6586. enable_shared=yes
  6587. fi
  6588. # Check whether --enable-static was given.
  6589. if test "${enable_static+set}" = set; then :
  6590. enableval=$enable_static; p=${PACKAGE-default}
  6591. case $enableval in
  6592. yes) enable_static=yes ;;
  6593. no) enable_static=no ;;
  6594. *)
  6595. enable_static=no
  6596. # Look at the argument we got. We use all the common list separators.
  6597. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6598. for pkg in $enableval; do
  6599. IFS="$lt_save_ifs"
  6600. if test "X$pkg" = "X$p"; then
  6601. enable_static=yes
  6602. fi
  6603. done
  6604. IFS="$lt_save_ifs"
  6605. ;;
  6606. esac
  6607. else
  6608. enable_static=yes
  6609. fi
  6610. # Check whether --with-pic was given.
  6611. if test "${with_pic+set}" = set; then :
  6612. withval=$with_pic; lt_p=${PACKAGE-default}
  6613. case $withval in
  6614. yes|no) pic_mode=$withval ;;
  6615. *)
  6616. pic_mode=default
  6617. # Look at the argument we got. We use all the common list separators.
  6618. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6619. for lt_pkg in $withval; do
  6620. IFS="$lt_save_ifs"
  6621. if test "X$lt_pkg" = "X$lt_p"; then
  6622. pic_mode=yes
  6623. fi
  6624. done
  6625. IFS="$lt_save_ifs"
  6626. ;;
  6627. esac
  6628. else
  6629. pic_mode=default
  6630. fi
  6631. test -z "$pic_mode" && pic_mode=default
  6632. # Check whether --enable-fast-install was given.
  6633. if test "${enable_fast_install+set}" = set; then :
  6634. enableval=$enable_fast_install; p=${PACKAGE-default}
  6635. case $enableval in
  6636. yes) enable_fast_install=yes ;;
  6637. no) enable_fast_install=no ;;
  6638. *)
  6639. enable_fast_install=no
  6640. # Look at the argument we got. We use all the common list separators.
  6641. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6642. for pkg in $enableval; do
  6643. IFS="$lt_save_ifs"
  6644. if test "X$pkg" = "X$p"; then
  6645. enable_fast_install=yes
  6646. fi
  6647. done
  6648. IFS="$lt_save_ifs"
  6649. ;;
  6650. esac
  6651. else
  6652. enable_fast_install=yes
  6653. fi
  6654. # This can be used to rebuild libtool when needed
  6655. LIBTOOL_DEPS="$ltmain"
  6656. # Always use our own libtool.
  6657. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6658. test -z "$LN_S" && LN_S="ln -s"
  6659. if test -n "${ZSH_VERSION+set}" ; then
  6660. setopt NO_GLOB_SUBST
  6661. fi
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6663. $as_echo_n "checking for objdir... " >&6; }
  6664. if ${lt_cv_objdir+:} false; then :
  6665. $as_echo_n "(cached) " >&6
  6666. else
  6667. rm -f .libs 2>/dev/null
  6668. mkdir .libs 2>/dev/null
  6669. if test -d .libs; then
  6670. lt_cv_objdir=.libs
  6671. else
  6672. # MS-DOS does not allow filenames that begin with a dot.
  6673. lt_cv_objdir=_libs
  6674. fi
  6675. rmdir .libs 2>/dev/null
  6676. fi
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6678. $as_echo "$lt_cv_objdir" >&6; }
  6679. objdir=$lt_cv_objdir
  6680. cat >>confdefs.h <<_ACEOF
  6681. #define LT_OBJDIR "$lt_cv_objdir/"
  6682. _ACEOF
  6683. case $host_os in
  6684. aix3*)
  6685. # AIX sometimes has problems with the GCC collect2 program. For some
  6686. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6687. # vanish in a puff of smoke.
  6688. if test "X${COLLECT_NAMES+set}" != Xset; then
  6689. COLLECT_NAMES=
  6690. export COLLECT_NAMES
  6691. fi
  6692. ;;
  6693. esac
  6694. # Global variables:
  6695. ofile=libtool
  6696. can_build_shared=yes
  6697. # All known linkers require a `.a' archive for static linking (except MSVC,
  6698. # which needs '.lib').
  6699. libext=a
  6700. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6701. old_CC="$CC"
  6702. old_CFLAGS="$CFLAGS"
  6703. # Set sane defaults for various variables
  6704. test -z "$CC" && CC=cc
  6705. test -z "$LTCC" && LTCC=$CC
  6706. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6707. test -z "$LD" && LD=ld
  6708. test -z "$ac_objext" && ac_objext=o
  6709. for cc_temp in $compiler""; do
  6710. case $cc_temp in
  6711. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6712. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6713. \-*) ;;
  6714. *) break;;
  6715. esac
  6716. done
  6717. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6718. # Only perform the check for file, if the check method requires it
  6719. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6720. case $deplibs_check_method in
  6721. file_magic*)
  6722. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6724. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6725. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6726. $as_echo_n "(cached) " >&6
  6727. else
  6728. case $MAGIC_CMD in
  6729. [\\/*] | ?:[\\/]*)
  6730. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6731. ;;
  6732. *)
  6733. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6734. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6735. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6736. for ac_dir in $ac_dummy; do
  6737. IFS="$lt_save_ifs"
  6738. test -z "$ac_dir" && ac_dir=.
  6739. if test -f $ac_dir/${ac_tool_prefix}file; then
  6740. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6741. if test -n "$file_magic_test_file"; then
  6742. case $deplibs_check_method in
  6743. "file_magic "*)
  6744. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6745. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6746. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6747. $EGREP "$file_magic_regex" > /dev/null; then
  6748. :
  6749. else
  6750. cat <<_LT_EOF 1>&2
  6751. *** Warning: the command libtool uses to detect shared libraries,
  6752. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6753. *** The result is that libtool may fail to recognize shared libraries
  6754. *** as such. This will affect the creation of libtool libraries that
  6755. *** depend on shared libraries, but programs linked with such libtool
  6756. *** libraries will work regardless of this problem. Nevertheless, you
  6757. *** may want to report the problem to your system manager and/or to
  6758. *** bug-libtool@gnu.org
  6759. _LT_EOF
  6760. fi ;;
  6761. esac
  6762. fi
  6763. break
  6764. fi
  6765. done
  6766. IFS="$lt_save_ifs"
  6767. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6768. ;;
  6769. esac
  6770. fi
  6771. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6772. if test -n "$MAGIC_CMD"; then
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6774. $as_echo "$MAGIC_CMD" >&6; }
  6775. else
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6777. $as_echo "no" >&6; }
  6778. fi
  6779. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6780. if test -n "$ac_tool_prefix"; then
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6782. $as_echo_n "checking for file... " >&6; }
  6783. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6784. $as_echo_n "(cached) " >&6
  6785. else
  6786. case $MAGIC_CMD in
  6787. [\\/*] | ?:[\\/]*)
  6788. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6789. ;;
  6790. *)
  6791. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6792. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6793. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6794. for ac_dir in $ac_dummy; do
  6795. IFS="$lt_save_ifs"
  6796. test -z "$ac_dir" && ac_dir=.
  6797. if test -f $ac_dir/file; then
  6798. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6799. if test -n "$file_magic_test_file"; then
  6800. case $deplibs_check_method in
  6801. "file_magic "*)
  6802. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6803. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6804. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6805. $EGREP "$file_magic_regex" > /dev/null; then
  6806. :
  6807. else
  6808. cat <<_LT_EOF 1>&2
  6809. *** Warning: the command libtool uses to detect shared libraries,
  6810. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6811. *** The result is that libtool may fail to recognize shared libraries
  6812. *** as such. This will affect the creation of libtool libraries that
  6813. *** depend on shared libraries, but programs linked with such libtool
  6814. *** libraries will work regardless of this problem. Nevertheless, you
  6815. *** may want to report the problem to your system manager and/or to
  6816. *** bug-libtool@gnu.org
  6817. _LT_EOF
  6818. fi ;;
  6819. esac
  6820. fi
  6821. break
  6822. fi
  6823. done
  6824. IFS="$lt_save_ifs"
  6825. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6826. ;;
  6827. esac
  6828. fi
  6829. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6830. if test -n "$MAGIC_CMD"; then
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6832. $as_echo "$MAGIC_CMD" >&6; }
  6833. else
  6834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6835. $as_echo "no" >&6; }
  6836. fi
  6837. else
  6838. MAGIC_CMD=:
  6839. fi
  6840. fi
  6841. fi
  6842. ;;
  6843. esac
  6844. # Use C for the default configuration in the libtool script
  6845. lt_save_CC="$CC"
  6846. ac_ext=c
  6847. ac_cpp='$CPP $CPPFLAGS'
  6848. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6849. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6850. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6851. # Source file extension for C test sources.
  6852. ac_ext=c
  6853. # Object file extension for compiled C test sources.
  6854. objext=o
  6855. objext=$objext
  6856. # Code to be used in simple compile tests
  6857. lt_simple_compile_test_code="int some_variable = 0;"
  6858. # Code to be used in simple link tests
  6859. lt_simple_link_test_code='int main(){return(0);}'
  6860. # If no C compiler was specified, use CC.
  6861. LTCC=${LTCC-"$CC"}
  6862. # If no C compiler flags were specified, use CFLAGS.
  6863. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6864. # Allow CC to be a program name with arguments.
  6865. compiler=$CC
  6866. # Save the default compiler, since it gets overwritten when the other
  6867. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6868. compiler_DEFAULT=$CC
  6869. # save warnings/boilerplate of simple test code
  6870. ac_outfile=conftest.$ac_objext
  6871. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6872. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6873. _lt_compiler_boilerplate=`cat conftest.err`
  6874. $RM conftest*
  6875. ac_outfile=conftest.$ac_objext
  6876. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6877. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6878. _lt_linker_boilerplate=`cat conftest.err`
  6879. $RM -r conftest*
  6880. ## CAVEAT EMPTOR:
  6881. ## There is no encapsulation within the following macros, do not change
  6882. ## the running order or otherwise move them around unless you know exactly
  6883. ## what you are doing...
  6884. if test -n "$compiler"; then
  6885. lt_prog_compiler_no_builtin_flag=
  6886. if test "$GCC" = yes; then
  6887. case $cc_basename in
  6888. nvcc*)
  6889. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6890. *)
  6891. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6892. esac
  6893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6894. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6895. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6896. $as_echo_n "(cached) " >&6
  6897. else
  6898. lt_cv_prog_compiler_rtti_exceptions=no
  6899. ac_outfile=conftest.$ac_objext
  6900. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6901. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6902. # Insert the option either (1) after the last *FLAGS variable, or
  6903. # (2) before a word containing "conftest.", or (3) at the end.
  6904. # Note that $ac_compile itself does not contain backslashes and begins
  6905. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6906. # The option is referenced via a variable to avoid confusing sed.
  6907. lt_compile=`echo "$ac_compile" | $SED \
  6908. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6909. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6910. -e 's:$: $lt_compiler_flag:'`
  6911. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6912. (eval "$lt_compile" 2>conftest.err)
  6913. ac_status=$?
  6914. cat conftest.err >&5
  6915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6916. if (exit $ac_status) && test -s "$ac_outfile"; then
  6917. # The compiler can only warn and ignore the option if not recognized
  6918. # So say no if there are warnings other than the usual output.
  6919. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6920. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6921. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6922. lt_cv_prog_compiler_rtti_exceptions=yes
  6923. fi
  6924. fi
  6925. $RM conftest*
  6926. fi
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6928. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6929. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6930. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6931. else
  6932. :
  6933. fi
  6934. fi
  6935. lt_prog_compiler_wl=
  6936. lt_prog_compiler_pic=
  6937. lt_prog_compiler_static=
  6938. if test "$GCC" = yes; then
  6939. lt_prog_compiler_wl='-Wl,'
  6940. lt_prog_compiler_static='-static'
  6941. case $host_os in
  6942. aix*)
  6943. # All AIX code is PIC.
  6944. if test "$host_cpu" = ia64; then
  6945. # AIX 5 now supports IA64 processor
  6946. lt_prog_compiler_static='-Bstatic'
  6947. fi
  6948. ;;
  6949. amigaos*)
  6950. case $host_cpu in
  6951. powerpc)
  6952. # see comment about AmigaOS4 .so support
  6953. lt_prog_compiler_pic='-fPIC'
  6954. ;;
  6955. m68k)
  6956. # FIXME: we need at least 68020 code to build shared libraries, but
  6957. # adding the `-m68020' flag to GCC prevents building anything better,
  6958. # like `-m68040'.
  6959. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6960. ;;
  6961. esac
  6962. ;;
  6963. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6964. # PIC is the default for these OSes.
  6965. ;;
  6966. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6967. # This hack is so that the source file can tell whether it is being
  6968. # built for inclusion in a dll (and should export symbols for example).
  6969. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6970. # (--disable-auto-import) libraries
  6971. lt_prog_compiler_pic='-DDLL_EXPORT'
  6972. ;;
  6973. darwin* | rhapsody*)
  6974. # PIC is the default on this platform
  6975. # Common symbols not allowed in MH_DYLIB files
  6976. lt_prog_compiler_pic='-fno-common'
  6977. ;;
  6978. haiku*)
  6979. # PIC is the default for Haiku.
  6980. # The "-static" flag exists, but is broken.
  6981. lt_prog_compiler_static=
  6982. ;;
  6983. hpux*)
  6984. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6985. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6986. # sets the default TLS model and affects inlining.
  6987. case $host_cpu in
  6988. hppa*64*)
  6989. # +Z the default
  6990. ;;
  6991. *)
  6992. lt_prog_compiler_pic='-fPIC'
  6993. ;;
  6994. esac
  6995. ;;
  6996. interix[3-9]*)
  6997. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6998. # Instead, we relocate shared libraries at runtime.
  6999. ;;
  7000. msdosdjgpp*)
  7001. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7002. # on systems that don't support them.
  7003. lt_prog_compiler_can_build_shared=no
  7004. enable_shared=no
  7005. ;;
  7006. *nto* | *qnx*)
  7007. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7008. # it will coredump.
  7009. lt_prog_compiler_pic='-fPIC -shared'
  7010. ;;
  7011. sysv4*MP*)
  7012. if test -d /usr/nec; then
  7013. lt_prog_compiler_pic=-Kconform_pic
  7014. fi
  7015. ;;
  7016. *)
  7017. lt_prog_compiler_pic='-fPIC'
  7018. ;;
  7019. esac
  7020. case $cc_basename in
  7021. nvcc*) # Cuda Compiler Driver 2.2
  7022. lt_prog_compiler_wl='-Xlinker '
  7023. if test -n "$lt_prog_compiler_pic"; then
  7024. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7025. fi
  7026. ;;
  7027. esac
  7028. else
  7029. # PORTME Check for flag to pass linker flags through the system compiler.
  7030. case $host_os in
  7031. aix*)
  7032. lt_prog_compiler_wl='-Wl,'
  7033. if test "$host_cpu" = ia64; then
  7034. # AIX 5 now supports IA64 processor
  7035. lt_prog_compiler_static='-Bstatic'
  7036. else
  7037. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7038. fi
  7039. ;;
  7040. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7041. # This hack is so that the source file can tell whether it is being
  7042. # built for inclusion in a dll (and should export symbols for example).
  7043. lt_prog_compiler_pic='-DDLL_EXPORT'
  7044. ;;
  7045. hpux9* | hpux10* | hpux11*)
  7046. lt_prog_compiler_wl='-Wl,'
  7047. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7048. # not for PA HP-UX.
  7049. case $host_cpu in
  7050. hppa*64*|ia64*)
  7051. # +Z the default
  7052. ;;
  7053. *)
  7054. lt_prog_compiler_pic='+Z'
  7055. ;;
  7056. esac
  7057. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7058. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7059. ;;
  7060. irix5* | irix6* | nonstopux*)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. # PIC (with -KPIC) is the default.
  7063. lt_prog_compiler_static='-non_shared'
  7064. ;;
  7065. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7066. case $cc_basename in
  7067. # old Intel for x86_64 which still supported -KPIC.
  7068. ecc*)
  7069. lt_prog_compiler_wl='-Wl,'
  7070. lt_prog_compiler_pic='-KPIC'
  7071. lt_prog_compiler_static='-static'
  7072. ;;
  7073. # icc used to be incompatible with GCC.
  7074. # ICC 10 doesn't accept -KPIC any more.
  7075. icc* | ifort*)
  7076. lt_prog_compiler_wl='-Wl,'
  7077. lt_prog_compiler_pic='-fPIC'
  7078. lt_prog_compiler_static='-static'
  7079. ;;
  7080. # Lahey Fortran 8.1.
  7081. lf95*)
  7082. lt_prog_compiler_wl='-Wl,'
  7083. lt_prog_compiler_pic='--shared'
  7084. lt_prog_compiler_static='--static'
  7085. ;;
  7086. nagfor*)
  7087. # NAG Fortran compiler
  7088. lt_prog_compiler_wl='-Wl,-Wl,,'
  7089. lt_prog_compiler_pic='-PIC'
  7090. lt_prog_compiler_static='-Bstatic'
  7091. ;;
  7092. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7093. # Portland Group compilers (*not* the Pentium gcc compiler,
  7094. # which looks to be a dead project)
  7095. lt_prog_compiler_wl='-Wl,'
  7096. lt_prog_compiler_pic='-fpic'
  7097. lt_prog_compiler_static='-Bstatic'
  7098. ;;
  7099. ccc*)
  7100. lt_prog_compiler_wl='-Wl,'
  7101. # All Alpha code is PIC.
  7102. lt_prog_compiler_static='-non_shared'
  7103. ;;
  7104. xl* | bgxl* | bgf* | mpixl*)
  7105. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7106. lt_prog_compiler_wl='-Wl,'
  7107. lt_prog_compiler_pic='-qpic'
  7108. lt_prog_compiler_static='-qstaticlink'
  7109. ;;
  7110. *)
  7111. case `$CC -V 2>&1 | sed 5q` in
  7112. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7113. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7114. lt_prog_compiler_pic='-KPIC'
  7115. lt_prog_compiler_static='-Bstatic'
  7116. lt_prog_compiler_wl=''
  7117. ;;
  7118. *Sun\ F* | *Sun*Fortran*)
  7119. lt_prog_compiler_pic='-KPIC'
  7120. lt_prog_compiler_static='-Bstatic'
  7121. lt_prog_compiler_wl='-Qoption ld '
  7122. ;;
  7123. *Sun\ C*)
  7124. # Sun C 5.9
  7125. lt_prog_compiler_pic='-KPIC'
  7126. lt_prog_compiler_static='-Bstatic'
  7127. lt_prog_compiler_wl='-Wl,'
  7128. ;;
  7129. *Intel*\ [CF]*Compiler*)
  7130. lt_prog_compiler_wl='-Wl,'
  7131. lt_prog_compiler_pic='-fPIC'
  7132. lt_prog_compiler_static='-static'
  7133. ;;
  7134. *Portland\ Group*)
  7135. lt_prog_compiler_wl='-Wl,'
  7136. lt_prog_compiler_pic='-fpic'
  7137. lt_prog_compiler_static='-Bstatic'
  7138. ;;
  7139. esac
  7140. ;;
  7141. esac
  7142. ;;
  7143. newsos6)
  7144. lt_prog_compiler_pic='-KPIC'
  7145. lt_prog_compiler_static='-Bstatic'
  7146. ;;
  7147. *nto* | *qnx*)
  7148. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7149. # it will coredump.
  7150. lt_prog_compiler_pic='-fPIC -shared'
  7151. ;;
  7152. osf3* | osf4* | osf5*)
  7153. lt_prog_compiler_wl='-Wl,'
  7154. # All OSF/1 code is PIC.
  7155. lt_prog_compiler_static='-non_shared'
  7156. ;;
  7157. rdos*)
  7158. lt_prog_compiler_static='-non_shared'
  7159. ;;
  7160. solaris*)
  7161. lt_prog_compiler_pic='-KPIC'
  7162. lt_prog_compiler_static='-Bstatic'
  7163. case $cc_basename in
  7164. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7165. lt_prog_compiler_wl='-Qoption ld ';;
  7166. *)
  7167. lt_prog_compiler_wl='-Wl,';;
  7168. esac
  7169. ;;
  7170. sunos4*)
  7171. lt_prog_compiler_wl='-Qoption ld '
  7172. lt_prog_compiler_pic='-PIC'
  7173. lt_prog_compiler_static='-Bstatic'
  7174. ;;
  7175. sysv4 | sysv4.2uw2* | sysv4.3*)
  7176. lt_prog_compiler_wl='-Wl,'
  7177. lt_prog_compiler_pic='-KPIC'
  7178. lt_prog_compiler_static='-Bstatic'
  7179. ;;
  7180. sysv4*MP*)
  7181. if test -d /usr/nec ;then
  7182. lt_prog_compiler_pic='-Kconform_pic'
  7183. lt_prog_compiler_static='-Bstatic'
  7184. fi
  7185. ;;
  7186. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7187. lt_prog_compiler_wl='-Wl,'
  7188. lt_prog_compiler_pic='-KPIC'
  7189. lt_prog_compiler_static='-Bstatic'
  7190. ;;
  7191. unicos*)
  7192. lt_prog_compiler_wl='-Wl,'
  7193. lt_prog_compiler_can_build_shared=no
  7194. ;;
  7195. uts4*)
  7196. lt_prog_compiler_pic='-pic'
  7197. lt_prog_compiler_static='-Bstatic'
  7198. ;;
  7199. *)
  7200. lt_prog_compiler_can_build_shared=no
  7201. ;;
  7202. esac
  7203. fi
  7204. case $host_os in
  7205. # For platforms which do not support PIC, -DPIC is meaningless:
  7206. *djgpp*)
  7207. lt_prog_compiler_pic=
  7208. ;;
  7209. *)
  7210. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7211. ;;
  7212. esac
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7214. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7215. if ${lt_cv_prog_compiler_pic+:} false; then :
  7216. $as_echo_n "(cached) " >&6
  7217. else
  7218. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7219. fi
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7221. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7222. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7223. #
  7224. # Check to make sure the PIC flag actually works.
  7225. #
  7226. if test -n "$lt_prog_compiler_pic"; then
  7227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7228. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7229. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7230. $as_echo_n "(cached) " >&6
  7231. else
  7232. lt_cv_prog_compiler_pic_works=no
  7233. ac_outfile=conftest.$ac_objext
  7234. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7235. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7236. # Insert the option either (1) after the last *FLAGS variable, or
  7237. # (2) before a word containing "conftest.", or (3) at the end.
  7238. # Note that $ac_compile itself does not contain backslashes and begins
  7239. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7240. # The option is referenced via a variable to avoid confusing sed.
  7241. lt_compile=`echo "$ac_compile" | $SED \
  7242. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7243. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7244. -e 's:$: $lt_compiler_flag:'`
  7245. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7246. (eval "$lt_compile" 2>conftest.err)
  7247. ac_status=$?
  7248. cat conftest.err >&5
  7249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7250. if (exit $ac_status) && test -s "$ac_outfile"; then
  7251. # The compiler can only warn and ignore the option if not recognized
  7252. # So say no if there are warnings other than the usual output.
  7253. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7254. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7255. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7256. lt_cv_prog_compiler_pic_works=yes
  7257. fi
  7258. fi
  7259. $RM conftest*
  7260. fi
  7261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7262. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7263. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7264. case $lt_prog_compiler_pic in
  7265. "" | " "*) ;;
  7266. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7267. esac
  7268. else
  7269. lt_prog_compiler_pic=
  7270. lt_prog_compiler_can_build_shared=no
  7271. fi
  7272. fi
  7273. #
  7274. # Check to make sure the static flag actually works.
  7275. #
  7276. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7278. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7279. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7280. $as_echo_n "(cached) " >&6
  7281. else
  7282. lt_cv_prog_compiler_static_works=no
  7283. save_LDFLAGS="$LDFLAGS"
  7284. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7285. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7286. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7287. # The linker can only warn and ignore the option if not recognized
  7288. # So say no if there are warnings
  7289. if test -s conftest.err; then
  7290. # Append any errors to the config.log.
  7291. cat conftest.err 1>&5
  7292. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7293. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7294. if diff conftest.exp conftest.er2 >/dev/null; then
  7295. lt_cv_prog_compiler_static_works=yes
  7296. fi
  7297. else
  7298. lt_cv_prog_compiler_static_works=yes
  7299. fi
  7300. fi
  7301. $RM -r conftest*
  7302. LDFLAGS="$save_LDFLAGS"
  7303. fi
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7305. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7306. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7307. :
  7308. else
  7309. lt_prog_compiler_static=
  7310. fi
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7312. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7313. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7314. $as_echo_n "(cached) " >&6
  7315. else
  7316. lt_cv_prog_compiler_c_o=no
  7317. $RM -r conftest 2>/dev/null
  7318. mkdir conftest
  7319. cd conftest
  7320. mkdir out
  7321. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7322. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7323. # Insert the option either (1) after the last *FLAGS variable, or
  7324. # (2) before a word containing "conftest.", or (3) at the end.
  7325. # Note that $ac_compile itself does not contain backslashes and begins
  7326. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7327. lt_compile=`echo "$ac_compile" | $SED \
  7328. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7329. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7330. -e 's:$: $lt_compiler_flag:'`
  7331. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7332. (eval "$lt_compile" 2>out/conftest.err)
  7333. ac_status=$?
  7334. cat out/conftest.err >&5
  7335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7336. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7337. then
  7338. # The compiler can only warn and ignore the option if not recognized
  7339. # So say no if there are warnings
  7340. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7341. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7342. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7343. lt_cv_prog_compiler_c_o=yes
  7344. fi
  7345. fi
  7346. chmod u+w . 2>&5
  7347. $RM conftest*
  7348. # SGI C++ compiler will create directory out/ii_files/ for
  7349. # template instantiation
  7350. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7351. $RM out/* && rmdir out
  7352. cd ..
  7353. $RM -r conftest
  7354. $RM conftest*
  7355. fi
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7357. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7359. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7360. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7361. $as_echo_n "(cached) " >&6
  7362. else
  7363. lt_cv_prog_compiler_c_o=no
  7364. $RM -r conftest 2>/dev/null
  7365. mkdir conftest
  7366. cd conftest
  7367. mkdir out
  7368. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7369. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7370. # Insert the option either (1) after the last *FLAGS variable, or
  7371. # (2) before a word containing "conftest.", or (3) at the end.
  7372. # Note that $ac_compile itself does not contain backslashes and begins
  7373. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7374. lt_compile=`echo "$ac_compile" | $SED \
  7375. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7376. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7377. -e 's:$: $lt_compiler_flag:'`
  7378. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7379. (eval "$lt_compile" 2>out/conftest.err)
  7380. ac_status=$?
  7381. cat out/conftest.err >&5
  7382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7383. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7384. then
  7385. # The compiler can only warn and ignore the option if not recognized
  7386. # So say no if there are warnings
  7387. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7388. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7389. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7390. lt_cv_prog_compiler_c_o=yes
  7391. fi
  7392. fi
  7393. chmod u+w . 2>&5
  7394. $RM conftest*
  7395. # SGI C++ compiler will create directory out/ii_files/ for
  7396. # template instantiation
  7397. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7398. $RM out/* && rmdir out
  7399. cd ..
  7400. $RM -r conftest
  7401. $RM conftest*
  7402. fi
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7404. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7405. hard_links="nottested"
  7406. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7407. # do not overwrite the value of need_locks provided by the user
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7409. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7410. hard_links=yes
  7411. $RM conftest*
  7412. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7413. touch conftest.a
  7414. ln conftest.a conftest.b 2>&5 || hard_links=no
  7415. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7417. $as_echo "$hard_links" >&6; }
  7418. if test "$hard_links" = no; then
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7420. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7421. need_locks=warn
  7422. fi
  7423. else
  7424. need_locks=no
  7425. fi
  7426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7427. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7428. runpath_var=
  7429. allow_undefined_flag=
  7430. always_export_symbols=no
  7431. archive_cmds=
  7432. archive_expsym_cmds=
  7433. compiler_needs_object=no
  7434. enable_shared_with_static_runtimes=no
  7435. export_dynamic_flag_spec=
  7436. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7437. hardcode_automatic=no
  7438. hardcode_direct=no
  7439. hardcode_direct_absolute=no
  7440. hardcode_libdir_flag_spec=
  7441. hardcode_libdir_separator=
  7442. hardcode_minus_L=no
  7443. hardcode_shlibpath_var=unsupported
  7444. inherit_rpath=no
  7445. link_all_deplibs=unknown
  7446. module_cmds=
  7447. module_expsym_cmds=
  7448. old_archive_from_new_cmds=
  7449. old_archive_from_expsyms_cmds=
  7450. thread_safe_flag_spec=
  7451. whole_archive_flag_spec=
  7452. # include_expsyms should be a list of space-separated symbols to be *always*
  7453. # included in the symbol list
  7454. include_expsyms=
  7455. # exclude_expsyms can be an extended regexp of symbols to exclude
  7456. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7457. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7458. # as well as any symbol that contains `d'.
  7459. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7460. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7461. # platforms (ab)use it in PIC code, but their linkers get confused if
  7462. # the symbol is explicitly referenced. Since portable code cannot
  7463. # rely on this symbol name, it's probably fine to never include it in
  7464. # preloaded symbol tables.
  7465. # Exclude shared library initialization/finalization symbols.
  7466. extract_expsyms_cmds=
  7467. case $host_os in
  7468. cygwin* | mingw* | pw32* | cegcc*)
  7469. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7470. # When not using gcc, we currently assume that we are using
  7471. # Microsoft Visual C++.
  7472. if test "$GCC" != yes; then
  7473. with_gnu_ld=no
  7474. fi
  7475. ;;
  7476. interix*)
  7477. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7478. with_gnu_ld=yes
  7479. ;;
  7480. openbsd*)
  7481. with_gnu_ld=no
  7482. ;;
  7483. esac
  7484. ld_shlibs=yes
  7485. # On some targets, GNU ld is compatible enough with the native linker
  7486. # that we're better off using the native interface for both.
  7487. lt_use_gnu_ld_interface=no
  7488. if test "$with_gnu_ld" = yes; then
  7489. case $host_os in
  7490. aix*)
  7491. # The AIX port of GNU ld has always aspired to compatibility
  7492. # with the native linker. However, as the warning in the GNU ld
  7493. # block says, versions before 2.19.5* couldn't really create working
  7494. # shared libraries, regardless of the interface used.
  7495. case `$LD -v 2>&1` in
  7496. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7497. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7498. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7499. *)
  7500. lt_use_gnu_ld_interface=yes
  7501. ;;
  7502. esac
  7503. ;;
  7504. *)
  7505. lt_use_gnu_ld_interface=yes
  7506. ;;
  7507. esac
  7508. fi
  7509. if test "$lt_use_gnu_ld_interface" = yes; then
  7510. # If archive_cmds runs LD, not CC, wlarc should be empty
  7511. wlarc='${wl}'
  7512. # Set some defaults for GNU ld with shared library support. These
  7513. # are reset later if shared libraries are not supported. Putting them
  7514. # here allows them to be overridden if necessary.
  7515. runpath_var=LD_RUN_PATH
  7516. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7517. export_dynamic_flag_spec='${wl}--export-dynamic'
  7518. # ancient GNU ld didn't support --whole-archive et. al.
  7519. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7520. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7521. else
  7522. whole_archive_flag_spec=
  7523. fi
  7524. supports_anon_versioning=no
  7525. case `$LD -v 2>&1` in
  7526. *GNU\ gold*) supports_anon_versioning=yes ;;
  7527. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7528. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7529. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7530. *\ 2.11.*) ;; # other 2.11 versions
  7531. *) supports_anon_versioning=yes ;;
  7532. esac
  7533. # See if GNU ld supports shared libraries.
  7534. case $host_os in
  7535. aix[3-9]*)
  7536. # On AIX/PPC, the GNU linker is very broken
  7537. if test "$host_cpu" != ia64; then
  7538. ld_shlibs=no
  7539. cat <<_LT_EOF 1>&2
  7540. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7541. *** to be unable to reliably create shared libraries on AIX.
  7542. *** Therefore, libtool is disabling shared libraries support. If you
  7543. *** really care for shared libraries, you may want to install binutils
  7544. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7545. *** You will then need to restart the configuration process.
  7546. _LT_EOF
  7547. fi
  7548. ;;
  7549. amigaos*)
  7550. case $host_cpu in
  7551. powerpc)
  7552. # see comment about AmigaOS4 .so support
  7553. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7554. archive_expsym_cmds=''
  7555. ;;
  7556. m68k)
  7557. 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)'
  7558. hardcode_libdir_flag_spec='-L$libdir'
  7559. hardcode_minus_L=yes
  7560. ;;
  7561. esac
  7562. ;;
  7563. beos*)
  7564. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7565. allow_undefined_flag=unsupported
  7566. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7567. # support --undefined. This deserves some investigation. FIXME
  7568. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7569. else
  7570. ld_shlibs=no
  7571. fi
  7572. ;;
  7573. cygwin* | mingw* | pw32* | cegcc*)
  7574. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7575. # as there is no search path for DLLs.
  7576. hardcode_libdir_flag_spec='-L$libdir'
  7577. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7578. allow_undefined_flag=unsupported
  7579. always_export_symbols=no
  7580. enable_shared_with_static_runtimes=yes
  7581. 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'
  7582. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7583. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7584. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7585. # If the export-symbols file already is a .def file (1st line
  7586. # is EXPORTS), use it as is; otherwise, prepend...
  7587. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7588. cp $export_symbols $output_objdir/$soname.def;
  7589. else
  7590. echo EXPORTS > $output_objdir/$soname.def;
  7591. cat $export_symbols >> $output_objdir/$soname.def;
  7592. fi~
  7593. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7594. else
  7595. ld_shlibs=no
  7596. fi
  7597. ;;
  7598. haiku*)
  7599. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7600. link_all_deplibs=yes
  7601. ;;
  7602. interix[3-9]*)
  7603. hardcode_direct=no
  7604. hardcode_shlibpath_var=no
  7605. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7606. export_dynamic_flag_spec='${wl}-E'
  7607. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7608. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7609. # default) and relocated if they conflict, which is a slow very memory
  7610. # consuming and fragmenting process. To avoid this, we pick a random,
  7611. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7612. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7613. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7614. 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'
  7615. ;;
  7616. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7617. tmp_diet=no
  7618. if test "$host_os" = linux-dietlibc; then
  7619. case $cc_basename in
  7620. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7621. esac
  7622. fi
  7623. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7624. && test "$tmp_diet" = no
  7625. then
  7626. tmp_addflag=' $pic_flag'
  7627. tmp_sharedflag='-shared'
  7628. case $cc_basename,$host_cpu in
  7629. pgcc*) # Portland Group C compiler
  7630. 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'
  7631. tmp_addflag=' $pic_flag'
  7632. ;;
  7633. pgf77* | pgf90* | pgf95* | pgfortran*)
  7634. # Portland Group f77 and f90 compilers
  7635. 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'
  7636. tmp_addflag=' $pic_flag -Mnomain' ;;
  7637. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7638. tmp_addflag=' -i_dynamic' ;;
  7639. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7640. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7641. ifc* | ifort*) # Intel Fortran compiler
  7642. tmp_addflag=' -nofor_main' ;;
  7643. lf95*) # Lahey Fortran 8.1
  7644. whole_archive_flag_spec=
  7645. tmp_sharedflag='--shared' ;;
  7646. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7647. tmp_sharedflag='-qmkshrobj'
  7648. tmp_addflag= ;;
  7649. nvcc*) # Cuda Compiler Driver 2.2
  7650. 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'
  7651. compiler_needs_object=yes
  7652. ;;
  7653. esac
  7654. case `$CC -V 2>&1 | sed 5q` in
  7655. *Sun\ C*) # Sun C 5.9
  7656. 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'
  7657. compiler_needs_object=yes
  7658. tmp_sharedflag='-G' ;;
  7659. *Sun\ F*) # Sun Fortran 8.3
  7660. tmp_sharedflag='-G' ;;
  7661. esac
  7662. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7663. if test "x$supports_anon_versioning" = xyes; then
  7664. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7665. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7666. echo "local: *; };" >> $output_objdir/$libname.ver~
  7667. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7668. fi
  7669. case $cc_basename in
  7670. xlf* | bgf* | bgxlf* | mpixlf*)
  7671. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7672. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7673. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7674. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7675. if test "x$supports_anon_versioning" = xyes; then
  7676. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7677. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7678. echo "local: *; };" >> $output_objdir/$libname.ver~
  7679. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7680. fi
  7681. ;;
  7682. esac
  7683. else
  7684. ld_shlibs=no
  7685. fi
  7686. ;;
  7687. netbsd*)
  7688. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7689. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7690. wlarc=
  7691. else
  7692. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7693. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7694. fi
  7695. ;;
  7696. solaris*)
  7697. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7698. ld_shlibs=no
  7699. cat <<_LT_EOF 1>&2
  7700. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7701. *** create shared libraries on Solaris systems. Therefore, libtool
  7702. *** is disabling shared libraries support. We urge you to upgrade GNU
  7703. *** binutils to release 2.9.1 or newer. Another option is to modify
  7704. *** your PATH or compiler configuration so that the native linker is
  7705. *** used, and then restart.
  7706. _LT_EOF
  7707. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7708. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7709. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7710. else
  7711. ld_shlibs=no
  7712. fi
  7713. ;;
  7714. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7715. case `$LD -v 2>&1` in
  7716. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7717. ld_shlibs=no
  7718. cat <<_LT_EOF 1>&2
  7719. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7720. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7721. *** is disabling shared libraries support. We urge you to upgrade GNU
  7722. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7723. *** your PATH or compiler configuration so that the native linker is
  7724. *** used, and then restart.
  7725. _LT_EOF
  7726. ;;
  7727. *)
  7728. # For security reasons, it is highly recommended that you always
  7729. # use absolute paths for naming shared libraries, and exclude the
  7730. # DT_RUNPATH tag from executables and libraries. But doing so
  7731. # requires that you compile everything twice, which is a pain.
  7732. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7733. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7734. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7735. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7736. else
  7737. ld_shlibs=no
  7738. fi
  7739. ;;
  7740. esac
  7741. ;;
  7742. sunos4*)
  7743. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7744. wlarc=
  7745. hardcode_direct=yes
  7746. hardcode_shlibpath_var=no
  7747. ;;
  7748. *)
  7749. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7750. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7751. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7752. else
  7753. ld_shlibs=no
  7754. fi
  7755. ;;
  7756. esac
  7757. if test "$ld_shlibs" = no; then
  7758. runpath_var=
  7759. hardcode_libdir_flag_spec=
  7760. export_dynamic_flag_spec=
  7761. whole_archive_flag_spec=
  7762. fi
  7763. else
  7764. # PORTME fill in a description of your system's linker (not GNU ld)
  7765. case $host_os in
  7766. aix3*)
  7767. allow_undefined_flag=unsupported
  7768. always_export_symbols=yes
  7769. 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'
  7770. # Note: this linker hardcodes the directories in LIBPATH if there
  7771. # are no directories specified by -L.
  7772. hardcode_minus_L=yes
  7773. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7774. # Neither direct hardcoding nor static linking is supported with a
  7775. # broken collect2.
  7776. hardcode_direct=unsupported
  7777. fi
  7778. ;;
  7779. aix[4-9]*)
  7780. if test "$host_cpu" = ia64; then
  7781. # On IA64, the linker does run time linking by default, so we don't
  7782. # have to do anything special.
  7783. aix_use_runtimelinking=no
  7784. exp_sym_flag='-Bexport'
  7785. no_entry_flag=""
  7786. else
  7787. # If we're using GNU nm, then we don't want the "-C" option.
  7788. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7789. # Also, AIX nm treats weak defined symbols like other global
  7790. # defined symbols, whereas GNU nm marks them as "W".
  7791. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7792. 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'
  7793. else
  7794. 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'
  7795. fi
  7796. aix_use_runtimelinking=no
  7797. # Test if we are trying to use run time linking or normal
  7798. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7799. # need to do runtime linking.
  7800. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7801. for ld_flag in $LDFLAGS; do
  7802. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7803. aix_use_runtimelinking=yes
  7804. break
  7805. fi
  7806. done
  7807. ;;
  7808. esac
  7809. exp_sym_flag='-bexport'
  7810. no_entry_flag='-bnoentry'
  7811. fi
  7812. # When large executables or shared objects are built, AIX ld can
  7813. # have problems creating the table of contents. If linking a library
  7814. # or program results in "error TOC overflow" add -mminimal-toc to
  7815. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7816. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7817. archive_cmds=''
  7818. hardcode_direct=yes
  7819. hardcode_direct_absolute=yes
  7820. hardcode_libdir_separator=':'
  7821. link_all_deplibs=yes
  7822. file_list_spec='${wl}-f,'
  7823. if test "$GCC" = yes; then
  7824. case $host_os in aix4.[012]|aix4.[012].*)
  7825. # We only want to do this on AIX 4.2 and lower, the check
  7826. # below for broken collect2 doesn't work under 4.3+
  7827. collect2name=`${CC} -print-prog-name=collect2`
  7828. if test -f "$collect2name" &&
  7829. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7830. then
  7831. # We have reworked collect2
  7832. :
  7833. else
  7834. # We have old collect2
  7835. hardcode_direct=unsupported
  7836. # It fails to find uninstalled libraries when the uninstalled
  7837. # path is not listed in the libpath. Setting hardcode_minus_L
  7838. # to unsupported forces relinking
  7839. hardcode_minus_L=yes
  7840. hardcode_libdir_flag_spec='-L$libdir'
  7841. hardcode_libdir_separator=
  7842. fi
  7843. ;;
  7844. esac
  7845. shared_flag='-shared'
  7846. if test "$aix_use_runtimelinking" = yes; then
  7847. shared_flag="$shared_flag "'${wl}-G'
  7848. fi
  7849. else
  7850. # not using gcc
  7851. if test "$host_cpu" = ia64; then
  7852. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7853. # chokes on -Wl,-G. The following line is correct:
  7854. shared_flag='-G'
  7855. else
  7856. if test "$aix_use_runtimelinking" = yes; then
  7857. shared_flag='${wl}-G'
  7858. else
  7859. shared_flag='${wl}-bM:SRE'
  7860. fi
  7861. fi
  7862. fi
  7863. export_dynamic_flag_spec='${wl}-bexpall'
  7864. # It seems that -bexpall does not export symbols beginning with
  7865. # underscore (_), so it is better to generate a list of symbols to export.
  7866. always_export_symbols=yes
  7867. if test "$aix_use_runtimelinking" = yes; then
  7868. # Warning - without using the other runtime loading flags (-brtl),
  7869. # -berok will link without error, but may produce a broken library.
  7870. allow_undefined_flag='-berok'
  7871. # Determine the default libpath from the value encoded in an
  7872. # empty executable.
  7873. if test "${lt_cv_aix_libpath+set}" = set; then
  7874. aix_libpath=$lt_cv_aix_libpath
  7875. else
  7876. if ${lt_cv_aix_libpath_+:} false; then :
  7877. $as_echo_n "(cached) " >&6
  7878. else
  7879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7880. /* end confdefs.h. */
  7881. int
  7882. main ()
  7883. {
  7884. ;
  7885. return 0;
  7886. }
  7887. _ACEOF
  7888. if ac_fn_c_try_link "$LINENO"; then :
  7889. lt_aix_libpath_sed='
  7890. /Import File Strings/,/^$/ {
  7891. /^0/ {
  7892. s/^0 *\([^ ]*\) *$/\1/
  7893. p
  7894. }
  7895. }'
  7896. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7897. # Check for a 64-bit object if we didn't find anything.
  7898. if test -z "$lt_cv_aix_libpath_"; then
  7899. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7900. fi
  7901. fi
  7902. rm -f core conftest.err conftest.$ac_objext \
  7903. conftest$ac_exeext conftest.$ac_ext
  7904. if test -z "$lt_cv_aix_libpath_"; then
  7905. lt_cv_aix_libpath_="/usr/lib:/lib"
  7906. fi
  7907. fi
  7908. aix_libpath=$lt_cv_aix_libpath_
  7909. fi
  7910. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7911. 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"
  7912. else
  7913. if test "$host_cpu" = ia64; then
  7914. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7915. allow_undefined_flag="-z nodefs"
  7916. 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"
  7917. else
  7918. # Determine the default libpath from the value encoded in an
  7919. # empty executable.
  7920. if test "${lt_cv_aix_libpath+set}" = set; then
  7921. aix_libpath=$lt_cv_aix_libpath
  7922. else
  7923. if ${lt_cv_aix_libpath_+:} false; then :
  7924. $as_echo_n "(cached) " >&6
  7925. else
  7926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7927. /* end confdefs.h. */
  7928. int
  7929. main ()
  7930. {
  7931. ;
  7932. return 0;
  7933. }
  7934. _ACEOF
  7935. if ac_fn_c_try_link "$LINENO"; then :
  7936. lt_aix_libpath_sed='
  7937. /Import File Strings/,/^$/ {
  7938. /^0/ {
  7939. s/^0 *\([^ ]*\) *$/\1/
  7940. p
  7941. }
  7942. }'
  7943. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7944. # Check for a 64-bit object if we didn't find anything.
  7945. if test -z "$lt_cv_aix_libpath_"; then
  7946. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7947. fi
  7948. fi
  7949. rm -f core conftest.err conftest.$ac_objext \
  7950. conftest$ac_exeext conftest.$ac_ext
  7951. if test -z "$lt_cv_aix_libpath_"; then
  7952. lt_cv_aix_libpath_="/usr/lib:/lib"
  7953. fi
  7954. fi
  7955. aix_libpath=$lt_cv_aix_libpath_
  7956. fi
  7957. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7958. # Warning - without using the other run time loading flags,
  7959. # -berok will link without error, but may produce a broken library.
  7960. no_undefined_flag=' ${wl}-bernotok'
  7961. allow_undefined_flag=' ${wl}-berok'
  7962. if test "$with_gnu_ld" = yes; then
  7963. # We only use this code for GNU lds that support --whole-archive.
  7964. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7965. else
  7966. # Exported symbols can be pulled into shared objects from archives
  7967. whole_archive_flag_spec='$convenience'
  7968. fi
  7969. archive_cmds_need_lc=yes
  7970. # This is similar to how AIX traditionally builds its shared libraries.
  7971. 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'
  7972. fi
  7973. fi
  7974. ;;
  7975. amigaos*)
  7976. case $host_cpu in
  7977. powerpc)
  7978. # see comment about AmigaOS4 .so support
  7979. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7980. archive_expsym_cmds=''
  7981. ;;
  7982. m68k)
  7983. 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)'
  7984. hardcode_libdir_flag_spec='-L$libdir'
  7985. hardcode_minus_L=yes
  7986. ;;
  7987. esac
  7988. ;;
  7989. bsdi[45]*)
  7990. export_dynamic_flag_spec=-rdynamic
  7991. ;;
  7992. cygwin* | mingw* | pw32* | cegcc*)
  7993. # When not using gcc, we currently assume that we are using
  7994. # Microsoft Visual C++.
  7995. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7996. # no search path for DLLs.
  7997. case $cc_basename in
  7998. cl*)
  7999. # Native MSVC
  8000. hardcode_libdir_flag_spec=' '
  8001. allow_undefined_flag=unsupported
  8002. always_export_symbols=yes
  8003. file_list_spec='@'
  8004. # Tell ltmain to make .lib files, not .a files.
  8005. libext=lib
  8006. # Tell ltmain to make .dll files, not .so files.
  8007. shrext_cmds=".dll"
  8008. # FIXME: Setting linknames here is a bad hack.
  8009. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8010. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8011. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8012. else
  8013. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8014. fi~
  8015. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8016. linknames='
  8017. # The linker will not automatically build a static lib if we build a DLL.
  8018. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8019. enable_shared_with_static_runtimes=yes
  8020. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8021. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8022. # Don't use ranlib
  8023. old_postinstall_cmds='chmod 644 $oldlib'
  8024. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8025. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8026. case $lt_outputfile in
  8027. *.exe|*.EXE) ;;
  8028. *)
  8029. lt_outputfile="$lt_outputfile.exe"
  8030. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8031. ;;
  8032. esac~
  8033. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8034. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8035. $RM "$lt_outputfile.manifest";
  8036. fi'
  8037. ;;
  8038. *)
  8039. # Assume MSVC wrapper
  8040. hardcode_libdir_flag_spec=' '
  8041. allow_undefined_flag=unsupported
  8042. # Tell ltmain to make .lib files, not .a files.
  8043. libext=lib
  8044. # Tell ltmain to make .dll files, not .so files.
  8045. shrext_cmds=".dll"
  8046. # FIXME: Setting linknames here is a bad hack.
  8047. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8048. # The linker will automatically build a .lib file if we build a DLL.
  8049. old_archive_from_new_cmds='true'
  8050. # FIXME: Should let the user specify the lib program.
  8051. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8052. enable_shared_with_static_runtimes=yes
  8053. ;;
  8054. esac
  8055. ;;
  8056. darwin* | rhapsody*)
  8057. archive_cmds_need_lc=no
  8058. hardcode_direct=no
  8059. hardcode_automatic=yes
  8060. hardcode_shlibpath_var=unsupported
  8061. if test "$lt_cv_ld_force_load" = "yes"; then
  8062. 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\"`'
  8063. else
  8064. whole_archive_flag_spec=''
  8065. fi
  8066. link_all_deplibs=yes
  8067. allow_undefined_flag="$_lt_dar_allow_undefined"
  8068. case $cc_basename in
  8069. ifort*) _lt_dar_can_shared=yes ;;
  8070. *) _lt_dar_can_shared=$GCC ;;
  8071. esac
  8072. if test "$_lt_dar_can_shared" = "yes"; then
  8073. output_verbose_link_cmd=func_echo_all
  8074. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8075. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8076. 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}"
  8077. 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}"
  8078. else
  8079. ld_shlibs=no
  8080. fi
  8081. ;;
  8082. dgux*)
  8083. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8084. hardcode_libdir_flag_spec='-L$libdir'
  8085. hardcode_shlibpath_var=no
  8086. ;;
  8087. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8088. # support. Future versions do this automatically, but an explicit c++rt0.o
  8089. # does not break anything, and helps significantly (at the cost of a little
  8090. # extra space).
  8091. freebsd2.2*)
  8092. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8093. hardcode_libdir_flag_spec='-R$libdir'
  8094. hardcode_direct=yes
  8095. hardcode_shlibpath_var=no
  8096. ;;
  8097. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8098. freebsd2.*)
  8099. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8100. hardcode_direct=yes
  8101. hardcode_minus_L=yes
  8102. hardcode_shlibpath_var=no
  8103. ;;
  8104. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8105. freebsd* | dragonfly*)
  8106. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8107. hardcode_libdir_flag_spec='-R$libdir'
  8108. hardcode_direct=yes
  8109. hardcode_shlibpath_var=no
  8110. ;;
  8111. hpux9*)
  8112. if test "$GCC" = yes; then
  8113. 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'
  8114. else
  8115. 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'
  8116. fi
  8117. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8118. hardcode_libdir_separator=:
  8119. hardcode_direct=yes
  8120. # hardcode_minus_L: Not really in the search PATH,
  8121. # but as the default location of the library.
  8122. hardcode_minus_L=yes
  8123. export_dynamic_flag_spec='${wl}-E'
  8124. ;;
  8125. hpux10*)
  8126. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8127. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8128. else
  8129. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8130. fi
  8131. if test "$with_gnu_ld" = no; then
  8132. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8133. hardcode_libdir_separator=:
  8134. hardcode_direct=yes
  8135. hardcode_direct_absolute=yes
  8136. export_dynamic_flag_spec='${wl}-E'
  8137. # hardcode_minus_L: Not really in the search PATH,
  8138. # but as the default location of the library.
  8139. hardcode_minus_L=yes
  8140. fi
  8141. ;;
  8142. hpux11*)
  8143. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8144. case $host_cpu in
  8145. hppa*64*)
  8146. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8147. ;;
  8148. ia64*)
  8149. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8150. ;;
  8151. *)
  8152. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8153. ;;
  8154. esac
  8155. else
  8156. case $host_cpu in
  8157. hppa*64*)
  8158. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8159. ;;
  8160. ia64*)
  8161. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8162. ;;
  8163. *)
  8164. # Older versions of the 11.00 compiler do not understand -b yet
  8165. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8167. $as_echo_n "checking if $CC understands -b... " >&6; }
  8168. if ${lt_cv_prog_compiler__b+:} false; then :
  8169. $as_echo_n "(cached) " >&6
  8170. else
  8171. lt_cv_prog_compiler__b=no
  8172. save_LDFLAGS="$LDFLAGS"
  8173. LDFLAGS="$LDFLAGS -b"
  8174. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8175. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8176. # The linker can only warn and ignore the option if not recognized
  8177. # So say no if there are warnings
  8178. if test -s conftest.err; then
  8179. # Append any errors to the config.log.
  8180. cat conftest.err 1>&5
  8181. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8182. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8183. if diff conftest.exp conftest.er2 >/dev/null; then
  8184. lt_cv_prog_compiler__b=yes
  8185. fi
  8186. else
  8187. lt_cv_prog_compiler__b=yes
  8188. fi
  8189. fi
  8190. $RM -r conftest*
  8191. LDFLAGS="$save_LDFLAGS"
  8192. fi
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8194. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8195. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8196. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8197. else
  8198. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8199. fi
  8200. ;;
  8201. esac
  8202. fi
  8203. if test "$with_gnu_ld" = no; then
  8204. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8205. hardcode_libdir_separator=:
  8206. case $host_cpu in
  8207. hppa*64*|ia64*)
  8208. hardcode_direct=no
  8209. hardcode_shlibpath_var=no
  8210. ;;
  8211. *)
  8212. hardcode_direct=yes
  8213. hardcode_direct_absolute=yes
  8214. export_dynamic_flag_spec='${wl}-E'
  8215. # hardcode_minus_L: Not really in the search PATH,
  8216. # but as the default location of the library.
  8217. hardcode_minus_L=yes
  8218. ;;
  8219. esac
  8220. fi
  8221. ;;
  8222. irix5* | irix6* | nonstopux*)
  8223. if test "$GCC" = yes; then
  8224. 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'
  8225. # Try to use the -exported_symbol ld option, if it does not
  8226. # work, assume that -exports_file does not work either and
  8227. # implicitly export all symbols.
  8228. # This should be the same for all languages, so no per-tag cache variable.
  8229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8230. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8231. if ${lt_cv_irix_exported_symbol+:} false; then :
  8232. $as_echo_n "(cached) " >&6
  8233. else
  8234. save_LDFLAGS="$LDFLAGS"
  8235. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8237. /* end confdefs.h. */
  8238. int foo (void) { return 0; }
  8239. _ACEOF
  8240. if ac_fn_c_try_link "$LINENO"; then :
  8241. lt_cv_irix_exported_symbol=yes
  8242. else
  8243. lt_cv_irix_exported_symbol=no
  8244. fi
  8245. rm -f core conftest.err conftest.$ac_objext \
  8246. conftest$ac_exeext conftest.$ac_ext
  8247. LDFLAGS="$save_LDFLAGS"
  8248. fi
  8249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8250. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8251. if test "$lt_cv_irix_exported_symbol" = yes; then
  8252. 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'
  8253. fi
  8254. else
  8255. 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'
  8256. 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'
  8257. fi
  8258. archive_cmds_need_lc='no'
  8259. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8260. hardcode_libdir_separator=:
  8261. inherit_rpath=yes
  8262. link_all_deplibs=yes
  8263. ;;
  8264. netbsd*)
  8265. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8266. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8267. else
  8268. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8269. fi
  8270. hardcode_libdir_flag_spec='-R$libdir'
  8271. hardcode_direct=yes
  8272. hardcode_shlibpath_var=no
  8273. ;;
  8274. newsos6)
  8275. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8276. hardcode_direct=yes
  8277. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8278. hardcode_libdir_separator=:
  8279. hardcode_shlibpath_var=no
  8280. ;;
  8281. *nto* | *qnx*)
  8282. ;;
  8283. openbsd*)
  8284. if test -f /usr/libexec/ld.so; then
  8285. hardcode_direct=yes
  8286. hardcode_shlibpath_var=no
  8287. hardcode_direct_absolute=yes
  8288. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8289. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8290. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8291. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8292. export_dynamic_flag_spec='${wl}-E'
  8293. else
  8294. case $host_os in
  8295. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8296. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8297. hardcode_libdir_flag_spec='-R$libdir'
  8298. ;;
  8299. *)
  8300. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8301. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8302. ;;
  8303. esac
  8304. fi
  8305. else
  8306. ld_shlibs=no
  8307. fi
  8308. ;;
  8309. os2*)
  8310. hardcode_libdir_flag_spec='-L$libdir'
  8311. hardcode_minus_L=yes
  8312. allow_undefined_flag=unsupported
  8313. 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'
  8314. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8315. ;;
  8316. osf3*)
  8317. if test "$GCC" = yes; then
  8318. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8319. 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'
  8320. else
  8321. allow_undefined_flag=' -expect_unresolved \*'
  8322. 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'
  8323. fi
  8324. archive_cmds_need_lc='no'
  8325. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8326. hardcode_libdir_separator=:
  8327. ;;
  8328. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8329. if test "$GCC" = yes; then
  8330. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8331. 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'
  8332. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8333. else
  8334. allow_undefined_flag=' -expect_unresolved \*'
  8335. 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'
  8336. 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~
  8337. $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'
  8338. # Both c and cxx compiler support -rpath directly
  8339. hardcode_libdir_flag_spec='-rpath $libdir'
  8340. fi
  8341. archive_cmds_need_lc='no'
  8342. hardcode_libdir_separator=:
  8343. ;;
  8344. solaris*)
  8345. no_undefined_flag=' -z defs'
  8346. if test "$GCC" = yes; then
  8347. wlarc='${wl}'
  8348. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8349. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8350. $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'
  8351. else
  8352. case `$CC -V 2>&1` in
  8353. *"Compilers 5.0"*)
  8354. wlarc=''
  8355. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8356. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8357. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8358. ;;
  8359. *)
  8360. wlarc='${wl}'
  8361. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8362. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8363. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8364. ;;
  8365. esac
  8366. fi
  8367. hardcode_libdir_flag_spec='-R$libdir'
  8368. hardcode_shlibpath_var=no
  8369. case $host_os in
  8370. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8371. *)
  8372. # The compiler driver will combine and reorder linker options,
  8373. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8374. # but is careful enough not to reorder.
  8375. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8376. if test "$GCC" = yes; then
  8377. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8378. else
  8379. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8380. fi
  8381. ;;
  8382. esac
  8383. link_all_deplibs=yes
  8384. ;;
  8385. sunos4*)
  8386. if test "x$host_vendor" = xsequent; then
  8387. # Use $CC to link under sequent, because it throws in some extra .o
  8388. # files that make .init and .fini sections work.
  8389. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8390. else
  8391. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8392. fi
  8393. hardcode_libdir_flag_spec='-L$libdir'
  8394. hardcode_direct=yes
  8395. hardcode_minus_L=yes
  8396. hardcode_shlibpath_var=no
  8397. ;;
  8398. sysv4)
  8399. case $host_vendor in
  8400. sni)
  8401. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8402. hardcode_direct=yes # is this really true???
  8403. ;;
  8404. siemens)
  8405. ## LD is ld it makes a PLAMLIB
  8406. ## CC just makes a GrossModule.
  8407. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8408. reload_cmds='$CC -r -o $output$reload_objs'
  8409. hardcode_direct=no
  8410. ;;
  8411. motorola)
  8412. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8413. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8414. ;;
  8415. esac
  8416. runpath_var='LD_RUN_PATH'
  8417. hardcode_shlibpath_var=no
  8418. ;;
  8419. sysv4.3*)
  8420. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8421. hardcode_shlibpath_var=no
  8422. export_dynamic_flag_spec='-Bexport'
  8423. ;;
  8424. sysv4*MP*)
  8425. if test -d /usr/nec; then
  8426. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8427. hardcode_shlibpath_var=no
  8428. runpath_var=LD_RUN_PATH
  8429. hardcode_runpath_var=yes
  8430. ld_shlibs=yes
  8431. fi
  8432. ;;
  8433. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8434. no_undefined_flag='${wl}-z,text'
  8435. archive_cmds_need_lc=no
  8436. hardcode_shlibpath_var=no
  8437. runpath_var='LD_RUN_PATH'
  8438. if test "$GCC" = yes; then
  8439. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8440. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8441. else
  8442. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8444. fi
  8445. ;;
  8446. sysv5* | sco3.2v5* | sco5v6*)
  8447. # Note: We can NOT use -z defs as we might desire, because we do not
  8448. # link with -lc, and that would cause any symbols used from libc to
  8449. # always be unresolved, which means just about no library would
  8450. # ever link correctly. If we're not using GNU ld we use -z text
  8451. # though, which does catch some bad symbols but isn't as heavy-handed
  8452. # as -z defs.
  8453. no_undefined_flag='${wl}-z,text'
  8454. allow_undefined_flag='${wl}-z,nodefs'
  8455. archive_cmds_need_lc=no
  8456. hardcode_shlibpath_var=no
  8457. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8458. hardcode_libdir_separator=':'
  8459. link_all_deplibs=yes
  8460. export_dynamic_flag_spec='${wl}-Bexport'
  8461. runpath_var='LD_RUN_PATH'
  8462. if test "$GCC" = yes; then
  8463. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8464. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8465. else
  8466. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8467. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8468. fi
  8469. ;;
  8470. uts4*)
  8471. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8472. hardcode_libdir_flag_spec='-L$libdir'
  8473. hardcode_shlibpath_var=no
  8474. ;;
  8475. *)
  8476. ld_shlibs=no
  8477. ;;
  8478. esac
  8479. if test x$host_vendor = xsni; then
  8480. case $host in
  8481. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8482. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8483. ;;
  8484. esac
  8485. fi
  8486. fi
  8487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8488. $as_echo "$ld_shlibs" >&6; }
  8489. test "$ld_shlibs" = no && can_build_shared=no
  8490. with_gnu_ld=$with_gnu_ld
  8491. #
  8492. # Do we need to explicitly link libc?
  8493. #
  8494. case "x$archive_cmds_need_lc" in
  8495. x|xyes)
  8496. # Assume -lc should be added
  8497. archive_cmds_need_lc=yes
  8498. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8499. case $archive_cmds in
  8500. *'~'*)
  8501. # FIXME: we may have to deal with multi-command sequences.
  8502. ;;
  8503. '$CC '*)
  8504. # Test whether the compiler implicitly links with -lc since on some
  8505. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8506. # to ld, don't add -lc before -lgcc.
  8507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8508. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8509. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8510. $as_echo_n "(cached) " >&6
  8511. else
  8512. $RM conftest*
  8513. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8514. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8515. (eval $ac_compile) 2>&5
  8516. ac_status=$?
  8517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8518. test $ac_status = 0; } 2>conftest.err; then
  8519. soname=conftest
  8520. lib=conftest
  8521. libobjs=conftest.$ac_objext
  8522. deplibs=
  8523. wl=$lt_prog_compiler_wl
  8524. pic_flag=$lt_prog_compiler_pic
  8525. compiler_flags=-v
  8526. linker_flags=-v
  8527. verstring=
  8528. output_objdir=.
  8529. libname=conftest
  8530. lt_save_allow_undefined_flag=$allow_undefined_flag
  8531. allow_undefined_flag=
  8532. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8533. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8534. ac_status=$?
  8535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8536. test $ac_status = 0; }
  8537. then
  8538. lt_cv_archive_cmds_need_lc=no
  8539. else
  8540. lt_cv_archive_cmds_need_lc=yes
  8541. fi
  8542. allow_undefined_flag=$lt_save_allow_undefined_flag
  8543. else
  8544. cat conftest.err 1>&5
  8545. fi
  8546. $RM conftest*
  8547. fi
  8548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8549. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8550. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8551. ;;
  8552. esac
  8553. fi
  8554. ;;
  8555. esac
  8556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8557. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8558. if test "$GCC" = yes; then
  8559. case $host_os in
  8560. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8561. *) lt_awk_arg="/^libraries:/" ;;
  8562. esac
  8563. case $host_os in
  8564. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8565. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8566. esac
  8567. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8568. case $lt_search_path_spec in
  8569. *\;*)
  8570. # if the path contains ";" then we assume it to be the separator
  8571. # otherwise default to the standard path separator (i.e. ":") - it is
  8572. # assumed that no part of a normal pathname contains ";" but that should
  8573. # okay in the real world where ";" in dirpaths is itself problematic.
  8574. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8575. ;;
  8576. *)
  8577. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8578. ;;
  8579. esac
  8580. # Ok, now we have the path, separated by spaces, we can step through it
  8581. # and add multilib dir if necessary...
  8582. lt_tmp_lt_search_path_spec=
  8583. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8584. # ...but if some path already ends with the multilib dir we assume
  8585. # that all is fine and trust -print-search-dirs as is (GCC 4.2 or newer).
  8586. case "$lt_multi_os_dir; $lt_search_path_spec " in
  8587. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  8588. lt_multi_os_dir=
  8589. ;;
  8590. esac
  8591. for lt_sys_path in $lt_search_path_spec; do
  8592. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  8593. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  8594. elif test -n "$lt_multi_os_dir"; then
  8595. test -d "$lt_sys_path" && \
  8596. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8597. fi
  8598. done
  8599. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8600. BEGIN {RS=" "; FS="/|\n";} {
  8601. lt_foo="";
  8602. lt_count=0;
  8603. for (lt_i = NF; lt_i > 0; lt_i--) {
  8604. if ($lt_i != "" && $lt_i != ".") {
  8605. if ($lt_i == "..") {
  8606. lt_count++;
  8607. } else {
  8608. if (lt_count == 0) {
  8609. lt_foo="/" $lt_i lt_foo;
  8610. } else {
  8611. lt_count--;
  8612. }
  8613. }
  8614. }
  8615. }
  8616. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8617. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8618. }'`
  8619. # AWK program above erroneously prepends '/' to C:/dos/paths
  8620. # for these hosts.
  8621. case $host_os in
  8622. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8623. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8624. esac
  8625. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8626. else
  8627. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8628. fi
  8629. library_names_spec=
  8630. libname_spec='lib$name'
  8631. soname_spec=
  8632. shrext_cmds=".so"
  8633. postinstall_cmds=
  8634. postuninstall_cmds=
  8635. finish_cmds=
  8636. finish_eval=
  8637. shlibpath_var=
  8638. shlibpath_overrides_runpath=unknown
  8639. version_type=none
  8640. dynamic_linker="$host_os ld.so"
  8641. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8642. need_lib_prefix=unknown
  8643. hardcode_into_libs=no
  8644. # when you set need_version to no, make sure it does not cause -set_version
  8645. # flags to be left without arguments
  8646. need_version=unknown
  8647. case $host_os in
  8648. aix3*)
  8649. version_type=linux # correct to gnu/linux during the next big refactor
  8650. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8651. shlibpath_var=LIBPATH
  8652. # AIX 3 has no versioning support, so we append a major version to the name.
  8653. soname_spec='${libname}${release}${shared_ext}$major'
  8654. ;;
  8655. aix[4-9]*)
  8656. version_type=linux # correct to gnu/linux during the next big refactor
  8657. need_lib_prefix=no
  8658. need_version=no
  8659. hardcode_into_libs=yes
  8660. if test "$host_cpu" = ia64; then
  8661. # AIX 5 supports IA64
  8662. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8663. shlibpath_var=LD_LIBRARY_PATH
  8664. else
  8665. # With GCC up to 2.95.x, collect2 would create an import file
  8666. # for dependence libraries. The import file would start with
  8667. # the line `#! .'. This would cause the generated library to
  8668. # depend on `.', always an invalid library. This was fixed in
  8669. # development snapshots of GCC prior to 3.0.
  8670. case $host_os in
  8671. aix4 | aix4.[01] | aix4.[01].*)
  8672. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8673. echo ' yes '
  8674. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8675. :
  8676. else
  8677. can_build_shared=no
  8678. fi
  8679. ;;
  8680. esac
  8681. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8682. # soname into executable. Probably we can add versioning support to
  8683. # collect2, so additional links can be useful in future.
  8684. if test "$aix_use_runtimelinking" = yes; then
  8685. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8686. # instead of lib<name>.a to let people know that these are not
  8687. # typical AIX shared libraries.
  8688. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8689. else
  8690. # We preserve .a as extension for shared libraries through AIX4.2
  8691. # and later when we are not doing run time linking.
  8692. library_names_spec='${libname}${release}.a $libname.a'
  8693. soname_spec='${libname}${release}${shared_ext}$major'
  8694. fi
  8695. shlibpath_var=LIBPATH
  8696. fi
  8697. ;;
  8698. amigaos*)
  8699. case $host_cpu in
  8700. powerpc)
  8701. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8702. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8704. ;;
  8705. m68k)
  8706. library_names_spec='$libname.ixlibrary $libname.a'
  8707. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8708. 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'
  8709. ;;
  8710. esac
  8711. ;;
  8712. beos*)
  8713. library_names_spec='${libname}${shared_ext}'
  8714. dynamic_linker="$host_os ld.so"
  8715. shlibpath_var=LIBRARY_PATH
  8716. ;;
  8717. bsdi[45]*)
  8718. version_type=linux # correct to gnu/linux during the next big refactor
  8719. need_version=no
  8720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8721. soname_spec='${libname}${release}${shared_ext}$major'
  8722. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8723. shlibpath_var=LD_LIBRARY_PATH
  8724. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8725. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8726. # the default ld.so.conf also contains /usr/contrib/lib and
  8727. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8728. # libtool to hard-code these into programs
  8729. ;;
  8730. cygwin* | mingw* | pw32* | cegcc*)
  8731. version_type=windows
  8732. shrext_cmds=".dll"
  8733. need_version=no
  8734. need_lib_prefix=no
  8735. case $GCC,$cc_basename in
  8736. yes,*)
  8737. # gcc
  8738. library_names_spec='$libname.dll.a'
  8739. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8740. postinstall_cmds='base_file=`basename \${file}`~
  8741. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8742. dldir=$destdir/`dirname \$dlpath`~
  8743. test -d \$dldir || mkdir -p \$dldir~
  8744. $install_prog $dir/$dlname \$dldir/$dlname~
  8745. chmod a+x \$dldir/$dlname~
  8746. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8747. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8748. fi'
  8749. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8750. dlpath=$dir/\$dldll~
  8751. $RM \$dlpath'
  8752. shlibpath_overrides_runpath=yes
  8753. case $host_os in
  8754. cygwin*)
  8755. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8756. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8757. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  8758. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8759. ;;
  8760. mingw* | cegcc*)
  8761. # MinGW DLLs use traditional 'lib' prefix
  8762. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  8763. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  8764. ;;
  8765. pw32*)
  8766. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8767. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8768. ;;
  8769. esac
  8770. dynamic_linker='Win32 ld.exe'
  8771. ;;
  8772. *,cl*)
  8773. # Native MSVC
  8774. libname_spec='$name'
  8775. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8776. library_names_spec='${libname}.dll.lib'
  8777. case $build_os in
  8778. mingw*)
  8779. sys_lib_search_path_spec=
  8780. lt_save_ifs=$IFS
  8781. IFS=';'
  8782. for lt_path in $LIB
  8783. do
  8784. IFS=$lt_save_ifs
  8785. # Let DOS variable expansion print the short 8.3 style file name.
  8786. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8787. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8788. done
  8789. IFS=$lt_save_ifs
  8790. # Convert to MSYS style.
  8791. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8792. ;;
  8793. cygwin*)
  8794. # Convert to unix form, then to dos form, then back to unix form
  8795. # but this time dos style (no spaces!) so that the unix form looks
  8796. # like /cygdrive/c/PROGRA~1:/cygdr...
  8797. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8798. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8799. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8800. ;;
  8801. *)
  8802. sys_lib_search_path_spec="$LIB"
  8803. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8804. # It is most probably a Windows format PATH.
  8805. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8806. else
  8807. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8808. fi
  8809. # FIXME: find the short name or the path components, as spaces are
  8810. # common. (e.g. "Program Files" -> "PROGRA~1")
  8811. ;;
  8812. esac
  8813. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8814. postinstall_cmds='base_file=`basename \${file}`~
  8815. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8816. dldir=$destdir/`dirname \$dlpath`~
  8817. test -d \$dldir || mkdir -p \$dldir~
  8818. $install_prog $dir/$dlname \$dldir/$dlname'
  8819. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8820. dlpath=$dir/\$dldll~
  8821. $RM \$dlpath'
  8822. shlibpath_overrides_runpath=yes
  8823. dynamic_linker='Win32 link.exe'
  8824. ;;
  8825. *)
  8826. # Assume MSVC wrapper
  8827. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8828. dynamic_linker='Win32 ld.exe'
  8829. ;;
  8830. esac
  8831. # FIXME: first we should search . and the directory the executable is in
  8832. shlibpath_var=PATH
  8833. ;;
  8834. darwin* | rhapsody*)
  8835. dynamic_linker="$host_os dyld"
  8836. version_type=darwin
  8837. need_lib_prefix=no
  8838. need_version=no
  8839. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8840. soname_spec='${libname}${release}${major}$shared_ext'
  8841. shlibpath_overrides_runpath=yes
  8842. shlibpath_var=DYLD_LIBRARY_PATH
  8843. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8844. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8845. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8846. ;;
  8847. dgux*)
  8848. version_type=linux # correct to gnu/linux during the next big refactor
  8849. need_lib_prefix=no
  8850. need_version=no
  8851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8852. soname_spec='${libname}${release}${shared_ext}$major'
  8853. shlibpath_var=LD_LIBRARY_PATH
  8854. ;;
  8855. freebsd* | dragonfly*)
  8856. # DragonFly does not have aout. When/if they implement a new
  8857. # versioning mechanism, adjust this.
  8858. if test -x /usr/bin/objformat; then
  8859. objformat=`/usr/bin/objformat`
  8860. else
  8861. case $host_os in
  8862. freebsd[23].*) objformat=aout ;;
  8863. *) objformat=elf ;;
  8864. esac
  8865. fi
  8866. version_type=freebsd-$objformat
  8867. case $version_type in
  8868. freebsd-elf*)
  8869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8870. need_version=no
  8871. need_lib_prefix=no
  8872. ;;
  8873. freebsd-*)
  8874. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8875. need_version=yes
  8876. ;;
  8877. esac
  8878. shlibpath_var=LD_LIBRARY_PATH
  8879. case $host_os in
  8880. freebsd2.*)
  8881. shlibpath_overrides_runpath=yes
  8882. ;;
  8883. freebsd3.[01]* | freebsdelf3.[01]*)
  8884. shlibpath_overrides_runpath=yes
  8885. hardcode_into_libs=yes
  8886. ;;
  8887. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8888. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8889. shlibpath_overrides_runpath=no
  8890. hardcode_into_libs=yes
  8891. ;;
  8892. *) # from 4.6 on, and DragonFly
  8893. shlibpath_overrides_runpath=yes
  8894. hardcode_into_libs=yes
  8895. ;;
  8896. esac
  8897. ;;
  8898. gnu*)
  8899. version_type=linux # correct to gnu/linux during the next big refactor
  8900. need_lib_prefix=no
  8901. need_version=no
  8902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8903. soname_spec='${libname}${release}${shared_ext}$major'
  8904. shlibpath_var=LD_LIBRARY_PATH
  8905. shlibpath_overrides_runpath=no
  8906. hardcode_into_libs=yes
  8907. ;;
  8908. haiku*)
  8909. version_type=linux # correct to gnu/linux during the next big refactor
  8910. need_lib_prefix=no
  8911. need_version=no
  8912. dynamic_linker="$host_os runtime_loader"
  8913. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8914. soname_spec='${libname}${release}${shared_ext}$major'
  8915. shlibpath_var=LIBRARY_PATH
  8916. shlibpath_overrides_runpath=yes
  8917. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8918. hardcode_into_libs=yes
  8919. ;;
  8920. hpux9* | hpux10* | hpux11*)
  8921. # Give a soname corresponding to the major version so that dld.sl refuses to
  8922. # link against other versions.
  8923. version_type=sunos
  8924. need_lib_prefix=no
  8925. need_version=no
  8926. case $host_cpu in
  8927. ia64*)
  8928. shrext_cmds='.so'
  8929. hardcode_into_libs=yes
  8930. dynamic_linker="$host_os dld.so"
  8931. shlibpath_var=LD_LIBRARY_PATH
  8932. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8934. soname_spec='${libname}${release}${shared_ext}$major'
  8935. if test "X$HPUX_IA64_MODE" = X32; then
  8936. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8937. else
  8938. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8939. fi
  8940. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8941. ;;
  8942. hppa*64*)
  8943. shrext_cmds='.sl'
  8944. hardcode_into_libs=yes
  8945. dynamic_linker="$host_os dld.sl"
  8946. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8947. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8949. soname_spec='${libname}${release}${shared_ext}$major'
  8950. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8951. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8952. ;;
  8953. *)
  8954. shrext_cmds='.sl'
  8955. dynamic_linker="$host_os dld.sl"
  8956. shlibpath_var=SHLIB_PATH
  8957. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8959. soname_spec='${libname}${release}${shared_ext}$major'
  8960. ;;
  8961. esac
  8962. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8963. postinstall_cmds='chmod 555 $lib'
  8964. # or fails outright, so override atomically:
  8965. install_override_mode=555
  8966. ;;
  8967. interix[3-9]*)
  8968. version_type=linux # correct to gnu/linux during the next big refactor
  8969. need_lib_prefix=no
  8970. need_version=no
  8971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8972. soname_spec='${libname}${release}${shared_ext}$major'
  8973. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8974. shlibpath_var=LD_LIBRARY_PATH
  8975. shlibpath_overrides_runpath=no
  8976. hardcode_into_libs=yes
  8977. ;;
  8978. irix5* | irix6* | nonstopux*)
  8979. case $host_os in
  8980. nonstopux*) version_type=nonstopux ;;
  8981. *)
  8982. if test "$lt_cv_prog_gnu_ld" = yes; then
  8983. version_type=linux # correct to gnu/linux during the next big refactor
  8984. else
  8985. version_type=irix
  8986. fi ;;
  8987. esac
  8988. need_lib_prefix=no
  8989. need_version=no
  8990. soname_spec='${libname}${release}${shared_ext}$major'
  8991. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8992. case $host_os in
  8993. irix5* | nonstopux*)
  8994. libsuff= shlibsuff=
  8995. ;;
  8996. *)
  8997. case $LD in # libtool.m4 will add one of these switches to LD
  8998. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8999. libsuff= shlibsuff= libmagic=32-bit;;
  9000. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9001. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9002. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9003. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9004. *) libsuff= shlibsuff= libmagic=never-match;;
  9005. esac
  9006. ;;
  9007. esac
  9008. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9009. shlibpath_overrides_runpath=no
  9010. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9011. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9012. hardcode_into_libs=yes
  9013. ;;
  9014. # No shared lib support for Linux oldld, aout, or coff.
  9015. linux*oldld* | linux*aout* | linux*coff*)
  9016. dynamic_linker=no
  9017. ;;
  9018. # This must be glibc/ELF.
  9019. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9020. version_type=linux # correct to gnu/linux during the next big refactor
  9021. need_lib_prefix=no
  9022. need_version=no
  9023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9024. soname_spec='${libname}${release}${shared_ext}$major'
  9025. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9026. shlibpath_var=LD_LIBRARY_PATH
  9027. shlibpath_overrides_runpath=no
  9028. # Some binutils ld are patched to set DT_RUNPATH
  9029. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9030. $as_echo_n "(cached) " >&6
  9031. else
  9032. lt_cv_shlibpath_overrides_runpath=no
  9033. save_LDFLAGS=$LDFLAGS
  9034. save_libdir=$libdir
  9035. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9036. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9038. /* end confdefs.h. */
  9039. int
  9040. main ()
  9041. {
  9042. ;
  9043. return 0;
  9044. }
  9045. _ACEOF
  9046. if ac_fn_c_try_link "$LINENO"; then :
  9047. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9048. lt_cv_shlibpath_overrides_runpath=yes
  9049. fi
  9050. fi
  9051. rm -f core conftest.err conftest.$ac_objext \
  9052. conftest$ac_exeext conftest.$ac_ext
  9053. LDFLAGS=$save_LDFLAGS
  9054. libdir=$save_libdir
  9055. fi
  9056. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9057. # This implies no fast_install, which is unacceptable.
  9058. # Some rework will be needed to allow for fast_install
  9059. # before this can be enabled.
  9060. hardcode_into_libs=yes
  9061. # Append ld.so.conf contents to the search path
  9062. if test -f /etc/ld.so.conf; then
  9063. 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' ' '`
  9064. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9065. fi
  9066. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9067. # powerpc, because MkLinux only supported shared libraries with the
  9068. # GNU dynamic linker. Since this was broken with cross compilers,
  9069. # most powerpc-linux boxes support dynamic linking these days and
  9070. # people can always --disable-shared, the test was removed, and we
  9071. # assume the GNU/Linux dynamic linker is in use.
  9072. dynamic_linker='GNU/Linux ld.so'
  9073. ;;
  9074. netbsd*)
  9075. version_type=sunos
  9076. need_lib_prefix=no
  9077. need_version=no
  9078. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9080. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9081. dynamic_linker='NetBSD (a.out) ld.so'
  9082. else
  9083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9084. soname_spec='${libname}${release}${shared_ext}$major'
  9085. dynamic_linker='NetBSD ld.elf_so'
  9086. fi
  9087. shlibpath_var=LD_LIBRARY_PATH
  9088. shlibpath_overrides_runpath=yes
  9089. hardcode_into_libs=yes
  9090. ;;
  9091. newsos6)
  9092. version_type=linux # correct to gnu/linux during the next big refactor
  9093. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9094. shlibpath_var=LD_LIBRARY_PATH
  9095. shlibpath_overrides_runpath=yes
  9096. ;;
  9097. *nto* | *qnx*)
  9098. version_type=qnx
  9099. need_lib_prefix=no
  9100. need_version=no
  9101. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9102. soname_spec='${libname}${release}${shared_ext}$major'
  9103. shlibpath_var=LD_LIBRARY_PATH
  9104. shlibpath_overrides_runpath=no
  9105. hardcode_into_libs=yes
  9106. dynamic_linker='ldqnx.so'
  9107. ;;
  9108. openbsd*)
  9109. version_type=sunos
  9110. sys_lib_dlsearch_path_spec="/usr/lib"
  9111. need_lib_prefix=no
  9112. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9113. case $host_os in
  9114. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9115. *) need_version=no ;;
  9116. esac
  9117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9118. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9119. shlibpath_var=LD_LIBRARY_PATH
  9120. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9121. case $host_os in
  9122. openbsd2.[89] | openbsd2.[89].*)
  9123. shlibpath_overrides_runpath=no
  9124. ;;
  9125. *)
  9126. shlibpath_overrides_runpath=yes
  9127. ;;
  9128. esac
  9129. else
  9130. shlibpath_overrides_runpath=yes
  9131. fi
  9132. ;;
  9133. os2*)
  9134. libname_spec='$name'
  9135. shrext_cmds=".dll"
  9136. need_lib_prefix=no
  9137. library_names_spec='$libname${shared_ext} $libname.a'
  9138. dynamic_linker='OS/2 ld.exe'
  9139. shlibpath_var=LIBPATH
  9140. ;;
  9141. osf3* | osf4* | osf5*)
  9142. version_type=osf
  9143. need_lib_prefix=no
  9144. need_version=no
  9145. soname_spec='${libname}${release}${shared_ext}$major'
  9146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9147. shlibpath_var=LD_LIBRARY_PATH
  9148. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9149. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9150. ;;
  9151. rdos*)
  9152. dynamic_linker=no
  9153. ;;
  9154. solaris*)
  9155. version_type=linux # correct to gnu/linux during the next big refactor
  9156. need_lib_prefix=no
  9157. need_version=no
  9158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9159. soname_spec='${libname}${release}${shared_ext}$major'
  9160. shlibpath_var=LD_LIBRARY_PATH
  9161. shlibpath_overrides_runpath=yes
  9162. hardcode_into_libs=yes
  9163. # ldd complains unless libraries are executable
  9164. postinstall_cmds='chmod +x $lib'
  9165. ;;
  9166. sunos4*)
  9167. version_type=sunos
  9168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9169. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9170. shlibpath_var=LD_LIBRARY_PATH
  9171. shlibpath_overrides_runpath=yes
  9172. if test "$with_gnu_ld" = yes; then
  9173. need_lib_prefix=no
  9174. fi
  9175. need_version=yes
  9176. ;;
  9177. sysv4 | sysv4.3*)
  9178. version_type=linux # correct to gnu/linux during the next big refactor
  9179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9180. soname_spec='${libname}${release}${shared_ext}$major'
  9181. shlibpath_var=LD_LIBRARY_PATH
  9182. case $host_vendor in
  9183. sni)
  9184. shlibpath_overrides_runpath=no
  9185. need_lib_prefix=no
  9186. runpath_var=LD_RUN_PATH
  9187. ;;
  9188. siemens)
  9189. need_lib_prefix=no
  9190. ;;
  9191. motorola)
  9192. need_lib_prefix=no
  9193. need_version=no
  9194. shlibpath_overrides_runpath=no
  9195. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9196. ;;
  9197. esac
  9198. ;;
  9199. sysv4*MP*)
  9200. if test -d /usr/nec ;then
  9201. version_type=linux # correct to gnu/linux during the next big refactor
  9202. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9203. soname_spec='$libname${shared_ext}.$major'
  9204. shlibpath_var=LD_LIBRARY_PATH
  9205. fi
  9206. ;;
  9207. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9208. version_type=freebsd-elf
  9209. need_lib_prefix=no
  9210. need_version=no
  9211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9212. soname_spec='${libname}${release}${shared_ext}$major'
  9213. shlibpath_var=LD_LIBRARY_PATH
  9214. shlibpath_overrides_runpath=yes
  9215. hardcode_into_libs=yes
  9216. if test "$with_gnu_ld" = yes; then
  9217. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9218. else
  9219. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9220. case $host_os in
  9221. sco3.2v5*)
  9222. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9223. ;;
  9224. esac
  9225. fi
  9226. sys_lib_dlsearch_path_spec='/usr/lib'
  9227. ;;
  9228. tpf*)
  9229. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9230. version_type=linux # correct to gnu/linux during the next big refactor
  9231. need_lib_prefix=no
  9232. need_version=no
  9233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9234. shlibpath_var=LD_LIBRARY_PATH
  9235. shlibpath_overrides_runpath=no
  9236. hardcode_into_libs=yes
  9237. ;;
  9238. uts4*)
  9239. version_type=linux # correct to gnu/linux during the next big refactor
  9240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9241. soname_spec='${libname}${release}${shared_ext}$major'
  9242. shlibpath_var=LD_LIBRARY_PATH
  9243. ;;
  9244. *)
  9245. dynamic_linker=no
  9246. ;;
  9247. esac
  9248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9249. $as_echo "$dynamic_linker" >&6; }
  9250. test "$dynamic_linker" = no && can_build_shared=no
  9251. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9252. if test "$GCC" = yes; then
  9253. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9254. fi
  9255. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9256. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9257. fi
  9258. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9259. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9260. fi
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9262. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9263. hardcode_action=
  9264. if test -n "$hardcode_libdir_flag_spec" ||
  9265. test -n "$runpath_var" ||
  9266. test "X$hardcode_automatic" = "Xyes" ; then
  9267. # We can hardcode non-existent directories.
  9268. if test "$hardcode_direct" != no &&
  9269. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9270. # have to relink, otherwise we might link with an installed library
  9271. # when we should be linking with a yet-to-be-installed one
  9272. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9273. test "$hardcode_minus_L" != no; then
  9274. # Linking always hardcodes the temporary library directory.
  9275. hardcode_action=relink
  9276. else
  9277. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9278. hardcode_action=immediate
  9279. fi
  9280. else
  9281. # We cannot hardcode anything, or else we can only hardcode existing
  9282. # directories.
  9283. hardcode_action=unsupported
  9284. fi
  9285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9286. $as_echo "$hardcode_action" >&6; }
  9287. if test "$hardcode_action" = relink ||
  9288. test "$inherit_rpath" = yes; then
  9289. # Fast installation is not supported
  9290. enable_fast_install=no
  9291. elif test "$shlibpath_overrides_runpath" = yes ||
  9292. test "$enable_shared" = no; then
  9293. # Fast installation is not necessary
  9294. enable_fast_install=needless
  9295. fi
  9296. if test "x$enable_dlopen" != xyes; then
  9297. enable_dlopen=unknown
  9298. enable_dlopen_self=unknown
  9299. enable_dlopen_self_static=unknown
  9300. else
  9301. lt_cv_dlopen=no
  9302. lt_cv_dlopen_libs=
  9303. case $host_os in
  9304. beos*)
  9305. lt_cv_dlopen="load_add_on"
  9306. lt_cv_dlopen_libs=
  9307. lt_cv_dlopen_self=yes
  9308. ;;
  9309. mingw* | pw32* | cegcc*)
  9310. lt_cv_dlopen="LoadLibrary"
  9311. lt_cv_dlopen_libs=
  9312. ;;
  9313. cygwin*)
  9314. lt_cv_dlopen="dlopen"
  9315. lt_cv_dlopen_libs=
  9316. ;;
  9317. darwin*)
  9318. # if libdl is installed we need to link against it
  9319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9320. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9321. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9322. $as_echo_n "(cached) " >&6
  9323. else
  9324. ac_check_lib_save_LIBS=$LIBS
  9325. LIBS="-ldl $LIBS"
  9326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9327. /* end confdefs.h. */
  9328. /* Override any GCC internal prototype to avoid an error.
  9329. Use char because int might match the return type of a GCC
  9330. builtin and then its argument prototype would still apply. */
  9331. #ifdef __cplusplus
  9332. extern "C"
  9333. #endif
  9334. char dlopen ();
  9335. int
  9336. main ()
  9337. {
  9338. return dlopen ();
  9339. ;
  9340. return 0;
  9341. }
  9342. _ACEOF
  9343. if ac_fn_c_try_link "$LINENO"; then :
  9344. ac_cv_lib_dl_dlopen=yes
  9345. else
  9346. ac_cv_lib_dl_dlopen=no
  9347. fi
  9348. rm -f core conftest.err conftest.$ac_objext \
  9349. conftest$ac_exeext conftest.$ac_ext
  9350. LIBS=$ac_check_lib_save_LIBS
  9351. fi
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9353. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9354. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9355. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9356. else
  9357. lt_cv_dlopen="dyld"
  9358. lt_cv_dlopen_libs=
  9359. lt_cv_dlopen_self=yes
  9360. fi
  9361. ;;
  9362. *)
  9363. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9364. if test "x$ac_cv_func_shl_load" = xyes; then :
  9365. lt_cv_dlopen="shl_load"
  9366. else
  9367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9368. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9369. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9370. $as_echo_n "(cached) " >&6
  9371. else
  9372. ac_check_lib_save_LIBS=$LIBS
  9373. LIBS="-ldld $LIBS"
  9374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9375. /* end confdefs.h. */
  9376. /* Override any GCC internal prototype to avoid an error.
  9377. Use char because int might match the return type of a GCC
  9378. builtin and then its argument prototype would still apply. */
  9379. #ifdef __cplusplus
  9380. extern "C"
  9381. #endif
  9382. char shl_load ();
  9383. int
  9384. main ()
  9385. {
  9386. return shl_load ();
  9387. ;
  9388. return 0;
  9389. }
  9390. _ACEOF
  9391. if ac_fn_c_try_link "$LINENO"; then :
  9392. ac_cv_lib_dld_shl_load=yes
  9393. else
  9394. ac_cv_lib_dld_shl_load=no
  9395. fi
  9396. rm -f core conftest.err conftest.$ac_objext \
  9397. conftest$ac_exeext conftest.$ac_ext
  9398. LIBS=$ac_check_lib_save_LIBS
  9399. fi
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9401. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9402. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9403. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9404. else
  9405. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9406. if test "x$ac_cv_func_dlopen" = xyes; then :
  9407. lt_cv_dlopen="dlopen"
  9408. else
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9410. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9411. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9412. $as_echo_n "(cached) " >&6
  9413. else
  9414. ac_check_lib_save_LIBS=$LIBS
  9415. LIBS="-ldl $LIBS"
  9416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9417. /* end confdefs.h. */
  9418. /* Override any GCC internal prototype to avoid an error.
  9419. Use char because int might match the return type of a GCC
  9420. builtin and then its argument prototype would still apply. */
  9421. #ifdef __cplusplus
  9422. extern "C"
  9423. #endif
  9424. char dlopen ();
  9425. int
  9426. main ()
  9427. {
  9428. return dlopen ();
  9429. ;
  9430. return 0;
  9431. }
  9432. _ACEOF
  9433. if ac_fn_c_try_link "$LINENO"; then :
  9434. ac_cv_lib_dl_dlopen=yes
  9435. else
  9436. ac_cv_lib_dl_dlopen=no
  9437. fi
  9438. rm -f core conftest.err conftest.$ac_objext \
  9439. conftest$ac_exeext conftest.$ac_ext
  9440. LIBS=$ac_check_lib_save_LIBS
  9441. fi
  9442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9443. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9444. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9445. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9446. else
  9447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9448. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9449. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9450. $as_echo_n "(cached) " >&6
  9451. else
  9452. ac_check_lib_save_LIBS=$LIBS
  9453. LIBS="-lsvld $LIBS"
  9454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9455. /* end confdefs.h. */
  9456. /* Override any GCC internal prototype to avoid an error.
  9457. Use char because int might match the return type of a GCC
  9458. builtin and then its argument prototype would still apply. */
  9459. #ifdef __cplusplus
  9460. extern "C"
  9461. #endif
  9462. char dlopen ();
  9463. int
  9464. main ()
  9465. {
  9466. return dlopen ();
  9467. ;
  9468. return 0;
  9469. }
  9470. _ACEOF
  9471. if ac_fn_c_try_link "$LINENO"; then :
  9472. ac_cv_lib_svld_dlopen=yes
  9473. else
  9474. ac_cv_lib_svld_dlopen=no
  9475. fi
  9476. rm -f core conftest.err conftest.$ac_objext \
  9477. conftest$ac_exeext conftest.$ac_ext
  9478. LIBS=$ac_check_lib_save_LIBS
  9479. fi
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9481. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9482. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9483. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9484. else
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9486. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9487. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9488. $as_echo_n "(cached) " >&6
  9489. else
  9490. ac_check_lib_save_LIBS=$LIBS
  9491. LIBS="-ldld $LIBS"
  9492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9493. /* end confdefs.h. */
  9494. /* Override any GCC internal prototype to avoid an error.
  9495. Use char because int might match the return type of a GCC
  9496. builtin and then its argument prototype would still apply. */
  9497. #ifdef __cplusplus
  9498. extern "C"
  9499. #endif
  9500. char dld_link ();
  9501. int
  9502. main ()
  9503. {
  9504. return dld_link ();
  9505. ;
  9506. return 0;
  9507. }
  9508. _ACEOF
  9509. if ac_fn_c_try_link "$LINENO"; then :
  9510. ac_cv_lib_dld_dld_link=yes
  9511. else
  9512. ac_cv_lib_dld_dld_link=no
  9513. fi
  9514. rm -f core conftest.err conftest.$ac_objext \
  9515. conftest$ac_exeext conftest.$ac_ext
  9516. LIBS=$ac_check_lib_save_LIBS
  9517. fi
  9518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9519. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9520. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9521. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9522. fi
  9523. fi
  9524. fi
  9525. fi
  9526. fi
  9527. fi
  9528. ;;
  9529. esac
  9530. if test "x$lt_cv_dlopen" != xno; then
  9531. enable_dlopen=yes
  9532. else
  9533. enable_dlopen=no
  9534. fi
  9535. case $lt_cv_dlopen in
  9536. dlopen)
  9537. save_CPPFLAGS="$CPPFLAGS"
  9538. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9539. save_LDFLAGS="$LDFLAGS"
  9540. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9541. save_LIBS="$LIBS"
  9542. LIBS="$lt_cv_dlopen_libs $LIBS"
  9543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9544. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9545. if ${lt_cv_dlopen_self+:} false; then :
  9546. $as_echo_n "(cached) " >&6
  9547. else
  9548. if test "$cross_compiling" = yes; then :
  9549. lt_cv_dlopen_self=cross
  9550. else
  9551. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9552. lt_status=$lt_dlunknown
  9553. cat > conftest.$ac_ext <<_LT_EOF
  9554. #line $LINENO "configure"
  9555. #include "confdefs.h"
  9556. #if HAVE_DLFCN_H
  9557. #include <dlfcn.h>
  9558. #endif
  9559. #include <stdio.h>
  9560. #ifdef RTLD_GLOBAL
  9561. # define LT_DLGLOBAL RTLD_GLOBAL
  9562. #else
  9563. # ifdef DL_GLOBAL
  9564. # define LT_DLGLOBAL DL_GLOBAL
  9565. # else
  9566. # define LT_DLGLOBAL 0
  9567. # endif
  9568. #endif
  9569. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9570. find out it does not work in some platform. */
  9571. #ifndef LT_DLLAZY_OR_NOW
  9572. # ifdef RTLD_LAZY
  9573. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9574. # else
  9575. # ifdef DL_LAZY
  9576. # define LT_DLLAZY_OR_NOW DL_LAZY
  9577. # else
  9578. # ifdef RTLD_NOW
  9579. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9580. # else
  9581. # ifdef DL_NOW
  9582. # define LT_DLLAZY_OR_NOW DL_NOW
  9583. # else
  9584. # define LT_DLLAZY_OR_NOW 0
  9585. # endif
  9586. # endif
  9587. # endif
  9588. # endif
  9589. #endif
  9590. /* When -fvisbility=hidden is used, assume the code has been annotated
  9591. correspondingly for the symbols needed. */
  9592. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9593. int fnord () __attribute__((visibility("default")));
  9594. #endif
  9595. int fnord () { return 42; }
  9596. int main ()
  9597. {
  9598. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9599. int status = $lt_dlunknown;
  9600. if (self)
  9601. {
  9602. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9603. else
  9604. {
  9605. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9606. else puts (dlerror ());
  9607. }
  9608. /* dlclose (self); */
  9609. }
  9610. else
  9611. puts (dlerror ());
  9612. return status;
  9613. }
  9614. _LT_EOF
  9615. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9616. (eval $ac_link) 2>&5
  9617. ac_status=$?
  9618. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9619. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9620. (./conftest; exit; ) >&5 2>/dev/null
  9621. lt_status=$?
  9622. case x$lt_status in
  9623. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9624. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9625. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9626. esac
  9627. else :
  9628. # compilation failed
  9629. lt_cv_dlopen_self=no
  9630. fi
  9631. fi
  9632. rm -fr conftest*
  9633. fi
  9634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9635. $as_echo "$lt_cv_dlopen_self" >&6; }
  9636. if test "x$lt_cv_dlopen_self" = xyes; then
  9637. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9639. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9640. if ${lt_cv_dlopen_self_static+:} false; then :
  9641. $as_echo_n "(cached) " >&6
  9642. else
  9643. if test "$cross_compiling" = yes; then :
  9644. lt_cv_dlopen_self_static=cross
  9645. else
  9646. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9647. lt_status=$lt_dlunknown
  9648. cat > conftest.$ac_ext <<_LT_EOF
  9649. #line $LINENO "configure"
  9650. #include "confdefs.h"
  9651. #if HAVE_DLFCN_H
  9652. #include <dlfcn.h>
  9653. #endif
  9654. #include <stdio.h>
  9655. #ifdef RTLD_GLOBAL
  9656. # define LT_DLGLOBAL RTLD_GLOBAL
  9657. #else
  9658. # ifdef DL_GLOBAL
  9659. # define LT_DLGLOBAL DL_GLOBAL
  9660. # else
  9661. # define LT_DLGLOBAL 0
  9662. # endif
  9663. #endif
  9664. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9665. find out it does not work in some platform. */
  9666. #ifndef LT_DLLAZY_OR_NOW
  9667. # ifdef RTLD_LAZY
  9668. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9669. # else
  9670. # ifdef DL_LAZY
  9671. # define LT_DLLAZY_OR_NOW DL_LAZY
  9672. # else
  9673. # ifdef RTLD_NOW
  9674. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9675. # else
  9676. # ifdef DL_NOW
  9677. # define LT_DLLAZY_OR_NOW DL_NOW
  9678. # else
  9679. # define LT_DLLAZY_OR_NOW 0
  9680. # endif
  9681. # endif
  9682. # endif
  9683. # endif
  9684. #endif
  9685. /* When -fvisbility=hidden is used, assume the code has been annotated
  9686. correspondingly for the symbols needed. */
  9687. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9688. int fnord () __attribute__((visibility("default")));
  9689. #endif
  9690. int fnord () { return 42; }
  9691. int main ()
  9692. {
  9693. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9694. int status = $lt_dlunknown;
  9695. if (self)
  9696. {
  9697. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9698. else
  9699. {
  9700. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9701. else puts (dlerror ());
  9702. }
  9703. /* dlclose (self); */
  9704. }
  9705. else
  9706. puts (dlerror ());
  9707. return status;
  9708. }
  9709. _LT_EOF
  9710. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9711. (eval $ac_link) 2>&5
  9712. ac_status=$?
  9713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9714. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9715. (./conftest; exit; ) >&5 2>/dev/null
  9716. lt_status=$?
  9717. case x$lt_status in
  9718. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9719. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9720. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9721. esac
  9722. else :
  9723. # compilation failed
  9724. lt_cv_dlopen_self_static=no
  9725. fi
  9726. fi
  9727. rm -fr conftest*
  9728. fi
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9730. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9731. fi
  9732. CPPFLAGS="$save_CPPFLAGS"
  9733. LDFLAGS="$save_LDFLAGS"
  9734. LIBS="$save_LIBS"
  9735. ;;
  9736. esac
  9737. case $lt_cv_dlopen_self in
  9738. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9739. *) enable_dlopen_self=unknown ;;
  9740. esac
  9741. case $lt_cv_dlopen_self_static in
  9742. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9743. *) enable_dlopen_self_static=unknown ;;
  9744. esac
  9745. fi
  9746. striplib=
  9747. old_striplib=
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9749. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9750. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9751. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9752. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9754. $as_echo "yes" >&6; }
  9755. else
  9756. # FIXME - insert some real tests, host_os isn't really good enough
  9757. case $host_os in
  9758. darwin*)
  9759. if test -n "$STRIP" ; then
  9760. striplib="$STRIP -x"
  9761. old_striplib="$STRIP -S"
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9763. $as_echo "yes" >&6; }
  9764. else
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9766. $as_echo "no" >&6; }
  9767. fi
  9768. ;;
  9769. *)
  9770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9771. $as_echo "no" >&6; }
  9772. ;;
  9773. esac
  9774. fi
  9775. # Report which library types will actually be built
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9777. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9779. $as_echo "$can_build_shared" >&6; }
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9781. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9782. test "$can_build_shared" = "no" && enable_shared=no
  9783. # On AIX, shared libraries and static libraries use the same namespace, and
  9784. # are all built from PIC.
  9785. case $host_os in
  9786. aix3*)
  9787. test "$enable_shared" = yes && enable_static=no
  9788. if test -n "$RANLIB"; then
  9789. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9790. postinstall_cmds='$RANLIB $lib'
  9791. fi
  9792. ;;
  9793. aix[4-9]*)
  9794. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9795. test "$enable_shared" = yes && enable_static=no
  9796. fi
  9797. ;;
  9798. esac
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9800. $as_echo "$enable_shared" >&6; }
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9802. $as_echo_n "checking whether to build static libraries... " >&6; }
  9803. # Make sure either enable_shared or enable_static is yes.
  9804. test "$enable_shared" = yes || enable_static=yes
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9806. $as_echo "$enable_static" >&6; }
  9807. fi
  9808. ac_ext=c
  9809. ac_cpp='$CPP $CPPFLAGS'
  9810. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9811. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9812. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9813. CC="$lt_save_CC"
  9814. ac_config_commands="$ac_config_commands libtool"
  9815. # Only expand once:
  9816. LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
  9817. LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
  9818. LT_REVISION=$SDL_INTERFACE_AGE
  9819. LT_AGE=`expr $SDL_BINARY_AGE - $SDL_INTERFACE_AGE`
  9820. ac_ext=c
  9821. ac_cpp='$CPP $CPPFLAGS'
  9822. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9823. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9824. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9825. if test -n "$ac_tool_prefix"; then
  9826. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  9827. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9829. $as_echo_n "checking for $ac_word... " >&6; }
  9830. if ${ac_cv_prog_CC+:} false; then :
  9831. $as_echo_n "(cached) " >&6
  9832. else
  9833. if test -n "$CC"; then
  9834. ac_cv_prog_CC="$CC" # Let the user override the test.
  9835. else
  9836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9837. for as_dir in $PATH
  9838. do
  9839. IFS=$as_save_IFS
  9840. test -z "$as_dir" && as_dir=.
  9841. for ac_exec_ext in '' $ac_executable_extensions; do
  9842. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9843. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  9844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9845. break 2
  9846. fi
  9847. done
  9848. done
  9849. IFS=$as_save_IFS
  9850. fi
  9851. fi
  9852. CC=$ac_cv_prog_CC
  9853. if test -n "$CC"; then
  9854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9855. $as_echo "$CC" >&6; }
  9856. else
  9857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9858. $as_echo "no" >&6; }
  9859. fi
  9860. fi
  9861. if test -z "$ac_cv_prog_CC"; then
  9862. ac_ct_CC=$CC
  9863. # Extract the first word of "gcc", so it can be a program name with args.
  9864. set dummy gcc; ac_word=$2
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9866. $as_echo_n "checking for $ac_word... " >&6; }
  9867. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  9868. $as_echo_n "(cached) " >&6
  9869. else
  9870. if test -n "$ac_ct_CC"; then
  9871. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  9872. else
  9873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9874. for as_dir in $PATH
  9875. do
  9876. IFS=$as_save_IFS
  9877. test -z "$as_dir" && as_dir=.
  9878. for ac_exec_ext in '' $ac_executable_extensions; do
  9879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9880. ac_cv_prog_ac_ct_CC="gcc"
  9881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9882. break 2
  9883. fi
  9884. done
  9885. done
  9886. IFS=$as_save_IFS
  9887. fi
  9888. fi
  9889. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  9890. if test -n "$ac_ct_CC"; then
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  9892. $as_echo "$ac_ct_CC" >&6; }
  9893. else
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9895. $as_echo "no" >&6; }
  9896. fi
  9897. if test "x$ac_ct_CC" = x; then
  9898. CC=""
  9899. else
  9900. case $cross_compiling:$ac_tool_warned in
  9901. yes:)
  9902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9903. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9904. ac_tool_warned=yes ;;
  9905. esac
  9906. CC=$ac_ct_CC
  9907. fi
  9908. else
  9909. CC="$ac_cv_prog_CC"
  9910. fi
  9911. if test -z "$CC"; then
  9912. if test -n "$ac_tool_prefix"; then
  9913. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  9914. set dummy ${ac_tool_prefix}cc; ac_word=$2
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9916. $as_echo_n "checking for $ac_word... " >&6; }
  9917. if ${ac_cv_prog_CC+:} false; then :
  9918. $as_echo_n "(cached) " >&6
  9919. else
  9920. if test -n "$CC"; then
  9921. ac_cv_prog_CC="$CC" # Let the user override the test.
  9922. else
  9923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9924. for as_dir in $PATH
  9925. do
  9926. IFS=$as_save_IFS
  9927. test -z "$as_dir" && as_dir=.
  9928. for ac_exec_ext in '' $ac_executable_extensions; do
  9929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9930. ac_cv_prog_CC="${ac_tool_prefix}cc"
  9931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9932. break 2
  9933. fi
  9934. done
  9935. done
  9936. IFS=$as_save_IFS
  9937. fi
  9938. fi
  9939. CC=$ac_cv_prog_CC
  9940. if test -n "$CC"; then
  9941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9942. $as_echo "$CC" >&6; }
  9943. else
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9945. $as_echo "no" >&6; }
  9946. fi
  9947. fi
  9948. fi
  9949. if test -z "$CC"; then
  9950. # Extract the first word of "cc", so it can be a program name with args.
  9951. set dummy cc; ac_word=$2
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9953. $as_echo_n "checking for $ac_word... " >&6; }
  9954. if ${ac_cv_prog_CC+:} false; then :
  9955. $as_echo_n "(cached) " >&6
  9956. else
  9957. if test -n "$CC"; then
  9958. ac_cv_prog_CC="$CC" # Let the user override the test.
  9959. else
  9960. ac_prog_rejected=no
  9961. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9962. for as_dir in $PATH
  9963. do
  9964. IFS=$as_save_IFS
  9965. test -z "$as_dir" && as_dir=.
  9966. for ac_exec_ext in '' $ac_executable_extensions; do
  9967. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9968. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  9969. ac_prog_rejected=yes
  9970. continue
  9971. fi
  9972. ac_cv_prog_CC="cc"
  9973. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9974. break 2
  9975. fi
  9976. done
  9977. done
  9978. IFS=$as_save_IFS
  9979. if test $ac_prog_rejected = yes; then
  9980. # We found a bogon in the path, so make sure we never use it.
  9981. set dummy $ac_cv_prog_CC
  9982. shift
  9983. if test $# != 0; then
  9984. # We chose a different compiler from the bogus one.
  9985. # However, it has the same basename, so the bogon will be chosen
  9986. # first if we set CC to just the basename; use the full file name.
  9987. shift
  9988. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  9989. fi
  9990. fi
  9991. fi
  9992. fi
  9993. CC=$ac_cv_prog_CC
  9994. if test -n "$CC"; then
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  9996. $as_echo "$CC" >&6; }
  9997. else
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9999. $as_echo "no" >&6; }
  10000. fi
  10001. fi
  10002. if test -z "$CC"; then
  10003. if test -n "$ac_tool_prefix"; then
  10004. for ac_prog in cl.exe
  10005. do
  10006. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10007. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10009. $as_echo_n "checking for $ac_word... " >&6; }
  10010. if ${ac_cv_prog_CC+:} false; then :
  10011. $as_echo_n "(cached) " >&6
  10012. else
  10013. if test -n "$CC"; then
  10014. ac_cv_prog_CC="$CC" # Let the user override the test.
  10015. else
  10016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10017. for as_dir in $PATH
  10018. do
  10019. IFS=$as_save_IFS
  10020. test -z "$as_dir" && as_dir=.
  10021. for ac_exec_ext in '' $ac_executable_extensions; do
  10022. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10023. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  10024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10025. break 2
  10026. fi
  10027. done
  10028. done
  10029. IFS=$as_save_IFS
  10030. fi
  10031. fi
  10032. CC=$ac_cv_prog_CC
  10033. if test -n "$CC"; then
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  10035. $as_echo "$CC" >&6; }
  10036. else
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10038. $as_echo "no" >&6; }
  10039. fi
  10040. test -n "$CC" && break
  10041. done
  10042. fi
  10043. if test -z "$CC"; then
  10044. ac_ct_CC=$CC
  10045. for ac_prog in cl.exe
  10046. do
  10047. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10048. set dummy $ac_prog; ac_word=$2
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10050. $as_echo_n "checking for $ac_word... " >&6; }
  10051. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  10052. $as_echo_n "(cached) " >&6
  10053. else
  10054. if test -n "$ac_ct_CC"; then
  10055. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  10056. else
  10057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10058. for as_dir in $PATH
  10059. do
  10060. IFS=$as_save_IFS
  10061. test -z "$as_dir" && as_dir=.
  10062. for ac_exec_ext in '' $ac_executable_extensions; do
  10063. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10064. ac_cv_prog_ac_ct_CC="$ac_prog"
  10065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10066. break 2
  10067. fi
  10068. done
  10069. done
  10070. IFS=$as_save_IFS
  10071. fi
  10072. fi
  10073. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  10074. if test -n "$ac_ct_CC"; then
  10075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  10076. $as_echo "$ac_ct_CC" >&6; }
  10077. else
  10078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10079. $as_echo "no" >&6; }
  10080. fi
  10081. test -n "$ac_ct_CC" && break
  10082. done
  10083. if test "x$ac_ct_CC" = x; then
  10084. CC=""
  10085. else
  10086. case $cross_compiling:$ac_tool_warned in
  10087. yes:)
  10088. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10089. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10090. ac_tool_warned=yes ;;
  10091. esac
  10092. CC=$ac_ct_CC
  10093. fi
  10094. fi
  10095. fi
  10096. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10097. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10098. as_fn_error $? "no acceptable C compiler found in \$PATH
  10099. See \`config.log' for more details" "$LINENO" 5; }
  10100. # Provide some information about the compiler.
  10101. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  10102. set X $ac_compile
  10103. ac_compiler=$2
  10104. for ac_option in --version -v -V -qversion; do
  10105. { { ac_try="$ac_compiler $ac_option >&5"
  10106. case "(($ac_try" in
  10107. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10108. *) ac_try_echo=$ac_try;;
  10109. esac
  10110. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10111. $as_echo "$ac_try_echo"; } >&5
  10112. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10113. ac_status=$?
  10114. if test -s conftest.err; then
  10115. sed '10a\
  10116. ... rest of stderr output deleted ...
  10117. 10q' conftest.err >conftest.er1
  10118. cat conftest.er1 >&5
  10119. fi
  10120. rm -f conftest.er1 conftest.err
  10121. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10122. test $ac_status = 0; }
  10123. done
  10124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  10125. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  10126. if ${ac_cv_c_compiler_gnu+:} false; then :
  10127. $as_echo_n "(cached) " >&6
  10128. else
  10129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10130. /* end confdefs.h. */
  10131. int
  10132. main ()
  10133. {
  10134. #ifndef __GNUC__
  10135. choke me
  10136. #endif
  10137. ;
  10138. return 0;
  10139. }
  10140. _ACEOF
  10141. if ac_fn_c_try_compile "$LINENO"; then :
  10142. ac_compiler_gnu=yes
  10143. else
  10144. ac_compiler_gnu=no
  10145. fi
  10146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10147. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  10148. fi
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  10150. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  10151. if test $ac_compiler_gnu = yes; then
  10152. GCC=yes
  10153. else
  10154. GCC=
  10155. fi
  10156. ac_test_CFLAGS=${CFLAGS+set}
  10157. ac_save_CFLAGS=$CFLAGS
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  10159. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  10160. if ${ac_cv_prog_cc_g+:} false; then :
  10161. $as_echo_n "(cached) " >&6
  10162. else
  10163. ac_save_c_werror_flag=$ac_c_werror_flag
  10164. ac_c_werror_flag=yes
  10165. ac_cv_prog_cc_g=no
  10166. CFLAGS="-g"
  10167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10168. /* end confdefs.h. */
  10169. int
  10170. main ()
  10171. {
  10172. ;
  10173. return 0;
  10174. }
  10175. _ACEOF
  10176. if ac_fn_c_try_compile "$LINENO"; then :
  10177. ac_cv_prog_cc_g=yes
  10178. else
  10179. CFLAGS=""
  10180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10181. /* end confdefs.h. */
  10182. int
  10183. main ()
  10184. {
  10185. ;
  10186. return 0;
  10187. }
  10188. _ACEOF
  10189. if ac_fn_c_try_compile "$LINENO"; then :
  10190. else
  10191. ac_c_werror_flag=$ac_save_c_werror_flag
  10192. CFLAGS="-g"
  10193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10194. /* end confdefs.h. */
  10195. int
  10196. main ()
  10197. {
  10198. ;
  10199. return 0;
  10200. }
  10201. _ACEOF
  10202. if ac_fn_c_try_compile "$LINENO"; then :
  10203. ac_cv_prog_cc_g=yes
  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. fi
  10209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10210. ac_c_werror_flag=$ac_save_c_werror_flag
  10211. fi
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  10213. $as_echo "$ac_cv_prog_cc_g" >&6; }
  10214. if test "$ac_test_CFLAGS" = set; then
  10215. CFLAGS=$ac_save_CFLAGS
  10216. elif test $ac_cv_prog_cc_g = yes; then
  10217. if test "$GCC" = yes; then
  10218. CFLAGS="-g -O2"
  10219. else
  10220. CFLAGS="-g"
  10221. fi
  10222. else
  10223. if test "$GCC" = yes; then
  10224. CFLAGS="-O2"
  10225. else
  10226. CFLAGS=
  10227. fi
  10228. fi
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  10230. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  10231. if ${ac_cv_prog_cc_c89+:} false; then :
  10232. $as_echo_n "(cached) " >&6
  10233. else
  10234. ac_cv_prog_cc_c89=no
  10235. ac_save_CC=$CC
  10236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10237. /* end confdefs.h. */
  10238. #include <stdarg.h>
  10239. #include <stdio.h>
  10240. struct stat;
  10241. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  10242. struct buf { int x; };
  10243. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  10244. static char *e (p, i)
  10245. char **p;
  10246. int i;
  10247. {
  10248. return p[i];
  10249. }
  10250. static char *f (char * (*g) (char **, int), char **p, ...)
  10251. {
  10252. char *s;
  10253. va_list v;
  10254. va_start (v,p);
  10255. s = g (p, va_arg (v,int));
  10256. va_end (v);
  10257. return s;
  10258. }
  10259. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  10260. function prototypes and stuff, but not '\xHH' hex character constants.
  10261. These don't provoke an error unfortunately, instead are silently treated
  10262. as 'x'. The following induces an error, until -std is added to get
  10263. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  10264. array size at least. It's necessary to write '\x00'==0 to get something
  10265. that's true only with -std. */
  10266. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  10267. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  10268. inside strings and character constants. */
  10269. #define FOO(x) 'x'
  10270. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  10271. int test (int i, double x);
  10272. struct s1 {int (*f) (int a);};
  10273. struct s2 {int (*f) (double a);};
  10274. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  10275. int argc;
  10276. char **argv;
  10277. int
  10278. main ()
  10279. {
  10280. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  10281. ;
  10282. return 0;
  10283. }
  10284. _ACEOF
  10285. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  10286. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  10287. do
  10288. CC="$ac_save_CC $ac_arg"
  10289. if ac_fn_c_try_compile "$LINENO"; then :
  10290. ac_cv_prog_cc_c89=$ac_arg
  10291. fi
  10292. rm -f core conftest.err conftest.$ac_objext
  10293. test "x$ac_cv_prog_cc_c89" != "xno" && break
  10294. done
  10295. rm -f conftest.$ac_ext
  10296. CC=$ac_save_CC
  10297. fi
  10298. # AC_CACHE_VAL
  10299. case "x$ac_cv_prog_cc_c89" in
  10300. x)
  10301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  10302. $as_echo "none needed" >&6; } ;;
  10303. xno)
  10304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  10305. $as_echo "unsupported" >&6; } ;;
  10306. *)
  10307. CC="$CC $ac_cv_prog_cc_c89"
  10308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  10309. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  10310. esac
  10311. if test "x$ac_cv_prog_cc_c89" != xno; then :
  10312. fi
  10313. ac_ext=c
  10314. ac_cpp='$CPP $CPPFLAGS'
  10315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10318. ac_ext=cpp
  10319. ac_cpp='$CXXCPP $CPPFLAGS'
  10320. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10321. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10322. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10323. if test -z "$CXX"; then
  10324. if test -n "$CCC"; then
  10325. CXX=$CCC
  10326. else
  10327. if test -n "$ac_tool_prefix"; then
  10328. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10329. do
  10330. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10331. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10333. $as_echo_n "checking for $ac_word... " >&6; }
  10334. if ${ac_cv_prog_CXX+:} false; then :
  10335. $as_echo_n "(cached) " >&6
  10336. else
  10337. if test -n "$CXX"; then
  10338. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  10339. else
  10340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10341. for as_dir in $PATH
  10342. do
  10343. IFS=$as_save_IFS
  10344. test -z "$as_dir" && as_dir=.
  10345. for ac_exec_ext in '' $ac_executable_extensions; do
  10346. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10347. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  10348. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10349. break 2
  10350. fi
  10351. done
  10352. done
  10353. IFS=$as_save_IFS
  10354. fi
  10355. fi
  10356. CXX=$ac_cv_prog_CXX
  10357. if test -n "$CXX"; then
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  10359. $as_echo "$CXX" >&6; }
  10360. else
  10361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10362. $as_echo "no" >&6; }
  10363. fi
  10364. test -n "$CXX" && break
  10365. done
  10366. fi
  10367. if test -z "$CXX"; then
  10368. ac_ct_CXX=$CXX
  10369. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  10370. do
  10371. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10372. set dummy $ac_prog; ac_word=$2
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10374. $as_echo_n "checking for $ac_word... " >&6; }
  10375. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  10376. $as_echo_n "(cached) " >&6
  10377. else
  10378. if test -n "$ac_ct_CXX"; then
  10379. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  10380. else
  10381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10382. for as_dir in $PATH
  10383. do
  10384. IFS=$as_save_IFS
  10385. test -z "$as_dir" && as_dir=.
  10386. for ac_exec_ext in '' $ac_executable_extensions; do
  10387. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10388. ac_cv_prog_ac_ct_CXX="$ac_prog"
  10389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10390. break 2
  10391. fi
  10392. done
  10393. done
  10394. IFS=$as_save_IFS
  10395. fi
  10396. fi
  10397. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  10398. if test -n "$ac_ct_CXX"; then
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  10400. $as_echo "$ac_ct_CXX" >&6; }
  10401. else
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10403. $as_echo "no" >&6; }
  10404. fi
  10405. test -n "$ac_ct_CXX" && break
  10406. done
  10407. if test "x$ac_ct_CXX" = x; then
  10408. CXX="g++"
  10409. else
  10410. case $cross_compiling:$ac_tool_warned in
  10411. yes:)
  10412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10414. ac_tool_warned=yes ;;
  10415. esac
  10416. CXX=$ac_ct_CXX
  10417. fi
  10418. fi
  10419. fi
  10420. fi
  10421. # Provide some information about the compiler.
  10422. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  10423. set X $ac_compile
  10424. ac_compiler=$2
  10425. for ac_option in --version -v -V -qversion; do
  10426. { { ac_try="$ac_compiler $ac_option >&5"
  10427. case "(($ac_try" in
  10428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10429. *) ac_try_echo=$ac_try;;
  10430. esac
  10431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  10432. $as_echo "$ac_try_echo"; } >&5
  10433. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  10434. ac_status=$?
  10435. if test -s conftest.err; then
  10436. sed '10a\
  10437. ... rest of stderr output deleted ...
  10438. 10q' conftest.err >conftest.er1
  10439. cat conftest.er1 >&5
  10440. fi
  10441. rm -f conftest.er1 conftest.err
  10442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10443. test $ac_status = 0; }
  10444. done
  10445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  10446. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  10447. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  10448. $as_echo_n "(cached) " >&6
  10449. else
  10450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10451. /* end confdefs.h. */
  10452. int
  10453. main ()
  10454. {
  10455. #ifndef __GNUC__
  10456. choke me
  10457. #endif
  10458. ;
  10459. return 0;
  10460. }
  10461. _ACEOF
  10462. if ac_fn_cxx_try_compile "$LINENO"; then :
  10463. ac_compiler_gnu=yes
  10464. else
  10465. ac_compiler_gnu=no
  10466. fi
  10467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10468. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  10469. fi
  10470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  10471. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  10472. if test $ac_compiler_gnu = yes; then
  10473. GXX=yes
  10474. else
  10475. GXX=
  10476. fi
  10477. ac_test_CXXFLAGS=${CXXFLAGS+set}
  10478. ac_save_CXXFLAGS=$CXXFLAGS
  10479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  10480. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  10481. if ${ac_cv_prog_cxx_g+:} false; then :
  10482. $as_echo_n "(cached) " >&6
  10483. else
  10484. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  10485. ac_cxx_werror_flag=yes
  10486. ac_cv_prog_cxx_g=no
  10487. CXXFLAGS="-g"
  10488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10489. /* end confdefs.h. */
  10490. int
  10491. main ()
  10492. {
  10493. ;
  10494. return 0;
  10495. }
  10496. _ACEOF
  10497. if ac_fn_cxx_try_compile "$LINENO"; then :
  10498. ac_cv_prog_cxx_g=yes
  10499. else
  10500. CXXFLAGS=""
  10501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10502. /* end confdefs.h. */
  10503. int
  10504. main ()
  10505. {
  10506. ;
  10507. return 0;
  10508. }
  10509. _ACEOF
  10510. if ac_fn_cxx_try_compile "$LINENO"; then :
  10511. else
  10512. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10513. CXXFLAGS="-g"
  10514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10515. /* end confdefs.h. */
  10516. int
  10517. main ()
  10518. {
  10519. ;
  10520. return 0;
  10521. }
  10522. _ACEOF
  10523. if ac_fn_cxx_try_compile "$LINENO"; then :
  10524. ac_cv_prog_cxx_g=yes
  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. fi
  10530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10531. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  10532. fi
  10533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  10534. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  10535. if test "$ac_test_CXXFLAGS" = set; then
  10536. CXXFLAGS=$ac_save_CXXFLAGS
  10537. elif test $ac_cv_prog_cxx_g = yes; then
  10538. if test "$GXX" = yes; then
  10539. CXXFLAGS="-g -O2"
  10540. else
  10541. CXXFLAGS="-g"
  10542. fi
  10543. else
  10544. if test "$GXX" = yes; then
  10545. CXXFLAGS="-O2"
  10546. else
  10547. CXXFLAGS=
  10548. fi
  10549. fi
  10550. ac_ext=c
  10551. ac_cpp='$CPP $CPPFLAGS'
  10552. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10553. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10554. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10555. func_stripname_cnf ()
  10556. {
  10557. case ${2} in
  10558. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  10559. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  10560. esac
  10561. } # func_stripname_cnf
  10562. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10563. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10564. (test "X$CXX" != "Xg++"))) ; then
  10565. ac_ext=cpp
  10566. ac_cpp='$CXXCPP $CPPFLAGS'
  10567. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10568. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10569. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10571. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10572. if test -z "$CXXCPP"; then
  10573. if ${ac_cv_prog_CXXCPP+:} false; then :
  10574. $as_echo_n "(cached) " >&6
  10575. else
  10576. # Double quotes because CXXCPP needs to be expanded
  10577. for CXXCPP in "$CXX -E" "/lib/cpp"
  10578. do
  10579. ac_preproc_ok=false
  10580. for ac_cxx_preproc_warn_flag in '' yes
  10581. do
  10582. # Use a header file that comes with gcc, so configuring glibc
  10583. # with a fresh cross-compiler works.
  10584. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10585. # <limits.h> exists even on freestanding compilers.
  10586. # On the NeXT, cc -E runs the code through the compiler's parser,
  10587. # not just through cpp. "Syntax error" is here to catch this case.
  10588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10589. /* end confdefs.h. */
  10590. #ifdef __STDC__
  10591. # include <limits.h>
  10592. #else
  10593. # include <assert.h>
  10594. #endif
  10595. Syntax error
  10596. _ACEOF
  10597. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10598. else
  10599. # Broken: fails on valid input.
  10600. continue
  10601. fi
  10602. rm -f conftest.err conftest.i conftest.$ac_ext
  10603. # OK, works on sane cases. Now check whether nonexistent headers
  10604. # can be detected and how.
  10605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10606. /* end confdefs.h. */
  10607. #include <ac_nonexistent.h>
  10608. _ACEOF
  10609. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10610. # Broken: success on invalid input.
  10611. continue
  10612. else
  10613. # Passes both tests.
  10614. ac_preproc_ok=:
  10615. break
  10616. fi
  10617. rm -f conftest.err conftest.i conftest.$ac_ext
  10618. done
  10619. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10620. rm -f conftest.i conftest.err conftest.$ac_ext
  10621. if $ac_preproc_ok; then :
  10622. break
  10623. fi
  10624. done
  10625. ac_cv_prog_CXXCPP=$CXXCPP
  10626. fi
  10627. CXXCPP=$ac_cv_prog_CXXCPP
  10628. else
  10629. ac_cv_prog_CXXCPP=$CXXCPP
  10630. fi
  10631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10632. $as_echo "$CXXCPP" >&6; }
  10633. ac_preproc_ok=false
  10634. for ac_cxx_preproc_warn_flag in '' yes
  10635. do
  10636. # Use a header file that comes with gcc, so configuring glibc
  10637. # with a fresh cross-compiler works.
  10638. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10639. # <limits.h> exists even on freestanding compilers.
  10640. # On the NeXT, cc -E runs the code through the compiler's parser,
  10641. # not just through cpp. "Syntax error" is here to catch this case.
  10642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10643. /* end confdefs.h. */
  10644. #ifdef __STDC__
  10645. # include <limits.h>
  10646. #else
  10647. # include <assert.h>
  10648. #endif
  10649. Syntax error
  10650. _ACEOF
  10651. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10652. else
  10653. # Broken: fails on valid input.
  10654. continue
  10655. fi
  10656. rm -f conftest.err conftest.i conftest.$ac_ext
  10657. # OK, works on sane cases. Now check whether nonexistent headers
  10658. # can be detected and how.
  10659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10660. /* end confdefs.h. */
  10661. #include <ac_nonexistent.h>
  10662. _ACEOF
  10663. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10664. # Broken: success on invalid input.
  10665. continue
  10666. else
  10667. # Passes both tests.
  10668. ac_preproc_ok=:
  10669. break
  10670. fi
  10671. rm -f conftest.err conftest.i conftest.$ac_ext
  10672. done
  10673. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10674. rm -f conftest.i conftest.err conftest.$ac_ext
  10675. if $ac_preproc_ok; then :
  10676. else
  10677. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10678. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10679. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10680. See \`config.log' for more details" "$LINENO" 5; }
  10681. fi
  10682. ac_ext=c
  10683. ac_cpp='$CPP $CPPFLAGS'
  10684. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10685. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10686. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10687. else
  10688. _lt_caught_CXX_error=yes
  10689. fi
  10690. ac_ext=cpp
  10691. ac_cpp='$CXXCPP $CPPFLAGS'
  10692. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10693. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10694. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10695. archive_cmds_need_lc_CXX=no
  10696. allow_undefined_flag_CXX=
  10697. always_export_symbols_CXX=no
  10698. archive_expsym_cmds_CXX=
  10699. compiler_needs_object_CXX=no
  10700. export_dynamic_flag_spec_CXX=
  10701. hardcode_direct_CXX=no
  10702. hardcode_direct_absolute_CXX=no
  10703. hardcode_libdir_flag_spec_CXX=
  10704. hardcode_libdir_separator_CXX=
  10705. hardcode_minus_L_CXX=no
  10706. hardcode_shlibpath_var_CXX=unsupported
  10707. hardcode_automatic_CXX=no
  10708. inherit_rpath_CXX=no
  10709. module_cmds_CXX=
  10710. module_expsym_cmds_CXX=
  10711. link_all_deplibs_CXX=unknown
  10712. old_archive_cmds_CXX=$old_archive_cmds
  10713. reload_flag_CXX=$reload_flag
  10714. reload_cmds_CXX=$reload_cmds
  10715. no_undefined_flag_CXX=
  10716. whole_archive_flag_spec_CXX=
  10717. enable_shared_with_static_runtimes_CXX=no
  10718. # Source file extension for C++ test sources.
  10719. ac_ext=cpp
  10720. # Object file extension for compiled C++ test sources.
  10721. objext=o
  10722. objext_CXX=$objext
  10723. # No sense in running all these tests if we already determined that
  10724. # the CXX compiler isn't working. Some variables (like enable_shared)
  10725. # are currently assumed to apply to all compilers on this platform,
  10726. # and will be corrupted by setting them based on a non-working compiler.
  10727. if test "$_lt_caught_CXX_error" != yes; then
  10728. # Code to be used in simple compile tests
  10729. lt_simple_compile_test_code="int some_variable = 0;"
  10730. # Code to be used in simple link tests
  10731. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10732. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10733. # If no C compiler was specified, use CC.
  10734. LTCC=${LTCC-"$CC"}
  10735. # If no C compiler flags were specified, use CFLAGS.
  10736. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10737. # Allow CC to be a program name with arguments.
  10738. compiler=$CC
  10739. # save warnings/boilerplate of simple test code
  10740. ac_outfile=conftest.$ac_objext
  10741. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10742. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10743. _lt_compiler_boilerplate=`cat conftest.err`
  10744. $RM conftest*
  10745. ac_outfile=conftest.$ac_objext
  10746. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10747. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10748. _lt_linker_boilerplate=`cat conftest.err`
  10749. $RM -r conftest*
  10750. # Allow CC to be a program name with arguments.
  10751. lt_save_CC=$CC
  10752. lt_save_CFLAGS=$CFLAGS
  10753. lt_save_LD=$LD
  10754. lt_save_GCC=$GCC
  10755. GCC=$GXX
  10756. lt_save_with_gnu_ld=$with_gnu_ld
  10757. lt_save_path_LD=$lt_cv_path_LD
  10758. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10759. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10760. else
  10761. $as_unset lt_cv_prog_gnu_ld
  10762. fi
  10763. if test -n "${lt_cv_path_LDCXX+set}"; then
  10764. lt_cv_path_LD=$lt_cv_path_LDCXX
  10765. else
  10766. $as_unset lt_cv_path_LD
  10767. fi
  10768. test -z "${LDCXX+set}" || LD=$LDCXX
  10769. CC=${CXX-"c++"}
  10770. CFLAGS=$CXXFLAGS
  10771. compiler=$CC
  10772. compiler_CXX=$CC
  10773. for cc_temp in $compiler""; do
  10774. case $cc_temp in
  10775. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10776. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10777. \-*) ;;
  10778. *) break;;
  10779. esac
  10780. done
  10781. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10782. if test -n "$compiler"; then
  10783. # We don't want -fno-exception when compiling C++ code, so set the
  10784. # no_builtin_flag separately
  10785. if test "$GXX" = yes; then
  10786. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10787. else
  10788. lt_prog_compiler_no_builtin_flag_CXX=
  10789. fi
  10790. if test "$GXX" = yes; then
  10791. # Set up default GNU C++ configuration
  10792. # Check whether --with-gnu-ld was given.
  10793. if test "${with_gnu_ld+set}" = set; then :
  10794. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10795. else
  10796. with_gnu_ld=no
  10797. fi
  10798. ac_prog=ld
  10799. if test "$GCC" = yes; then
  10800. # Check if gcc -print-prog-name=ld gives a path.
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10802. $as_echo_n "checking for ld used by $CC... " >&6; }
  10803. case $host in
  10804. *-*-mingw*)
  10805. # gcc leaves a trailing carriage return which upsets mingw
  10806. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10807. *)
  10808. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10809. esac
  10810. case $ac_prog in
  10811. # Accept absolute paths.
  10812. [\\/]* | ?:[\\/]*)
  10813. re_direlt='/[^/][^/]*/\.\./'
  10814. # Canonicalize the pathname of ld
  10815. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10816. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10817. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10818. done
  10819. test -z "$LD" && LD="$ac_prog"
  10820. ;;
  10821. "")
  10822. # If it fails, then pretend we aren't using GCC.
  10823. ac_prog=ld
  10824. ;;
  10825. *)
  10826. # If it is relative, then search for the first ld in PATH.
  10827. with_gnu_ld=unknown
  10828. ;;
  10829. esac
  10830. elif test "$with_gnu_ld" = yes; then
  10831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10832. $as_echo_n "checking for GNU ld... " >&6; }
  10833. else
  10834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10835. $as_echo_n "checking for non-GNU ld... " >&6; }
  10836. fi
  10837. if ${lt_cv_path_LD+:} false; then :
  10838. $as_echo_n "(cached) " >&6
  10839. else
  10840. if test -z "$LD"; then
  10841. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10842. for ac_dir in $PATH; do
  10843. IFS="$lt_save_ifs"
  10844. test -z "$ac_dir" && ac_dir=.
  10845. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10846. lt_cv_path_LD="$ac_dir/$ac_prog"
  10847. # Check to see if the program is GNU ld. I'd rather use --version,
  10848. # but apparently some variants of GNU ld only accept -v.
  10849. # Break only if it was the GNU/non-GNU ld that we prefer.
  10850. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10851. *GNU* | *'with BFD'*)
  10852. test "$with_gnu_ld" != no && break
  10853. ;;
  10854. *)
  10855. test "$with_gnu_ld" != yes && break
  10856. ;;
  10857. esac
  10858. fi
  10859. done
  10860. IFS="$lt_save_ifs"
  10861. else
  10862. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10863. fi
  10864. fi
  10865. LD="$lt_cv_path_LD"
  10866. if test -n "$LD"; then
  10867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10868. $as_echo "$LD" >&6; }
  10869. else
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10871. $as_echo "no" >&6; }
  10872. fi
  10873. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10875. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10876. if ${lt_cv_prog_gnu_ld+:} false; then :
  10877. $as_echo_n "(cached) " >&6
  10878. else
  10879. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10880. case `$LD -v 2>&1 </dev/null` in
  10881. *GNU* | *'with BFD'*)
  10882. lt_cv_prog_gnu_ld=yes
  10883. ;;
  10884. *)
  10885. lt_cv_prog_gnu_ld=no
  10886. ;;
  10887. esac
  10888. fi
  10889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10890. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10891. with_gnu_ld=$lt_cv_prog_gnu_ld
  10892. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10893. # archiving commands below assume that GNU ld is being used.
  10894. if test "$with_gnu_ld" = yes; then
  10895. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10896. 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'
  10897. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10898. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10899. # If archive_cmds runs LD, not CC, wlarc should be empty
  10900. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10901. # investigate it a little bit more. (MM)
  10902. wlarc='${wl}'
  10903. # ancient GNU ld didn't support --whole-archive et. al.
  10904. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10905. $GREP 'no-whole-archive' > /dev/null; then
  10906. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10907. else
  10908. whole_archive_flag_spec_CXX=
  10909. fi
  10910. else
  10911. with_gnu_ld=no
  10912. wlarc=
  10913. # A generic and very simple default shared library creation
  10914. # command for GNU C++ for the case where it uses the native
  10915. # linker, instead of GNU ld. If possible, this setting should
  10916. # overridden to take advantage of the native linker features on
  10917. # the platform it is being used on.
  10918. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10919. fi
  10920. # Commands to make compiler produce verbose output that lists
  10921. # what "hidden" libraries, object files and flags are used when
  10922. # linking a shared library.
  10923. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10924. else
  10925. GXX=no
  10926. with_gnu_ld=no
  10927. wlarc=
  10928. fi
  10929. # PORTME: fill in a description of your system's C++ link characteristics
  10930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10931. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10932. ld_shlibs_CXX=yes
  10933. case $host_os in
  10934. aix3*)
  10935. # FIXME: insert proper C++ library support
  10936. ld_shlibs_CXX=no
  10937. ;;
  10938. aix[4-9]*)
  10939. if test "$host_cpu" = ia64; then
  10940. # On IA64, the linker does run time linking by default, so we don't
  10941. # have to do anything special.
  10942. aix_use_runtimelinking=no
  10943. exp_sym_flag='-Bexport'
  10944. no_entry_flag=""
  10945. else
  10946. aix_use_runtimelinking=no
  10947. # Test if we are trying to use run time linking or normal
  10948. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10949. # need to do runtime linking.
  10950. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10951. for ld_flag in $LDFLAGS; do
  10952. case $ld_flag in
  10953. *-brtl*)
  10954. aix_use_runtimelinking=yes
  10955. break
  10956. ;;
  10957. esac
  10958. done
  10959. ;;
  10960. esac
  10961. exp_sym_flag='-bexport'
  10962. no_entry_flag='-bnoentry'
  10963. fi
  10964. # When large executables or shared objects are built, AIX ld can
  10965. # have problems creating the table of contents. If linking a library
  10966. # or program results in "error TOC overflow" add -mminimal-toc to
  10967. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10968. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10969. archive_cmds_CXX=''
  10970. hardcode_direct_CXX=yes
  10971. hardcode_direct_absolute_CXX=yes
  10972. hardcode_libdir_separator_CXX=':'
  10973. link_all_deplibs_CXX=yes
  10974. file_list_spec_CXX='${wl}-f,'
  10975. if test "$GXX" = yes; then
  10976. case $host_os in aix4.[012]|aix4.[012].*)
  10977. # We only want to do this on AIX 4.2 and lower, the check
  10978. # below for broken collect2 doesn't work under 4.3+
  10979. collect2name=`${CC} -print-prog-name=collect2`
  10980. if test -f "$collect2name" &&
  10981. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10982. then
  10983. # We have reworked collect2
  10984. :
  10985. else
  10986. # We have old collect2
  10987. hardcode_direct_CXX=unsupported
  10988. # It fails to find uninstalled libraries when the uninstalled
  10989. # path is not listed in the libpath. Setting hardcode_minus_L
  10990. # to unsupported forces relinking
  10991. hardcode_minus_L_CXX=yes
  10992. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10993. hardcode_libdir_separator_CXX=
  10994. fi
  10995. esac
  10996. shared_flag='-shared'
  10997. if test "$aix_use_runtimelinking" = yes; then
  10998. shared_flag="$shared_flag "'${wl}-G'
  10999. fi
  11000. else
  11001. # not using gcc
  11002. if test "$host_cpu" = ia64; then
  11003. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11004. # chokes on -Wl,-G. The following line is correct:
  11005. shared_flag='-G'
  11006. else
  11007. if test "$aix_use_runtimelinking" = yes; then
  11008. shared_flag='${wl}-G'
  11009. else
  11010. shared_flag='${wl}-bM:SRE'
  11011. fi
  11012. fi
  11013. fi
  11014. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11015. # It seems that -bexpall does not export symbols beginning with
  11016. # underscore (_), so it is better to generate a list of symbols to
  11017. # export.
  11018. always_export_symbols_CXX=yes
  11019. if test "$aix_use_runtimelinking" = yes; then
  11020. # Warning - without using the other runtime loading flags (-brtl),
  11021. # -berok will link without error, but may produce a broken library.
  11022. allow_undefined_flag_CXX='-berok'
  11023. # Determine the default libpath from the value encoded in an empty
  11024. # executable.
  11025. if test "${lt_cv_aix_libpath+set}" = set; then
  11026. aix_libpath=$lt_cv_aix_libpath
  11027. else
  11028. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11029. $as_echo_n "(cached) " >&6
  11030. else
  11031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11032. /* end confdefs.h. */
  11033. int
  11034. main ()
  11035. {
  11036. ;
  11037. return 0;
  11038. }
  11039. _ACEOF
  11040. if ac_fn_cxx_try_link "$LINENO"; then :
  11041. lt_aix_libpath_sed='
  11042. /Import File Strings/,/^$/ {
  11043. /^0/ {
  11044. s/^0 *\([^ ]*\) *$/\1/
  11045. p
  11046. }
  11047. }'
  11048. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11049. # Check for a 64-bit object if we didn't find anything.
  11050. if test -z "$lt_cv_aix_libpath__CXX"; then
  11051. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11052. fi
  11053. fi
  11054. rm -f core conftest.err conftest.$ac_objext \
  11055. conftest$ac_exeext conftest.$ac_ext
  11056. if test -z "$lt_cv_aix_libpath__CXX"; then
  11057. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11058. fi
  11059. fi
  11060. aix_libpath=$lt_cv_aix_libpath__CXX
  11061. fi
  11062. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11063. 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"
  11064. else
  11065. if test "$host_cpu" = ia64; then
  11066. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11067. allow_undefined_flag_CXX="-z nodefs"
  11068. 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"
  11069. else
  11070. # Determine the default libpath from the value encoded in an
  11071. # empty executable.
  11072. if test "${lt_cv_aix_libpath+set}" = set; then
  11073. aix_libpath=$lt_cv_aix_libpath
  11074. else
  11075. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11076. $as_echo_n "(cached) " >&6
  11077. else
  11078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11079. /* end confdefs.h. */
  11080. int
  11081. main ()
  11082. {
  11083. ;
  11084. return 0;
  11085. }
  11086. _ACEOF
  11087. if ac_fn_cxx_try_link "$LINENO"; then :
  11088. lt_aix_libpath_sed='
  11089. /Import File Strings/,/^$/ {
  11090. /^0/ {
  11091. s/^0 *\([^ ]*\) *$/\1/
  11092. p
  11093. }
  11094. }'
  11095. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11096. # Check for a 64-bit object if we didn't find anything.
  11097. if test -z "$lt_cv_aix_libpath__CXX"; then
  11098. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11099. fi
  11100. fi
  11101. rm -f core conftest.err conftest.$ac_objext \
  11102. conftest$ac_exeext conftest.$ac_ext
  11103. if test -z "$lt_cv_aix_libpath__CXX"; then
  11104. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11105. fi
  11106. fi
  11107. aix_libpath=$lt_cv_aix_libpath__CXX
  11108. fi
  11109. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11110. # Warning - without using the other run time loading flags,
  11111. # -berok will link without error, but may produce a broken library.
  11112. no_undefined_flag_CXX=' ${wl}-bernotok'
  11113. allow_undefined_flag_CXX=' ${wl}-berok'
  11114. if test "$with_gnu_ld" = yes; then
  11115. # We only use this code for GNU lds that support --whole-archive.
  11116. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11117. else
  11118. # Exported symbols can be pulled into shared objects from archives
  11119. whole_archive_flag_spec_CXX='$convenience'
  11120. fi
  11121. archive_cmds_need_lc_CXX=yes
  11122. # This is similar to how AIX traditionally builds its shared
  11123. # libraries.
  11124. 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'
  11125. fi
  11126. fi
  11127. ;;
  11128. beos*)
  11129. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11130. allow_undefined_flag_CXX=unsupported
  11131. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11132. # support --undefined. This deserves some investigation. FIXME
  11133. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11134. else
  11135. ld_shlibs_CXX=no
  11136. fi
  11137. ;;
  11138. chorus*)
  11139. case $cc_basename in
  11140. *)
  11141. # FIXME: insert proper C++ library support
  11142. ld_shlibs_CXX=no
  11143. ;;
  11144. esac
  11145. ;;
  11146. cygwin* | mingw* | pw32* | cegcc*)
  11147. case $GXX,$cc_basename in
  11148. ,cl* | no,cl*)
  11149. # Native MSVC
  11150. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11151. # no search path for DLLs.
  11152. hardcode_libdir_flag_spec_CXX=' '
  11153. allow_undefined_flag_CXX=unsupported
  11154. always_export_symbols_CXX=yes
  11155. file_list_spec_CXX='@'
  11156. # Tell ltmain to make .lib files, not .a files.
  11157. libext=lib
  11158. # Tell ltmain to make .dll files, not .so files.
  11159. shrext_cmds=".dll"
  11160. # FIXME: Setting linknames here is a bad hack.
  11161. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11162. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11163. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11164. else
  11165. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11166. fi~
  11167. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11168. linknames='
  11169. # The linker will not automatically build a static lib if we build a DLL.
  11170. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11171. enable_shared_with_static_runtimes_CXX=yes
  11172. # Don't use ranlib
  11173. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11174. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11175. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11176. case $lt_outputfile in
  11177. *.exe|*.EXE) ;;
  11178. *)
  11179. lt_outputfile="$lt_outputfile.exe"
  11180. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11181. ;;
  11182. esac~
  11183. func_to_tool_file "$lt_outputfile"~
  11184. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11185. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11186. $RM "$lt_outputfile.manifest";
  11187. fi'
  11188. ;;
  11189. *)
  11190. # g++
  11191. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11192. # as there is no search path for DLLs.
  11193. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11194. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11195. allow_undefined_flag_CXX=unsupported
  11196. always_export_symbols_CXX=no
  11197. enable_shared_with_static_runtimes_CXX=yes
  11198. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11199. 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'
  11200. # If the export-symbols file already is a .def file (1st line
  11201. # is EXPORTS), use it as is; otherwise, prepend...
  11202. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11203. cp $export_symbols $output_objdir/$soname.def;
  11204. else
  11205. echo EXPORTS > $output_objdir/$soname.def;
  11206. cat $export_symbols >> $output_objdir/$soname.def;
  11207. fi~
  11208. $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'
  11209. else
  11210. ld_shlibs_CXX=no
  11211. fi
  11212. ;;
  11213. esac
  11214. ;;
  11215. darwin* | rhapsody*)
  11216. archive_cmds_need_lc_CXX=no
  11217. hardcode_direct_CXX=no
  11218. hardcode_automatic_CXX=yes
  11219. hardcode_shlibpath_var_CXX=unsupported
  11220. if test "$lt_cv_ld_force_load" = "yes"; then
  11221. 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\"`'
  11222. else
  11223. whole_archive_flag_spec_CXX=''
  11224. fi
  11225. link_all_deplibs_CXX=yes
  11226. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11227. case $cc_basename in
  11228. ifort*) _lt_dar_can_shared=yes ;;
  11229. *) _lt_dar_can_shared=$GCC ;;
  11230. esac
  11231. if test "$_lt_dar_can_shared" = "yes"; then
  11232. output_verbose_link_cmd=func_echo_all
  11233. 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}"
  11234. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11235. 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}"
  11236. 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}"
  11237. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11238. 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}"
  11239. 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}"
  11240. fi
  11241. else
  11242. ld_shlibs_CXX=no
  11243. fi
  11244. ;;
  11245. dgux*)
  11246. case $cc_basename in
  11247. ec++*)
  11248. # FIXME: insert proper C++ library support
  11249. ld_shlibs_CXX=no
  11250. ;;
  11251. ghcx*)
  11252. # Green Hills C++ Compiler
  11253. # FIXME: insert proper C++ library support
  11254. ld_shlibs_CXX=no
  11255. ;;
  11256. *)
  11257. # FIXME: insert proper C++ library support
  11258. ld_shlibs_CXX=no
  11259. ;;
  11260. esac
  11261. ;;
  11262. freebsd2.*)
  11263. # C++ shared libraries reported to be fairly broken before
  11264. # switch to ELF
  11265. ld_shlibs_CXX=no
  11266. ;;
  11267. freebsd-elf*)
  11268. archive_cmds_need_lc_CXX=no
  11269. ;;
  11270. freebsd* | dragonfly*)
  11271. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11272. # conventions
  11273. ld_shlibs_CXX=yes
  11274. ;;
  11275. gnu*)
  11276. ;;
  11277. haiku*)
  11278. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11279. link_all_deplibs_CXX=yes
  11280. ;;
  11281. hpux9*)
  11282. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11283. hardcode_libdir_separator_CXX=:
  11284. export_dynamic_flag_spec_CXX='${wl}-E'
  11285. hardcode_direct_CXX=yes
  11286. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11287. # but as the default
  11288. # location of the library.
  11289. case $cc_basename in
  11290. CC*)
  11291. # FIXME: insert proper C++ library support
  11292. ld_shlibs_CXX=no
  11293. ;;
  11294. aCC*)
  11295. 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'
  11296. # Commands to make compiler produce verbose output that lists
  11297. # what "hidden" libraries, object files and flags are used when
  11298. # linking a shared library.
  11299. #
  11300. # There doesn't appear to be a way to prevent this compiler from
  11301. # explicitly linking system object files so we need to strip them
  11302. # from the output so that they don't get included in the library
  11303. # dependencies.
  11304. 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"'
  11305. ;;
  11306. *)
  11307. if test "$GXX" = yes; then
  11308. 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'
  11309. else
  11310. # FIXME: insert proper C++ library support
  11311. ld_shlibs_CXX=no
  11312. fi
  11313. ;;
  11314. esac
  11315. ;;
  11316. hpux10*|hpux11*)
  11317. if test $with_gnu_ld = no; then
  11318. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11319. hardcode_libdir_separator_CXX=:
  11320. case $host_cpu in
  11321. hppa*64*|ia64*)
  11322. ;;
  11323. *)
  11324. export_dynamic_flag_spec_CXX='${wl}-E'
  11325. ;;
  11326. esac
  11327. fi
  11328. case $host_cpu in
  11329. hppa*64*|ia64*)
  11330. hardcode_direct_CXX=no
  11331. hardcode_shlibpath_var_CXX=no
  11332. ;;
  11333. *)
  11334. hardcode_direct_CXX=yes
  11335. hardcode_direct_absolute_CXX=yes
  11336. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11337. # but as the default
  11338. # location of the library.
  11339. ;;
  11340. esac
  11341. case $cc_basename in
  11342. CC*)
  11343. # FIXME: insert proper C++ library support
  11344. ld_shlibs_CXX=no
  11345. ;;
  11346. aCC*)
  11347. case $host_cpu in
  11348. hppa*64*)
  11349. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11350. ;;
  11351. ia64*)
  11352. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11353. ;;
  11354. *)
  11355. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11356. ;;
  11357. esac
  11358. # Commands to make compiler produce verbose output that lists
  11359. # what "hidden" libraries, object files and flags are used when
  11360. # linking a shared library.
  11361. #
  11362. # There doesn't appear to be a way to prevent this compiler from
  11363. # explicitly linking system object files so we need to strip them
  11364. # from the output so that they don't get included in the library
  11365. # dependencies.
  11366. 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"'
  11367. ;;
  11368. *)
  11369. if test "$GXX" = yes; then
  11370. if test $with_gnu_ld = no; then
  11371. case $host_cpu in
  11372. hppa*64*)
  11373. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11374. ;;
  11375. ia64*)
  11376. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11377. ;;
  11378. *)
  11379. 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'
  11380. ;;
  11381. esac
  11382. fi
  11383. else
  11384. # FIXME: insert proper C++ library support
  11385. ld_shlibs_CXX=no
  11386. fi
  11387. ;;
  11388. esac
  11389. ;;
  11390. interix[3-9]*)
  11391. hardcode_direct_CXX=no
  11392. hardcode_shlibpath_var_CXX=no
  11393. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11394. export_dynamic_flag_spec_CXX='${wl}-E'
  11395. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11396. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11397. # default) and relocated if they conflict, which is a slow very memory
  11398. # consuming and fragmenting process. To avoid this, we pick a random,
  11399. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11400. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11401. 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'
  11402. 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'
  11403. ;;
  11404. irix5* | irix6*)
  11405. case $cc_basename in
  11406. CC*)
  11407. # SGI C++
  11408. 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'
  11409. # Archives containing C++ object files must be created using
  11410. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11411. # necessary to make sure instantiated templates are included
  11412. # in the archive.
  11413. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11414. ;;
  11415. *)
  11416. if test "$GXX" = yes; then
  11417. if test "$with_gnu_ld" = no; then
  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"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11419. else
  11420. 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'
  11421. fi
  11422. fi
  11423. link_all_deplibs_CXX=yes
  11424. ;;
  11425. esac
  11426. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11427. hardcode_libdir_separator_CXX=:
  11428. inherit_rpath_CXX=yes
  11429. ;;
  11430. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11431. case $cc_basename in
  11432. KCC*)
  11433. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11434. # KCC will only create a shared library if the output file
  11435. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11436. # to its proper name (with version) after linking.
  11437. 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'
  11438. 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'
  11439. # Commands to make compiler produce verbose output that lists
  11440. # what "hidden" libraries, object files and flags are used when
  11441. # linking a shared library.
  11442. #
  11443. # There doesn't appear to be a way to prevent this compiler from
  11444. # explicitly linking system object files so we need to strip them
  11445. # from the output so that they don't get included in the library
  11446. # dependencies.
  11447. 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"'
  11448. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11449. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11450. # Archives containing C++ object files must be created using
  11451. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11452. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11453. ;;
  11454. icpc* | ecpc* )
  11455. # Intel C++
  11456. with_gnu_ld=yes
  11457. # version 8.0 and above of icpc choke on multiply defined symbols
  11458. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11459. # earlier do not add the objects themselves.
  11460. case `$CC -V 2>&1` in
  11461. *"Version 7."*)
  11462. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11463. 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'
  11464. ;;
  11465. *) # Version 8.0 or newer
  11466. tmp_idyn=
  11467. case $host_cpu in
  11468. ia64*) tmp_idyn=' -i_dynamic';;
  11469. esac
  11470. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11471. 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'
  11472. ;;
  11473. esac
  11474. archive_cmds_need_lc_CXX=no
  11475. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11476. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11477. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11478. ;;
  11479. pgCC* | pgcpp*)
  11480. # Portland Group C++ compiler
  11481. case `$CC -V` in
  11482. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11483. prelink_cmds_CXX='tpldir=Template.dir~
  11484. rm -rf $tpldir~
  11485. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11486. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11487. old_archive_cmds_CXX='tpldir=Template.dir~
  11488. rm -rf $tpldir~
  11489. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11490. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11491. $RANLIB $oldlib'
  11492. archive_cmds_CXX='tpldir=Template.dir~
  11493. rm -rf $tpldir~
  11494. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11495. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11496. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11497. rm -rf $tpldir~
  11498. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11499. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11500. ;;
  11501. *) # Version 6 and above use weak symbols
  11502. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11503. 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'
  11504. ;;
  11505. esac
  11506. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11507. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11508. 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'
  11509. ;;
  11510. cxx*)
  11511. # Compaq C++
  11512. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11513. 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'
  11514. runpath_var=LD_RUN_PATH
  11515. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11516. hardcode_libdir_separator_CXX=:
  11517. # Commands to make compiler produce verbose output that lists
  11518. # what "hidden" libraries, object files and flags are used when
  11519. # linking a shared library.
  11520. #
  11521. # There doesn't appear to be a way to prevent this compiler from
  11522. # explicitly linking system object files so we need to strip them
  11523. # from the output so that they don't get included in the library
  11524. # dependencies.
  11525. 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'
  11526. ;;
  11527. xl* | mpixl* | bgxl*)
  11528. # IBM XL 8.0 on PPC, with GNU ld
  11529. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11530. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11531. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11532. if test "x$supports_anon_versioning" = xyes; then
  11533. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11534. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11535. echo "local: *; };" >> $output_objdir/$libname.ver~
  11536. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11537. fi
  11538. ;;
  11539. *)
  11540. case `$CC -V 2>&1 | sed 5q` in
  11541. *Sun\ C*)
  11542. # Sun C++ 5.9
  11543. no_undefined_flag_CXX=' -zdefs'
  11544. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11545. 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'
  11546. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11547. 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'
  11548. compiler_needs_object_CXX=yes
  11549. # Not sure whether something based on
  11550. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11551. # would be better.
  11552. output_verbose_link_cmd='func_echo_all'
  11553. # Archives containing C++ object files must be created using
  11554. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11555. # necessary to make sure instantiated templates are included
  11556. # in the archive.
  11557. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11558. ;;
  11559. esac
  11560. ;;
  11561. esac
  11562. ;;
  11563. lynxos*)
  11564. # FIXME: insert proper C++ library support
  11565. ld_shlibs_CXX=no
  11566. ;;
  11567. m88k*)
  11568. # FIXME: insert proper C++ library support
  11569. ld_shlibs_CXX=no
  11570. ;;
  11571. mvs*)
  11572. case $cc_basename in
  11573. cxx*)
  11574. # FIXME: insert proper C++ library support
  11575. ld_shlibs_CXX=no
  11576. ;;
  11577. *)
  11578. # FIXME: insert proper C++ library support
  11579. ld_shlibs_CXX=no
  11580. ;;
  11581. esac
  11582. ;;
  11583. netbsd*)
  11584. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11585. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11586. wlarc=
  11587. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11588. hardcode_direct_CXX=yes
  11589. hardcode_shlibpath_var_CXX=no
  11590. fi
  11591. # Workaround some broken pre-1.5 toolchains
  11592. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11593. ;;
  11594. *nto* | *qnx*)
  11595. ld_shlibs_CXX=yes
  11596. ;;
  11597. openbsd2*)
  11598. # C++ shared libraries are fairly broken
  11599. ld_shlibs_CXX=no
  11600. ;;
  11601. openbsd*)
  11602. if test -f /usr/libexec/ld.so; then
  11603. hardcode_direct_CXX=yes
  11604. hardcode_shlibpath_var_CXX=no
  11605. hardcode_direct_absolute_CXX=yes
  11606. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11607. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11608. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11609. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11610. export_dynamic_flag_spec_CXX='${wl}-E'
  11611. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11612. fi
  11613. output_verbose_link_cmd=func_echo_all
  11614. else
  11615. ld_shlibs_CXX=no
  11616. fi
  11617. ;;
  11618. osf3* | osf4* | osf5*)
  11619. case $cc_basename in
  11620. KCC*)
  11621. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11622. # KCC will only create a shared library if the output file
  11623. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11624. # to its proper name (with version) after linking.
  11625. 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'
  11626. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11627. hardcode_libdir_separator_CXX=:
  11628. # Archives containing C++ object files must be created using
  11629. # the KAI C++ compiler.
  11630. case $host in
  11631. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11632. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11633. esac
  11634. ;;
  11635. RCC*)
  11636. # Rational C++ 2.4.1
  11637. # FIXME: insert proper C++ library support
  11638. ld_shlibs_CXX=no
  11639. ;;
  11640. cxx*)
  11641. case $host in
  11642. osf3*)
  11643. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11644. 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'
  11645. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11646. ;;
  11647. *)
  11648. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11649. 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'
  11650. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11651. echo "-hidden">> $lib.exp~
  11652. $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~
  11653. $RM $lib.exp'
  11654. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11655. ;;
  11656. esac
  11657. hardcode_libdir_separator_CXX=:
  11658. # Commands to make compiler produce verbose output that lists
  11659. # what "hidden" libraries, object files and flags are used when
  11660. # linking a shared library.
  11661. #
  11662. # There doesn't appear to be a way to prevent this compiler from
  11663. # explicitly linking system object files so we need to strip them
  11664. # from the output so that they don't get included in the library
  11665. # dependencies.
  11666. 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"'
  11667. ;;
  11668. *)
  11669. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11670. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11671. case $host in
  11672. osf3*)
  11673. 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'
  11674. ;;
  11675. *)
  11676. 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'
  11677. ;;
  11678. esac
  11679. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11680. hardcode_libdir_separator_CXX=:
  11681. # Commands to make compiler produce verbose output that lists
  11682. # what "hidden" libraries, object files and flags are used when
  11683. # linking a shared library.
  11684. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11685. else
  11686. # FIXME: insert proper C++ library support
  11687. ld_shlibs_CXX=no
  11688. fi
  11689. ;;
  11690. esac
  11691. ;;
  11692. psos*)
  11693. # FIXME: insert proper C++ library support
  11694. ld_shlibs_CXX=no
  11695. ;;
  11696. sunos4*)
  11697. case $cc_basename in
  11698. CC*)
  11699. # Sun C++ 4.x
  11700. # FIXME: insert proper C++ library support
  11701. ld_shlibs_CXX=no
  11702. ;;
  11703. lcc*)
  11704. # Lucid
  11705. # FIXME: insert proper C++ library support
  11706. ld_shlibs_CXX=no
  11707. ;;
  11708. *)
  11709. # FIXME: insert proper C++ library support
  11710. ld_shlibs_CXX=no
  11711. ;;
  11712. esac
  11713. ;;
  11714. solaris*)
  11715. case $cc_basename in
  11716. CC* | sunCC*)
  11717. # Sun C++ 4.2, 5.x and Centerline C++
  11718. archive_cmds_need_lc_CXX=yes
  11719. no_undefined_flag_CXX=' -zdefs'
  11720. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11721. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11722. $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'
  11723. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11724. hardcode_shlibpath_var_CXX=no
  11725. case $host_os in
  11726. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11727. *)
  11728. # The compiler driver will combine and reorder linker options,
  11729. # but understands `-z linker_flag'.
  11730. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11731. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11732. ;;
  11733. esac
  11734. link_all_deplibs_CXX=yes
  11735. output_verbose_link_cmd='func_echo_all'
  11736. # Archives containing C++ object files must be created using
  11737. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11738. # necessary to make sure instantiated templates are included
  11739. # in the archive.
  11740. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11741. ;;
  11742. gcx*)
  11743. # Green Hills C++ Compiler
  11744. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11745. # The C++ compiler must be used to create the archive.
  11746. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11747. ;;
  11748. *)
  11749. # GNU C++ compiler with Solaris linker
  11750. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11751. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11752. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11753. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11754. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11755. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11756. # Commands to make compiler produce verbose output that lists
  11757. # what "hidden" libraries, object files and flags are used when
  11758. # linking a shared library.
  11759. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11760. else
  11761. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11762. # platform.
  11763. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11764. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11765. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11766. # Commands to make compiler produce verbose output that lists
  11767. # what "hidden" libraries, object files and flags are used when
  11768. # linking a shared library.
  11769. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11770. fi
  11771. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11772. case $host_os in
  11773. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11774. *)
  11775. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11776. ;;
  11777. esac
  11778. fi
  11779. ;;
  11780. esac
  11781. ;;
  11782. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11783. no_undefined_flag_CXX='${wl}-z,text'
  11784. archive_cmds_need_lc_CXX=no
  11785. hardcode_shlibpath_var_CXX=no
  11786. runpath_var='LD_RUN_PATH'
  11787. case $cc_basename in
  11788. CC*)
  11789. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11790. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11791. ;;
  11792. *)
  11793. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11794. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11795. ;;
  11796. esac
  11797. ;;
  11798. sysv5* | sco3.2v5* | sco5v6*)
  11799. # Note: We can NOT use -z defs as we might desire, because we do not
  11800. # link with -lc, and that would cause any symbols used from libc to
  11801. # always be unresolved, which means just about no library would
  11802. # ever link correctly. If we're not using GNU ld we use -z text
  11803. # though, which does catch some bad symbols but isn't as heavy-handed
  11804. # as -z defs.
  11805. no_undefined_flag_CXX='${wl}-z,text'
  11806. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11807. archive_cmds_need_lc_CXX=no
  11808. hardcode_shlibpath_var_CXX=no
  11809. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11810. hardcode_libdir_separator_CXX=':'
  11811. link_all_deplibs_CXX=yes
  11812. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11813. runpath_var='LD_RUN_PATH'
  11814. case $cc_basename in
  11815. CC*)
  11816. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11817. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11818. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11819. '"$old_archive_cmds_CXX"
  11820. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11821. '"$reload_cmds_CXX"
  11822. ;;
  11823. *)
  11824. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11825. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11826. ;;
  11827. esac
  11828. ;;
  11829. tandem*)
  11830. case $cc_basename in
  11831. NCC*)
  11832. # NonStop-UX NCC 3.20
  11833. # FIXME: insert proper C++ library support
  11834. ld_shlibs_CXX=no
  11835. ;;
  11836. *)
  11837. # FIXME: insert proper C++ library support
  11838. ld_shlibs_CXX=no
  11839. ;;
  11840. esac
  11841. ;;
  11842. vxworks*)
  11843. # FIXME: insert proper C++ library support
  11844. ld_shlibs_CXX=no
  11845. ;;
  11846. *)
  11847. # FIXME: insert proper C++ library support
  11848. ld_shlibs_CXX=no
  11849. ;;
  11850. esac
  11851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11852. $as_echo "$ld_shlibs_CXX" >&6; }
  11853. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11854. GCC_CXX="$GXX"
  11855. LD_CXX="$LD"
  11856. ## CAVEAT EMPTOR:
  11857. ## There is no encapsulation within the following macros, do not change
  11858. ## the running order or otherwise move them around unless you know exactly
  11859. ## what you are doing...
  11860. # Dependencies to place before and after the object being linked:
  11861. predep_objects_CXX=
  11862. postdep_objects_CXX=
  11863. predeps_CXX=
  11864. postdeps_CXX=
  11865. compiler_lib_search_path_CXX=
  11866. cat > conftest.$ac_ext <<_LT_EOF
  11867. class Foo
  11868. {
  11869. public:
  11870. Foo (void) { a = 0; }
  11871. private:
  11872. int a;
  11873. };
  11874. _LT_EOF
  11875. _lt_libdeps_save_CFLAGS=$CFLAGS
  11876. case "$CC $CFLAGS " in #(
  11877. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11878. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11879. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11880. esac
  11881. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11882. (eval $ac_compile) 2>&5
  11883. ac_status=$?
  11884. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11885. test $ac_status = 0; }; then
  11886. # Parse the compiler output and extract the necessary
  11887. # objects, libraries and library flags.
  11888. # Sentinel used to keep track of whether or not we are before
  11889. # the conftest object file.
  11890. pre_test_object_deps_done=no
  11891. for p in `eval "$output_verbose_link_cmd"`; do
  11892. case ${prev}${p} in
  11893. -L* | -R* | -l*)
  11894. # Some compilers place space between "-{L,R}" and the path.
  11895. # Remove the space.
  11896. if test $p = "-L" ||
  11897. test $p = "-R"; then
  11898. prev=$p
  11899. continue
  11900. fi
  11901. # Expand the sysroot to ease extracting the directories later.
  11902. if test -z "$prev"; then
  11903. case $p in
  11904. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11905. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11906. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11907. esac
  11908. fi
  11909. case $p in
  11910. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11911. esac
  11912. if test "$pre_test_object_deps_done" = no; then
  11913. case ${prev} in
  11914. -L | -R)
  11915. # Internal compiler library paths should come after those
  11916. # provided the user. The postdeps already come after the
  11917. # user supplied libs so there is no need to process them.
  11918. if test -z "$compiler_lib_search_path_CXX"; then
  11919. compiler_lib_search_path_CXX="${prev}${p}"
  11920. else
  11921. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11922. fi
  11923. ;;
  11924. # The "-l" case would never come before the object being
  11925. # linked, so don't bother handling this case.
  11926. esac
  11927. else
  11928. if test -z "$postdeps_CXX"; then
  11929. postdeps_CXX="${prev}${p}"
  11930. else
  11931. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11932. fi
  11933. fi
  11934. prev=
  11935. ;;
  11936. *.lto.$objext) ;; # Ignore GCC LTO objects
  11937. *.$objext)
  11938. # This assumes that the test object file only shows up
  11939. # once in the compiler output.
  11940. if test "$p" = "conftest.$objext"; then
  11941. pre_test_object_deps_done=yes
  11942. continue
  11943. fi
  11944. if test "$pre_test_object_deps_done" = no; then
  11945. if test -z "$predep_objects_CXX"; then
  11946. predep_objects_CXX="$p"
  11947. else
  11948. predep_objects_CXX="$predep_objects_CXX $p"
  11949. fi
  11950. else
  11951. if test -z "$postdep_objects_CXX"; then
  11952. postdep_objects_CXX="$p"
  11953. else
  11954. postdep_objects_CXX="$postdep_objects_CXX $p"
  11955. fi
  11956. fi
  11957. ;;
  11958. *) ;; # Ignore the rest.
  11959. esac
  11960. done
  11961. # Clean up.
  11962. rm -f a.out a.exe
  11963. else
  11964. echo "libtool.m4: error: problem compiling CXX test program"
  11965. fi
  11966. $RM -f confest.$objext
  11967. CFLAGS=$_lt_libdeps_save_CFLAGS
  11968. # PORTME: override above test on systems where it is broken
  11969. case $host_os in
  11970. interix[3-9]*)
  11971. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11972. # hack all around it, let's just trust "g++" to DTRT.
  11973. predep_objects_CXX=
  11974. postdep_objects_CXX=
  11975. postdeps_CXX=
  11976. ;;
  11977. linux*)
  11978. case `$CC -V 2>&1 | sed 5q` in
  11979. *Sun\ C*)
  11980. # Sun C++ 5.9
  11981. # The more standards-conforming stlport4 library is
  11982. # incompatible with the Cstd library. Avoid specifying
  11983. # it if it's in CXXFLAGS. Ignore libCrun as
  11984. # -library=stlport4 depends on it.
  11985. case " $CXX $CXXFLAGS " in
  11986. *" -library=stlport4 "*)
  11987. solaris_use_stlport4=yes
  11988. ;;
  11989. esac
  11990. if test "$solaris_use_stlport4" != yes; then
  11991. postdeps_CXX='-library=Cstd -library=Crun'
  11992. fi
  11993. ;;
  11994. esac
  11995. ;;
  11996. solaris*)
  11997. case $cc_basename in
  11998. CC* | sunCC*)
  11999. # The more standards-conforming stlport4 library is
  12000. # incompatible with the Cstd library. Avoid specifying
  12001. # it if it's in CXXFLAGS. Ignore libCrun as
  12002. # -library=stlport4 depends on it.
  12003. case " $CXX $CXXFLAGS " in
  12004. *" -library=stlport4 "*)
  12005. solaris_use_stlport4=yes
  12006. ;;
  12007. esac
  12008. # Adding this requires a known-good setup of shared libraries for
  12009. # Sun compiler versions before 5.6, else PIC objects from an old
  12010. # archive will be linked into the output, leading to subtle bugs.
  12011. if test "$solaris_use_stlport4" != yes; then
  12012. postdeps_CXX='-library=Cstd -library=Crun'
  12013. fi
  12014. ;;
  12015. esac
  12016. ;;
  12017. esac
  12018. case " $postdeps_CXX " in
  12019. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12020. esac
  12021. compiler_lib_search_dirs_CXX=
  12022. if test -n "${compiler_lib_search_path_CXX}"; then
  12023. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12024. fi
  12025. lt_prog_compiler_wl_CXX=
  12026. lt_prog_compiler_pic_CXX=
  12027. lt_prog_compiler_static_CXX=
  12028. # C++ specific cases for pic, static, wl, etc.
  12029. if test "$GXX" = yes; then
  12030. lt_prog_compiler_wl_CXX='-Wl,'
  12031. lt_prog_compiler_static_CXX='-static'
  12032. case $host_os in
  12033. aix*)
  12034. # All AIX code is PIC.
  12035. if test "$host_cpu" = ia64; then
  12036. # AIX 5 now supports IA64 processor
  12037. lt_prog_compiler_static_CXX='-Bstatic'
  12038. fi
  12039. ;;
  12040. amigaos*)
  12041. case $host_cpu in
  12042. powerpc)
  12043. # see comment about AmigaOS4 .so support
  12044. lt_prog_compiler_pic_CXX='-fPIC'
  12045. ;;
  12046. m68k)
  12047. # FIXME: we need at least 68020 code to build shared libraries, but
  12048. # adding the `-m68020' flag to GCC prevents building anything better,
  12049. # like `-m68040'.
  12050. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12051. ;;
  12052. esac
  12053. ;;
  12054. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12055. # PIC is the default for these OSes.
  12056. ;;
  12057. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12058. # This hack is so that the source file can tell whether it is being
  12059. # built for inclusion in a dll (and should export symbols for example).
  12060. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12061. # (--disable-auto-import) libraries
  12062. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12063. ;;
  12064. darwin* | rhapsody*)
  12065. # PIC is the default on this platform
  12066. # Common symbols not allowed in MH_DYLIB files
  12067. lt_prog_compiler_pic_CXX='-fno-common'
  12068. ;;
  12069. *djgpp*)
  12070. # DJGPP does not support shared libraries at all
  12071. lt_prog_compiler_pic_CXX=
  12072. ;;
  12073. haiku*)
  12074. # PIC is the default for Haiku.
  12075. # The "-static" flag exists, but is broken.
  12076. lt_prog_compiler_static_CXX=
  12077. ;;
  12078. interix[3-9]*)
  12079. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12080. # Instead, we relocate shared libraries at runtime.
  12081. ;;
  12082. sysv4*MP*)
  12083. if test -d /usr/nec; then
  12084. lt_prog_compiler_pic_CXX=-Kconform_pic
  12085. fi
  12086. ;;
  12087. hpux*)
  12088. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12089. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12090. # sets the default TLS model and affects inlining.
  12091. case $host_cpu in
  12092. hppa*64*)
  12093. ;;
  12094. *)
  12095. lt_prog_compiler_pic_CXX='-fPIC'
  12096. ;;
  12097. esac
  12098. ;;
  12099. *qnx* | *nto*)
  12100. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12101. # it will coredump.
  12102. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12103. ;;
  12104. *)
  12105. lt_prog_compiler_pic_CXX='-fPIC'
  12106. ;;
  12107. esac
  12108. else
  12109. case $host_os in
  12110. aix[4-9]*)
  12111. # All AIX code is PIC.
  12112. if test "$host_cpu" = ia64; then
  12113. # AIX 5 now supports IA64 processor
  12114. lt_prog_compiler_static_CXX='-Bstatic'
  12115. else
  12116. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12117. fi
  12118. ;;
  12119. chorus*)
  12120. case $cc_basename in
  12121. cxch68*)
  12122. # Green Hills C++ Compiler
  12123. # _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"
  12124. ;;
  12125. esac
  12126. ;;
  12127. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12128. # This hack is so that the source file can tell whether it is being
  12129. # built for inclusion in a dll (and should export symbols for example).
  12130. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12131. ;;
  12132. dgux*)
  12133. case $cc_basename in
  12134. ec++*)
  12135. lt_prog_compiler_pic_CXX='-KPIC'
  12136. ;;
  12137. ghcx*)
  12138. # Green Hills C++ Compiler
  12139. lt_prog_compiler_pic_CXX='-pic'
  12140. ;;
  12141. *)
  12142. ;;
  12143. esac
  12144. ;;
  12145. freebsd* | dragonfly*)
  12146. # FreeBSD uses GNU C++
  12147. ;;
  12148. hpux9* | hpux10* | hpux11*)
  12149. case $cc_basename in
  12150. CC*)
  12151. lt_prog_compiler_wl_CXX='-Wl,'
  12152. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12153. if test "$host_cpu" != ia64; then
  12154. lt_prog_compiler_pic_CXX='+Z'
  12155. fi
  12156. ;;
  12157. aCC*)
  12158. lt_prog_compiler_wl_CXX='-Wl,'
  12159. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12160. case $host_cpu in
  12161. hppa*64*|ia64*)
  12162. # +Z the default
  12163. ;;
  12164. *)
  12165. lt_prog_compiler_pic_CXX='+Z'
  12166. ;;
  12167. esac
  12168. ;;
  12169. *)
  12170. ;;
  12171. esac
  12172. ;;
  12173. interix*)
  12174. # This is c89, which is MS Visual C++ (no shared libs)
  12175. # Anyone wants to do a port?
  12176. ;;
  12177. irix5* | irix6* | nonstopux*)
  12178. case $cc_basename in
  12179. CC*)
  12180. lt_prog_compiler_wl_CXX='-Wl,'
  12181. lt_prog_compiler_static_CXX='-non_shared'
  12182. # CC pic flag -KPIC is the default.
  12183. ;;
  12184. *)
  12185. ;;
  12186. esac
  12187. ;;
  12188. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12189. case $cc_basename in
  12190. KCC*)
  12191. # KAI C++ Compiler
  12192. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12193. lt_prog_compiler_pic_CXX='-fPIC'
  12194. ;;
  12195. ecpc* )
  12196. # old Intel C++ for x86_64 which still supported -KPIC.
  12197. lt_prog_compiler_wl_CXX='-Wl,'
  12198. lt_prog_compiler_pic_CXX='-KPIC'
  12199. lt_prog_compiler_static_CXX='-static'
  12200. ;;
  12201. icpc* )
  12202. # Intel C++, used to be incompatible with GCC.
  12203. # ICC 10 doesn't accept -KPIC any more.
  12204. lt_prog_compiler_wl_CXX='-Wl,'
  12205. lt_prog_compiler_pic_CXX='-fPIC'
  12206. lt_prog_compiler_static_CXX='-static'
  12207. ;;
  12208. pgCC* | pgcpp*)
  12209. # Portland Group C++ compiler
  12210. lt_prog_compiler_wl_CXX='-Wl,'
  12211. lt_prog_compiler_pic_CXX='-fpic'
  12212. lt_prog_compiler_static_CXX='-Bstatic'
  12213. ;;
  12214. cxx*)
  12215. # Compaq C++
  12216. # Make sure the PIC flag is empty. It appears that all Alpha
  12217. # Linux and Compaq Tru64 Unix objects are PIC.
  12218. lt_prog_compiler_pic_CXX=
  12219. lt_prog_compiler_static_CXX='-non_shared'
  12220. ;;
  12221. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12222. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12223. lt_prog_compiler_wl_CXX='-Wl,'
  12224. lt_prog_compiler_pic_CXX='-qpic'
  12225. lt_prog_compiler_static_CXX='-qstaticlink'
  12226. ;;
  12227. *)
  12228. case `$CC -V 2>&1 | sed 5q` in
  12229. *Sun\ C*)
  12230. # Sun C++ 5.9
  12231. lt_prog_compiler_pic_CXX='-KPIC'
  12232. lt_prog_compiler_static_CXX='-Bstatic'
  12233. lt_prog_compiler_wl_CXX='-Qoption ld '
  12234. ;;
  12235. esac
  12236. ;;
  12237. esac
  12238. ;;
  12239. lynxos*)
  12240. ;;
  12241. m88k*)
  12242. ;;
  12243. mvs*)
  12244. case $cc_basename in
  12245. cxx*)
  12246. lt_prog_compiler_pic_CXX='-W c,exportall'
  12247. ;;
  12248. *)
  12249. ;;
  12250. esac
  12251. ;;
  12252. netbsd*)
  12253. ;;
  12254. *qnx* | *nto*)
  12255. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12256. # it will coredump.
  12257. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12258. ;;
  12259. osf3* | osf4* | osf5*)
  12260. case $cc_basename in
  12261. KCC*)
  12262. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12263. ;;
  12264. RCC*)
  12265. # Rational C++ 2.4.1
  12266. lt_prog_compiler_pic_CXX='-pic'
  12267. ;;
  12268. cxx*)
  12269. # Digital/Compaq C++
  12270. lt_prog_compiler_wl_CXX='-Wl,'
  12271. # Make sure the PIC flag is empty. It appears that all Alpha
  12272. # Linux and Compaq Tru64 Unix objects are PIC.
  12273. lt_prog_compiler_pic_CXX=
  12274. lt_prog_compiler_static_CXX='-non_shared'
  12275. ;;
  12276. *)
  12277. ;;
  12278. esac
  12279. ;;
  12280. psos*)
  12281. ;;
  12282. solaris*)
  12283. case $cc_basename in
  12284. CC* | sunCC*)
  12285. # Sun C++ 4.2, 5.x and Centerline C++
  12286. lt_prog_compiler_pic_CXX='-KPIC'
  12287. lt_prog_compiler_static_CXX='-Bstatic'
  12288. lt_prog_compiler_wl_CXX='-Qoption ld '
  12289. ;;
  12290. gcx*)
  12291. # Green Hills C++ Compiler
  12292. lt_prog_compiler_pic_CXX='-PIC'
  12293. ;;
  12294. *)
  12295. ;;
  12296. esac
  12297. ;;
  12298. sunos4*)
  12299. case $cc_basename in
  12300. CC*)
  12301. # Sun C++ 4.x
  12302. lt_prog_compiler_pic_CXX='-pic'
  12303. lt_prog_compiler_static_CXX='-Bstatic'
  12304. ;;
  12305. lcc*)
  12306. # Lucid
  12307. lt_prog_compiler_pic_CXX='-pic'
  12308. ;;
  12309. *)
  12310. ;;
  12311. esac
  12312. ;;
  12313. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12314. case $cc_basename in
  12315. CC*)
  12316. lt_prog_compiler_wl_CXX='-Wl,'
  12317. lt_prog_compiler_pic_CXX='-KPIC'
  12318. lt_prog_compiler_static_CXX='-Bstatic'
  12319. ;;
  12320. esac
  12321. ;;
  12322. tandem*)
  12323. case $cc_basename in
  12324. NCC*)
  12325. # NonStop-UX NCC 3.20
  12326. lt_prog_compiler_pic_CXX='-KPIC'
  12327. ;;
  12328. *)
  12329. ;;
  12330. esac
  12331. ;;
  12332. vxworks*)
  12333. ;;
  12334. *)
  12335. lt_prog_compiler_can_build_shared_CXX=no
  12336. ;;
  12337. esac
  12338. fi
  12339. case $host_os in
  12340. # For platforms which do not support PIC, -DPIC is meaningless:
  12341. *djgpp*)
  12342. lt_prog_compiler_pic_CXX=
  12343. ;;
  12344. *)
  12345. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12346. ;;
  12347. esac
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12349. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12350. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12351. $as_echo_n "(cached) " >&6
  12352. else
  12353. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12354. fi
  12355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12356. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12357. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12358. #
  12359. # Check to make sure the PIC flag actually works.
  12360. #
  12361. if test -n "$lt_prog_compiler_pic_CXX"; then
  12362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12363. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12364. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12365. $as_echo_n "(cached) " >&6
  12366. else
  12367. lt_cv_prog_compiler_pic_works_CXX=no
  12368. ac_outfile=conftest.$ac_objext
  12369. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12370. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12371. # Insert the option either (1) after the last *FLAGS variable, or
  12372. # (2) before a word containing "conftest.", or (3) at the end.
  12373. # Note that $ac_compile itself does not contain backslashes and begins
  12374. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12375. # The option is referenced via a variable to avoid confusing sed.
  12376. lt_compile=`echo "$ac_compile" | $SED \
  12377. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12378. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12379. -e 's:$: $lt_compiler_flag:'`
  12380. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12381. (eval "$lt_compile" 2>conftest.err)
  12382. ac_status=$?
  12383. cat conftest.err >&5
  12384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12385. if (exit $ac_status) && test -s "$ac_outfile"; then
  12386. # The compiler can only warn and ignore the option if not recognized
  12387. # So say no if there are warnings other than the usual output.
  12388. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12389. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12390. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12391. lt_cv_prog_compiler_pic_works_CXX=yes
  12392. fi
  12393. fi
  12394. $RM conftest*
  12395. fi
  12396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12397. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12398. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12399. case $lt_prog_compiler_pic_CXX in
  12400. "" | " "*) ;;
  12401. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12402. esac
  12403. else
  12404. lt_prog_compiler_pic_CXX=
  12405. lt_prog_compiler_can_build_shared_CXX=no
  12406. fi
  12407. fi
  12408. #
  12409. # Check to make sure the static flag actually works.
  12410. #
  12411. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12413. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12414. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12415. $as_echo_n "(cached) " >&6
  12416. else
  12417. lt_cv_prog_compiler_static_works_CXX=no
  12418. save_LDFLAGS="$LDFLAGS"
  12419. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12420. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12421. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12422. # The linker can only warn and ignore the option if not recognized
  12423. # So say no if there are warnings
  12424. if test -s conftest.err; then
  12425. # Append any errors to the config.log.
  12426. cat conftest.err 1>&5
  12427. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12428. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12429. if diff conftest.exp conftest.er2 >/dev/null; then
  12430. lt_cv_prog_compiler_static_works_CXX=yes
  12431. fi
  12432. else
  12433. lt_cv_prog_compiler_static_works_CXX=yes
  12434. fi
  12435. fi
  12436. $RM -r conftest*
  12437. LDFLAGS="$save_LDFLAGS"
  12438. fi
  12439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12440. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12441. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12442. :
  12443. else
  12444. lt_prog_compiler_static_CXX=
  12445. fi
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12447. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12448. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12449. $as_echo_n "(cached) " >&6
  12450. else
  12451. lt_cv_prog_compiler_c_o_CXX=no
  12452. $RM -r conftest 2>/dev/null
  12453. mkdir conftest
  12454. cd conftest
  12455. mkdir out
  12456. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12457. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12458. # Insert the option either (1) after the last *FLAGS variable, or
  12459. # (2) before a word containing "conftest.", or (3) at the end.
  12460. # Note that $ac_compile itself does not contain backslashes and begins
  12461. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12462. lt_compile=`echo "$ac_compile" | $SED \
  12463. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12464. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12465. -e 's:$: $lt_compiler_flag:'`
  12466. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12467. (eval "$lt_compile" 2>out/conftest.err)
  12468. ac_status=$?
  12469. cat out/conftest.err >&5
  12470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12471. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12472. then
  12473. # The compiler can only warn and ignore the option if not recognized
  12474. # So say no if there are warnings
  12475. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12476. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12477. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12478. lt_cv_prog_compiler_c_o_CXX=yes
  12479. fi
  12480. fi
  12481. chmod u+w . 2>&5
  12482. $RM conftest*
  12483. # SGI C++ compiler will create directory out/ii_files/ for
  12484. # template instantiation
  12485. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12486. $RM out/* && rmdir out
  12487. cd ..
  12488. $RM -r conftest
  12489. $RM conftest*
  12490. fi
  12491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12492. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12494. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12495. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12496. $as_echo_n "(cached) " >&6
  12497. else
  12498. lt_cv_prog_compiler_c_o_CXX=no
  12499. $RM -r conftest 2>/dev/null
  12500. mkdir conftest
  12501. cd conftest
  12502. mkdir out
  12503. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12504. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12505. # Insert the option either (1) after the last *FLAGS variable, or
  12506. # (2) before a word containing "conftest.", or (3) at the end.
  12507. # Note that $ac_compile itself does not contain backslashes and begins
  12508. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12509. lt_compile=`echo "$ac_compile" | $SED \
  12510. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12511. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12512. -e 's:$: $lt_compiler_flag:'`
  12513. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12514. (eval "$lt_compile" 2>out/conftest.err)
  12515. ac_status=$?
  12516. cat out/conftest.err >&5
  12517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12518. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12519. then
  12520. # The compiler can only warn and ignore the option if not recognized
  12521. # So say no if there are warnings
  12522. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12523. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12524. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12525. lt_cv_prog_compiler_c_o_CXX=yes
  12526. fi
  12527. fi
  12528. chmod u+w . 2>&5
  12529. $RM conftest*
  12530. # SGI C++ compiler will create directory out/ii_files/ for
  12531. # template instantiation
  12532. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12533. $RM out/* && rmdir out
  12534. cd ..
  12535. $RM -r conftest
  12536. $RM conftest*
  12537. fi
  12538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12539. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12540. hard_links="nottested"
  12541. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12542. # do not overwrite the value of need_locks provided by the user
  12543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12544. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12545. hard_links=yes
  12546. $RM conftest*
  12547. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12548. touch conftest.a
  12549. ln conftest.a conftest.b 2>&5 || hard_links=no
  12550. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12552. $as_echo "$hard_links" >&6; }
  12553. if test "$hard_links" = no; then
  12554. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12555. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12556. need_locks=warn
  12557. fi
  12558. else
  12559. need_locks=no
  12560. fi
  12561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12562. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12563. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12564. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12565. case $host_os in
  12566. aix[4-9]*)
  12567. # If we're using GNU nm, then we don't want the "-C" option.
  12568. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12569. # Also, AIX nm treats weak defined symbols like other global defined
  12570. # symbols, whereas GNU nm marks them as "W".
  12571. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12572. 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'
  12573. else
  12574. 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'
  12575. fi
  12576. ;;
  12577. pw32*)
  12578. export_symbols_cmds_CXX="$ltdll_cmds"
  12579. ;;
  12580. cygwin* | mingw* | cegcc*)
  12581. case $cc_basename in
  12582. cl*)
  12583. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12584. ;;
  12585. *)
  12586. 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'
  12587. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12588. ;;
  12589. esac
  12590. ;;
  12591. *)
  12592. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12593. ;;
  12594. esac
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12596. $as_echo "$ld_shlibs_CXX" >&6; }
  12597. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12598. with_gnu_ld_CXX=$with_gnu_ld
  12599. #
  12600. # Do we need to explicitly link libc?
  12601. #
  12602. case "x$archive_cmds_need_lc_CXX" in
  12603. x|xyes)
  12604. # Assume -lc should be added
  12605. archive_cmds_need_lc_CXX=yes
  12606. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12607. case $archive_cmds_CXX in
  12608. *'~'*)
  12609. # FIXME: we may have to deal with multi-command sequences.
  12610. ;;
  12611. '$CC '*)
  12612. # Test whether the compiler implicitly links with -lc since on some
  12613. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12614. # to ld, don't add -lc before -lgcc.
  12615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12616. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12617. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12618. $as_echo_n "(cached) " >&6
  12619. else
  12620. $RM conftest*
  12621. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12622. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12623. (eval $ac_compile) 2>&5
  12624. ac_status=$?
  12625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12626. test $ac_status = 0; } 2>conftest.err; then
  12627. soname=conftest
  12628. lib=conftest
  12629. libobjs=conftest.$ac_objext
  12630. deplibs=
  12631. wl=$lt_prog_compiler_wl_CXX
  12632. pic_flag=$lt_prog_compiler_pic_CXX
  12633. compiler_flags=-v
  12634. linker_flags=-v
  12635. verstring=
  12636. output_objdir=.
  12637. libname=conftest
  12638. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12639. allow_undefined_flag_CXX=
  12640. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12641. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12642. ac_status=$?
  12643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12644. test $ac_status = 0; }
  12645. then
  12646. lt_cv_archive_cmds_need_lc_CXX=no
  12647. else
  12648. lt_cv_archive_cmds_need_lc_CXX=yes
  12649. fi
  12650. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12651. else
  12652. cat conftest.err 1>&5
  12653. fi
  12654. $RM conftest*
  12655. fi
  12656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12657. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12658. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12659. ;;
  12660. esac
  12661. fi
  12662. ;;
  12663. esac
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12665. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12666. library_names_spec=
  12667. libname_spec='lib$name'
  12668. soname_spec=
  12669. shrext_cmds=".so"
  12670. postinstall_cmds=
  12671. postuninstall_cmds=
  12672. finish_cmds=
  12673. finish_eval=
  12674. shlibpath_var=
  12675. shlibpath_overrides_runpath=unknown
  12676. version_type=none
  12677. dynamic_linker="$host_os ld.so"
  12678. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12679. need_lib_prefix=unknown
  12680. hardcode_into_libs=no
  12681. # when you set need_version to no, make sure it does not cause -set_version
  12682. # flags to be left without arguments
  12683. need_version=unknown
  12684. case $host_os in
  12685. aix3*)
  12686. version_type=linux # correct to gnu/linux during the next big refactor
  12687. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12688. shlibpath_var=LIBPATH
  12689. # AIX 3 has no versioning support, so we append a major version to the name.
  12690. soname_spec='${libname}${release}${shared_ext}$major'
  12691. ;;
  12692. aix[4-9]*)
  12693. version_type=linux # correct to gnu/linux during the next big refactor
  12694. need_lib_prefix=no
  12695. need_version=no
  12696. hardcode_into_libs=yes
  12697. if test "$host_cpu" = ia64; then
  12698. # AIX 5 supports IA64
  12699. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12700. shlibpath_var=LD_LIBRARY_PATH
  12701. else
  12702. # With GCC up to 2.95.x, collect2 would create an import file
  12703. # for dependence libraries. The import file would start with
  12704. # the line `#! .'. This would cause the generated library to
  12705. # depend on `.', always an invalid library. This was fixed in
  12706. # development snapshots of GCC prior to 3.0.
  12707. case $host_os in
  12708. aix4 | aix4.[01] | aix4.[01].*)
  12709. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12710. echo ' yes '
  12711. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12712. :
  12713. else
  12714. can_build_shared=no
  12715. fi
  12716. ;;
  12717. esac
  12718. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12719. # soname into executable. Probably we can add versioning support to
  12720. # collect2, so additional links can be useful in future.
  12721. if test "$aix_use_runtimelinking" = yes; then
  12722. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12723. # instead of lib<name>.a to let people know that these are not
  12724. # typical AIX shared libraries.
  12725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12726. else
  12727. # We preserve .a as extension for shared libraries through AIX4.2
  12728. # and later when we are not doing run time linking.
  12729. library_names_spec='${libname}${release}.a $libname.a'
  12730. soname_spec='${libname}${release}${shared_ext}$major'
  12731. fi
  12732. shlibpath_var=LIBPATH
  12733. fi
  12734. ;;
  12735. amigaos*)
  12736. case $host_cpu in
  12737. powerpc)
  12738. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12739. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12741. ;;
  12742. m68k)
  12743. library_names_spec='$libname.ixlibrary $libname.a'
  12744. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12745. 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'
  12746. ;;
  12747. esac
  12748. ;;
  12749. beos*)
  12750. library_names_spec='${libname}${shared_ext}'
  12751. dynamic_linker="$host_os ld.so"
  12752. shlibpath_var=LIBRARY_PATH
  12753. ;;
  12754. bsdi[45]*)
  12755. version_type=linux # correct to gnu/linux during the next big refactor
  12756. need_version=no
  12757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12758. soname_spec='${libname}${release}${shared_ext}$major'
  12759. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12760. shlibpath_var=LD_LIBRARY_PATH
  12761. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12762. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12763. # the default ld.so.conf also contains /usr/contrib/lib and
  12764. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12765. # libtool to hard-code these into programs
  12766. ;;
  12767. cygwin* | mingw* | pw32* | cegcc*)
  12768. version_type=windows
  12769. shrext_cmds=".dll"
  12770. need_version=no
  12771. need_lib_prefix=no
  12772. case $GCC,$cc_basename in
  12773. yes,*)
  12774. # gcc
  12775. library_names_spec='$libname.dll.a'
  12776. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12777. postinstall_cmds='base_file=`basename \${file}`~
  12778. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12779. dldir=$destdir/`dirname \$dlpath`~
  12780. test -d \$dldir || mkdir -p \$dldir~
  12781. $install_prog $dir/$dlname \$dldir/$dlname~
  12782. chmod a+x \$dldir/$dlname~
  12783. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12784. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12785. fi'
  12786. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12787. dlpath=$dir/\$dldll~
  12788. $RM \$dlpath'
  12789. shlibpath_overrides_runpath=yes
  12790. case $host_os in
  12791. cygwin*)
  12792. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12793. #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12794. soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  12795. ;;
  12796. mingw* | cegcc*)
  12797. # MinGW DLLs use traditional 'lib' prefix
  12798. #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  12799. soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  12800. ;;
  12801. pw32*)
  12802. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12803. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12804. ;;
  12805. esac
  12806. dynamic_linker='Win32 ld.exe'
  12807. ;;
  12808. *,cl*)
  12809. # Native MSVC
  12810. libname_spec='$name'
  12811. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12812. library_names_spec='${libname}.dll.lib'
  12813. case $build_os in
  12814. mingw*)
  12815. sys_lib_search_path_spec=
  12816. lt_save_ifs=$IFS
  12817. IFS=';'
  12818. for lt_path in $LIB
  12819. do
  12820. IFS=$lt_save_ifs
  12821. # Let DOS variable expansion print the short 8.3 style file name.
  12822. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12823. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12824. done
  12825. IFS=$lt_save_ifs
  12826. # Convert to MSYS style.
  12827. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12828. ;;
  12829. cygwin*)
  12830. # Convert to unix form, then to dos form, then back to unix form
  12831. # but this time dos style (no spaces!) so that the unix form looks
  12832. # like /cygdrive/c/PROGRA~1:/cygdr...
  12833. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12834. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12835. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12836. ;;
  12837. *)
  12838. sys_lib_search_path_spec="$LIB"
  12839. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12840. # It is most probably a Windows format PATH.
  12841. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12842. else
  12843. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12844. fi
  12845. # FIXME: find the short name or the path components, as spaces are
  12846. # common. (e.g. "Program Files" -> "PROGRA~1")
  12847. ;;
  12848. esac
  12849. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12850. postinstall_cmds='base_file=`basename \${file}`~
  12851. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12852. dldir=$destdir/`dirname \$dlpath`~
  12853. test -d \$dldir || mkdir -p \$dldir~
  12854. $install_prog $dir/$dlname \$dldir/$dlname'
  12855. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12856. dlpath=$dir/\$dldll~
  12857. $RM \$dlpath'
  12858. shlibpath_overrides_runpath=yes
  12859. dynamic_linker='Win32 link.exe'
  12860. ;;
  12861. *)
  12862. # Assume MSVC wrapper
  12863. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12864. dynamic_linker='Win32 ld.exe'
  12865. ;;
  12866. esac
  12867. # FIXME: first we should search . and the directory the executable is in
  12868. shlibpath_var=PATH
  12869. ;;
  12870. darwin* | rhapsody*)
  12871. dynamic_linker="$host_os dyld"
  12872. version_type=darwin
  12873. need_lib_prefix=no
  12874. need_version=no
  12875. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12876. soname_spec='${libname}${release}${major}$shared_ext'
  12877. shlibpath_overrides_runpath=yes
  12878. shlibpath_var=DYLD_LIBRARY_PATH
  12879. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12880. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12881. ;;
  12882. dgux*)
  12883. version_type=linux # correct to gnu/linux during the next big refactor
  12884. need_lib_prefix=no
  12885. need_version=no
  12886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12887. soname_spec='${libname}${release}${shared_ext}$major'
  12888. shlibpath_var=LD_LIBRARY_PATH
  12889. ;;
  12890. freebsd* | dragonfly*)
  12891. # DragonFly does not have aout. When/if they implement a new
  12892. # versioning mechanism, adjust this.
  12893. if test -x /usr/bin/objformat; then
  12894. objformat=`/usr/bin/objformat`
  12895. else
  12896. case $host_os in
  12897. freebsd[23].*) objformat=aout ;;
  12898. *) objformat=elf ;;
  12899. esac
  12900. fi
  12901. version_type=freebsd-$objformat
  12902. case $version_type in
  12903. freebsd-elf*)
  12904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12905. need_version=no
  12906. need_lib_prefix=no
  12907. ;;
  12908. freebsd-*)
  12909. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12910. need_version=yes
  12911. ;;
  12912. esac
  12913. shlibpath_var=LD_LIBRARY_PATH
  12914. case $host_os in
  12915. freebsd2.*)
  12916. shlibpath_overrides_runpath=yes
  12917. ;;
  12918. freebsd3.[01]* | freebsdelf3.[01]*)
  12919. shlibpath_overrides_runpath=yes
  12920. hardcode_into_libs=yes
  12921. ;;
  12922. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12923. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12924. shlibpath_overrides_runpath=no
  12925. hardcode_into_libs=yes
  12926. ;;
  12927. *) # from 4.6 on, and DragonFly
  12928. shlibpath_overrides_runpath=yes
  12929. hardcode_into_libs=yes
  12930. ;;
  12931. esac
  12932. ;;
  12933. gnu*)
  12934. version_type=linux # correct to gnu/linux during the next big refactor
  12935. need_lib_prefix=no
  12936. need_version=no
  12937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12938. soname_spec='${libname}${release}${shared_ext}$major'
  12939. shlibpath_var=LD_LIBRARY_PATH
  12940. shlibpath_overrides_runpath=no
  12941. hardcode_into_libs=yes
  12942. ;;
  12943. haiku*)
  12944. version_type=linux # correct to gnu/linux during the next big refactor
  12945. need_lib_prefix=no
  12946. need_version=no
  12947. dynamic_linker="$host_os runtime_loader"
  12948. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12949. soname_spec='${libname}${release}${shared_ext}$major'
  12950. shlibpath_var=LIBRARY_PATH
  12951. shlibpath_overrides_runpath=yes
  12952. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12953. hardcode_into_libs=yes
  12954. ;;
  12955. hpux9* | hpux10* | hpux11*)
  12956. # Give a soname corresponding to the major version so that dld.sl refuses to
  12957. # link against other versions.
  12958. version_type=sunos
  12959. need_lib_prefix=no
  12960. need_version=no
  12961. case $host_cpu in
  12962. ia64*)
  12963. shrext_cmds='.so'
  12964. hardcode_into_libs=yes
  12965. dynamic_linker="$host_os dld.so"
  12966. shlibpath_var=LD_LIBRARY_PATH
  12967. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12969. soname_spec='${libname}${release}${shared_ext}$major'
  12970. if test "X$HPUX_IA64_MODE" = X32; then
  12971. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12972. else
  12973. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12974. fi
  12975. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12976. ;;
  12977. hppa*64*)
  12978. shrext_cmds='.sl'
  12979. hardcode_into_libs=yes
  12980. dynamic_linker="$host_os dld.sl"
  12981. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12982. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12983. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12984. soname_spec='${libname}${release}${shared_ext}$major'
  12985. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12986. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12987. ;;
  12988. *)
  12989. shrext_cmds='.sl'
  12990. dynamic_linker="$host_os dld.sl"
  12991. shlibpath_var=SHLIB_PATH
  12992. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12994. soname_spec='${libname}${release}${shared_ext}$major'
  12995. ;;
  12996. esac
  12997. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12998. postinstall_cmds='chmod 555 $lib'
  12999. # or fails outright, so override atomically:
  13000. install_override_mode=555
  13001. ;;
  13002. interix[3-9]*)
  13003. version_type=linux # correct to gnu/linux during the next big refactor
  13004. need_lib_prefix=no
  13005. need_version=no
  13006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13007. soname_spec='${libname}${release}${shared_ext}$major'
  13008. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13009. shlibpath_var=LD_LIBRARY_PATH
  13010. shlibpath_overrides_runpath=no
  13011. hardcode_into_libs=yes
  13012. ;;
  13013. irix5* | irix6* | nonstopux*)
  13014. case $host_os in
  13015. nonstopux*) version_type=nonstopux ;;
  13016. *)
  13017. if test "$lt_cv_prog_gnu_ld" = yes; then
  13018. version_type=linux # correct to gnu/linux during the next big refactor
  13019. else
  13020. version_type=irix
  13021. fi ;;
  13022. esac
  13023. need_lib_prefix=no
  13024. need_version=no
  13025. soname_spec='${libname}${release}${shared_ext}$major'
  13026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13027. case $host_os in
  13028. irix5* | nonstopux*)
  13029. libsuff= shlibsuff=
  13030. ;;
  13031. *)
  13032. case $LD in # libtool.m4 will add one of these switches to LD
  13033. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13034. libsuff= shlibsuff= libmagic=32-bit;;
  13035. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13036. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13037. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13038. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13039. *) libsuff= shlibsuff= libmagic=never-match;;
  13040. esac
  13041. ;;
  13042. esac
  13043. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13044. shlibpath_overrides_runpath=no
  13045. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13046. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13047. hardcode_into_libs=yes
  13048. ;;
  13049. # No shared lib support for Linux oldld, aout, or coff.
  13050. linux*oldld* | linux*aout* | linux*coff*)
  13051. dynamic_linker=no
  13052. ;;
  13053. # This must be glibc/ELF.
  13054. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13055. version_type=linux # correct to gnu/linux during the next big refactor
  13056. need_lib_prefix=no
  13057. need_version=no
  13058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13059. soname_spec='${libname}${release}${shared_ext}$major'
  13060. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13061. shlibpath_var=LD_LIBRARY_PATH
  13062. shlibpath_overrides_runpath=no
  13063. # Some binutils ld are patched to set DT_RUNPATH
  13064. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13065. $as_echo_n "(cached) " >&6
  13066. else
  13067. lt_cv_shlibpath_overrides_runpath=no
  13068. save_LDFLAGS=$LDFLAGS
  13069. save_libdir=$libdir
  13070. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13071. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13073. /* end confdefs.h. */
  13074. int
  13075. main ()
  13076. {
  13077. ;
  13078. return 0;
  13079. }
  13080. _ACEOF
  13081. if ac_fn_cxx_try_link "$LINENO"; then :
  13082. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13083. lt_cv_shlibpath_overrides_runpath=yes
  13084. fi
  13085. fi
  13086. rm -f core conftest.err conftest.$ac_objext \
  13087. conftest$ac_exeext conftest.$ac_ext
  13088. LDFLAGS=$save_LDFLAGS
  13089. libdir=$save_libdir
  13090. fi
  13091. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13092. # This implies no fast_install, which is unacceptable.
  13093. # Some rework will be needed to allow for fast_install
  13094. # before this can be enabled.
  13095. hardcode_into_libs=yes
  13096. # Append ld.so.conf contents to the search path
  13097. if test -f /etc/ld.so.conf; then
  13098. 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' ' '`
  13099. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13100. fi
  13101. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13102. # powerpc, because MkLinux only supported shared libraries with the
  13103. # GNU dynamic linker. Since this was broken with cross compilers,
  13104. # most powerpc-linux boxes support dynamic linking these days and
  13105. # people can always --disable-shared, the test was removed, and we
  13106. # assume the GNU/Linux dynamic linker is in use.
  13107. dynamic_linker='GNU/Linux ld.so'
  13108. ;;
  13109. netbsd*)
  13110. version_type=sunos
  13111. need_lib_prefix=no
  13112. need_version=no
  13113. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13115. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13116. dynamic_linker='NetBSD (a.out) ld.so'
  13117. else
  13118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13119. soname_spec='${libname}${release}${shared_ext}$major'
  13120. dynamic_linker='NetBSD ld.elf_so'
  13121. fi
  13122. shlibpath_var=LD_LIBRARY_PATH
  13123. shlibpath_overrides_runpath=yes
  13124. hardcode_into_libs=yes
  13125. ;;
  13126. newsos6)
  13127. version_type=linux # correct to gnu/linux during the next big refactor
  13128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13129. shlibpath_var=LD_LIBRARY_PATH
  13130. shlibpath_overrides_runpath=yes
  13131. ;;
  13132. *nto* | *qnx*)
  13133. version_type=qnx
  13134. need_lib_prefix=no
  13135. need_version=no
  13136. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13137. soname_spec='${libname}${release}${shared_ext}$major'
  13138. shlibpath_var=LD_LIBRARY_PATH
  13139. shlibpath_overrides_runpath=no
  13140. hardcode_into_libs=yes
  13141. dynamic_linker='ldqnx.so'
  13142. ;;
  13143. openbsd*)
  13144. version_type=sunos
  13145. sys_lib_dlsearch_path_spec="/usr/lib"
  13146. need_lib_prefix=no
  13147. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13148. case $host_os in
  13149. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13150. *) need_version=no ;;
  13151. esac
  13152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13153. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13154. shlibpath_var=LD_LIBRARY_PATH
  13155. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13156. case $host_os in
  13157. openbsd2.[89] | openbsd2.[89].*)
  13158. shlibpath_overrides_runpath=no
  13159. ;;
  13160. *)
  13161. shlibpath_overrides_runpath=yes
  13162. ;;
  13163. esac
  13164. else
  13165. shlibpath_overrides_runpath=yes
  13166. fi
  13167. ;;
  13168. os2*)
  13169. libname_spec='$name'
  13170. shrext_cmds=".dll"
  13171. need_lib_prefix=no
  13172. library_names_spec='$libname${shared_ext} $libname.a'
  13173. dynamic_linker='OS/2 ld.exe'
  13174. shlibpath_var=LIBPATH
  13175. ;;
  13176. osf3* | osf4* | osf5*)
  13177. version_type=osf
  13178. need_lib_prefix=no
  13179. need_version=no
  13180. soname_spec='${libname}${release}${shared_ext}$major'
  13181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13182. shlibpath_var=LD_LIBRARY_PATH
  13183. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13184. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13185. ;;
  13186. rdos*)
  13187. dynamic_linker=no
  13188. ;;
  13189. solaris*)
  13190. version_type=linux # correct to gnu/linux during the next big refactor
  13191. need_lib_prefix=no
  13192. need_version=no
  13193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13194. soname_spec='${libname}${release}${shared_ext}$major'
  13195. shlibpath_var=LD_LIBRARY_PATH
  13196. shlibpath_overrides_runpath=yes
  13197. hardcode_into_libs=yes
  13198. # ldd complains unless libraries are executable
  13199. postinstall_cmds='chmod +x $lib'
  13200. ;;
  13201. sunos4*)
  13202. version_type=sunos
  13203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13204. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13205. shlibpath_var=LD_LIBRARY_PATH
  13206. shlibpath_overrides_runpath=yes
  13207. if test "$with_gnu_ld" = yes; then
  13208. need_lib_prefix=no
  13209. fi
  13210. need_version=yes
  13211. ;;
  13212. sysv4 | sysv4.3*)
  13213. version_type=linux # correct to gnu/linux during the next big refactor
  13214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13215. soname_spec='${libname}${release}${shared_ext}$major'
  13216. shlibpath_var=LD_LIBRARY_PATH
  13217. case $host_vendor in
  13218. sni)
  13219. shlibpath_overrides_runpath=no
  13220. need_lib_prefix=no
  13221. runpath_var=LD_RUN_PATH
  13222. ;;
  13223. siemens)
  13224. need_lib_prefix=no
  13225. ;;
  13226. motorola)
  13227. need_lib_prefix=no
  13228. need_version=no
  13229. shlibpath_overrides_runpath=no
  13230. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13231. ;;
  13232. esac
  13233. ;;
  13234. sysv4*MP*)
  13235. if test -d /usr/nec ;then
  13236. version_type=linux # correct to gnu/linux during the next big refactor
  13237. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13238. soname_spec='$libname${shared_ext}.$major'
  13239. shlibpath_var=LD_LIBRARY_PATH
  13240. fi
  13241. ;;
  13242. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13243. version_type=freebsd-elf
  13244. need_lib_prefix=no
  13245. need_version=no
  13246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13247. soname_spec='${libname}${release}${shared_ext}$major'
  13248. shlibpath_var=LD_LIBRARY_PATH
  13249. shlibpath_overrides_runpath=yes
  13250. hardcode_into_libs=yes
  13251. if test "$with_gnu_ld" = yes; then
  13252. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13253. else
  13254. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13255. case $host_os in
  13256. sco3.2v5*)
  13257. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13258. ;;
  13259. esac
  13260. fi
  13261. sys_lib_dlsearch_path_spec='/usr/lib'
  13262. ;;
  13263. tpf*)
  13264. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13265. version_type=linux # correct to gnu/linux during the next big refactor
  13266. need_lib_prefix=no
  13267. need_version=no
  13268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13269. shlibpath_var=LD_LIBRARY_PATH
  13270. shlibpath_overrides_runpath=no
  13271. hardcode_into_libs=yes
  13272. ;;
  13273. uts4*)
  13274. version_type=linux # correct to gnu/linux during the next big refactor
  13275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13276. soname_spec='${libname}${release}${shared_ext}$major'
  13277. shlibpath_var=LD_LIBRARY_PATH
  13278. ;;
  13279. *)
  13280. dynamic_linker=no
  13281. ;;
  13282. esac
  13283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13284. $as_echo "$dynamic_linker" >&6; }
  13285. test "$dynamic_linker" = no && can_build_shared=no
  13286. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13287. if test "$GCC" = yes; then
  13288. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13289. fi
  13290. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13291. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13292. fi
  13293. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13294. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13295. fi
  13296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13297. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13298. hardcode_action_CXX=
  13299. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13300. test -n "$runpath_var_CXX" ||
  13301. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13302. # We can hardcode non-existent directories.
  13303. if test "$hardcode_direct_CXX" != no &&
  13304. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13305. # have to relink, otherwise we might link with an installed library
  13306. # when we should be linking with a yet-to-be-installed one
  13307. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13308. test "$hardcode_minus_L_CXX" != no; then
  13309. # Linking always hardcodes the temporary library directory.
  13310. hardcode_action_CXX=relink
  13311. else
  13312. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13313. hardcode_action_CXX=immediate
  13314. fi
  13315. else
  13316. # We cannot hardcode anything, or else we can only hardcode existing
  13317. # directories.
  13318. hardcode_action_CXX=unsupported
  13319. fi
  13320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13321. $as_echo "$hardcode_action_CXX" >&6; }
  13322. if test "$hardcode_action_CXX" = relink ||
  13323. test "$inherit_rpath_CXX" = yes; then
  13324. # Fast installation is not supported
  13325. enable_fast_install=no
  13326. elif test "$shlibpath_overrides_runpath" = yes ||
  13327. test "$enable_shared" = no; then
  13328. # Fast installation is not necessary
  13329. enable_fast_install=needless
  13330. fi
  13331. fi # test -n "$compiler"
  13332. CC=$lt_save_CC
  13333. CFLAGS=$lt_save_CFLAGS
  13334. LDCXX=$LD
  13335. LD=$lt_save_LD
  13336. GCC=$lt_save_GCC
  13337. with_gnu_ld=$lt_save_with_gnu_ld
  13338. lt_cv_path_LDCXX=$lt_cv_path_LD
  13339. lt_cv_path_LD=$lt_save_path_LD
  13340. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13341. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13342. fi # test "$_lt_caught_CXX_error" != yes
  13343. ac_ext=c
  13344. ac_cpp='$CPP $CPPFLAGS'
  13345. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13346. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13347. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13348. # Find a good install program. We prefer a C program (faster),
  13349. # so one script is as good as another. But avoid the broken or
  13350. # incompatible versions:
  13351. # SysV /etc/install, /usr/sbin/install
  13352. # SunOS /usr/etc/install
  13353. # IRIX /sbin/install
  13354. # AIX /bin/install
  13355. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13356. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13357. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13358. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13359. # OS/2's system install, which has a completely different semantic
  13360. # ./install, which can be erroneously created by make from ./install.sh.
  13361. # Reject install programs that cannot install multiple files.
  13362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13363. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13364. if test -z "$INSTALL"; then
  13365. if ${ac_cv_path_install+:} false; then :
  13366. $as_echo_n "(cached) " >&6
  13367. else
  13368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13369. for as_dir in $PATH
  13370. do
  13371. IFS=$as_save_IFS
  13372. test -z "$as_dir" && as_dir=.
  13373. # Account for people who put trailing slashes in PATH elements.
  13374. case $as_dir/ in #((
  13375. ./ | .// | /[cC]/* | \
  13376. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13377. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13378. /usr/ucb/* ) ;;
  13379. *)
  13380. # OSF1 and SCO ODT 3.0 have their own names for install.
  13381. # Don't use installbsd from OSF since it installs stuff as root
  13382. # by default.
  13383. for ac_prog in ginstall scoinst install; do
  13384. for ac_exec_ext in '' $ac_executable_extensions; do
  13385. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13386. if test $ac_prog = install &&
  13387. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13388. # AIX install. It has an incompatible calling convention.
  13389. :
  13390. elif test $ac_prog = install &&
  13391. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13392. # program-specific install script used by HP pwplus--don't use.
  13393. :
  13394. else
  13395. rm -rf conftest.one conftest.two conftest.dir
  13396. echo one > conftest.one
  13397. echo two > conftest.two
  13398. mkdir conftest.dir
  13399. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13400. test -s conftest.one && test -s conftest.two &&
  13401. test -s conftest.dir/conftest.one &&
  13402. test -s conftest.dir/conftest.two
  13403. then
  13404. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13405. break 3
  13406. fi
  13407. fi
  13408. fi
  13409. done
  13410. done
  13411. ;;
  13412. esac
  13413. done
  13414. IFS=$as_save_IFS
  13415. rm -rf conftest.one conftest.two conftest.dir
  13416. fi
  13417. if test "${ac_cv_path_install+set}" = set; then
  13418. INSTALL=$ac_cv_path_install
  13419. else
  13420. # As a last resort, use the slow shell script. Don't cache a
  13421. # value for INSTALL within a source directory, because that will
  13422. # break other packages using the cache if that directory is
  13423. # removed, or if the value is a relative name.
  13424. INSTALL=$ac_install_sh
  13425. fi
  13426. fi
  13427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13428. $as_echo "$INSTALL" >&6; }
  13429. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13430. # It thinks the first close brace ends the variable substitution.
  13431. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13432. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13433. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13435. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13436. set x ${MAKE-make}
  13437. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13438. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13439. $as_echo_n "(cached) " >&6
  13440. else
  13441. cat >conftest.make <<\_ACEOF
  13442. SHELL = /bin/sh
  13443. all:
  13444. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13445. _ACEOF
  13446. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13447. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13448. *@@@%%%=?*=@@@%%%*)
  13449. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13450. *)
  13451. eval ac_cv_prog_make_${ac_make}_set=no;;
  13452. esac
  13453. rm -f conftest.make
  13454. fi
  13455. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13457. $as_echo "yes" >&6; }
  13458. SET_MAKE=
  13459. else
  13460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13461. $as_echo "no" >&6; }
  13462. SET_MAKE="MAKE=${MAKE-make}"
  13463. fi
  13464. if test -n "$ac_tool_prefix"; then
  13465. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13466. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13468. $as_echo_n "checking for $ac_word... " >&6; }
  13469. if ${ac_cv_prog_WINDRES+:} false; then :
  13470. $as_echo_n "(cached) " >&6
  13471. else
  13472. if test -n "$WINDRES"; then
  13473. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13474. else
  13475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13476. for as_dir in $PATH
  13477. do
  13478. IFS=$as_save_IFS
  13479. test -z "$as_dir" && as_dir=.
  13480. for ac_exec_ext in '' $ac_executable_extensions; do
  13481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13482. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13484. break 2
  13485. fi
  13486. done
  13487. done
  13488. IFS=$as_save_IFS
  13489. fi
  13490. fi
  13491. WINDRES=$ac_cv_prog_WINDRES
  13492. if test -n "$WINDRES"; then
  13493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  13494. $as_echo "$WINDRES" >&6; }
  13495. else
  13496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13497. $as_echo "no" >&6; }
  13498. fi
  13499. fi
  13500. if test -z "$ac_cv_prog_WINDRES"; then
  13501. ac_ct_WINDRES=$WINDRES
  13502. # Extract the first word of "windres", so it can be a program name with args.
  13503. set dummy windres; ac_word=$2
  13504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13505. $as_echo_n "checking for $ac_word... " >&6; }
  13506. if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
  13507. $as_echo_n "(cached) " >&6
  13508. else
  13509. if test -n "$ac_ct_WINDRES"; then
  13510. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13511. else
  13512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13513. for as_dir in $PATH
  13514. do
  13515. IFS=$as_save_IFS
  13516. test -z "$as_dir" && as_dir=.
  13517. for ac_exec_ext in '' $ac_executable_extensions; do
  13518. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13519. ac_cv_prog_ac_ct_WINDRES="windres"
  13520. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13521. break 2
  13522. fi
  13523. done
  13524. done
  13525. IFS=$as_save_IFS
  13526. fi
  13527. fi
  13528. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13529. if test -n "$ac_ct_WINDRES"; then
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  13531. $as_echo "$ac_ct_WINDRES" >&6; }
  13532. else
  13533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13534. $as_echo "no" >&6; }
  13535. fi
  13536. if test "x$ac_ct_WINDRES" = x; then
  13537. WINDRES=":"
  13538. else
  13539. case $cross_compiling:$ac_tool_warned in
  13540. yes:)
  13541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13542. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13543. ac_tool_warned=yes ;;
  13544. esac
  13545. WINDRES=$ac_ct_WINDRES
  13546. fi
  13547. else
  13548. WINDRES="$ac_cv_prog_WINDRES"
  13549. fi
  13550. case "$host" in
  13551. *-*-mingw32*)
  13552. # Except on msys, where make can't handle full pathnames (bug 1972)
  13553. ;;
  13554. *)
  13555. srcdir=`cd $srcdir && pwd`
  13556. ;;
  13557. esac
  13558. INCLUDE="-I$srcdir/include -idirafter $srcdir/src/video/khronos"
  13559. if test x$srcdir != x.; then
  13560. INCLUDE="-Iinclude $INCLUDE"
  13561. elif test -d .hg; then
  13562. as_fn_error $? "
  13563. *** When building from Mercurial you should configure and build in a
  13564. separate directory so you don't clobber SDL_config.h, SDL_revision.h
  13565. " "$LINENO" 5
  13566. fi
  13567. BASE_CFLAGS=""
  13568. BASE_LDFLAGS=""
  13569. case "$host" in
  13570. *-*-cygwin*)
  13571. # We build SDL on cygwin without the UNIX emulation layer
  13572. save_CFLAGS="$CFLAGS"
  13573. have_no_cygwin=no
  13574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mno-cygwin option" >&5
  13575. $as_echo_n "checking for GCC -mno-cygwin option... " >&6; }
  13576. CFLAGS="$save_CFLAGS -mno-cygwin"
  13577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13578. /* end confdefs.h. */
  13579. int
  13580. main ()
  13581. {
  13582. ;
  13583. return 0;
  13584. }
  13585. _ACEOF
  13586. if ac_fn_c_try_compile "$LINENO"; then :
  13587. have_no_cygwin=yes
  13588. fi
  13589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_cygwin" >&5
  13591. $as_echo "$have_no_cygwin" >&6; }
  13592. CFLAGS="$save_CFLAGS"
  13593. if test x$have_no_cygwin = xyes; then
  13594. BASE_CFLAGS="-mno-cygwin"
  13595. BASE_LDFLAGS="-mno-cygwin"
  13596. fi
  13597. BASE_CFLAGS="$BASE_CFLAGS -I/usr/include/mingw"
  13598. ;;
  13599. esac
  13600. # Uncomment the following line if you want to force SDL and applications
  13601. # built with it to be compiled for a particular architecture.
  13602. #AX_GCC_ARCHFLAG([no], [BASE_CFLAGS="$BASE_CFLAGS $ax_cv_gcc_archflag]")
  13603. BUILD_CFLAGS="$CFLAGS $CPPFLAGS -DUSING_GENERATED_CONFIG_H"
  13604. # The default optimization for SDL is -O3 (Bug #31)
  13605. if test "x$orig_CFLAGS" = x; then
  13606. BUILD_CFLAGS=`echo $BUILD_CFLAGS | sed 's/-O2/-O3/'`
  13607. fi
  13608. EXTRA_CFLAGS="$INCLUDE $BASE_CFLAGS"
  13609. BUILD_LDFLAGS="$LDFLAGS"
  13610. EXTRA_LDFLAGS="$BASE_LDFLAGS"
  13611. ## These are common directories to find software packages
  13612. #for path in /usr/freeware /usr/pkg /usr/X11R6 /usr/local; do
  13613. # if test -d $path/include; then
  13614. # EXTRA_CFLAGS="$EXTRA_CFLAGS -I$path/include"
  13615. # fi
  13616. # if test -d $path/lib; then
  13617. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -L$path/lib"
  13618. # fi
  13619. #done
  13620. SDL_CFLAGS="$BASE_CFLAGS"
  13621. SDL_LIBS="-lSDL2"
  13622. if test "x$BASE_LDFLAGS" != x; then
  13623. SDL_LIBS="$SDL_LIBS $BASE_LDFLAGS"
  13624. fi
  13625. if test "x$EXTRA_CFLAGS" != x; then
  13626. CPPFLAGS="$CPPFLAGS $EXTRA_CFLAGS"
  13627. CFLAGS="$CFLAGS $EXTRA_CFLAGS"
  13628. fi
  13629. if test "x$EXTRA_LDFLAGS" != x; then
  13630. LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
  13631. fi
  13632. base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
  13633. find_lib()
  13634. {
  13635. gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13636. gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
  13637. env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
  13638. if test "$cross_compiling" = yes; then
  13639. host_lib_path=""
  13640. else
  13641. host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
  13642. fi
  13643. for path in $env_lib_path $gcc_bin_path $gcc_lib_path $host_lib_path; do
  13644. lib=`ls -- $path/$1 2>/dev/null | sed -e '/\.so\..*\./d' -e 's,.*/,,' | sort | tail -1`
  13645. if test x$lib != x; then
  13646. echo $lib
  13647. return
  13648. fi
  13649. done
  13650. }
  13651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13652. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13653. if ${ac_cv_c_const+:} false; then :
  13654. $as_echo_n "(cached) " >&6
  13655. else
  13656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13657. /* end confdefs.h. */
  13658. int
  13659. main ()
  13660. {
  13661. #ifndef __cplusplus
  13662. /* Ultrix mips cc rejects this sort of thing. */
  13663. typedef int charset[2];
  13664. const charset cs = { 0, 0 };
  13665. /* SunOS 4.1.1 cc rejects this. */
  13666. char const *const *pcpcc;
  13667. char **ppc;
  13668. /* NEC SVR4.0.2 mips cc rejects this. */
  13669. struct point {int x, y;};
  13670. static struct point const zero = {0,0};
  13671. /* AIX XL C 1.02.0.0 rejects this.
  13672. It does not let you subtract one const X* pointer from another in
  13673. an arm of an if-expression whose if-part is not a constant
  13674. expression */
  13675. const char *g = "string";
  13676. pcpcc = &g + (g ? g-g : 0);
  13677. /* HPUX 7.0 cc rejects these. */
  13678. ++pcpcc;
  13679. ppc = (char**) pcpcc;
  13680. pcpcc = (char const *const *) ppc;
  13681. { /* SCO 3.2v4 cc rejects this sort of thing. */
  13682. char tx;
  13683. char *t = &tx;
  13684. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13685. *t++ = 0;
  13686. if (s) return 0;
  13687. }
  13688. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13689. int x[] = {25, 17};
  13690. const int *foo = &x[0];
  13691. ++foo;
  13692. }
  13693. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13694. typedef const int *iptr;
  13695. iptr p = 0;
  13696. ++p;
  13697. }
  13698. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  13699. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13700. struct s { int j; const int *ap[3]; } bx;
  13701. struct s *b = &bx; b->j = 5;
  13702. }
  13703. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13704. const int foo = 10;
  13705. if (!foo) return 0;
  13706. }
  13707. return !cs[0] && !zero.x;
  13708. #endif
  13709. ;
  13710. return 0;
  13711. }
  13712. _ACEOF
  13713. if ac_fn_c_try_compile "$LINENO"; then :
  13714. ac_cv_c_const=yes
  13715. else
  13716. ac_cv_c_const=no
  13717. fi
  13718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13719. fi
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13721. $as_echo "$ac_cv_c_const" >&6; }
  13722. if test $ac_cv_c_const = no; then
  13723. $as_echo "#define const /**/" >>confdefs.h
  13724. fi
  13725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  13726. $as_echo_n "checking for inline... " >&6; }
  13727. if ${ac_cv_c_inline+:} false; then :
  13728. $as_echo_n "(cached) " >&6
  13729. else
  13730. ac_cv_c_inline=no
  13731. for ac_kw in inline __inline__ __inline; do
  13732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13733. /* end confdefs.h. */
  13734. #ifndef __cplusplus
  13735. typedef int foo_t;
  13736. static $ac_kw foo_t static_foo () {return 0; }
  13737. $ac_kw foo_t foo () {return 0; }
  13738. #endif
  13739. _ACEOF
  13740. if ac_fn_c_try_compile "$LINENO"; then :
  13741. ac_cv_c_inline=$ac_kw
  13742. fi
  13743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13744. test "$ac_cv_c_inline" != no && break
  13745. done
  13746. fi
  13747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  13748. $as_echo "$ac_cv_c_inline" >&6; }
  13749. case $ac_cv_c_inline in
  13750. inline | yes) ;;
  13751. *)
  13752. case $ac_cv_c_inline in
  13753. no) ac_val=;;
  13754. *) ac_val=$ac_cv_c_inline;;
  13755. esac
  13756. cat >>confdefs.h <<_ACEOF
  13757. #ifndef __cplusplus
  13758. #define inline $ac_val
  13759. #endif
  13760. _ACEOF
  13761. ;;
  13762. esac
  13763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  13764. $as_echo_n "checking for working volatile... " >&6; }
  13765. if ${ac_cv_c_volatile+:} false; then :
  13766. $as_echo_n "(cached) " >&6
  13767. else
  13768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13769. /* end confdefs.h. */
  13770. int
  13771. main ()
  13772. {
  13773. volatile int x;
  13774. int * volatile y = (int *) 0;
  13775. return !x && !y;
  13776. ;
  13777. return 0;
  13778. }
  13779. _ACEOF
  13780. if ac_fn_c_try_compile "$LINENO"; then :
  13781. ac_cv_c_volatile=yes
  13782. else
  13783. ac_cv_c_volatile=no
  13784. fi
  13785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13786. fi
  13787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  13788. $as_echo "$ac_cv_c_volatile" >&6; }
  13789. if test $ac_cv_c_volatile = no; then
  13790. $as_echo "#define volatile /**/" >>confdefs.h
  13791. fi
  13792. # Check whether --enable-assertions was given.
  13793. if test "${enable_assertions+set}" = set; then :
  13794. enableval=$enable_assertions;
  13795. else
  13796. enable_assertions=auto
  13797. fi
  13798. case "$enable_assertions" in
  13799. auto) # Use optimization settings to determine assertion level
  13800. ;;
  13801. disabled)
  13802. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 0" >>confdefs.h
  13803. ;;
  13804. release)
  13805. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 1" >>confdefs.h
  13806. ;;
  13807. enabled)
  13808. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 2" >>confdefs.h
  13809. ;;
  13810. paranoid)
  13811. $as_echo "#define SDL_DEFAULT_ASSERT_LEVEL 3" >>confdefs.h
  13812. ;;
  13813. *)
  13814. as_fn_error $? "*** unknown assertion level. stop." "$LINENO" 5
  13815. ;;
  13816. esac
  13817. # Check whether --enable-dependency-tracking was given.
  13818. if test "${enable_dependency_tracking+set}" = set; then :
  13819. enableval=$enable_dependency_tracking;
  13820. else
  13821. enable_dependency_tracking=yes
  13822. fi
  13823. if test x$enable_dependency_tracking = xyes; then
  13824. have_gcc_mmd_mt=no
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -MMD -MT option" >&5
  13826. $as_echo_n "checking for GCC -MMD -MT option... " >&6; }
  13827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13828. /* end confdefs.h. */
  13829. #if !defined(__GNUC__) || __GNUC__ < 3
  13830. #error Dependency tracking requires GCC 3.0 or newer
  13831. #endif
  13832. int
  13833. main ()
  13834. {
  13835. ;
  13836. return 0;
  13837. }
  13838. _ACEOF
  13839. if ac_fn_c_try_compile "$LINENO"; then :
  13840. have_gcc_mmd_mt=yes
  13841. fi
  13842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmd_mt" >&5
  13844. $as_echo "$have_gcc_mmd_mt" >&6; }
  13845. if test x$have_gcc_mmd_mt = xyes; then
  13846. DEPENDENCY_TRACKING_OPTIONS="-MMD -MT \$@"
  13847. fi
  13848. fi
  13849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --no-undefined" >&5
  13850. $as_echo_n "checking for linker option --no-undefined... " >&6; }
  13851. have_no_undefined=no
  13852. case "$host" in
  13853. *-*-openbsd*)
  13854. ;;
  13855. *)
  13856. save_LDFLAGS="$LDFLAGS"
  13857. LDFLAGS="$LDFLAGS -Wl,--no-undefined"
  13858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13859. /* end confdefs.h. */
  13860. int
  13861. main ()
  13862. {
  13863. ;
  13864. return 0;
  13865. }
  13866. _ACEOF
  13867. if ac_fn_c_try_link "$LINENO"; then :
  13868. have_no_undefined=yes
  13869. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,--no-undefined"
  13870. fi
  13871. rm -f core conftest.err conftest.$ac_objext \
  13872. conftest$ac_exeext conftest.$ac_ext
  13873. LDFLAGS="$save_LDFLAGS"
  13874. ;;
  13875. esac
  13876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_no_undefined" >&5
  13877. $as_echo "$have_no_undefined" >&6; }
  13878. # Check whether --enable-libc was given.
  13879. if test "${enable_libc+set}" = set; then :
  13880. enableval=$enable_libc;
  13881. else
  13882. enable_libc=yes
  13883. fi
  13884. if test x$enable_libc = xyes; then
  13885. $as_echo "#define HAVE_LIBC 1" >>confdefs.h
  13886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13887. $as_echo_n "checking for ANSI C header files... " >&6; }
  13888. if ${ac_cv_header_stdc+:} false; then :
  13889. $as_echo_n "(cached) " >&6
  13890. else
  13891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13892. /* end confdefs.h. */
  13893. #include <stdlib.h>
  13894. #include <stdarg.h>
  13895. #include <string.h>
  13896. #include <float.h>
  13897. int
  13898. main ()
  13899. {
  13900. ;
  13901. return 0;
  13902. }
  13903. _ACEOF
  13904. if ac_fn_c_try_compile "$LINENO"; then :
  13905. ac_cv_header_stdc=yes
  13906. else
  13907. ac_cv_header_stdc=no
  13908. fi
  13909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13910. if test $ac_cv_header_stdc = yes; then
  13911. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13913. /* end confdefs.h. */
  13914. #include <string.h>
  13915. _ACEOF
  13916. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13917. $EGREP "memchr" >/dev/null 2>&1; then :
  13918. else
  13919. ac_cv_header_stdc=no
  13920. fi
  13921. rm -f conftest*
  13922. fi
  13923. if test $ac_cv_header_stdc = yes; then
  13924. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13926. /* end confdefs.h. */
  13927. #include <stdlib.h>
  13928. _ACEOF
  13929. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13930. $EGREP "free" >/dev/null 2>&1; then :
  13931. else
  13932. ac_cv_header_stdc=no
  13933. fi
  13934. rm -f conftest*
  13935. fi
  13936. if test $ac_cv_header_stdc = yes; then
  13937. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13938. if test "$cross_compiling" = yes; then :
  13939. :
  13940. else
  13941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13942. /* end confdefs.h. */
  13943. #include <ctype.h>
  13944. #include <stdlib.h>
  13945. #if ((' ' & 0x0FF) == 0x020)
  13946. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13947. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13948. #else
  13949. # define ISLOWER(c) \
  13950. (('a' <= (c) && (c) <= 'i') \
  13951. || ('j' <= (c) && (c) <= 'r') \
  13952. || ('s' <= (c) && (c) <= 'z'))
  13953. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13954. #endif
  13955. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13956. int
  13957. main ()
  13958. {
  13959. int i;
  13960. for (i = 0; i < 256; i++)
  13961. if (XOR (islower (i), ISLOWER (i))
  13962. || toupper (i) != TOUPPER (i))
  13963. return 2;
  13964. return 0;
  13965. }
  13966. _ACEOF
  13967. if ac_fn_c_try_run "$LINENO"; then :
  13968. else
  13969. ac_cv_header_stdc=no
  13970. fi
  13971. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13972. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13973. fi
  13974. fi
  13975. fi
  13976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13977. $as_echo "$ac_cv_header_stdc" >&6; }
  13978. if test $ac_cv_header_stdc = yes; then
  13979. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13980. fi
  13981. 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
  13982. do :
  13983. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13984. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13985. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13986. cat >>confdefs.h <<_ACEOF
  13987. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13988. _ACEOF
  13989. fi
  13990. done
  13991. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13992. if test "x$ac_cv_type_size_t" = xyes; then :
  13993. else
  13994. cat >>confdefs.h <<_ACEOF
  13995. #define size_t unsigned int
  13996. _ACEOF
  13997. fi
  13998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for M_PI in math.h" >&5
  13999. $as_echo_n "checking for M_PI in math.h... " >&6; }
  14000. if ${ac_cv_define_M_PI+:} false; then :
  14001. $as_echo_n "(cached) " >&6
  14002. else
  14003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14004. /* end confdefs.h. */
  14005. #include <math.h>
  14006. #ifdef M_PI
  14007. YES_IS_DEFINED
  14008. #endif
  14009. _ACEOF
  14010. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14011. $EGREP "YES_IS_DEFINED" >/dev/null 2>&1; then :
  14012. ac_cv_define_M_PI=yes
  14013. else
  14014. ac_cv_define_M_PI=no
  14015. fi
  14016. rm -f conftest*
  14017. fi
  14018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_define_M_PI" >&5
  14019. $as_echo "$ac_cv_define_M_PI" >&6; }
  14020. if test "$ac_cv_define_M_PI" = "yes" ; then
  14021. $as_echo "#define HAVE_M_PI /**/" >>confdefs.h
  14022. fi
  14023. case "$host" in
  14024. *-*-cygwin* | *-*-mingw32*)
  14025. ;;
  14026. *)
  14027. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  14028. # for constant arguments. Useless!
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  14030. $as_echo_n "checking for working alloca.h... " >&6; }
  14031. if ${ac_cv_working_alloca_h+:} false; then :
  14032. $as_echo_n "(cached) " >&6
  14033. else
  14034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14035. /* end confdefs.h. */
  14036. #include <alloca.h>
  14037. int
  14038. main ()
  14039. {
  14040. char *p = (char *) alloca (2 * sizeof (int));
  14041. if (p) return 0;
  14042. ;
  14043. return 0;
  14044. }
  14045. _ACEOF
  14046. if ac_fn_c_try_link "$LINENO"; then :
  14047. ac_cv_working_alloca_h=yes
  14048. else
  14049. ac_cv_working_alloca_h=no
  14050. fi
  14051. rm -f core conftest.err conftest.$ac_objext \
  14052. conftest$ac_exeext conftest.$ac_ext
  14053. fi
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  14055. $as_echo "$ac_cv_working_alloca_h" >&6; }
  14056. if test $ac_cv_working_alloca_h = yes; then
  14057. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  14058. fi
  14059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  14060. $as_echo_n "checking for alloca... " >&6; }
  14061. if ${ac_cv_func_alloca_works+:} false; then :
  14062. $as_echo_n "(cached) " >&6
  14063. else
  14064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14065. /* end confdefs.h. */
  14066. #ifdef __GNUC__
  14067. # define alloca __builtin_alloca
  14068. #else
  14069. # ifdef _MSC_VER
  14070. # include <malloc.h>
  14071. # define alloca _alloca
  14072. # else
  14073. # ifdef HAVE_ALLOCA_H
  14074. # include <alloca.h>
  14075. # else
  14076. # ifdef _AIX
  14077. #pragma alloca
  14078. # else
  14079. # ifndef alloca /* predefined by HP cc +Olibcalls */
  14080. void *alloca (size_t);
  14081. # endif
  14082. # endif
  14083. # endif
  14084. # endif
  14085. #endif
  14086. int
  14087. main ()
  14088. {
  14089. char *p = (char *) alloca (1);
  14090. if (p) return 0;
  14091. ;
  14092. return 0;
  14093. }
  14094. _ACEOF
  14095. if ac_fn_c_try_link "$LINENO"; then :
  14096. ac_cv_func_alloca_works=yes
  14097. else
  14098. ac_cv_func_alloca_works=no
  14099. fi
  14100. rm -f core conftest.err conftest.$ac_objext \
  14101. conftest$ac_exeext conftest.$ac_ext
  14102. fi
  14103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  14104. $as_echo "$ac_cv_func_alloca_works" >&6; }
  14105. if test $ac_cv_func_alloca_works = yes; then
  14106. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  14107. else
  14108. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  14109. # that cause trouble. Some versions do not even contain alloca or
  14110. # contain a buggy version. If you still want to use their alloca,
  14111. # use ar to extract alloca.o from them instead of compiling alloca.c.
  14112. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  14113. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  14114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  14115. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  14116. if ${ac_cv_os_cray+:} false; then :
  14117. $as_echo_n "(cached) " >&6
  14118. else
  14119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14120. /* end confdefs.h. */
  14121. #if defined CRAY && ! defined CRAY2
  14122. webecray
  14123. #else
  14124. wenotbecray
  14125. #endif
  14126. _ACEOF
  14127. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14128. $EGREP "webecray" >/dev/null 2>&1; then :
  14129. ac_cv_os_cray=yes
  14130. else
  14131. ac_cv_os_cray=no
  14132. fi
  14133. rm -f conftest*
  14134. fi
  14135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  14136. $as_echo "$ac_cv_os_cray" >&6; }
  14137. if test $ac_cv_os_cray = yes; then
  14138. for ac_func in _getb67 GETB67 getb67; do
  14139. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14140. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14141. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14142. cat >>confdefs.h <<_ACEOF
  14143. #define CRAY_STACKSEG_END $ac_func
  14144. _ACEOF
  14145. break
  14146. fi
  14147. done
  14148. fi
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  14150. $as_echo_n "checking stack direction for C alloca... " >&6; }
  14151. if ${ac_cv_c_stack_direction+:} false; then :
  14152. $as_echo_n "(cached) " >&6
  14153. else
  14154. if test "$cross_compiling" = yes; then :
  14155. ac_cv_c_stack_direction=0
  14156. else
  14157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14158. /* end confdefs.h. */
  14159. $ac_includes_default
  14160. int
  14161. find_stack_direction (int *addr, int depth)
  14162. {
  14163. int dir, dummy = 0;
  14164. if (! addr)
  14165. addr = &dummy;
  14166. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  14167. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  14168. return dir + dummy;
  14169. }
  14170. int
  14171. main (int argc, char **argv)
  14172. {
  14173. return find_stack_direction (0, argc + !argv + 20) < 0;
  14174. }
  14175. _ACEOF
  14176. if ac_fn_c_try_run "$LINENO"; then :
  14177. ac_cv_c_stack_direction=1
  14178. else
  14179. ac_cv_c_stack_direction=-1
  14180. fi
  14181. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14182. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14183. fi
  14184. fi
  14185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  14186. $as_echo "$ac_cv_c_stack_direction" >&6; }
  14187. cat >>confdefs.h <<_ACEOF
  14188. #define STACK_DIRECTION $ac_cv_c_stack_direction
  14189. _ACEOF
  14190. fi
  14191. ;;
  14192. esac
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  14194. $as_echo_n "checking for working memcmp... " >&6; }
  14195. if ${ac_cv_func_memcmp_working+:} false; then :
  14196. $as_echo_n "(cached) " >&6
  14197. else
  14198. if test "$cross_compiling" = yes; then :
  14199. ac_cv_func_memcmp_working=no
  14200. else
  14201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14202. /* end confdefs.h. */
  14203. $ac_includes_default
  14204. int
  14205. main ()
  14206. {
  14207. /* Some versions of memcmp are not 8-bit clean. */
  14208. char c0 = '\100', c1 = '\200', c2 = '\201';
  14209. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14210. return 1;
  14211. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14212. or more and with at least one buffer not starting on a 4-byte boundary.
  14213. William Lewis provided this test program. */
  14214. {
  14215. char foo[21];
  14216. char bar[21];
  14217. int i;
  14218. for (i = 0; i < 4; i++)
  14219. {
  14220. char *a = foo + i;
  14221. char *b = bar + i;
  14222. strcpy (a, "--------01111111");
  14223. strcpy (b, "--------10000000");
  14224. if (memcmp (a, b, 16) >= 0)
  14225. return 1;
  14226. }
  14227. return 0;
  14228. }
  14229. ;
  14230. return 0;
  14231. }
  14232. _ACEOF
  14233. if ac_fn_c_try_run "$LINENO"; then :
  14234. ac_cv_func_memcmp_working=yes
  14235. else
  14236. ac_cv_func_memcmp_working=no
  14237. fi
  14238. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14239. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14240. fi
  14241. fi
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  14243. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  14244. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14245. *" memcmp.$ac_objext "* ) ;;
  14246. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14247. ;;
  14248. esac
  14249. if test x$ac_cv_func_memcmp_working = xyes; then
  14250. $as_echo "#define HAVE_MEMCMP 1" >>confdefs.h
  14251. fi
  14252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  14253. $as_echo_n "checking for working strtod... " >&6; }
  14254. if ${ac_cv_func_strtod+:} false; then :
  14255. $as_echo_n "(cached) " >&6
  14256. else
  14257. if test "$cross_compiling" = yes; then :
  14258. ac_cv_func_strtod=no
  14259. else
  14260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14261. /* end confdefs.h. */
  14262. $ac_includes_default
  14263. #ifndef strtod
  14264. double strtod ();
  14265. #endif
  14266. int
  14267. main()
  14268. {
  14269. {
  14270. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  14271. char *string = " +69";
  14272. char *term;
  14273. double value;
  14274. value = strtod (string, &term);
  14275. if (value != 69 || term != (string + 4))
  14276. return 1;
  14277. }
  14278. {
  14279. /* Under Solaris 2.4, strtod returns the wrong value for the
  14280. terminating character under some conditions. */
  14281. char *string = "NaN";
  14282. char *term;
  14283. strtod (string, &term);
  14284. if (term != string && *(term - 1) == 0)
  14285. return 1;
  14286. }
  14287. return 0;
  14288. }
  14289. _ACEOF
  14290. if ac_fn_c_try_run "$LINENO"; then :
  14291. ac_cv_func_strtod=yes
  14292. else
  14293. ac_cv_func_strtod=no
  14294. fi
  14295. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14296. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14297. fi
  14298. fi
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  14300. $as_echo "$ac_cv_func_strtod" >&6; }
  14301. if test $ac_cv_func_strtod = no; then
  14302. case " $LIBOBJS " in
  14303. *" strtod.$ac_objext "* ) ;;
  14304. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  14305. ;;
  14306. esac
  14307. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  14308. if test "x$ac_cv_func_pow" = xyes; then :
  14309. fi
  14310. if test $ac_cv_func_pow = no; then
  14311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14312. $as_echo_n "checking for pow in -lm... " >&6; }
  14313. if ${ac_cv_lib_m_pow+:} false; then :
  14314. $as_echo_n "(cached) " >&6
  14315. else
  14316. ac_check_lib_save_LIBS=$LIBS
  14317. LIBS="-lm $LIBS"
  14318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14319. /* end confdefs.h. */
  14320. /* Override any GCC internal prototype to avoid an error.
  14321. Use char because int might match the return type of a GCC
  14322. builtin and then its argument prototype would still apply. */
  14323. #ifdef __cplusplus
  14324. extern "C"
  14325. #endif
  14326. char pow ();
  14327. int
  14328. main ()
  14329. {
  14330. return pow ();
  14331. ;
  14332. return 0;
  14333. }
  14334. _ACEOF
  14335. if ac_fn_c_try_link "$LINENO"; then :
  14336. ac_cv_lib_m_pow=yes
  14337. else
  14338. ac_cv_lib_m_pow=no
  14339. fi
  14340. rm -f core conftest.err conftest.$ac_objext \
  14341. conftest$ac_exeext conftest.$ac_ext
  14342. LIBS=$ac_check_lib_save_LIBS
  14343. fi
  14344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14345. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14346. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14347. POW_LIB=-lm
  14348. else
  14349. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  14350. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  14351. fi
  14352. fi
  14353. fi
  14354. if test x$ac_cv_func_strtod = xyes; then
  14355. $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
  14356. fi
  14357. ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
  14358. if test "x$ac_cv_func_mprotect" = xyes; then :
  14359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14360. /* end confdefs.h. */
  14361. #include <sys/types.h>
  14362. #include <sys/mman.h>
  14363. int
  14364. main ()
  14365. {
  14366. ;
  14367. return 0;
  14368. }
  14369. _ACEOF
  14370. if ac_fn_c_try_compile "$LINENO"; then :
  14371. $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
  14372. fi
  14373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14374. fi
  14375. 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
  14376. do :
  14377. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14378. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14379. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14380. cat >>confdefs.h <<_ACEOF
  14381. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14382. _ACEOF
  14383. fi
  14384. done
  14385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  14386. $as_echo_n "checking for pow in -lm... " >&6; }
  14387. if ${ac_cv_lib_m_pow+:} false; then :
  14388. $as_echo_n "(cached) " >&6
  14389. else
  14390. ac_check_lib_save_LIBS=$LIBS
  14391. LIBS="-lm $LIBS"
  14392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14393. /* end confdefs.h. */
  14394. /* Override any GCC internal prototype to avoid an error.
  14395. Use char because int might match the return type of a GCC
  14396. builtin and then its argument prototype would still apply. */
  14397. #ifdef __cplusplus
  14398. extern "C"
  14399. #endif
  14400. char pow ();
  14401. int
  14402. main ()
  14403. {
  14404. return pow ();
  14405. ;
  14406. return 0;
  14407. }
  14408. _ACEOF
  14409. if ac_fn_c_try_link "$LINENO"; then :
  14410. ac_cv_lib_m_pow=yes
  14411. else
  14412. ac_cv_lib_m_pow=no
  14413. fi
  14414. rm -f core conftest.err conftest.$ac_objext \
  14415. conftest$ac_exeext conftest.$ac_ext
  14416. LIBS=$ac_check_lib_save_LIBS
  14417. fi
  14418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  14419. $as_echo "$ac_cv_lib_m_pow" >&6; }
  14420. if test "x$ac_cv_lib_m_pow" = xyes; then :
  14421. LIBS="$LIBS -lm"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm"
  14422. fi
  14423. 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
  14424. do :
  14425. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14426. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14427. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14428. cat >>confdefs.h <<_ACEOF
  14429. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14430. _ACEOF
  14431. fi
  14432. done
  14433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  14434. $as_echo_n "checking for iconv_open in -liconv... " >&6; }
  14435. if ${ac_cv_lib_iconv_iconv_open+:} false; then :
  14436. $as_echo_n "(cached) " >&6
  14437. else
  14438. ac_check_lib_save_LIBS=$LIBS
  14439. LIBS="-liconv $LIBS"
  14440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14441. /* end confdefs.h. */
  14442. /* Override any GCC internal prototype to avoid an error.
  14443. Use char because int might match the return type of a GCC
  14444. builtin and then its argument prototype would still apply. */
  14445. #ifdef __cplusplus
  14446. extern "C"
  14447. #endif
  14448. char iconv_open ();
  14449. int
  14450. main ()
  14451. {
  14452. return iconv_open ();
  14453. ;
  14454. return 0;
  14455. }
  14456. _ACEOF
  14457. if ac_fn_c_try_link "$LINENO"; then :
  14458. ac_cv_lib_iconv_iconv_open=yes
  14459. else
  14460. ac_cv_lib_iconv_iconv_open=no
  14461. fi
  14462. rm -f core conftest.err conftest.$ac_objext \
  14463. conftest$ac_exeext conftest.$ac_ext
  14464. LIBS=$ac_check_lib_save_LIBS
  14465. fi
  14466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  14467. $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
  14468. if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
  14469. LIBS="$LIBS -liconv"; EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"
  14470. fi
  14471. for ac_func in iconv
  14472. do :
  14473. ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  14474. if test "x$ac_cv_func_iconv" = xyes; then :
  14475. cat >>confdefs.h <<_ACEOF
  14476. #define HAVE_ICONV 1
  14477. _ACEOF
  14478. fi
  14479. done
  14480. ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
  14481. "
  14482. if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes; then :
  14483. $as_echo "#define HAVE_SA_SIGACTION 1" >>confdefs.h
  14484. fi
  14485. for ac_header in libunwind.h
  14486. do :
  14487. ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  14488. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  14489. cat >>confdefs.h <<_ACEOF
  14490. #define HAVE_LIBUNWIND_H 1
  14491. _ACEOF
  14492. fi
  14493. done
  14494. fi
  14495. # Check whether --enable-gcc-atomics was given.
  14496. if test "${enable_gcc_atomics+set}" = set; then :
  14497. enableval=$enable_gcc_atomics;
  14498. else
  14499. enable_gcc_atomics=yes
  14500. fi
  14501. if test x$enable_gcc_atomics = xyes; then
  14502. have_gcc_atomics=no
  14503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC builtin atomic operations" >&5
  14504. $as_echo_n "checking for GCC builtin atomic operations... " >&6; }
  14505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14506. /* end confdefs.h. */
  14507. int
  14508. main ()
  14509. {
  14510. int a;
  14511. void *x, *y, *z;
  14512. __sync_lock_test_and_set(&a, 4);
  14513. __sync_lock_test_and_set(&x, y);
  14514. __sync_fetch_and_add(&a, 1);
  14515. __sync_bool_compare_and_swap(&a, 5, 10);
  14516. __sync_bool_compare_and_swap(&x, y, z);
  14517. ;
  14518. return 0;
  14519. }
  14520. _ACEOF
  14521. if ac_fn_c_try_link "$LINENO"; then :
  14522. have_gcc_atomics=yes
  14523. fi
  14524. rm -f core conftest.err conftest.$ac_objext \
  14525. conftest$ac_exeext conftest.$ac_ext
  14526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_atomics" >&5
  14527. $as_echo "$have_gcc_atomics" >&6; }
  14528. if test x$have_gcc_atomics = xyes; then
  14529. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  14530. else
  14531. # See if we have the minimum operation needed for GCC atomics
  14532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14533. /* end confdefs.h. */
  14534. int
  14535. main ()
  14536. {
  14537. int a;
  14538. __sync_lock_test_and_set(&a, 1);
  14539. __sync_lock_release(&a);
  14540. ;
  14541. return 0;
  14542. }
  14543. _ACEOF
  14544. if ac_fn_c_try_link "$LINENO"; then :
  14545. have_gcc_sync_lock_test_and_set=yes
  14546. fi
  14547. rm -f core conftest.err conftest.$ac_objext \
  14548. conftest$ac_exeext conftest.$ac_ext
  14549. if test x$have_gcc_sync_lock_test_and_set = xyes; then
  14550. $as_echo "#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1" >>confdefs.h
  14551. fi
  14552. fi
  14553. fi
  14554. # Standard C sources
  14555. SOURCES="$SOURCES $srcdir/src/*.c"
  14556. SOURCES="$SOURCES $srcdir/src/atomic/*.c"
  14557. SOURCES="$SOURCES $srcdir/src/audio/*.c"
  14558. SOURCES="$SOURCES $srcdir/src/cpuinfo/*.c"
  14559. SOURCES="$SOURCES $srcdir/src/dynapi/*.c"
  14560. SOURCES="$SOURCES $srcdir/src/events/*.c"
  14561. SOURCES="$SOURCES $srcdir/src/file/*.c"
  14562. SOURCES="$SOURCES $srcdir/src/haptic/*.c"
  14563. SOURCES="$SOURCES $srcdir/src/joystick/*.c"
  14564. SOURCES="$SOURCES $srcdir/src/libm/*.c"
  14565. SOURCES="$SOURCES $srcdir/src/power/*.c"
  14566. #SOURCES="$SOURCES $srcdir/src/filesystem/*.c"
  14567. SOURCES="$SOURCES $srcdir/src/render/*.c"
  14568. SOURCES="$SOURCES $srcdir/src/render/*/*.c"
  14569. SOURCES="$SOURCES $srcdir/src/stdlib/*.c"
  14570. SOURCES="$SOURCES $srcdir/src/thread/*.c"
  14571. SOURCES="$SOURCES $srcdir/src/timer/*.c"
  14572. SOURCES="$SOURCES $srcdir/src/video/*.c"
  14573. SOURCES="$SOURCES $srcdir/src/video/yuv2rgb/*.c"
  14574. # Check whether --enable-atomic was given.
  14575. if test "${enable_atomic+set}" = set; then :
  14576. enableval=$enable_atomic;
  14577. else
  14578. enable_atomic=yes
  14579. fi
  14580. if test x$enable_atomic != xyes; then
  14581. $as_echo "#define SDL_ATOMIC_DISABLED 1" >>confdefs.h
  14582. else
  14583. SUMMARY_modules="${SUMMARY_modules} atomic"
  14584. fi
  14585. # Check whether --enable-audio was given.
  14586. if test "${enable_audio+set}" = set; then :
  14587. enableval=$enable_audio;
  14588. else
  14589. enable_audio=yes
  14590. fi
  14591. if test x$enable_audio != xyes; then
  14592. $as_echo "#define SDL_AUDIO_DISABLED 1" >>confdefs.h
  14593. else
  14594. SUMMARY_modules="${SUMMARY_modules} audio"
  14595. fi
  14596. # Check whether --enable-video was given.
  14597. if test "${enable_video+set}" = set; then :
  14598. enableval=$enable_video;
  14599. else
  14600. enable_video=yes
  14601. fi
  14602. if test x$enable_video != xyes; then
  14603. $as_echo "#define SDL_VIDEO_DISABLED 1" >>confdefs.h
  14604. else
  14605. SUMMARY_modules="${SUMMARY_modules} video"
  14606. fi
  14607. # Check whether --enable-render was given.
  14608. if test "${enable_render+set}" = set; then :
  14609. enableval=$enable_render;
  14610. else
  14611. enable_render=yes
  14612. fi
  14613. if test x$enable_render != xyes; then
  14614. $as_echo "#define SDL_RENDER_DISABLED 1" >>confdefs.h
  14615. else
  14616. SUMMARY_modules="${SUMMARY_modules} render"
  14617. fi
  14618. # Check whether --enable-events was given.
  14619. if test "${enable_events+set}" = set; then :
  14620. enableval=$enable_events;
  14621. else
  14622. enable_events=yes
  14623. fi
  14624. if test x$enable_events != xyes; then
  14625. $as_echo "#define SDL_EVENTS_DISABLED 1" >>confdefs.h
  14626. else
  14627. SUMMARY_modules="${SUMMARY_modules} events"
  14628. fi
  14629. # Check whether --enable-joystick was given.
  14630. if test "${enable_joystick+set}" = set; then :
  14631. enableval=$enable_joystick;
  14632. else
  14633. enable_joystick=yes
  14634. fi
  14635. if test x$enable_joystick != xyes; then
  14636. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  14637. else
  14638. SUMMARY_modules="${SUMMARY_modules} joystick"
  14639. fi
  14640. # Check whether --enable-haptic was given.
  14641. if test "${enable_haptic+set}" = set; then :
  14642. enableval=$enable_haptic;
  14643. else
  14644. enable_haptic=yes
  14645. fi
  14646. if test x$enable_haptic != xyes; then
  14647. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  14648. else
  14649. SUMMARY_modules="${SUMMARY_modules} haptic"
  14650. fi
  14651. # Check whether --enable-power was given.
  14652. if test "${enable_power+set}" = set; then :
  14653. enableval=$enable_power;
  14654. else
  14655. enable_power=yes
  14656. fi
  14657. if test x$enable_power != xyes; then
  14658. $as_echo "#define SDL_POWER_DISABLED 1" >>confdefs.h
  14659. else
  14660. SUMMARY_modules="${SUMMARY_modules} power"
  14661. fi
  14662. # Check whether --enable-filesystem was given.
  14663. if test "${enable_filesystem+set}" = set; then :
  14664. enableval=$enable_filesystem;
  14665. else
  14666. enable_filesystem=yes
  14667. fi
  14668. if test x$enable_filesystem != xyes; then
  14669. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  14670. else
  14671. SUMMARY_modules="${SUMMARY_modules} filesystem"
  14672. fi
  14673. # Check whether --enable-threads was given.
  14674. if test "${enable_threads+set}" = set; then :
  14675. enableval=$enable_threads;
  14676. else
  14677. enable_threads=yes
  14678. fi
  14679. if test x$enable_threads != xyes; then
  14680. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  14681. else
  14682. SUMMARY_modules="${SUMMARY_modules} threads"
  14683. fi
  14684. # Check whether --enable-timers was given.
  14685. if test "${enable_timers+set}" = set; then :
  14686. enableval=$enable_timers;
  14687. else
  14688. enable_timers=yes
  14689. fi
  14690. if test x$enable_timers != xyes; then
  14691. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  14692. else
  14693. SUMMARY_modules="${SUMMARY_modules} timers"
  14694. fi
  14695. # Check whether --enable-file was given.
  14696. if test "${enable_file+set}" = set; then :
  14697. enableval=$enable_file;
  14698. else
  14699. enable_file=yes
  14700. fi
  14701. if test x$enable_file != xyes; then
  14702. $as_echo "#define SDL_FILE_DISABLED 1" >>confdefs.h
  14703. else
  14704. SUMMARY_modules="${SUMMARY_modules} file"
  14705. fi
  14706. # Check whether --enable-loadso was given.
  14707. if test "${enable_loadso+set}" = set; then :
  14708. enableval=$enable_loadso;
  14709. else
  14710. enable_loadso=yes
  14711. fi
  14712. if test x$enable_loadso != xyes; then
  14713. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  14714. else
  14715. SUMMARY_modules="${SUMMARY_modules} loadso"
  14716. fi
  14717. # Check whether --enable-cpuinfo was given.
  14718. if test "${enable_cpuinfo+set}" = set; then :
  14719. enableval=$enable_cpuinfo;
  14720. else
  14721. enable_cpuinfo=yes
  14722. fi
  14723. if test x$enable_cpuinfo != xyes; then
  14724. $as_echo "#define SDL_CPUINFO_DISABLED 1" >>confdefs.h
  14725. else
  14726. SUMMARY_modules="${SUMMARY_modules} cpuinfo"
  14727. fi
  14728. # Check whether --enable-assembly was given.
  14729. if test "${enable_assembly+set}" = set; then :
  14730. enableval=$enable_assembly;
  14731. else
  14732. enable_assembly=yes
  14733. fi
  14734. if test x$enable_assembly = xyes; then
  14735. SUMMARY_modules="${SUMMARY_modules} assembly"
  14736. $as_echo "#define SDL_ASSEMBLY_ROUTINES 1" >>confdefs.h
  14737. # Make sure that we don't generate floating point code that would
  14738. # cause illegal instruction exceptions on older processors
  14739. case "$host" in
  14740. *-*-darwin*)
  14741. # Don't need to worry about Apple hardware, it's all SSE capable
  14742. default_ssemath=yes
  14743. ;;
  14744. *64-*-*)
  14745. # x86 64-bit architectures all have SSE instructions
  14746. default_ssemath=yes
  14747. ;;
  14748. *)
  14749. default_ssemath=no
  14750. ;;
  14751. esac
  14752. # Check whether --enable-ssemath was given.
  14753. if test "${enable_ssemath+set}" = set; then :
  14754. enableval=$enable_ssemath;
  14755. else
  14756. enable_ssemath=$default_ssemath
  14757. fi
  14758. if test x$enable_ssemath = xno; then
  14759. if test x$have_gcc_sse = xyes -o x$have_gcc_sse2 = xyes -o x$have_gcc_sse3 = xyes; then
  14760. EXTRA_CFLAGS="$EXTRA_CFLAGS -mfpmath=387"
  14761. fi
  14762. fi
  14763. # Check whether --enable-mmx was given.
  14764. if test "${enable_mmx+set}" = set; then :
  14765. enableval=$enable_mmx;
  14766. else
  14767. enable_mmx=yes
  14768. fi
  14769. if test x$enable_mmx = xyes; then
  14770. save_CFLAGS="$CFLAGS"
  14771. have_gcc_mmx=no
  14772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mmmx option" >&5
  14773. $as_echo_n "checking for GCC -mmmx option... " >&6; }
  14774. mmx_CFLAGS="-mmmx"
  14775. CFLAGS="$save_CFLAGS $mmx_CFLAGS"
  14776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14777. /* end confdefs.h. */
  14778. #ifdef __MINGW32__
  14779. #include <_mingw.h>
  14780. #ifdef __MINGW64_VERSION_MAJOR
  14781. #include <intrin.h>
  14782. #else
  14783. #include <mmintrin.h>
  14784. #endif
  14785. #else
  14786. #include <mmintrin.h>
  14787. #endif
  14788. #ifndef __MMX__
  14789. #error Assembler CPP flag not enabled
  14790. #endif
  14791. int
  14792. main ()
  14793. {
  14794. ;
  14795. return 0;
  14796. }
  14797. _ACEOF
  14798. if ac_fn_c_try_compile "$LINENO"; then :
  14799. have_gcc_mmx=yes
  14800. fi
  14801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_mmx" >&5
  14803. $as_echo "$have_gcc_mmx" >&6; }
  14804. CFLAGS="$save_CFLAGS"
  14805. if test x$have_gcc_mmx = xyes; then
  14806. EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
  14807. SUMMARY_math="${SUMMARY_math} mmx"
  14808. fi
  14809. fi
  14810. # Check whether --enable-3dnow was given.
  14811. if test "${enable_3dnow+set}" = set; then :
  14812. enableval=$enable_3dnow;
  14813. else
  14814. enable_3dnow=yes
  14815. fi
  14816. if test x$enable_3dnow = xyes; then
  14817. save_CFLAGS="$CFLAGS"
  14818. have_gcc_3dnow=no
  14819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -m3dnow option" >&5
  14820. $as_echo_n "checking for GCC -m3dnow option... " >&6; }
  14821. amd3dnow_CFLAGS="-m3dnow"
  14822. CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
  14823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14824. /* end confdefs.h. */
  14825. #include <mm3dnow.h>
  14826. #ifndef __3dNOW__
  14827. #error Assembler CPP flag not enabled
  14828. #endif
  14829. int
  14830. main ()
  14831. {
  14832. void *p = 0;
  14833. _m_prefetch(p);
  14834. ;
  14835. return 0;
  14836. }
  14837. _ACEOF
  14838. if ac_fn_c_try_link "$LINENO"; then :
  14839. have_gcc_3dnow=yes
  14840. fi
  14841. rm -f core conftest.err conftest.$ac_objext \
  14842. conftest$ac_exeext conftest.$ac_ext
  14843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_3dnow" >&5
  14844. $as_echo "$have_gcc_3dnow" >&6; }
  14845. CFLAGS="$save_CFLAGS"
  14846. if test x$have_gcc_3dnow = xyes; then
  14847. EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
  14848. SUMMARY_math="${SUMMARY_math} 3dnow"
  14849. fi
  14850. fi
  14851. # Check whether --enable-sse was given.
  14852. if test "${enable_sse+set}" = set; then :
  14853. enableval=$enable_sse;
  14854. else
  14855. enable_sse=yes
  14856. fi
  14857. if test x$enable_sse = xyes; then
  14858. save_CFLAGS="$CFLAGS"
  14859. have_gcc_sse=no
  14860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse option" >&5
  14861. $as_echo_n "checking for GCC -msse option... " >&6; }
  14862. sse_CFLAGS="-msse"
  14863. CFLAGS="$save_CFLAGS $sse_CFLAGS"
  14864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14865. /* end confdefs.h. */
  14866. #ifdef __MINGW32__
  14867. #include <_mingw.h>
  14868. #ifdef __MINGW64_VERSION_MAJOR
  14869. #include <intrin.h>
  14870. #else
  14871. #include <xmmintrin.h>
  14872. #endif
  14873. #else
  14874. #include <xmmintrin.h>
  14875. #endif
  14876. #ifndef __SSE__
  14877. #error Assembler CPP flag not enabled
  14878. #endif
  14879. int
  14880. main ()
  14881. {
  14882. ;
  14883. return 0;
  14884. }
  14885. _ACEOF
  14886. if ac_fn_c_try_compile "$LINENO"; then :
  14887. have_gcc_sse=yes
  14888. fi
  14889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse" >&5
  14891. $as_echo "$have_gcc_sse" >&6; }
  14892. CFLAGS="$save_CFLAGS"
  14893. if test x$have_gcc_sse = xyes; then
  14894. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse_CFLAGS"
  14895. SUMMARY_math="${SUMMARY_math} sse"
  14896. fi
  14897. fi
  14898. # Check whether --enable-sse2 was given.
  14899. if test "${enable_sse2+set}" = set; then :
  14900. enableval=$enable_sse2;
  14901. else
  14902. enable_sse2=$default_ssemath
  14903. fi
  14904. if test x$enable_sse2 = xyes; then
  14905. save_CFLAGS="$CFLAGS"
  14906. have_gcc_sse2=no
  14907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse2 option" >&5
  14908. $as_echo_n "checking for GCC -msse2 option... " >&6; }
  14909. sse2_CFLAGS="-msse2"
  14910. CFLAGS="$save_CFLAGS $sse2_CFLAGS"
  14911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14912. /* end confdefs.h. */
  14913. #ifdef __MINGW32__
  14914. #include <_mingw.h>
  14915. #ifdef __MINGW64_VERSION_MAJOR
  14916. #include <intrin.h>
  14917. #else
  14918. #include <emmintrin.h>
  14919. #endif
  14920. #else
  14921. #include <emmintrin.h>
  14922. #endif
  14923. #ifndef __SSE2__
  14924. #error Assembler CPP flag not enabled
  14925. #endif
  14926. int
  14927. main ()
  14928. {
  14929. ;
  14930. return 0;
  14931. }
  14932. _ACEOF
  14933. if ac_fn_c_try_compile "$LINENO"; then :
  14934. have_gcc_sse2=yes
  14935. fi
  14936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse2" >&5
  14938. $as_echo "$have_gcc_sse2" >&6; }
  14939. CFLAGS="$save_CFLAGS"
  14940. if test x$have_gcc_sse2 = xyes; then
  14941. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
  14942. SUMMARY_math="${SUMMARY_math} sse2"
  14943. fi
  14944. fi
  14945. # Check whether --enable-sse3 was given.
  14946. if test "${enable_sse3+set}" = set; then :
  14947. enableval=$enable_sse3;
  14948. else
  14949. enable_sse3=$default_ssemath
  14950. fi
  14951. if test x$enable_sse3 = xyes; then
  14952. save_CFLAGS="$CFLAGS"
  14953. have_gcc_sse3=no
  14954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -msse3 option" >&5
  14955. $as_echo_n "checking for GCC -msse3 option... " >&6; }
  14956. sse3_CFLAGS="-msse3"
  14957. CFLAGS="$save_CFLAGS $sse3_CFLAGS"
  14958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14959. /* end confdefs.h. */
  14960. #ifdef __MINGW32__
  14961. #include <_mingw.h>
  14962. #ifdef __MINGW64_VERSION_MAJOR
  14963. #include <intrin.h>
  14964. #else
  14965. #include <pmmintrin.h>
  14966. #endif
  14967. #else
  14968. #include <pmmintrin.h>
  14969. #endif
  14970. #ifndef __SSE2__
  14971. #error Assembler CPP flag not enabled
  14972. #endif
  14973. int
  14974. main ()
  14975. {
  14976. ;
  14977. return 0;
  14978. }
  14979. _ACEOF
  14980. if ac_fn_c_try_compile "$LINENO"; then :
  14981. have_gcc_sse3=yes
  14982. fi
  14983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_sse3" >&5
  14985. $as_echo "$have_gcc_sse3" >&6; }
  14986. CFLAGS="$save_CFLAGS"
  14987. if test x$have_gcc_sse3 = xyes; then
  14988. EXTRA_CFLAGS="$EXTRA_CFLAGS $sse3_CFLAGS"
  14989. SUMMARY_math="${SUMMARY_math} sse3"
  14990. fi
  14991. fi
  14992. ac_fn_c_check_header_mongrel "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
  14993. if test "x$ac_cv_header_immintrin_h" = xyes; then :
  14994. have_immintrin_h_hdr=yes
  14995. else
  14996. have_immintrin_h_hdr=no
  14997. fi
  14998. if test x$have_immintrin_h_hdr = xyes; then
  14999. $as_echo "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
  15000. fi
  15001. # Check whether --enable-altivec was given.
  15002. if test "${enable_altivec+set}" = set; then :
  15003. enableval=$enable_altivec;
  15004. else
  15005. enable_altivec=yes
  15006. fi
  15007. if test x$enable_altivec = xyes; then
  15008. save_CFLAGS="$CFLAGS"
  15009. have_gcc_altivec=no
  15010. have_altivec_h_hdr=no
  15011. altivec_CFLAGS="-maltivec"
  15012. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -maltivec option" >&5
  15014. $as_echo_n "checking for Altivec with GCC altivec.h and -maltivec option... " >&6; }
  15015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15016. /* end confdefs.h. */
  15017. #include <altivec.h>
  15018. vector unsigned int vzero() {
  15019. return vec_splat_u32(0);
  15020. }
  15021. int
  15022. main ()
  15023. {
  15024. ;
  15025. return 0;
  15026. }
  15027. _ACEOF
  15028. if ac_fn_c_try_compile "$LINENO"; then :
  15029. have_gcc_altivec=yes
  15030. have_altivec_h_hdr=yes
  15031. fi
  15032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15034. $as_echo "$have_gcc_altivec" >&6; }
  15035. if test x$have_gcc_altivec = xno; then
  15036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -maltivec option" >&5
  15037. $as_echo_n "checking for Altivec with GCC -maltivec option... " >&6; }
  15038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15039. /* end confdefs.h. */
  15040. vector unsigned int vzero() {
  15041. return vec_splat_u32(0);
  15042. }
  15043. int
  15044. main ()
  15045. {
  15046. ;
  15047. return 0;
  15048. }
  15049. _ACEOF
  15050. if ac_fn_c_try_compile "$LINENO"; then :
  15051. have_gcc_altivec=yes
  15052. fi
  15053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15055. $as_echo "$have_gcc_altivec" >&6; }
  15056. fi
  15057. if test x$have_gcc_altivec = xno; then
  15058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC altivec.h and -faltivec option" >&5
  15059. $as_echo_n "checking for Altivec with GCC altivec.h and -faltivec option... " >&6; }
  15060. altivec_CFLAGS="-faltivec"
  15061. CFLAGS="$save_CFLAGS $altivec_CFLAGS"
  15062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15063. /* end confdefs.h. */
  15064. #include <altivec.h>
  15065. vector unsigned int vzero() {
  15066. return vec_splat_u32(0);
  15067. }
  15068. int
  15069. main ()
  15070. {
  15071. ;
  15072. return 0;
  15073. }
  15074. _ACEOF
  15075. if ac_fn_c_try_compile "$LINENO"; then :
  15076. have_gcc_altivec=yes
  15077. have_altivec_h_hdr=yes
  15078. fi
  15079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15081. $as_echo "$have_gcc_altivec" >&6; }
  15082. fi
  15083. if test x$have_gcc_altivec = xno; then
  15084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Altivec with GCC -faltivec option" >&5
  15085. $as_echo_n "checking for Altivec with GCC -faltivec option... " >&6; }
  15086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15087. /* end confdefs.h. */
  15088. vector unsigned int vzero() {
  15089. return vec_splat_u32(0);
  15090. }
  15091. int
  15092. main ()
  15093. {
  15094. ;
  15095. return 0;
  15096. }
  15097. _ACEOF
  15098. if ac_fn_c_try_compile "$LINENO"; then :
  15099. have_gcc_altivec=yes
  15100. fi
  15101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_altivec" >&5
  15103. $as_echo "$have_gcc_altivec" >&6; }
  15104. fi
  15105. CFLAGS="$save_CFLAGS"
  15106. if test x$have_gcc_altivec = xyes; then
  15107. $as_echo "#define SDL_ALTIVEC_BLITTERS 1" >>confdefs.h
  15108. if test x$have_altivec_h_hdr = xyes; then
  15109. $as_echo "#define HAVE_ALTIVEC_H 1" >>confdefs.h
  15110. fi
  15111. EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
  15112. SUMMARY_math="${SUMMARY_math} altivec"
  15113. fi
  15114. fi
  15115. fi
  15116. CheckOSS()
  15117. {
  15118. # Check whether --enable-oss was given.
  15119. if test "${enable_oss+set}" = set; then :
  15120. enableval=$enable_oss;
  15121. else
  15122. enable_oss=maybe
  15123. fi
  15124. # OpenBSD "has" OSS, but it's not really for app use. They want you to
  15125. # use sndio instead. So on there, we default to disabled. You can force
  15126. # it on if you really want, though.
  15127. if test x$enable_oss = xmaybe; then
  15128. enable_oss=yes
  15129. case "$host" in
  15130. *-*-openbsd*)
  15131. enable_oss=no;;
  15132. esac
  15133. fi
  15134. if test x$enable_audio = xyes -a x$enable_oss = xyes; then
  15135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSS audio support" >&5
  15136. $as_echo_n "checking for OSS audio support... " >&6; }
  15137. have_oss=no
  15138. if test x$have_oss != xyes; then
  15139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15140. /* end confdefs.h. */
  15141. #include <sys/soundcard.h>
  15142. int
  15143. main ()
  15144. {
  15145. int arg = SNDCTL_DSP_SETFRAGMENT;
  15146. ;
  15147. return 0;
  15148. }
  15149. _ACEOF
  15150. if ac_fn_c_try_compile "$LINENO"; then :
  15151. have_oss=yes
  15152. fi
  15153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15154. fi
  15155. if test x$have_oss != xyes; then
  15156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15157. /* end confdefs.h. */
  15158. #include <soundcard.h>
  15159. int
  15160. main ()
  15161. {
  15162. int arg = SNDCTL_DSP_SETFRAGMENT;
  15163. ;
  15164. return 0;
  15165. }
  15166. _ACEOF
  15167. if ac_fn_c_try_compile "$LINENO"; then :
  15168. have_oss=yes
  15169. $as_echo "#define SDL_AUDIO_DRIVER_OSS_SOUNDCARD_H 1" >>confdefs.h
  15170. fi
  15171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15172. fi
  15173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_oss" >&5
  15174. $as_echo "$have_oss" >&6; }
  15175. if test x$have_oss = xyes; then
  15176. SUMMARY_audio="${SUMMARY_audio} oss"
  15177. $as_echo "#define SDL_AUDIO_DRIVER_OSS 1" >>confdefs.h
  15178. SOURCES="$SOURCES $srcdir/src/audio/dsp/*.c"
  15179. have_audio=yes
  15180. # We may need to link with ossaudio emulation library
  15181. case "$host" in
  15182. *-*-openbsd*|*-*-netbsd*)
  15183. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lossaudio";;
  15184. esac
  15185. fi
  15186. fi
  15187. }
  15188. CheckALSA()
  15189. {
  15190. # Check whether --enable-alsa was given.
  15191. if test "${enable_alsa+set}" = set; then :
  15192. enableval=$enable_alsa;
  15193. else
  15194. enable_alsa=yes
  15195. fi
  15196. if test x$enable_audio = xyes -a x$enable_alsa = xyes; then
  15197. alsa_save_CFLAGS="$CFLAGS"
  15198. alsa_save_LDFLAGS="$LDFLAGS"
  15199. alsa_save_LIBS="$LIBS"
  15200. alsa_found=yes
  15201. # Check whether --with-alsa-prefix was given.
  15202. if test "${with_alsa_prefix+set}" = set; then :
  15203. withval=$with_alsa_prefix; alsa_prefix="$withval"
  15204. else
  15205. alsa_prefix=""
  15206. fi
  15207. # Check whether --with-alsa-inc-prefix was given.
  15208. if test "${with_alsa_inc_prefix+set}" = set; then :
  15209. withval=$with_alsa_inc_prefix; alsa_inc_prefix="$withval"
  15210. else
  15211. alsa_inc_prefix=""
  15212. fi
  15213. # Check whether --enable-alsatest was given.
  15214. if test "${enable_alsatest+set}" = set; then :
  15215. enableval=$enable_alsatest; enable_alsatest="$enableval"
  15216. else
  15217. enable_alsatest=yes
  15218. fi
  15219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA CFLAGS" >&5
  15220. $as_echo_n "checking for ALSA CFLAGS... " >&6; }
  15221. if test "$alsa_inc_prefix" != "" ; then
  15222. ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
  15223. CFLAGS="$CFLAGS -I$alsa_inc_prefix"
  15224. fi
  15225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
  15226. $as_echo "$ALSA_CFLAGS" >&6; }
  15227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA LDFLAGS" >&5
  15228. $as_echo_n "checking for ALSA LDFLAGS... " >&6; }
  15229. if test "$alsa_prefix" != "" ; then
  15230. ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
  15231. LDFLAGS="$LDFLAGS $ALSA_LIBS"
  15232. fi
  15233. ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
  15234. LIBS=`echo $LIBS | sed 's/-lm//'`
  15235. LIBS=`echo $LIBS | sed 's/-ldl//'`
  15236. LIBS=`echo $LIBS | sed 's/-lpthread//'`
  15237. LIBS=`echo $LIBS | sed 's/ //'`
  15238. LIBS="$ALSA_LIBS $LIBS"
  15239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
  15240. $as_echo "$ALSA_LIBS" >&6; }
  15241. min_alsa_version=1.0.11
  15242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libasound headers version >= $min_alsa_version" >&5
  15243. $as_echo_n "checking for libasound headers version >= $min_alsa_version... " >&6; }
  15244. no_alsa=""
  15245. alsa_min_major_version=`echo $min_alsa_version | \
  15246. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15247. alsa_min_minor_version=`echo $min_alsa_version | \
  15248. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15249. alsa_min_micro_version=`echo $min_alsa_version | \
  15250. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15251. ac_ext=c
  15252. ac_cpp='$CPP $CPPFLAGS'
  15253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15257. /* end confdefs.h. */
  15258. #include <alsa/asoundlib.h>
  15259. int
  15260. main ()
  15261. {
  15262. /* ensure backward compatibility */
  15263. #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
  15264. #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
  15265. #endif
  15266. #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
  15267. #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
  15268. #endif
  15269. #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
  15270. #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
  15271. #endif
  15272. # if(SND_LIB_MAJOR > $alsa_min_major_version)
  15273. exit(0);
  15274. # else
  15275. # if(SND_LIB_MAJOR < $alsa_min_major_version)
  15276. # error not present
  15277. # endif
  15278. # if(SND_LIB_MINOR > $alsa_min_minor_version)
  15279. exit(0);
  15280. # else
  15281. # if(SND_LIB_MINOR < $alsa_min_minor_version)
  15282. # error not present
  15283. # endif
  15284. # if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
  15285. # error not present
  15286. # endif
  15287. # endif
  15288. # endif
  15289. exit(0);
  15290. ;
  15291. return 0;
  15292. }
  15293. _ACEOF
  15294. if ac_fn_c_try_compile "$LINENO"; then :
  15295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  15296. $as_echo "found." >&6; }
  15297. else
  15298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present." >&5
  15299. $as_echo "not present." >&6; }
  15300. alsa_found=no
  15301. fi
  15302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15303. ac_ext=c
  15304. ac_cpp='$CPP $CPPFLAGS'
  15305. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15306. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15307. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15308. if test "x$enable_alsatest" = "xyes"; then
  15309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_ctl_open in -lasound" >&5
  15310. $as_echo_n "checking for snd_ctl_open in -lasound... " >&6; }
  15311. if ${ac_cv_lib_asound_snd_ctl_open+:} false; then :
  15312. $as_echo_n "(cached) " >&6
  15313. else
  15314. ac_check_lib_save_LIBS=$LIBS
  15315. LIBS="-lasound $LIBS"
  15316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15317. /* end confdefs.h. */
  15318. /* Override any GCC internal prototype to avoid an error.
  15319. Use char because int might match the return type of a GCC
  15320. builtin and then its argument prototype would still apply. */
  15321. #ifdef __cplusplus
  15322. extern "C"
  15323. #endif
  15324. char snd_ctl_open ();
  15325. int
  15326. main ()
  15327. {
  15328. return snd_ctl_open ();
  15329. ;
  15330. return 0;
  15331. }
  15332. _ACEOF
  15333. if ac_fn_c_try_link "$LINENO"; then :
  15334. ac_cv_lib_asound_snd_ctl_open=yes
  15335. else
  15336. ac_cv_lib_asound_snd_ctl_open=no
  15337. fi
  15338. rm -f core conftest.err conftest.$ac_objext \
  15339. conftest$ac_exeext conftest.$ac_ext
  15340. LIBS=$ac_check_lib_save_LIBS
  15341. fi
  15342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_ctl_open" >&5
  15343. $as_echo "$ac_cv_lib_asound_snd_ctl_open" >&6; }
  15344. if test "x$ac_cv_lib_asound_snd_ctl_open" = xyes; then :
  15345. cat >>confdefs.h <<_ACEOF
  15346. #define HAVE_LIBASOUND 1
  15347. _ACEOF
  15348. LIBS="-lasound $LIBS"
  15349. else
  15350. alsa_found=no
  15351. fi
  15352. fi
  15353. if test "x$alsa_found" = "xyes" ; then
  15354. have_alsa=yes
  15355. LIBS=`echo $LIBS | sed 's/-lasound//g'`
  15356. LIBS=`echo $LIBS | sed 's/ //'`
  15357. LIBS="-lasound $LIBS"
  15358. fi
  15359. if test "x$alsa_found" = "xno" ; then
  15360. have_alsa=no
  15361. CFLAGS="$alsa_save_CFLAGS"
  15362. LDFLAGS="$alsa_save_LDFLAGS"
  15363. LIBS="$alsa_save_LIBS"
  15364. ALSA_CFLAGS=""
  15365. ALSA_LIBS=""
  15366. fi
  15367. # Restore all flags from before the ALSA detection runs
  15368. CFLAGS="$alsa_save_CFLAGS"
  15369. LDFLAGS="$alsa_save_LDFLAGS"
  15370. LIBS="$alsa_save_LIBS"
  15371. if test x$have_alsa = xyes; then
  15372. # Check whether --enable-alsa-shared was given.
  15373. if test "${enable_alsa_shared+set}" = set; then :
  15374. enableval=$enable_alsa_shared;
  15375. else
  15376. enable_alsa_shared=yes
  15377. fi
  15378. alsa_lib=`find_lib "libasound.so.*" "$ALSA_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15379. $as_echo "#define SDL_AUDIO_DRIVER_ALSA 1" >>confdefs.h
  15380. SOURCES="$SOURCES $srcdir/src/audio/alsa/*.c"
  15381. EXTRA_CFLAGS="$EXTRA_CFLAGS $ALSA_CFLAGS"
  15382. if test x$have_loadso != xyes && \
  15383. test x$enable_alsa_shared = xyes; then
  15384. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&5
  15385. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ALSA loading" >&2;}
  15386. fi
  15387. if test x$have_loadso = xyes && \
  15388. test x$enable_alsa_shared = xyes && test x$alsa_lib != x; then
  15389. echo "-- dynamic libasound -> $alsa_lib"
  15390. cat >>confdefs.h <<_ACEOF
  15391. #define SDL_AUDIO_DRIVER_ALSA_DYNAMIC "$alsa_lib"
  15392. _ACEOF
  15393. SUMMARY_audio="${SUMMARY_audio} alsa(dynamic)"
  15394. else
  15395. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ALSA_LIBS"
  15396. SUMMARY_audio="${SUMMARY_audio} alsa"
  15397. fi
  15398. have_audio=yes
  15399. fi
  15400. fi
  15401. }
  15402. CheckJACK()
  15403. {
  15404. # Check whether --enable-jack was given.
  15405. if test "${enable_jack+set}" = set; then :
  15406. enableval=$enable_jack;
  15407. else
  15408. enable_jack=yes
  15409. fi
  15410. if test x$enable_audio = xyes -a x$enable_jack = xyes; then
  15411. audio_jack=no
  15412. JACK_REQUIRED_VERSION=0.125
  15413. # Extract the first word of "pkg-config", so it can be a program name with args.
  15414. set dummy pkg-config; ac_word=$2
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15416. $as_echo_n "checking for $ac_word... " >&6; }
  15417. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15418. $as_echo_n "(cached) " >&6
  15419. else
  15420. case $PKG_CONFIG in
  15421. [\\/]* | ?:[\\/]*)
  15422. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15423. ;;
  15424. *)
  15425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15426. for as_dir in $PATH
  15427. do
  15428. IFS=$as_save_IFS
  15429. test -z "$as_dir" && as_dir=.
  15430. for ac_exec_ext in '' $ac_executable_extensions; do
  15431. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15432. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15433. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15434. break 2
  15435. fi
  15436. done
  15437. done
  15438. IFS=$as_save_IFS
  15439. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15440. ;;
  15441. esac
  15442. fi
  15443. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15444. if test -n "$PKG_CONFIG"; then
  15445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15446. $as_echo "$PKG_CONFIG" >&6; }
  15447. else
  15448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15449. $as_echo "no" >&6; }
  15450. fi
  15451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
  15452. $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
  15453. if test x$PKG_CONFIG != xno; then
  15454. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
  15455. JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
  15456. JACK_LIBS=`$PKG_CONFIG --libs jack`
  15457. audio_jack=yes
  15458. fi
  15459. fi
  15460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
  15461. $as_echo "$audio_jack" >&6; }
  15462. if test x$audio_jack = xyes; then
  15463. # Check whether --enable-jack-shared was given.
  15464. if test "${enable_jack_shared+set}" = set; then :
  15465. enableval=$enable_jack_shared;
  15466. else
  15467. enable_jack_shared=yes
  15468. fi
  15469. jack_lib=`find_lib "libjack.so.*" "$JACK_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15470. $as_echo "#define SDL_AUDIO_DRIVER_JACK 1" >>confdefs.h
  15471. SOURCES="$SOURCES $srcdir/src/audio/jack/*.c"
  15472. EXTRA_CFLAGS="$EXTRA_CFLAGS $JACK_CFLAGS"
  15473. if test x$have_loadso != xyes && \
  15474. test x$enable_jack_shared = xyes; then
  15475. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&5
  15476. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic JACK audio loading" >&2;}
  15477. fi
  15478. if test x$have_loadso = xyes && \
  15479. test x$enable_jack_shared = xyes && test x$jack_lib != x; then
  15480. echo "-- dynamic libjack -> $jack_lib"
  15481. cat >>confdefs.h <<_ACEOF
  15482. #define SDL_AUDIO_DRIVER_JACK_DYNAMIC "$jack_lib"
  15483. _ACEOF
  15484. SUMMARY_audio="${SUMMARY_audio} jack(dynamic)"
  15485. case "$host" in
  15486. # On Solaris, jack must be linked deferred explicitly
  15487. # to prevent undefined symbol failures.
  15488. *-*-solaris*)
  15489. JACK_LIBS=`echo $JACK_LIBS | sed 's/\-l/-Wl,-l/g'`
  15490. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $JACK_LIBS -Wl,-znodeferred"
  15491. esac
  15492. else
  15493. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $JACK_LIBS"
  15494. SUMMARY_audio="${SUMMARY_audio} jack"
  15495. fi
  15496. have_audio=yes
  15497. fi
  15498. fi
  15499. }
  15500. CheckESD()
  15501. {
  15502. # Check whether --enable-esd was given.
  15503. if test "${enable_esd+set}" = set; then :
  15504. enableval=$enable_esd;
  15505. else
  15506. enable_esd=yes
  15507. fi
  15508. if test x$enable_audio = xyes -a x$enable_esd = xyes; then
  15509. # Check whether --with-esd-prefix was given.
  15510. if test "${with_esd_prefix+set}" = set; then :
  15511. withval=$with_esd_prefix; esd_prefix="$withval"
  15512. else
  15513. esd_prefix=""
  15514. fi
  15515. # Check whether --with-esd-exec-prefix was given.
  15516. if test "${with_esd_exec_prefix+set}" = set; then :
  15517. withval=$with_esd_exec_prefix; esd_exec_prefix="$withval"
  15518. else
  15519. esd_exec_prefix=""
  15520. fi
  15521. # Check whether --enable-esdtest was given.
  15522. if test "${enable_esdtest+set}" = set; then :
  15523. enableval=$enable_esdtest;
  15524. else
  15525. enable_esdtest=yes
  15526. fi
  15527. if test x$esd_exec_prefix != x ; then
  15528. esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
  15529. if test x${ESD_CONFIG+set} != xset ; then
  15530. ESD_CONFIG=$esd_exec_prefix/bin/esd-config
  15531. fi
  15532. fi
  15533. if test x$esd_prefix != x ; then
  15534. esd_args="$esd_args --prefix=$esd_prefix"
  15535. if test x${ESD_CONFIG+set} != xset ; then
  15536. ESD_CONFIG=$esd_prefix/bin/esd-config
  15537. fi
  15538. fi
  15539. # Extract the first word of "esd-config", so it can be a program name with args.
  15540. set dummy esd-config; ac_word=$2
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15542. $as_echo_n "checking for $ac_word... " >&6; }
  15543. if ${ac_cv_path_ESD_CONFIG+:} false; then :
  15544. $as_echo_n "(cached) " >&6
  15545. else
  15546. case $ESD_CONFIG in
  15547. [\\/]* | ?:[\\/]*)
  15548. ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
  15549. ;;
  15550. *)
  15551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15552. for as_dir in $PATH
  15553. do
  15554. IFS=$as_save_IFS
  15555. test -z "$as_dir" && as_dir=.
  15556. for ac_exec_ext in '' $ac_executable_extensions; do
  15557. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15558. ac_cv_path_ESD_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15560. break 2
  15561. fi
  15562. done
  15563. done
  15564. IFS=$as_save_IFS
  15565. test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
  15566. ;;
  15567. esac
  15568. fi
  15569. ESD_CONFIG=$ac_cv_path_ESD_CONFIG
  15570. if test -n "$ESD_CONFIG"; then
  15571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESD_CONFIG" >&5
  15572. $as_echo "$ESD_CONFIG" >&6; }
  15573. else
  15574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15575. $as_echo "no" >&6; }
  15576. fi
  15577. min_esd_version=0.2.8
  15578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESD - version >= $min_esd_version" >&5
  15579. $as_echo_n "checking for ESD - version >= $min_esd_version... " >&6; }
  15580. no_esd=""
  15581. if test "$ESD_CONFIG" = "no" ; then
  15582. no_esd=yes
  15583. else
  15584. ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
  15585. ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
  15586. esd_major_version=`$ESD_CONFIG $esd_args --version | \
  15587. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  15588. esd_minor_version=`$ESD_CONFIG $esd_args --version | \
  15589. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  15590. esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
  15591. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  15592. if test "x$enable_esdtest" = "xyes" ; then
  15593. ac_save_CFLAGS="$CFLAGS"
  15594. ac_save_LIBS="$LIBS"
  15595. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15596. LIBS="$LIBS $ESD_LIBS"
  15597. rm -f conf.esdtest
  15598. if test "$cross_compiling" = yes; then :
  15599. echo $ac_n "cross compiling; assumed OK... $ac_c"
  15600. else
  15601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15602. /* end confdefs.h. */
  15603. #include <stdio.h>
  15604. #include <stdlib.h>
  15605. #include <string.h>
  15606. #include <esd.h>
  15607. char*
  15608. my_strdup (char *str)
  15609. {
  15610. char *new_str;
  15611. if (str)
  15612. {
  15613. new_str = malloc ((strlen (str) + 1) * sizeof(char));
  15614. strcpy (new_str, str);
  15615. }
  15616. else
  15617. new_str = NULL;
  15618. return new_str;
  15619. }
  15620. int main ()
  15621. {
  15622. int major, minor, micro;
  15623. char *tmp_version;
  15624. system ("touch conf.esdtest");
  15625. /* HP/UX 9 (%@#!) writes to sscanf strings */
  15626. tmp_version = my_strdup("$min_esd_version");
  15627. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  15628. printf("%s, bad version string\n", "$min_esd_version");
  15629. exit(1);
  15630. }
  15631. if (($esd_major_version > major) ||
  15632. (($esd_major_version == major) && ($esd_minor_version > minor)) ||
  15633. (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
  15634. {
  15635. return 0;
  15636. }
  15637. else
  15638. {
  15639. printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
  15640. printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
  15641. printf("*** best to upgrade to the required version.\n");
  15642. printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
  15643. printf("*** to point to the correct copy of esd-config, and remove the file\n");
  15644. printf("*** config.cache before re-running configure\n");
  15645. return 1;
  15646. }
  15647. }
  15648. _ACEOF
  15649. if ac_fn_c_try_run "$LINENO"; then :
  15650. else
  15651. no_esd=yes
  15652. fi
  15653. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15654. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15655. fi
  15656. CFLAGS="$ac_save_CFLAGS"
  15657. LIBS="$ac_save_LIBS"
  15658. fi
  15659. fi
  15660. if test "x$no_esd" = x ; then
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15662. $as_echo "yes" >&6; }
  15663. have_esd=yes
  15664. else
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15666. $as_echo "no" >&6; }
  15667. if test "$ESD_CONFIG" = "no" ; then
  15668. echo "*** The esd-config script installed by ESD could not be found"
  15669. echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
  15670. echo "*** your path, or set the ESD_CONFIG environment variable to the"
  15671. echo "*** full path to esd-config."
  15672. else
  15673. if test -f conf.esdtest ; then
  15674. :
  15675. else
  15676. echo "*** Could not run ESD test program, checking why..."
  15677. CFLAGS="$CFLAGS $ESD_CFLAGS"
  15678. LIBS="$LIBS $ESD_LIBS"
  15679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15680. /* end confdefs.h. */
  15681. #include <stdio.h>
  15682. #include <esd.h>
  15683. int
  15684. main ()
  15685. {
  15686. return 0;
  15687. ;
  15688. return 0;
  15689. }
  15690. _ACEOF
  15691. if ac_fn_c_try_link "$LINENO"; then :
  15692. echo "*** The test program compiled, but did not run. This usually means"
  15693. echo "*** that the run-time linker is not finding ESD or finding the wrong"
  15694. echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
  15695. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  15696. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  15697. echo "*** is required on your system"
  15698. echo "***"
  15699. echo "*** If you have an old version installed, it is best to remove it, although"
  15700. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  15701. else
  15702. echo "*** The test program failed to compile or link. See the file config.log for the"
  15703. echo "*** exact error that occured. This usually means ESD was incorrectly installed"
  15704. echo "*** or that you have moved ESD since it was installed. In the latter case, you"
  15705. echo "*** may want to edit the esd-config script: $ESD_CONFIG"
  15706. fi
  15707. rm -f core conftest.err conftest.$ac_objext \
  15708. conftest$ac_exeext conftest.$ac_ext
  15709. CFLAGS="$ac_save_CFLAGS"
  15710. LIBS="$ac_save_LIBS"
  15711. fi
  15712. fi
  15713. ESD_CFLAGS=""
  15714. ESD_LIBS=""
  15715. have_esd=no
  15716. fi
  15717. rm -f conf.esdtest
  15718. if test x$have_esd = xyes; then
  15719. # Check whether --enable-esd-shared was given.
  15720. if test "${enable_esd_shared+set}" = set; then :
  15721. enableval=$enable_esd_shared;
  15722. else
  15723. enable_esd_shared=yes
  15724. fi
  15725. esd_lib=`find_lib "libesd.so.*" "$ESD_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15726. $as_echo "#define SDL_AUDIO_DRIVER_ESD 1" >>confdefs.h
  15727. SOURCES="$SOURCES $srcdir/src/audio/esd/*.c"
  15728. EXTRA_CFLAGS="$EXTRA_CFLAGS $ESD_CFLAGS"
  15729. if test x$have_loadso != xyes && \
  15730. test x$enable_esd_shared = xyes; then
  15731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&5
  15732. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ESD loading" >&2;}
  15733. fi
  15734. if test x$have_loadso = xyes && \
  15735. test x$enable_esd_shared = xyes && test x$esd_lib != x; then
  15736. echo "-- dynamic libesd -> $esd_lib"
  15737. cat >>confdefs.h <<_ACEOF
  15738. #define SDL_AUDIO_DRIVER_ESD_DYNAMIC "$esd_lib"
  15739. _ACEOF
  15740. SUMMARY_audio="${SUMMARY_audio} esd(dynamic)"
  15741. else
  15742. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ESD_LIBS"
  15743. SUMMARY_audio="${SUMMARY_audio} esd"
  15744. fi
  15745. have_audio=yes
  15746. fi
  15747. fi
  15748. }
  15749. CheckPulseAudio()
  15750. {
  15751. # Check whether --enable-pulseaudio was given.
  15752. if test "${enable_pulseaudio+set}" = set; then :
  15753. enableval=$enable_pulseaudio;
  15754. else
  15755. enable_pulseaudio=yes
  15756. fi
  15757. if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
  15758. audio_pulseaudio=no
  15759. PULSEAUDIO_REQUIRED_VERSION=0.9
  15760. # Extract the first word of "pkg-config", so it can be a program name with args.
  15761. set dummy pkg-config; ac_word=$2
  15762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15763. $as_echo_n "checking for $ac_word... " >&6; }
  15764. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15765. $as_echo_n "(cached) " >&6
  15766. else
  15767. case $PKG_CONFIG in
  15768. [\\/]* | ?:[\\/]*)
  15769. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15770. ;;
  15771. *)
  15772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15773. for as_dir in $PATH
  15774. do
  15775. IFS=$as_save_IFS
  15776. test -z "$as_dir" && as_dir=.
  15777. for ac_exec_ext in '' $ac_executable_extensions; do
  15778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15779. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15781. break 2
  15782. fi
  15783. done
  15784. done
  15785. IFS=$as_save_IFS
  15786. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  15787. ;;
  15788. esac
  15789. fi
  15790. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15791. if test -n "$PKG_CONFIG"; then
  15792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15793. $as_echo "$PKG_CONFIG" >&6; }
  15794. else
  15795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15796. $as_echo "no" >&6; }
  15797. fi
  15798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
  15799. $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
  15800. if test x$PKG_CONFIG != xno; then
  15801. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
  15802. PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
  15803. PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
  15804. audio_pulseaudio=yes
  15805. fi
  15806. fi
  15807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
  15808. $as_echo "$audio_pulseaudio" >&6; }
  15809. if test x$audio_pulseaudio = xyes; then
  15810. # Check whether --enable-pulseaudio-shared was given.
  15811. if test "${enable_pulseaudio_shared+set}" = set; then :
  15812. enableval=$enable_pulseaudio_shared;
  15813. else
  15814. enable_pulseaudio_shared=yes
  15815. fi
  15816. pulseaudio_lib=`find_lib "libpulse-simple.so.*" "$PULSEAUDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15817. $as_echo "#define SDL_AUDIO_DRIVER_PULSEAUDIO 1" >>confdefs.h
  15818. SOURCES="$SOURCES $srcdir/src/audio/pulseaudio/*.c"
  15819. EXTRA_CFLAGS="$EXTRA_CFLAGS $PULSEAUDIO_CFLAGS"
  15820. if test x$have_loadso != xyes && \
  15821. test x$enable_pulseaudio_shared = xyes; then
  15822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&5
  15823. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic PulseAudio loading" >&2;}
  15824. fi
  15825. if test x$have_loadso = xyes && \
  15826. test x$enable_pulseaudio_shared = xyes && test x$pulseaudio_lib != x; then
  15827. echo "-- dynamic libpulse-simple -> $pulseaudio_lib"
  15828. cat >>confdefs.h <<_ACEOF
  15829. #define SDL_AUDIO_DRIVER_PULSEAUDIO_DYNAMIC "$pulseaudio_lib"
  15830. _ACEOF
  15831. SUMMARY_audio="${SUMMARY_audio} pulse(dynamic)"
  15832. case "$host" in
  15833. # On Solaris, pulseaudio must be linked deferred explicitly
  15834. # to prevent undefined symbol failures.
  15835. *-*-solaris*)
  15836. PULSEAUDIO_LIBS=`echo $PULSEAUDIO_LIBS | sed 's/\-l/-Wl,-l/g'`
  15837. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSEAUDIO_LIBS -Wl,-znodeferred"
  15838. esac
  15839. else
  15840. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSEAUDIO_LIBS"
  15841. SUMMARY_audio="${SUMMARY_audio} pulse"
  15842. fi
  15843. have_audio=yes
  15844. fi
  15845. fi
  15846. }
  15847. CheckARTSC()
  15848. {
  15849. # Check whether --enable-arts was given.
  15850. if test "${enable_arts+set}" = set; then :
  15851. enableval=$enable_arts;
  15852. else
  15853. enable_arts=yes
  15854. fi
  15855. if test x$enable_audio = xyes -a x$enable_arts = xyes; then
  15856. # Extract the first word of "artsc-config", so it can be a program name with args.
  15857. set dummy artsc-config; ac_word=$2
  15858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15859. $as_echo_n "checking for $ac_word... " >&6; }
  15860. if ${ac_cv_path_ARTSCONFIG+:} false; then :
  15861. $as_echo_n "(cached) " >&6
  15862. else
  15863. case $ARTSCONFIG in
  15864. [\\/]* | ?:[\\/]*)
  15865. ac_cv_path_ARTSCONFIG="$ARTSCONFIG" # Let the user override the test with a path.
  15866. ;;
  15867. *)
  15868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15869. for as_dir in $PATH
  15870. do
  15871. IFS=$as_save_IFS
  15872. test -z "$as_dir" && as_dir=.
  15873. for ac_exec_ext in '' $ac_executable_extensions; do
  15874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15875. ac_cv_path_ARTSCONFIG="$as_dir/$ac_word$ac_exec_ext"
  15876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15877. break 2
  15878. fi
  15879. done
  15880. done
  15881. IFS=$as_save_IFS
  15882. ;;
  15883. esac
  15884. fi
  15885. ARTSCONFIG=$ac_cv_path_ARTSCONFIG
  15886. if test -n "$ARTSCONFIG"; then
  15887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARTSCONFIG" >&5
  15888. $as_echo "$ARTSCONFIG" >&6; }
  15889. else
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15891. $as_echo "no" >&6; }
  15892. fi
  15893. if test x$ARTSCONFIG = x -o x$ARTSCONFIG = x'"$ARTSCONFIG"'; then
  15894. : # arts isn't installed
  15895. else
  15896. ARTS_CFLAGS=`$ARTSCONFIG --cflags`
  15897. ARTS_LIBS=`$ARTSCONFIG --libs`
  15898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aRts development environment" >&5
  15899. $as_echo_n "checking for aRts development environment... " >&6; }
  15900. audio_arts=no
  15901. save_CFLAGS="$CFLAGS"
  15902. CFLAGS="$CFLAGS $ARTS_CFLAGS"
  15903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15904. /* end confdefs.h. */
  15905. #include <artsc.h>
  15906. int
  15907. main ()
  15908. {
  15909. arts_stream_t stream;
  15910. ;
  15911. return 0;
  15912. }
  15913. _ACEOF
  15914. if ac_fn_c_try_compile "$LINENO"; then :
  15915. audio_arts=yes
  15916. fi
  15917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15918. CFLAGS="$save_CFLAGS"
  15919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_arts" >&5
  15920. $as_echo "$audio_arts" >&6; }
  15921. if test x$audio_arts = xyes; then
  15922. # Check whether --enable-arts-shared was given.
  15923. if test "${enable_arts_shared+set}" = set; then :
  15924. enableval=$enable_arts_shared;
  15925. else
  15926. enable_arts_shared=yes
  15927. fi
  15928. arts_lib=`find_lib "libartsc.so.*" "$ARTS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  15929. $as_echo "#define SDL_AUDIO_DRIVER_ARTS 1" >>confdefs.h
  15930. SOURCES="$SOURCES $srcdir/src/audio/arts/*.c"
  15931. EXTRA_CFLAGS="$EXTRA_CFLAGS $ARTS_CFLAGS"
  15932. if test x$have_loadso != xyes && \
  15933. test x$enable_arts_shared = xyes; then
  15934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&5
  15935. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic ARTS loading" >&2;}
  15936. fi
  15937. if test x$have_loadso = xyes && \
  15938. test x$enable_arts_shared = xyes && test x$arts_lib != x; then
  15939. echo "-- dynamic libartsc -> $arts_lib"
  15940. cat >>confdefs.h <<_ACEOF
  15941. #define SDL_AUDIO_DRIVER_ARTS_DYNAMIC "$arts_lib"
  15942. _ACEOF
  15943. SUMMARY_audio="${SUMMARY_audio} arts(dynamic)"
  15944. else
  15945. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARTS_LIBS"
  15946. SUMMARY_audio="${SUMMARY_audio} arts"
  15947. fi
  15948. have_audio=yes
  15949. fi
  15950. fi
  15951. fi
  15952. }
  15953. CheckNAS()
  15954. {
  15955. # Check whether --enable-nas was given.
  15956. if test "${enable_nas+set}" = set; then :
  15957. enableval=$enable_nas;
  15958. else
  15959. enable_nas=yes
  15960. fi
  15961. if test x$enable_audio = xyes -a x$enable_nas = xyes; then
  15962. ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
  15963. if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
  15964. have_nas_hdr=yes
  15965. fi
  15966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuOpenServer in -laudio" >&5
  15967. $as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
  15968. if ${ac_cv_lib_audio_AuOpenServer+:} false; then :
  15969. $as_echo_n "(cached) " >&6
  15970. else
  15971. ac_check_lib_save_LIBS=$LIBS
  15972. LIBS="-laudio $LIBS"
  15973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15974. /* end confdefs.h. */
  15975. /* Override any GCC internal prototype to avoid an error.
  15976. Use char because int might match the return type of a GCC
  15977. builtin and then its argument prototype would still apply. */
  15978. #ifdef __cplusplus
  15979. extern "C"
  15980. #endif
  15981. char AuOpenServer ();
  15982. int
  15983. main ()
  15984. {
  15985. return AuOpenServer ();
  15986. ;
  15987. return 0;
  15988. }
  15989. _ACEOF
  15990. if ac_fn_c_try_link "$LINENO"; then :
  15991. ac_cv_lib_audio_AuOpenServer=yes
  15992. else
  15993. ac_cv_lib_audio_AuOpenServer=no
  15994. fi
  15995. rm -f core conftest.err conftest.$ac_objext \
  15996. conftest$ac_exeext conftest.$ac_ext
  15997. LIBS=$ac_check_lib_save_LIBS
  15998. fi
  15999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuOpenServer" >&5
  16000. $as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
  16001. if test "x$ac_cv_lib_audio_AuOpenServer" = xyes; then :
  16002. have_nas_lib=yes
  16003. fi
  16004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS audio support" >&5
  16005. $as_echo_n "checking for NAS audio support... " >&6; }
  16006. have_nas=no
  16007. if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
  16008. have_nas=yes
  16009. NAS_LIBS="-laudio"
  16010. elif test -r /usr/X11R6/include/audio/audiolib.h; then
  16011. have_nas=yes
  16012. NAS_CFLAGS="-I/usr/X11R6/include/"
  16013. NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"
  16014. fi
  16015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_nas" >&5
  16016. $as_echo "$have_nas" >&6; }
  16017. if test x$have_nas = xyes; then
  16018. # Check whether --enable-nas-shared was given.
  16019. if test "${enable_nas_shared+set}" = set; then :
  16020. enableval=$enable_nas_shared;
  16021. else
  16022. enable_nas_shared=yes
  16023. fi
  16024. nas_lib=`find_lib "libaudio.so.*" "$NAS_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16025. if test x$have_loadso != xyes && \
  16026. test x$enable_nas_shared = xyes; then
  16027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&5
  16028. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic NAS loading" >&2;}
  16029. fi
  16030. if test x$have_loadso = xyes && \
  16031. test x$enable_nas_shared = xyes && test x$nas_lib != x; then
  16032. echo "-- dynamic libaudio -> $nas_lib"
  16033. cat >>confdefs.h <<_ACEOF
  16034. #define SDL_AUDIO_DRIVER_NAS_DYNAMIC "$nas_lib"
  16035. _ACEOF
  16036. SUMMARY_audio="${SUMMARY_audio} nas(dynamic)"
  16037. else
  16038. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $NAS_LIBS"
  16039. SUMMARY_audio="${SUMMARY_audio} nas"
  16040. fi
  16041. $as_echo "#define SDL_AUDIO_DRIVER_NAS 1" >>confdefs.h
  16042. SOURCES="$SOURCES $srcdir/src/audio/nas/*.c"
  16043. EXTRA_CFLAGS="$EXTRA_CFLAGS $NAS_CFLAGS"
  16044. have_audio=yes
  16045. fi
  16046. fi
  16047. }
  16048. CheckSNDIO()
  16049. {
  16050. # Check whether --enable-sndio was given.
  16051. if test "${enable_sndio+set}" = set; then :
  16052. enableval=$enable_sndio;
  16053. else
  16054. enable_sndio=yes
  16055. fi
  16056. if test x$enable_audio = xyes -a x$enable_sndio = xyes; then
  16057. ac_fn_c_check_header_mongrel "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
  16058. if test "x$ac_cv_header_sndio_h" = xyes; then :
  16059. have_sndio_hdr=yes
  16060. fi
  16061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sio_open in -lsndio" >&5
  16062. $as_echo_n "checking for sio_open in -lsndio... " >&6; }
  16063. if ${ac_cv_lib_sndio_sio_open+:} false; then :
  16064. $as_echo_n "(cached) " >&6
  16065. else
  16066. ac_check_lib_save_LIBS=$LIBS
  16067. LIBS="-lsndio $LIBS"
  16068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16069. /* end confdefs.h. */
  16070. /* Override any GCC internal prototype to avoid an error.
  16071. Use char because int might match the return type of a GCC
  16072. builtin and then its argument prototype would still apply. */
  16073. #ifdef __cplusplus
  16074. extern "C"
  16075. #endif
  16076. char sio_open ();
  16077. int
  16078. main ()
  16079. {
  16080. return sio_open ();
  16081. ;
  16082. return 0;
  16083. }
  16084. _ACEOF
  16085. if ac_fn_c_try_link "$LINENO"; then :
  16086. ac_cv_lib_sndio_sio_open=yes
  16087. else
  16088. ac_cv_lib_sndio_sio_open=no
  16089. fi
  16090. rm -f core conftest.err conftest.$ac_objext \
  16091. conftest$ac_exeext conftest.$ac_ext
  16092. LIBS=$ac_check_lib_save_LIBS
  16093. fi
  16094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndio_sio_open" >&5
  16095. $as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
  16096. if test "x$ac_cv_lib_sndio_sio_open" = xyes; then :
  16097. have_sndio_lib=yes
  16098. fi
  16099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sndio audio support" >&5
  16100. $as_echo_n "checking for sndio audio support... " >&6; }
  16101. have_sndio=no
  16102. if test x$have_sndio_hdr = xyes -a x$have_sndio_lib = xyes; then
  16103. have_sndio=yes
  16104. SNDIO_LIBS="-lsndio"
  16105. fi
  16106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sndio" >&5
  16107. $as_echo "$have_sndio" >&6; }
  16108. if test x$have_sndio = xyes; then
  16109. # Check whether --enable-sndio-shared was given.
  16110. if test "${enable_sndio_shared+set}" = set; then :
  16111. enableval=$enable_sndio_shared;
  16112. else
  16113. enable_sndio_shared=yes
  16114. fi
  16115. sndio_lib=`find_lib "libsndio.so.*" "$SNDIO_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16116. if test x$have_loadso != xyes && \
  16117. test x$enable_sndio_shared = xyes; then
  16118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&5
  16119. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic sndio loading" >&2;}
  16120. fi
  16121. if test x$have_loadso = xyes && \
  16122. test x$enable_sndio_shared = xyes && test x$sndio_lib != x; then
  16123. echo "-- dynamic libsndio -> $sndio_lib"
  16124. cat >>confdefs.h <<_ACEOF
  16125. #define SDL_AUDIO_DRIVER_SNDIO_DYNAMIC "$sndio_lib"
  16126. _ACEOF
  16127. SUMMARY_audio="${SUMMARY_audio} sndio(dynamic)"
  16128. else
  16129. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $SNDIO_LIBS"
  16130. SUMMARY_audio="${SUMMARY_audio} sndio"
  16131. fi
  16132. $as_echo "#define SDL_AUDIO_DRIVER_SNDIO 1" >>confdefs.h
  16133. SOURCES="$SOURCES $srcdir/src/audio/sndio/*.c"
  16134. EXTRA_CFLAGS="$EXTRA_CFLAGS $SNDIO_CFLAGS"
  16135. have_audio=yes
  16136. fi
  16137. fi
  16138. }
  16139. CheckFusionSound()
  16140. {
  16141. # Check whether --enable-fusionsound was given.
  16142. if test "${enable_fusionsound+set}" = set; then :
  16143. enableval=$enable_fusionsound;
  16144. else
  16145. enable_fusionsound=no
  16146. fi
  16147. if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
  16148. fusionsound=no
  16149. FUSIONSOUND_REQUIRED_VERSION=1.1.1
  16150. # Extract the first word of "pkg-config", so it can be a program name with args.
  16151. set dummy pkg-config; ac_word=$2
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16153. $as_echo_n "checking for $ac_word... " >&6; }
  16154. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16155. $as_echo_n "(cached) " >&6
  16156. else
  16157. case $PKG_CONFIG in
  16158. [\\/]* | ?:[\\/]*)
  16159. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16160. ;;
  16161. *)
  16162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16163. for as_dir in $PATH
  16164. do
  16165. IFS=$as_save_IFS
  16166. test -z "$as_dir" && as_dir=.
  16167. for ac_exec_ext in '' $ac_executable_extensions; do
  16168. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16169. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16171. break 2
  16172. fi
  16173. done
  16174. done
  16175. IFS=$as_save_IFS
  16176. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16177. ;;
  16178. esac
  16179. fi
  16180. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16181. if test -n "$PKG_CONFIG"; then
  16182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16183. $as_echo "$PKG_CONFIG" >&6; }
  16184. else
  16185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16186. $as_echo "no" >&6; }
  16187. fi
  16188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
  16189. $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
  16190. if test x$PKG_CONFIG != xno; then
  16191. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
  16192. FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
  16193. FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
  16194. fusionsound=yes
  16195. fi
  16196. fi
  16197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
  16198. $as_echo "$fusionsound" >&6; }
  16199. if test x$fusionsound = xyes; then
  16200. $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
  16201. SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
  16202. EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
  16203. # Check whether --enable-fusionsound-shared was given.
  16204. if test "${enable_fusionsound_shared+set}" = set; then :
  16205. enableval=$enable_fusionsound_shared;
  16206. else
  16207. enable_fusionsound_shared=yes
  16208. fi
  16209. fusionsound_shared=no
  16210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
  16211. $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
  16212. if test x$have_loadso != xyes && \
  16213. test x$enable_fusionsound_shared = xyes; then
  16214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
  16215. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
  16216. fi
  16217. if test x$have_loadso = xyes && \
  16218. test x$enable_fusionsound_shared = xyes; then
  16219. cat >>confdefs.h <<_ACEOF
  16220. #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
  16221. _ACEOF
  16222. fusionsound_shared=yes
  16223. SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
  16224. else
  16225. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
  16226. SUMMARY_audio="${SUMMARY_audio} fusionsound"
  16227. fi
  16228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
  16229. $as_echo "$fusionsound_shared" >&6; }
  16230. have_audio=yes
  16231. fi
  16232. fi
  16233. }
  16234. CheckDiskAudio()
  16235. {
  16236. # Check whether --enable-diskaudio was given.
  16237. if test "${enable_diskaudio+set}" = set; then :
  16238. enableval=$enable_diskaudio;
  16239. else
  16240. enable_diskaudio=yes
  16241. fi
  16242. if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
  16243. $as_echo "#define SDL_AUDIO_DRIVER_DISK 1" >>confdefs.h
  16244. SOURCES="$SOURCES $srcdir/src/audio/disk/*.c"
  16245. SUMMARY_audio="${SUMMARY_audio} disk"
  16246. fi
  16247. }
  16248. CheckDummyAudio()
  16249. {
  16250. # Check whether --enable-dummyaudio was given.
  16251. if test "${enable_dummyaudio+set}" = set; then :
  16252. enableval=$enable_dummyaudio;
  16253. else
  16254. enable_dummyaudio=yes
  16255. fi
  16256. if test x$enable_audio = xyes -a x$enable_dummyaudio = xyes; then
  16257. $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
  16258. SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
  16259. SUMMARY_audio="${SUMMARY_audio} dummy"
  16260. fi
  16261. }
  16262. CheckLibSampleRate()
  16263. {
  16264. # Check whether --enable-libsamplerate was given.
  16265. if test "${enable_libsamplerate+set}" = set; then :
  16266. enableval=$enable_libsamplerate;
  16267. else
  16268. enable_libsamplerate=yes
  16269. fi
  16270. if test x$enable_libsamplerate = xyes; then
  16271. ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
  16272. if test "x$ac_cv_header_samplerate_h" = xyes; then :
  16273. have_samplerate_h_hdr=yes
  16274. else
  16275. have_samplerate_h_hdr=no
  16276. fi
  16277. if test x$have_samplerate_h_hdr = xyes; then
  16278. $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
  16279. # Check whether --enable-libsamplerate-shared was given.
  16280. if test "${enable_libsamplerate_shared+set}" = set; then :
  16281. enableval=$enable_libsamplerate_shared;
  16282. else
  16283. enable_libsamplerate_shared=yes
  16284. fi
  16285. samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  16286. if test x$have_loadso != xyes && \
  16287. test x$enable_libsamplerate_shared = xyes; then
  16288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&5
  16289. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic libsamplerate loading" >&2;}
  16290. fi
  16291. if test x$have_loadso = xyes && \
  16292. test x$enable_libsamplerate_shared = xyes && test x$samplerate_lib != x; then
  16293. echo "-- dynamic libsamplerate -> $samplerate_lib"
  16294. cat >>confdefs.h <<_ACEOF
  16295. #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
  16296. _ACEOF
  16297. else
  16298. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lsamplerate"
  16299. fi
  16300. fi
  16301. fi
  16302. }
  16303. CheckVisibilityHidden()
  16304. {
  16305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -fvisibility=hidden option" >&5
  16306. $as_echo_n "checking for GCC -fvisibility=hidden option... " >&6; }
  16307. have_gcc_fvisibility=no
  16308. visibility_CFLAGS="-fvisibility=hidden"
  16309. save_CFLAGS="$CFLAGS"
  16310. CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
  16311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16312. /* end confdefs.h. */
  16313. #if !defined(__GNUC__) || __GNUC__ < 4
  16314. #error SDL only uses visibility attributes in GCC 4 or newer
  16315. #endif
  16316. int
  16317. main ()
  16318. {
  16319. ;
  16320. return 0;
  16321. }
  16322. _ACEOF
  16323. if ac_fn_c_try_compile "$LINENO"; then :
  16324. have_gcc_fvisibility=yes
  16325. fi
  16326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_fvisibility" >&5
  16328. $as_echo "$have_gcc_fvisibility" >&6; }
  16329. CFLAGS="$save_CFLAGS"
  16330. if test x$have_gcc_fvisibility = xyes; then
  16331. EXTRA_CFLAGS="$EXTRA_CFLAGS $visibility_CFLAGS"
  16332. fi
  16333. }
  16334. CheckStackBoundary()
  16335. {
  16336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -mpreferred-stack-boundary option" >&5
  16337. $as_echo_n "checking for GCC -mpreferred-stack-boundary option... " >&6; }
  16338. have_gcc_preferred_stack_boundary=no
  16339. save_CFLAGS="$CFLAGS"
  16340. CFLAGS="$save_CFLAGS -mpreferred-stack-boundary=2"
  16341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16342. /* end confdefs.h. */
  16343. int x = 0;
  16344. int
  16345. main ()
  16346. {
  16347. ;
  16348. return 0;
  16349. }
  16350. _ACEOF
  16351. if ac_fn_c_try_compile "$LINENO"; then :
  16352. have_gcc_preferred_stack_boundary=yes
  16353. fi
  16354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_preferred_stack_boundary" >&5
  16356. $as_echo "$have_gcc_preferred_stack_boundary" >&6; }
  16357. CFLAGS="$save_CFLAGS"
  16358. if test x$have_gcc_preferred_stack_boundary = xyes; then
  16359. EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
  16360. fi
  16361. }
  16362. CheckDeclarationAfterStatement()
  16363. {
  16364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wdeclaration-after-statement option" >&5
  16365. $as_echo_n "checking for GCC -Wdeclaration-after-statement option... " >&6; }
  16366. have_gcc_declaration_after_statement=no
  16367. save_CFLAGS="$CFLAGS"
  16368. CFLAGS="$save_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16370. /* end confdefs.h. */
  16371. int x = 0;
  16372. int
  16373. main ()
  16374. {
  16375. ;
  16376. return 0;
  16377. }
  16378. _ACEOF
  16379. if ac_fn_c_try_compile "$LINENO"; then :
  16380. have_gcc_declaration_after_statement=yes
  16381. fi
  16382. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_declaration_after_statement" >&5
  16384. $as_echo "$have_gcc_declaration_after_statement" >&6; }
  16385. CFLAGS="$save_CFLAGS"
  16386. if test x$have_gcc_declaration_after_statement = xyes; then
  16387. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wdeclaration-after-statement -Werror=declaration-after-statement"
  16388. fi
  16389. }
  16390. CheckWarnAll()
  16391. {
  16392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
  16393. $as_echo_n "checking for GCC -Wall option... " >&6; }
  16394. have_gcc_Wall=no
  16395. save_CFLAGS="$CFLAGS"
  16396. CFLAGS="$save_CFLAGS -Wall"
  16397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16398. /* end confdefs.h. */
  16399. int x = 0;
  16400. int
  16401. main ()
  16402. {
  16403. ;
  16404. return 0;
  16405. }
  16406. _ACEOF
  16407. if ac_fn_c_try_compile "$LINENO"; then :
  16408. have_gcc_Wall=yes
  16409. fi
  16410. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_Wall" >&5
  16412. $as_echo "$have_gcc_Wall" >&6; }
  16413. CFLAGS="$save_CFLAGS"
  16414. if test x$have_gcc_Wall = xyes; then
  16415. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
  16416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary GCC -Wno-multichar option" >&5
  16417. $as_echo_n "checking for necessary GCC -Wno-multichar option... " >&6; }
  16418. need_gcc_Wno_multichar=no
  16419. case "$host" in
  16420. *-*-haiku*)
  16421. need_gcc_Wno_multichar=yes
  16422. ;;
  16423. esac
  16424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_gcc_Wno_multichar" >&5
  16425. $as_echo "$need_gcc_Wno_multichar" >&6; }
  16426. if test x$need_gcc_Wno_multichar = xyes; then
  16427. EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
  16428. fi
  16429. fi
  16430. }
  16431. CheckWayland()
  16432. {
  16433. # Check whether --enable-video-wayland was given.
  16434. if test "${enable_video_wayland+set}" = set; then :
  16435. enableval=$enable_video_wayland;
  16436. else
  16437. enable_video_wayland=yes
  16438. fi
  16439. # Check whether --enable-video-wayland-qt-touch was given.
  16440. if test "${enable_video_wayland_qt_touch+set}" = set; then :
  16441. enableval=$enable_video_wayland_qt_touch;
  16442. else
  16443. enable_video_wayland_qt_touch=yes
  16444. fi
  16445. if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
  16446. # Extract the first word of "pkg-config", so it can be a program name with args.
  16447. set dummy pkg-config; ac_word=$2
  16448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16449. $as_echo_n "checking for $ac_word... " >&6; }
  16450. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16451. $as_echo_n "(cached) " >&6
  16452. else
  16453. case $PKG_CONFIG in
  16454. [\\/]* | ?:[\\/]*)
  16455. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16456. ;;
  16457. *)
  16458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16459. for as_dir in $PATH
  16460. do
  16461. IFS=$as_save_IFS
  16462. test -z "$as_dir" && as_dir=.
  16463. for ac_exec_ext in '' $ac_executable_extensions; do
  16464. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16465. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16466. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16467. break 2
  16468. fi
  16469. done
  16470. done
  16471. IFS=$as_save_IFS
  16472. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16473. ;;
  16474. esac
  16475. fi
  16476. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16477. if test -n "$PKG_CONFIG"; then
  16478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16479. $as_echo "$PKG_CONFIG" >&6; }
  16480. else
  16481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16482. $as_echo "no" >&6; }
  16483. fi
  16484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
  16485. $as_echo_n "checking for Wayland support... " >&6; }
  16486. video_wayland=no
  16487. if test x$PKG_CONFIG != xno && \
  16488. test x$video_opengl_egl = xyes && \
  16489. test x$video_opengles_v2 = xyes; then
  16490. if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
  16491. WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
  16492. WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
  16493. WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
  16494. video_wayland=yes
  16495. fi
  16496. fi
  16497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
  16498. $as_echo "$video_wayland" >&6; }
  16499. if test x$video_wayland = xyes; then
  16500. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
  16501. if test x$enable_video_wayland_qt_touch = xyes; then
  16502. $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH 1" >>confdefs.h
  16503. fi
  16504. WAYLAND_SOURCES="$srcdir/src/video/wayland/*.c"
  16505. SOURCES="$SOURCES $WAYLAND_SOURCES"
  16506. EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS -I\$(gen)"
  16507. # Check whether --enable-wayland-shared was given.
  16508. if test "${enable_wayland_shared+set}" = set; then :
  16509. enableval=$enable_wayland_shared;
  16510. else
  16511. enable_wayland_shared=maybe
  16512. fi
  16513. case "$host" in
  16514. *)
  16515. wayland_client_lib=`find_lib "libwayland-client.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16516. wayland_egl_lib=`find_lib "libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16517. if test x$wayland_egl_lib = x; then
  16518. wayland_egl_lib=`find_lib "mesa-egl/libwayland-egl.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16519. fi
  16520. wayland_cursor_lib=`find_lib "libwayland-cursor.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16521. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$WAYLAND_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16522. ;;
  16523. esac
  16524. if test x$enable_wayland_shared = xmaybe; then
  16525. enable_wayland_shared=yes
  16526. fi
  16527. if test x$have_loadso != xyes && \
  16528. test x$enable_wayland_shared = xyes; then
  16529. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&5
  16530. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Wayland loading" >&2;}
  16531. enable_wayland_shared=no
  16532. fi
  16533. if test x$have_loadso = xyes && \
  16534. test x$enable_wayland_shared = xyes && \
  16535. test x$wayland_client_lib != x && \
  16536. test x$wayland_egl_lib != x && \
  16537. test x$wayland_cursor_lib != x && \
  16538. test x$xkbcommon_lib != x; then
  16539. echo "-- dynamic libwayland-client -> $wayland_client_lib"
  16540. echo "-- dynamic libwayland-egl -> $wayland_egl_lib"
  16541. echo "-- dynamic libwayland-cursor -> $wayland_cursor_lib"
  16542. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16543. cat >>confdefs.h <<_ACEOF
  16544. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC "$wayland_client_lib"
  16545. _ACEOF
  16546. cat >>confdefs.h <<_ACEOF
  16547. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_EGL "$wayland_egl_lib"
  16548. _ACEOF
  16549. cat >>confdefs.h <<_ACEOF
  16550. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_CURSOR "$wayland_cursor_lib"
  16551. _ACEOF
  16552. cat >>confdefs.h <<_ACEOF
  16553. #define SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16554. _ACEOF
  16555. SUMMARY_video="${SUMMARY_video} wayland(dynamic)"
  16556. else
  16557. enable_wayland_shared=no
  16558. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
  16559. SUMMARY_video="${SUMMARY_video} wayland"
  16560. fi
  16561. have_video=yes
  16562. fi
  16563. fi
  16564. }
  16565. CheckMir()
  16566. {
  16567. # Check whether --enable-video-mir was given.
  16568. if test "${enable_video_mir+set}" = set; then :
  16569. enableval=$enable_video_mir;
  16570. else
  16571. enable_video_mir=no
  16572. fi
  16573. if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
  16574. # Extract the first word of "pkg-config", so it can be a program name with args.
  16575. set dummy pkg-config; ac_word=$2
  16576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16577. $as_echo_n "checking for $ac_word... " >&6; }
  16578. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16579. $as_echo_n "(cached) " >&6
  16580. else
  16581. case $PKG_CONFIG in
  16582. [\\/]* | ?:[\\/]*)
  16583. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16584. ;;
  16585. *)
  16586. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16587. for as_dir in $PATH
  16588. do
  16589. IFS=$as_save_IFS
  16590. test -z "$as_dir" && as_dir=.
  16591. for ac_exec_ext in '' $ac_executable_extensions; do
  16592. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16593. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16594. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16595. break 2
  16596. fi
  16597. done
  16598. done
  16599. IFS=$as_save_IFS
  16600. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16601. ;;
  16602. esac
  16603. fi
  16604. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16605. if test -n "$PKG_CONFIG"; then
  16606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16607. $as_echo "$PKG_CONFIG" >&6; }
  16608. else
  16609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16610. $as_echo "no" >&6; }
  16611. fi
  16612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
  16613. $as_echo_n "checking for Mir support... " >&6; }
  16614. video_mir=no
  16615. if test x$PKG_CONFIG != xno; then
  16616. if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
  16617. MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
  16618. MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
  16619. save_CFLAGS="$CFLAGS"
  16620. CFLAGS="$save_CFLAGS $MIR_CFLAGS"
  16621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16622. /* end confdefs.h. */
  16623. #include <mir_toolkit/mir_client_library.h>
  16624. int
  16625. main ()
  16626. {
  16627. MirWindowAttrib attrib = mir_window_attrib_state
  16628. ;
  16629. return 0;
  16630. }
  16631. _ACEOF
  16632. if ac_fn_c_try_compile "$LINENO"; then :
  16633. video_mir=yes
  16634. fi
  16635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16636. CFLAGS="$save_CFLAGS"
  16637. fi
  16638. fi
  16639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
  16640. $as_echo "$video_mir" >&6; }
  16641. if test x$video_mir = xyes; then
  16642. $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
  16643. SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
  16644. EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
  16645. # Check whether --enable-mir-shared was given.
  16646. if test "${enable_mir_shared+set}" = set; then :
  16647. enableval=$enable_mir_shared;
  16648. else
  16649. enable_mir_shared=maybe
  16650. fi
  16651. case "$host" in
  16652. *)
  16653. mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16654. xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
  16655. ;;
  16656. esac
  16657. if test x$enable_mir_shared = xmaybe; then
  16658. enable_mir_shared=yes
  16659. fi
  16660. if test x$have_loadso != xyes && \
  16661. test x$enable_mir_shared = xyes; then
  16662. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
  16663. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
  16664. enable_mir_shared=no
  16665. fi
  16666. if test x$have_loadso = xyes && \
  16667. test x$enable_mir_shared = xyes && \
  16668. test x$mirclient_lib != x && \
  16669. test x$xkbcommon_lib != x; then
  16670. echo "-- dynamic libmirclient -> $mirclient_lib"
  16671. echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
  16672. cat >>confdefs.h <<_ACEOF
  16673. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
  16674. _ACEOF
  16675. cat >>confdefs.h <<_ACEOF
  16676. #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
  16677. _ACEOF
  16678. SUMMARY_video="${SUMMARY_video} mir(dynamic)"
  16679. else
  16680. enable_mir_shared=no
  16681. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
  16682. SUMMARY_video="${SUMMARY_video} mir"
  16683. fi
  16684. have_video=yes
  16685. fi
  16686. fi
  16687. }
  16688. CheckNativeClient()
  16689. {
  16690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16691. /* end confdefs.h. */
  16692. #if !defined(__native_client__)
  16693. #error "NO NACL"
  16694. #endif
  16695. int
  16696. main ()
  16697. {
  16698. ;
  16699. return 0;
  16700. }
  16701. _ACEOF
  16702. if ac_fn_c_try_compile "$LINENO"; then :
  16703. $as_echo "#define SDL_VIDEO_DRIVER_NACL 1" >>confdefs.h
  16704. $as_echo "#define SDL_AUDIO_DRIVER_NACL 1" >>confdefs.h
  16705. $as_echo "#define HAVE_POW 1" >>confdefs.h
  16706. $as_echo "#define HAVE_OPENGLES2 1" >>confdefs.h
  16707. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  16708. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  16709. SDL_LIBS="-lppapi_simple -lppapi_gles2 $SDL_LIBS"
  16710. SDLMAIN_SOURCES="$srcdir/src/main/nacl/*.c"
  16711. SOURCES="$SOURCES $srcdir/src/audio/nacl/*.c"
  16712. SUMMARY_audio="${SUMMARY_audio} nacl"
  16713. SOURCES="$SOURCES $srcdir/src/video/nacl/*.c"
  16714. SUMMARY_video="${SUMMARY_video} nacl opengles2"
  16715. fi
  16716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16717. }
  16718. CheckRPI()
  16719. {
  16720. # Check whether --enable-video-rpi was given.
  16721. if test "${enable_video_rpi+set}" = set; then :
  16722. enableval=$enable_video_rpi;
  16723. else
  16724. enable_video_rpi=yes
  16725. fi
  16726. if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
  16727. # Extract the first word of "pkg-config", so it can be a program name with args.
  16728. set dummy pkg-config; ac_word=$2
  16729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16730. $as_echo_n "checking for $ac_word... " >&6; }
  16731. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  16732. $as_echo_n "(cached) " >&6
  16733. else
  16734. case $PKG_CONFIG in
  16735. [\\/]* | ?:[\\/]*)
  16736. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  16737. ;;
  16738. *)
  16739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16740. for as_dir in $PATH
  16741. do
  16742. IFS=$as_save_IFS
  16743. test -z "$as_dir" && as_dir=.
  16744. for ac_exec_ext in '' $ac_executable_extensions; do
  16745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16746. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  16747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16748. break 2
  16749. fi
  16750. done
  16751. done
  16752. IFS=$as_save_IFS
  16753. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  16754. ;;
  16755. esac
  16756. fi
  16757. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  16758. if test -n "$PKG_CONFIG"; then
  16759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  16760. $as_echo "$PKG_CONFIG" >&6; }
  16761. else
  16762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16763. $as_echo "no" >&6; }
  16764. fi
  16765. if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
  16766. RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
  16767. RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
  16768. elif test x$ARCH = xnetbsd; then
  16769. RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
  16770. RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
  16771. else
  16772. RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
  16773. RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
  16774. fi
  16775. # Save the original compiler flags and libraries
  16776. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  16777. # Add the Raspberry Pi compiler flags and libraries
  16778. CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
  16779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
  16780. $as_echo_n "checking for Raspberry Pi... " >&6; }
  16781. have_video_rpi=no
  16782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16783. /* end confdefs.h. */
  16784. #include <bcm_host.h>
  16785. int
  16786. main ()
  16787. {
  16788. bcm_host_init();
  16789. ;
  16790. return 0;
  16791. }
  16792. _ACEOF
  16793. if ac_fn_c_try_link "$LINENO"; then :
  16794. have_video_rpi=yes
  16795. fi
  16796. rm -f core conftest.err conftest.$ac_objext \
  16797. conftest$ac_exeext conftest.$ac_ext
  16798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_video_rpi" >&5
  16799. $as_echo "$have_video_rpi" >&6; }
  16800. # Restore the compiler flags and libraries
  16801. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  16802. if test x$have_video_rpi = xyes; then
  16803. CFLAGS="$CFLAGS $RPI_CFLAGS"
  16804. SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
  16805. EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
  16806. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
  16807. SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  16808. $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  16809. SUMMARY_video="${SUMMARY_video} rpi"
  16810. fi
  16811. fi
  16812. }
  16813. CheckX11()
  16814. {
  16815. # Check whether --enable-video-x11 was given.
  16816. if test "${enable_video_x11+set}" = set; then :
  16817. enableval=$enable_video_x11;
  16818. else
  16819. enable_video_x11=yes
  16820. fi
  16821. if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
  16822. case "$host" in
  16823. *-*-darwin*)
  16824. # This isn't necessary for X11, but fixes GLX detection
  16825. if test "x$x_includes" = xNONE && \
  16826. test "x$x_libraries" = xNONE && \
  16827. test -d /usr/X11R6/include && \
  16828. test -d /usr/X11R6/lib; then
  16829. x_includes="/usr/X11R6/include"
  16830. x_libraries="/usr/X11R6/lib"
  16831. fi
  16832. ;;
  16833. esac
  16834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  16835. $as_echo_n "checking for X... " >&6; }
  16836. # Check whether --with-x was given.
  16837. if test "${with_x+set}" = set; then :
  16838. withval=$with_x;
  16839. fi
  16840. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  16841. if test "x$with_x" = xno; then
  16842. # The user explicitly disabled X.
  16843. have_x=disabled
  16844. else
  16845. case $x_includes,$x_libraries in #(
  16846. *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
  16847. *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
  16848. $as_echo_n "(cached) " >&6
  16849. else
  16850. # One or both of the vars are not set, and there is no cached value.
  16851. ac_x_includes=no ac_x_libraries=no
  16852. rm -f -r conftest.dir
  16853. if mkdir conftest.dir; then
  16854. cd conftest.dir
  16855. cat >Imakefile <<'_ACEOF'
  16856. incroot:
  16857. @echo incroot='${INCROOT}'
  16858. usrlibdir:
  16859. @echo usrlibdir='${USRLIBDIR}'
  16860. libdir:
  16861. @echo libdir='${LIBDIR}'
  16862. _ACEOF
  16863. if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  16864. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  16865. for ac_var in incroot usrlibdir libdir; do
  16866. eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  16867. done
  16868. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  16869. for ac_extension in a so sl dylib la dll; do
  16870. if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  16871. test -f "$ac_im_libdir/libX11.$ac_extension"; then
  16872. ac_im_usrlibdir=$ac_im_libdir; break
  16873. fi
  16874. done
  16875. # Screen out bogus values from the imake configuration. They are
  16876. # bogus both because they are the default anyway, and because
  16877. # using them would break gcc on systems where it needs fixed includes.
  16878. case $ac_im_incroot in
  16879. /usr/include) ac_x_includes= ;;
  16880. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  16881. esac
  16882. case $ac_im_usrlibdir in
  16883. /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  16884. *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  16885. esac
  16886. fi
  16887. cd ..
  16888. rm -f -r conftest.dir
  16889. fi
  16890. # Standard set of common directories for X headers.
  16891. # Check X11 before X11Rn because it is often a symlink to the current release.
  16892. ac_x_header_dirs='
  16893. /usr/X11/include
  16894. /usr/X11R7/include
  16895. /usr/X11R6/include
  16896. /usr/X11R5/include
  16897. /usr/X11R4/include
  16898. /usr/include/X11
  16899. /usr/include/X11R7
  16900. /usr/include/X11R6
  16901. /usr/include/X11R5
  16902. /usr/include/X11R4
  16903. /usr/local/X11/include
  16904. /usr/local/X11R7/include
  16905. /usr/local/X11R6/include
  16906. /usr/local/X11R5/include
  16907. /usr/local/X11R4/include
  16908. /usr/local/include/X11
  16909. /usr/local/include/X11R7
  16910. /usr/local/include/X11R6
  16911. /usr/local/include/X11R5
  16912. /usr/local/include/X11R4
  16913. /usr/X386/include
  16914. /usr/x386/include
  16915. /usr/XFree86/include/X11
  16916. /usr/include
  16917. /usr/local/include
  16918. /usr/unsupported/include
  16919. /usr/athena/include
  16920. /usr/local/x11r5/include
  16921. /usr/lpp/Xamples/include
  16922. /usr/openwin/include
  16923. /usr/openwin/share/include'
  16924. if test "$ac_x_includes" = no; then
  16925. # Guess where to find include files, by looking for Xlib.h.
  16926. # First, try using that file with no special directory specified.
  16927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16928. /* end confdefs.h. */
  16929. #include <X11/Xlib.h>
  16930. _ACEOF
  16931. if ac_fn_c_try_cpp "$LINENO"; then :
  16932. # We can compile using X headers with no special include directory.
  16933. ac_x_includes=
  16934. else
  16935. for ac_dir in $ac_x_header_dirs; do
  16936. if test -r "$ac_dir/X11/Xlib.h"; then
  16937. ac_x_includes=$ac_dir
  16938. break
  16939. fi
  16940. done
  16941. fi
  16942. rm -f conftest.err conftest.i conftest.$ac_ext
  16943. fi # $ac_x_includes = no
  16944. if test "$ac_x_libraries" = no; then
  16945. # Check for the libraries.
  16946. # See if we find them without any special options.
  16947. # Don't add to $LIBS permanently.
  16948. ac_save_LIBS=$LIBS
  16949. LIBS="-lX11 $LIBS"
  16950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16951. /* end confdefs.h. */
  16952. #include <X11/Xlib.h>
  16953. int
  16954. main ()
  16955. {
  16956. XrmInitialize ()
  16957. ;
  16958. return 0;
  16959. }
  16960. _ACEOF
  16961. if ac_fn_c_try_link "$LINENO"; then :
  16962. LIBS=$ac_save_LIBS
  16963. # We can link X programs with no special library path.
  16964. ac_x_libraries=
  16965. else
  16966. LIBS=$ac_save_LIBS
  16967. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  16968. do
  16969. # Don't even attempt the hair of trying to link an X program!
  16970. for ac_extension in a so sl dylib la dll; do
  16971. if test -r "$ac_dir/libX11.$ac_extension"; then
  16972. ac_x_libraries=$ac_dir
  16973. break 2
  16974. fi
  16975. done
  16976. done
  16977. fi
  16978. rm -f core conftest.err conftest.$ac_objext \
  16979. conftest$ac_exeext conftest.$ac_ext
  16980. fi # $ac_x_libraries = no
  16981. case $ac_x_includes,$ac_x_libraries in #(
  16982. no,* | *,no | *\'*)
  16983. # Didn't find X, or a directory has "'" in its name.
  16984. ac_cv_have_x="have_x=no";; #(
  16985. *)
  16986. # Record where we found X for the cache.
  16987. ac_cv_have_x="have_x=yes\
  16988. ac_x_includes='$ac_x_includes'\
  16989. ac_x_libraries='$ac_x_libraries'"
  16990. esac
  16991. fi
  16992. ;; #(
  16993. *) have_x=yes;;
  16994. esac
  16995. eval "$ac_cv_have_x"
  16996. fi # $with_x != no
  16997. if test "$have_x" != yes; then
  16998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  16999. $as_echo "$have_x" >&6; }
  17000. no_x=yes
  17001. else
  17002. # If each of the values was on the command line, it overrides each guess.
  17003. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  17004. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  17005. # Update the cache value to reflect the command line values.
  17006. ac_cv_have_x="have_x=yes\
  17007. ac_x_includes='$x_includes'\
  17008. ac_x_libraries='$x_libraries'"
  17009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  17010. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  17011. fi
  17012. if test "$no_x" = yes; then
  17013. # Not all programs may use this symbol, but it does not hurt to define it.
  17014. $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
  17015. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  17016. else
  17017. if test -n "$x_includes"; then
  17018. X_CFLAGS="$X_CFLAGS -I$x_includes"
  17019. fi
  17020. # It would also be nice to do this for all -L options, not just this one.
  17021. if test -n "$x_libraries"; then
  17022. X_LIBS="$X_LIBS -L$x_libraries"
  17023. # For Solaris; some versions of Sun CC require a space after -R and
  17024. # others require no space. Words are not sufficient . . . .
  17025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
  17026. $as_echo_n "checking whether -R must be followed by a space... " >&6; }
  17027. ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
  17028. ac_xsave_c_werror_flag=$ac_c_werror_flag
  17029. ac_c_werror_flag=yes
  17030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17031. /* end confdefs.h. */
  17032. int
  17033. main ()
  17034. {
  17035. ;
  17036. return 0;
  17037. }
  17038. _ACEOF
  17039. if ac_fn_c_try_link "$LINENO"; then :
  17040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17041. $as_echo "no" >&6; }
  17042. X_LIBS="$X_LIBS -R$x_libraries"
  17043. else
  17044. LIBS="$ac_xsave_LIBS -R $x_libraries"
  17045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17046. /* end confdefs.h. */
  17047. int
  17048. main ()
  17049. {
  17050. ;
  17051. return 0;
  17052. }
  17053. _ACEOF
  17054. if ac_fn_c_try_link "$LINENO"; then :
  17055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17056. $as_echo "yes" >&6; }
  17057. X_LIBS="$X_LIBS -R $x_libraries"
  17058. else
  17059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
  17060. $as_echo "neither works" >&6; }
  17061. fi
  17062. rm -f core conftest.err conftest.$ac_objext \
  17063. conftest$ac_exeext conftest.$ac_ext
  17064. fi
  17065. rm -f core conftest.err conftest.$ac_objext \
  17066. conftest$ac_exeext conftest.$ac_ext
  17067. ac_c_werror_flag=$ac_xsave_c_werror_flag
  17068. LIBS=$ac_xsave_LIBS
  17069. fi
  17070. # Check for system-dependent libraries X programs must link with.
  17071. # Do this before checking for the system-independent R6 libraries
  17072. # (-lICE), since we may need -lsocket or whatever for X linking.
  17073. if test "$ISC" = yes; then
  17074. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  17075. else
  17076. # Martyn Johnson says this is needed for Ultrix, if the X
  17077. # libraries were built with DECnet support. And Karl Berry says
  17078. # the Alpha needs dnet_stub (dnet does not exist).
  17079. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
  17080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17081. /* end confdefs.h. */
  17082. /* Override any GCC internal prototype to avoid an error.
  17083. Use char because int might match the return type of a GCC
  17084. builtin and then its argument prototype would still apply. */
  17085. #ifdef __cplusplus
  17086. extern "C"
  17087. #endif
  17088. char XOpenDisplay ();
  17089. int
  17090. main ()
  17091. {
  17092. return XOpenDisplay ();
  17093. ;
  17094. return 0;
  17095. }
  17096. _ACEOF
  17097. if ac_fn_c_try_link "$LINENO"; then :
  17098. else
  17099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
  17100. $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
  17101. if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
  17102. $as_echo_n "(cached) " >&6
  17103. else
  17104. ac_check_lib_save_LIBS=$LIBS
  17105. LIBS="-ldnet $LIBS"
  17106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17107. /* end confdefs.h. */
  17108. /* Override any GCC internal prototype to avoid an error.
  17109. Use char because int might match the return type of a GCC
  17110. builtin and then its argument prototype would still apply. */
  17111. #ifdef __cplusplus
  17112. extern "C"
  17113. #endif
  17114. char dnet_ntoa ();
  17115. int
  17116. main ()
  17117. {
  17118. return dnet_ntoa ();
  17119. ;
  17120. return 0;
  17121. }
  17122. _ACEOF
  17123. if ac_fn_c_try_link "$LINENO"; then :
  17124. ac_cv_lib_dnet_dnet_ntoa=yes
  17125. else
  17126. ac_cv_lib_dnet_dnet_ntoa=no
  17127. fi
  17128. rm -f core conftest.err conftest.$ac_objext \
  17129. conftest$ac_exeext conftest.$ac_ext
  17130. LIBS=$ac_check_lib_save_LIBS
  17131. fi
  17132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
  17133. $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
  17134. if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
  17135. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  17136. fi
  17137. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  17138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
  17139. $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
  17140. if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
  17141. $as_echo_n "(cached) " >&6
  17142. else
  17143. ac_check_lib_save_LIBS=$LIBS
  17144. LIBS="-ldnet_stub $LIBS"
  17145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17146. /* end confdefs.h. */
  17147. /* Override any GCC internal prototype to avoid an error.
  17148. Use char because int might match the return type of a GCC
  17149. builtin and then its argument prototype would still apply. */
  17150. #ifdef __cplusplus
  17151. extern "C"
  17152. #endif
  17153. char dnet_ntoa ();
  17154. int
  17155. main ()
  17156. {
  17157. return dnet_ntoa ();
  17158. ;
  17159. return 0;
  17160. }
  17161. _ACEOF
  17162. if ac_fn_c_try_link "$LINENO"; then :
  17163. ac_cv_lib_dnet_stub_dnet_ntoa=yes
  17164. else
  17165. ac_cv_lib_dnet_stub_dnet_ntoa=no
  17166. fi
  17167. rm -f core conftest.err conftest.$ac_objext \
  17168. conftest$ac_exeext conftest.$ac_ext
  17169. LIBS=$ac_check_lib_save_LIBS
  17170. fi
  17171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
  17172. $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
  17173. if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
  17174. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  17175. fi
  17176. fi
  17177. fi
  17178. rm -f core conftest.err conftest.$ac_objext \
  17179. conftest$ac_exeext conftest.$ac_ext
  17180. LIBS="$ac_xsave_LIBS"
  17181. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  17182. # to get the SysV transport functions.
  17183. # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
  17184. # needs -lnsl.
  17185. # The nsl library prevents programs from opening the X display
  17186. # on Irix 5.2, according to T.E. Dickey.
  17187. # The functions gethostbyname, getservbyname, and inet_addr are
  17188. # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
  17189. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  17190. if test "x$ac_cv_func_gethostbyname" = xyes; then :
  17191. fi
  17192. if test $ac_cv_func_gethostbyname = no; then
  17193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
  17194. $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
  17195. if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
  17196. $as_echo_n "(cached) " >&6
  17197. else
  17198. ac_check_lib_save_LIBS=$LIBS
  17199. LIBS="-lnsl $LIBS"
  17200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17201. /* end confdefs.h. */
  17202. /* Override any GCC internal prototype to avoid an error.
  17203. Use char because int might match the return type of a GCC
  17204. builtin and then its argument prototype would still apply. */
  17205. #ifdef __cplusplus
  17206. extern "C"
  17207. #endif
  17208. char gethostbyname ();
  17209. int
  17210. main ()
  17211. {
  17212. return gethostbyname ();
  17213. ;
  17214. return 0;
  17215. }
  17216. _ACEOF
  17217. if ac_fn_c_try_link "$LINENO"; then :
  17218. ac_cv_lib_nsl_gethostbyname=yes
  17219. else
  17220. ac_cv_lib_nsl_gethostbyname=no
  17221. fi
  17222. rm -f core conftest.err conftest.$ac_objext \
  17223. conftest$ac_exeext conftest.$ac_ext
  17224. LIBS=$ac_check_lib_save_LIBS
  17225. fi
  17226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
  17227. $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
  17228. if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
  17229. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  17230. fi
  17231. if test $ac_cv_lib_nsl_gethostbyname = no; then
  17232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
  17233. $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
  17234. if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
  17235. $as_echo_n "(cached) " >&6
  17236. else
  17237. ac_check_lib_save_LIBS=$LIBS
  17238. LIBS="-lbsd $LIBS"
  17239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17240. /* end confdefs.h. */
  17241. /* Override any GCC internal prototype to avoid an error.
  17242. Use char because int might match the return type of a GCC
  17243. builtin and then its argument prototype would still apply. */
  17244. #ifdef __cplusplus
  17245. extern "C"
  17246. #endif
  17247. char gethostbyname ();
  17248. int
  17249. main ()
  17250. {
  17251. return gethostbyname ();
  17252. ;
  17253. return 0;
  17254. }
  17255. _ACEOF
  17256. if ac_fn_c_try_link "$LINENO"; then :
  17257. ac_cv_lib_bsd_gethostbyname=yes
  17258. else
  17259. ac_cv_lib_bsd_gethostbyname=no
  17260. fi
  17261. rm -f core conftest.err conftest.$ac_objext \
  17262. conftest$ac_exeext conftest.$ac_ext
  17263. LIBS=$ac_check_lib_save_LIBS
  17264. fi
  17265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
  17266. $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
  17267. if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
  17268. X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
  17269. fi
  17270. fi
  17271. fi
  17272. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  17273. # socket/setsockopt and other routines are undefined under SCO ODT
  17274. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  17275. # on later versions), says Simon Leinen: it contains gethostby*
  17276. # variants that don't use the name server (or something). -lsocket
  17277. # must be given before -lnsl if both are needed. We assume that
  17278. # if connect needs -lnsl, so does gethostbyname.
  17279. ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
  17280. if test "x$ac_cv_func_connect" = xyes; then :
  17281. fi
  17282. if test $ac_cv_func_connect = no; then
  17283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
  17284. $as_echo_n "checking for connect in -lsocket... " >&6; }
  17285. if ${ac_cv_lib_socket_connect+:} false; then :
  17286. $as_echo_n "(cached) " >&6
  17287. else
  17288. ac_check_lib_save_LIBS=$LIBS
  17289. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  17290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17291. /* end confdefs.h. */
  17292. /* Override any GCC internal prototype to avoid an error.
  17293. Use char because int might match the return type of a GCC
  17294. builtin and then its argument prototype would still apply. */
  17295. #ifdef __cplusplus
  17296. extern "C"
  17297. #endif
  17298. char connect ();
  17299. int
  17300. main ()
  17301. {
  17302. return connect ();
  17303. ;
  17304. return 0;
  17305. }
  17306. _ACEOF
  17307. if ac_fn_c_try_link "$LINENO"; then :
  17308. ac_cv_lib_socket_connect=yes
  17309. else
  17310. ac_cv_lib_socket_connect=no
  17311. fi
  17312. rm -f core conftest.err conftest.$ac_objext \
  17313. conftest$ac_exeext conftest.$ac_ext
  17314. LIBS=$ac_check_lib_save_LIBS
  17315. fi
  17316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
  17317. $as_echo "$ac_cv_lib_socket_connect" >&6; }
  17318. if test "x$ac_cv_lib_socket_connect" = xyes; then :
  17319. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  17320. fi
  17321. fi
  17322. # Guillermo Gomez says -lposix is necessary on A/UX.
  17323. ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
  17324. if test "x$ac_cv_func_remove" = xyes; then :
  17325. fi
  17326. if test $ac_cv_func_remove = no; then
  17327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
  17328. $as_echo_n "checking for remove in -lposix... " >&6; }
  17329. if ${ac_cv_lib_posix_remove+:} false; then :
  17330. $as_echo_n "(cached) " >&6
  17331. else
  17332. ac_check_lib_save_LIBS=$LIBS
  17333. LIBS="-lposix $LIBS"
  17334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17335. /* end confdefs.h. */
  17336. /* Override any GCC internal prototype to avoid an error.
  17337. Use char because int might match the return type of a GCC
  17338. builtin and then its argument prototype would still apply. */
  17339. #ifdef __cplusplus
  17340. extern "C"
  17341. #endif
  17342. char remove ();
  17343. int
  17344. main ()
  17345. {
  17346. return remove ();
  17347. ;
  17348. return 0;
  17349. }
  17350. _ACEOF
  17351. if ac_fn_c_try_link "$LINENO"; then :
  17352. ac_cv_lib_posix_remove=yes
  17353. else
  17354. ac_cv_lib_posix_remove=no
  17355. fi
  17356. rm -f core conftest.err conftest.$ac_objext \
  17357. conftest$ac_exeext conftest.$ac_ext
  17358. LIBS=$ac_check_lib_save_LIBS
  17359. fi
  17360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
  17361. $as_echo "$ac_cv_lib_posix_remove" >&6; }
  17362. if test "x$ac_cv_lib_posix_remove" = xyes; then :
  17363. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  17364. fi
  17365. fi
  17366. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  17367. ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
  17368. if test "x$ac_cv_func_shmat" = xyes; then :
  17369. fi
  17370. if test $ac_cv_func_shmat = no; then
  17371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
  17372. $as_echo_n "checking for shmat in -lipc... " >&6; }
  17373. if ${ac_cv_lib_ipc_shmat+:} false; then :
  17374. $as_echo_n "(cached) " >&6
  17375. else
  17376. ac_check_lib_save_LIBS=$LIBS
  17377. LIBS="-lipc $LIBS"
  17378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17379. /* end confdefs.h. */
  17380. /* Override any GCC internal prototype to avoid an error.
  17381. Use char because int might match the return type of a GCC
  17382. builtin and then its argument prototype would still apply. */
  17383. #ifdef __cplusplus
  17384. extern "C"
  17385. #endif
  17386. char shmat ();
  17387. int
  17388. main ()
  17389. {
  17390. return shmat ();
  17391. ;
  17392. return 0;
  17393. }
  17394. _ACEOF
  17395. if ac_fn_c_try_link "$LINENO"; then :
  17396. ac_cv_lib_ipc_shmat=yes
  17397. else
  17398. ac_cv_lib_ipc_shmat=no
  17399. fi
  17400. rm -f core conftest.err conftest.$ac_objext \
  17401. conftest$ac_exeext conftest.$ac_ext
  17402. LIBS=$ac_check_lib_save_LIBS
  17403. fi
  17404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
  17405. $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
  17406. if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
  17407. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  17408. fi
  17409. fi
  17410. fi
  17411. # Check for libraries that X11R6 Xt/Xaw programs need.
  17412. ac_save_LDFLAGS=$LDFLAGS
  17413. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  17414. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  17415. # check for ICE first), but we must link in the order -lSM -lICE or
  17416. # we get undefined symbols. So assume we have SM if we have ICE.
  17417. # These have to be linked with before -lX11, unlike the other
  17418. # libraries we check for below, so use a different variable.
  17419. # John Interrante, Karl Berry
  17420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
  17421. $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
  17422. if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
  17423. $as_echo_n "(cached) " >&6
  17424. else
  17425. ac_check_lib_save_LIBS=$LIBS
  17426. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  17427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17428. /* end confdefs.h. */
  17429. /* Override any GCC internal prototype to avoid an error.
  17430. Use char because int might match the return type of a GCC
  17431. builtin and then its argument prototype would still apply. */
  17432. #ifdef __cplusplus
  17433. extern "C"
  17434. #endif
  17435. char IceConnectionNumber ();
  17436. int
  17437. main ()
  17438. {
  17439. return IceConnectionNumber ();
  17440. ;
  17441. return 0;
  17442. }
  17443. _ACEOF
  17444. if ac_fn_c_try_link "$LINENO"; then :
  17445. ac_cv_lib_ICE_IceConnectionNumber=yes
  17446. else
  17447. ac_cv_lib_ICE_IceConnectionNumber=no
  17448. fi
  17449. rm -f core conftest.err conftest.$ac_objext \
  17450. conftest$ac_exeext conftest.$ac_ext
  17451. LIBS=$ac_check_lib_save_LIBS
  17452. fi
  17453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
  17454. $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
  17455. if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
  17456. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  17457. fi
  17458. LDFLAGS=$ac_save_LDFLAGS
  17459. fi
  17460. if test x$have_x = xyes; then
  17461. # Check whether --enable-x11-shared was given.
  17462. if test "${enable_x11_shared+set}" = set; then :
  17463. enableval=$enable_x11_shared;
  17464. else
  17465. enable_x11_shared=maybe
  17466. fi
  17467. case "$host" in
  17468. *-*-darwin*)
  17469. x11_lib='/usr/X11R6/lib/libX11.6.dylib'
  17470. x11ext_lib='/usr/X11R6/lib/libXext.6.dylib'
  17471. xcursor_lib='/usr/X11R6/lib/libXcursor.1.dylib'
  17472. xinerama_lib='/usr/X11R6/lib/libXinerama.1.dylib'
  17473. xinput_lib='/usr/X11R6/lib/libXi.6.dylib'
  17474. xrandr_lib='/usr/X11R6/lib/libXrandr.2.dylib'
  17475. xrender_lib='/usr/X11R6/lib/libXrender.1.dylib'
  17476. xss_lib='/usr/X11R6/lib/libXss.1.dylib'
  17477. xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
  17478. ;;
  17479. *-*-openbsd*)
  17480. x11_lib='libX11.so'
  17481. x11ext_lib='libXext.so'
  17482. xcursor_lib='libXcursor.so'
  17483. xinerama_lib='libXinerama.so'
  17484. xinput_lib='libXi.so'
  17485. xrandr_lib='libXrandr.so'
  17486. xrender_lib='libXrender.so'
  17487. xss_lib='libXss.so'
  17488. xvidmode_lib='libXxf86vm.so'
  17489. ;;
  17490. *)
  17491. x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17492. x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17493. xcursor_lib=`find_lib "libXcursor.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17494. xinerama_lib=`find_lib "libXinerama.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17495. xinput_lib=`find_lib "libXi.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17496. xrandr_lib=`find_lib "libXrandr.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17497. xrender_lib=`find_lib "libXrender.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17498. xss_lib=`find_lib "libXss.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17499. xvidmode_lib=`find_lib "libXxf86vm.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
  17500. ;;
  17501. esac
  17502. if test x$ac_cv_func_shmat != xyes; then
  17503. X_CFLAGS="$X_CFLAGS -DNO_SHARED_MEMORY"
  17504. fi
  17505. CFLAGS="$CFLAGS $X_CFLAGS"
  17506. LDFLAGS="$LDFLAGS $X_LIBS"
  17507. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xext.h" "ac_cv_header_X11_extensions_Xext_h" "#include <X11/Xlib.h>
  17508. #include <X11/Xproto.h>
  17509. "
  17510. if test "x$ac_cv_header_X11_extensions_Xext_h" = xyes; then :
  17511. have_xext_h_hdr=yes
  17512. else
  17513. have_xext_h_hdr=no
  17514. fi
  17515. if test x$have_xext_h_hdr != xyes; then
  17516. as_fn_error $? "
  17517. *** Missing Xext.h, maybe you need to install the libxext-dev package?
  17518. " "$LINENO" 5
  17519. fi
  17520. $as_echo "#define SDL_VIDEO_DRIVER_X11 1" >>confdefs.h
  17521. SOURCES="$SOURCES $srcdir/src/video/x11/*.c"
  17522. EXTRA_CFLAGS="$EXTRA_CFLAGS $X_CFLAGS"
  17523. # Needed so SDL applications can include SDL_syswm.h
  17524. SDL_CFLAGS="$SDL_CFLAGS $X_CFLAGS"
  17525. if test x$enable_x11_shared = xmaybe; then
  17526. enable_x11_shared=yes
  17527. fi
  17528. if test x$have_loadso != xyes && \
  17529. test x$enable_x11_shared = xyes; then
  17530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&5
  17531. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic X11 loading" >&2;}
  17532. enable_x11_shared=no
  17533. fi
  17534. if test x$have_loadso = xyes && \
  17535. test x$enable_x11_shared = xyes && test x$x11_lib != x && test x$x11ext_lib != x; then
  17536. echo "-- dynamic libX11 -> $x11_lib"
  17537. echo "-- dynamic libX11ext -> $x11ext_lib"
  17538. cat >>confdefs.h <<_ACEOF
  17539. #define SDL_VIDEO_DRIVER_X11_DYNAMIC "$x11_lib"
  17540. _ACEOF
  17541. cat >>confdefs.h <<_ACEOF
  17542. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XEXT "$x11ext_lib"
  17543. _ACEOF
  17544. SUMMARY_video="${SUMMARY_video} x11(dynamic)"
  17545. else
  17546. enable_x11_shared=no
  17547. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $X_LIBS -lX11 -lXext"
  17548. SUMMARY_video="${SUMMARY_video} x11"
  17549. fi
  17550. have_video=yes
  17551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for const parameter to XextAddDisplay" >&5
  17552. $as_echo_n "checking for const parameter to XextAddDisplay... " >&6; }
  17553. have_const_param_XextAddDisplay=no
  17554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17555. /* end confdefs.h. */
  17556. #include <X11/Xlib.h>
  17557. #include <X11/Xproto.h>
  17558. #include <X11/extensions/Xext.h>
  17559. #include <X11/extensions/extutil.h>
  17560. extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
  17561. int
  17562. main ()
  17563. {
  17564. ;
  17565. return 0;
  17566. }
  17567. _ACEOF
  17568. if ac_fn_c_try_compile "$LINENO"; then :
  17569. have_const_param_XextAddDisplay=yes
  17570. $as_echo "#define SDL_VIDEO_DRIVER_X11_CONST_PARAM_XEXTADDDISPLAY 1" >>confdefs.h
  17571. fi
  17572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_const_param_XextAddDisplay" >&5
  17574. $as_echo "$have_const_param_XextAddDisplay" >&6; }
  17575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGenericEvent" >&5
  17576. $as_echo_n "checking for XGenericEvent... " >&6; }
  17577. have_XGenericEvent=no
  17578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17579. /* end confdefs.h. */
  17580. #include <X11/Xlib.h>
  17581. int
  17582. main ()
  17583. {
  17584. Display *display;
  17585. XEvent event;
  17586. XGenericEventCookie *cookie = &event.xcookie;
  17587. XNextEvent(display, &event);
  17588. XGetEventData(display, cookie);
  17589. XFreeEventData(display, cookie);
  17590. ;
  17591. return 0;
  17592. }
  17593. _ACEOF
  17594. if ac_fn_c_try_compile "$LINENO"; then :
  17595. have_XGenericEvent=yes
  17596. $as_echo "#define SDL_VIDEO_DRIVER_X11_SUPPORTS_GENERIC_EVENTS 1" >>confdefs.h
  17597. fi
  17598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_XGenericEvent" >&5
  17600. $as_echo "$have_XGenericEvent" >&6; }
  17601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbKeycodeToKeysym in -lX11" >&5
  17602. $as_echo_n "checking for XkbKeycodeToKeysym in -lX11... " >&6; }
  17603. if ${ac_cv_lib_X11_XkbKeycodeToKeysym+:} false; then :
  17604. $as_echo_n "(cached) " >&6
  17605. else
  17606. ac_check_lib_save_LIBS=$LIBS
  17607. LIBS="-lX11 $LIBS"
  17608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17609. /* end confdefs.h. */
  17610. /* Override any GCC internal prototype to avoid an error.
  17611. Use char because int might match the return type of a GCC
  17612. builtin and then its argument prototype would still apply. */
  17613. #ifdef __cplusplus
  17614. extern "C"
  17615. #endif
  17616. char XkbKeycodeToKeysym ();
  17617. int
  17618. main ()
  17619. {
  17620. return XkbKeycodeToKeysym ();
  17621. ;
  17622. return 0;
  17623. }
  17624. _ACEOF
  17625. if ac_fn_c_try_link "$LINENO"; then :
  17626. ac_cv_lib_X11_XkbKeycodeToKeysym=yes
  17627. else
  17628. ac_cv_lib_X11_XkbKeycodeToKeysym=no
  17629. fi
  17630. rm -f core conftest.err conftest.$ac_objext \
  17631. conftest$ac_exeext conftest.$ac_ext
  17632. LIBS=$ac_check_lib_save_LIBS
  17633. fi
  17634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbKeycodeToKeysym" >&5
  17635. $as_echo "$ac_cv_lib_X11_XkbKeycodeToKeysym" >&6; }
  17636. if test "x$ac_cv_lib_X11_XkbKeycodeToKeysym" = xyes; then :
  17637. $as_echo "#define SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM 1" >>confdefs.h
  17638. fi
  17639. # Check whether --enable-video-x11-xcursor was given.
  17640. if test "${enable_video_x11_xcursor+set}" = set; then :
  17641. enableval=$enable_video_x11_xcursor;
  17642. else
  17643. enable_video_x11_xcursor=yes
  17644. fi
  17645. if test x$enable_video_x11_xcursor = xyes; then
  17646. definitely_enable_video_x11_xcursor=no
  17647. ac_fn_c_check_header_compile "$LINENO" "X11/Xcursor/Xcursor.h" "ac_cv_header_X11_Xcursor_Xcursor_h" "#include <X11/Xlib.h>
  17648. "
  17649. if test "x$ac_cv_header_X11_Xcursor_Xcursor_h" = xyes; then :
  17650. have_xcursor_h_hdr=yes
  17651. else
  17652. have_xcursor_h_hdr=no
  17653. fi
  17654. if test x$have_xcursor_h_hdr = xyes; then
  17655. if test x$enable_x11_shared = xyes && test x$xcursor_lib != x ; then
  17656. echo "-- dynamic libXcursor -> $xcursor_lib"
  17657. cat >>confdefs.h <<_ACEOF
  17658. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XCURSOR "$xcursor_lib"
  17659. _ACEOF
  17660. definitely_enable_video_x11_xcursor=yes
  17661. else
  17662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5
  17663. $as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; }
  17664. if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then :
  17665. $as_echo_n "(cached) " >&6
  17666. else
  17667. ac_check_lib_save_LIBS=$LIBS
  17668. LIBS="-lXcursor $LIBS"
  17669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17670. /* end confdefs.h. */
  17671. /* Override any GCC internal prototype to avoid an error.
  17672. Use char because int might match the return type of a GCC
  17673. builtin and then its argument prototype would still apply. */
  17674. #ifdef __cplusplus
  17675. extern "C"
  17676. #endif
  17677. char XcursorImageCreate ();
  17678. int
  17679. main ()
  17680. {
  17681. return XcursorImageCreate ();
  17682. ;
  17683. return 0;
  17684. }
  17685. _ACEOF
  17686. if ac_fn_c_try_link "$LINENO"; then :
  17687. ac_cv_lib_Xcursor_XcursorImageCreate=yes
  17688. else
  17689. ac_cv_lib_Xcursor_XcursorImageCreate=no
  17690. fi
  17691. rm -f core conftest.err conftest.$ac_objext \
  17692. conftest$ac_exeext conftest.$ac_ext
  17693. LIBS=$ac_check_lib_save_LIBS
  17694. fi
  17695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5
  17696. $as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; }
  17697. if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then :
  17698. have_xcursor_lib=yes
  17699. fi
  17700. if test x$have_xcursor_lib = xyes ; then
  17701. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXcursor"
  17702. definitely_enable_video_x11_xcursor=yes
  17703. fi
  17704. fi
  17705. fi
  17706. fi
  17707. if test x$definitely_enable_video_x11_xcursor = xyes; then
  17708. $as_echo "#define SDL_VIDEO_DRIVER_X11_XCURSOR 1" >>confdefs.h
  17709. SUMMARY_video_x11="${SUMMARY_video_x11} xcursor"
  17710. fi
  17711. # Check whether --enable-video-x11-xdbe was given.
  17712. if test "${enable_video_x11_xdbe+set}" = set; then :
  17713. enableval=$enable_video_x11_xdbe;
  17714. else
  17715. enable_video_x11_xdbe=yes
  17716. fi
  17717. if test x$enable_video_x11_xdbe = xyes; then
  17718. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xdbe.h" "ac_cv_header_X11_extensions_Xdbe_h" "#include <X11/Xlib.h>
  17719. "
  17720. if test "x$ac_cv_header_X11_extensions_Xdbe_h" = xyes; then :
  17721. have_dbe_h_hdr=yes
  17722. else
  17723. have_dbe_h_hdr=no
  17724. fi
  17725. if test x$have_dbe_h_hdr = xyes; then
  17726. $as_echo "#define SDL_VIDEO_DRIVER_X11_XDBE 1" >>confdefs.h
  17727. SUMMARY_video_x11="${SUMMARY_video_x11} xdbe"
  17728. fi
  17729. fi
  17730. # Check whether --enable-video-x11-xinerama was given.
  17731. if test "${enable_video_x11_xinerama+set}" = set; then :
  17732. enableval=$enable_video_x11_xinerama;
  17733. else
  17734. enable_video_x11_xinerama=yes
  17735. fi
  17736. if test x$enable_video_x11_xinerama = xyes; then
  17737. definitely_enable_video_x11_xinerama=no
  17738. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/Xinerama.h" "ac_cv_header_X11_extensions_Xinerama_h" "#include <X11/Xlib.h>
  17739. "
  17740. if test "x$ac_cv_header_X11_extensions_Xinerama_h" = xyes; then :
  17741. have_xinerama_h_hdr=yes
  17742. else
  17743. have_xinerama_h_hdr=no
  17744. fi
  17745. if test x$have_xinerama_h_hdr = xyes; then
  17746. if test x$enable_x11_shared = xyes && test x$xinerama_lib != x ; then
  17747. echo "-- dynamic libXinerama -> $xinerama_lib"
  17748. cat >>confdefs.h <<_ACEOF
  17749. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINERAMA "$xinerama_lib"
  17750. _ACEOF
  17751. definitely_enable_video_x11_xinerama=yes
  17752. else
  17753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryExtension in -lXinerama" >&5
  17754. $as_echo_n "checking for XineramaQueryExtension in -lXinerama... " >&6; }
  17755. if ${ac_cv_lib_Xinerama_XineramaQueryExtension+:} false; then :
  17756. $as_echo_n "(cached) " >&6
  17757. else
  17758. ac_check_lib_save_LIBS=$LIBS
  17759. LIBS="-lXinerama $LIBS"
  17760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17761. /* end confdefs.h. */
  17762. /* Override any GCC internal prototype to avoid an error.
  17763. Use char because int might match the return type of a GCC
  17764. builtin and then its argument prototype would still apply. */
  17765. #ifdef __cplusplus
  17766. extern "C"
  17767. #endif
  17768. char XineramaQueryExtension ();
  17769. int
  17770. main ()
  17771. {
  17772. return XineramaQueryExtension ();
  17773. ;
  17774. return 0;
  17775. }
  17776. _ACEOF
  17777. if ac_fn_c_try_link "$LINENO"; then :
  17778. ac_cv_lib_Xinerama_XineramaQueryExtension=yes
  17779. else
  17780. ac_cv_lib_Xinerama_XineramaQueryExtension=no
  17781. fi
  17782. rm -f core conftest.err conftest.$ac_objext \
  17783. conftest$ac_exeext conftest.$ac_ext
  17784. LIBS=$ac_check_lib_save_LIBS
  17785. fi
  17786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryExtension" >&5
  17787. $as_echo "$ac_cv_lib_Xinerama_XineramaQueryExtension" >&6; }
  17788. if test "x$ac_cv_lib_Xinerama_XineramaQueryExtension" = xyes; then :
  17789. have_xinerama_lib=yes
  17790. fi
  17791. if test x$have_xinerama_lib = xyes ; then
  17792. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXinerama"
  17793. definitely_enable_video_x11_xinerama=yes
  17794. fi
  17795. fi
  17796. fi
  17797. fi
  17798. if test x$definitely_enable_video_x11_xinerama = xyes; then
  17799. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINERAMA 1" >>confdefs.h
  17800. SUMMARY_video_x11="${SUMMARY_video_x11} xinerama"
  17801. fi
  17802. # Check whether --enable-video-x11-xinput was given.
  17803. if test "${enable_video_x11_xinput+set}" = set; then :
  17804. enableval=$enable_video_x11_xinput;
  17805. else
  17806. enable_video_x11_xinput=yes
  17807. fi
  17808. if test x$enable_video_x11_xinput = xyes; then
  17809. definitely_enable_video_x11_xinput=no
  17810. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/XInput2.h" "ac_cv_header_X11_extensions_XInput2_h" "#include <X11/Xlib.h>
  17811. "
  17812. if test "x$ac_cv_header_X11_extensions_XInput2_h" = xyes; then :
  17813. have_xinput_h_hdr=yes
  17814. else
  17815. have_xinput_h_hdr=no
  17816. fi
  17817. if test x$have_xinput_h_hdr = xyes; then
  17818. if test x$enable_x11_shared = xyes && test x$xinput_lib != x ; then
  17819. echo "-- dynamic libXi -> $xinput_lib"
  17820. cat >>confdefs.h <<_ACEOF
  17821. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XINPUT2 "$xinput_lib"
  17822. _ACEOF
  17823. definitely_enable_video_x11_xinput=yes
  17824. else
  17825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
  17826. $as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
  17827. if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
  17828. $as_echo_n "(cached) " >&6
  17829. else
  17830. ac_check_lib_save_LIBS=$LIBS
  17831. LIBS="-lXi $LIBS"
  17832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17833. /* end confdefs.h. */
  17834. /* Override any GCC internal prototype to avoid an error.
  17835. Use char because int might match the return type of a GCC
  17836. builtin and then its argument prototype would still apply. */
  17837. #ifdef __cplusplus
  17838. extern "C"
  17839. #endif
  17840. char XOpenDevice ();
  17841. int
  17842. main ()
  17843. {
  17844. return XOpenDevice ();
  17845. ;
  17846. return 0;
  17847. }
  17848. _ACEOF
  17849. if ac_fn_c_try_link "$LINENO"; then :
  17850. ac_cv_lib_Xi_XOpenDevice=yes
  17851. else
  17852. ac_cv_lib_Xi_XOpenDevice=no
  17853. fi
  17854. rm -f core conftest.err conftest.$ac_objext \
  17855. conftest$ac_exeext conftest.$ac_ext
  17856. LIBS=$ac_check_lib_save_LIBS
  17857. fi
  17858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
  17859. $as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
  17860. if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
  17861. have_xinput_lib=yes
  17862. fi
  17863. if test x$have_xinput_lib = xyes ; then
  17864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXi"
  17865. definitely_enable_video_x11_xinput=yes
  17866. fi
  17867. fi
  17868. fi
  17869. fi
  17870. if test x$definitely_enable_video_x11_xinput = xyes; then
  17871. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2"
  17872. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2 1" >>confdefs.h
  17873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xinput2 multitouch" >&5
  17874. $as_echo_n "checking for xinput2 multitouch... " >&6; }
  17875. have_xinput2_multitouch=no
  17876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17877. /* end confdefs.h. */
  17878. #include <X11/Xlib.h>
  17879. #include <X11/Xproto.h>
  17880. #include <X11/extensions/XInput2.h>
  17881. int
  17882. main ()
  17883. {
  17884. int event_type = XI_TouchBegin;
  17885. XITouchClassInfo *t;
  17886. ;
  17887. return 0;
  17888. }
  17889. _ACEOF
  17890. if ac_fn_c_try_compile "$LINENO"; then :
  17891. have_xinput2_multitouch=yes
  17892. $as_echo "#define SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH 1" >>confdefs.h
  17893. SUMMARY_video_x11="${SUMMARY_video_x11} xinput2_multitouch"
  17894. fi
  17895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xinput2_multitouch" >&5
  17897. $as_echo "$have_xinput2_multitouch" >&6; }
  17898. fi
  17899. # Check whether --enable-video-x11-xrandr was given.
  17900. if test "${enable_video_x11_xrandr+set}" = set; then :
  17901. enableval=$enable_video_x11_xrandr;
  17902. else
  17903. enable_video_x11_xrandr=yes
  17904. fi
  17905. if test x$enable_video_x11_xrandr = xyes; then
  17906. definitely_enable_video_x11_xrandr=no
  17907. have_xrandr_h_hdr=no
  17908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17909. /* end confdefs.h. */
  17910. #include <X11/Xlib.h>
  17911. #include <X11/extensions/Xrandr.h>
  17912. int
  17913. main ()
  17914. {
  17915. XRRScreenResources *res = NULL;
  17916. ;
  17917. return 0;
  17918. }
  17919. _ACEOF
  17920. if ac_fn_c_try_compile "$LINENO"; then :
  17921. have_xrandr_h_hdr=yes
  17922. fi
  17923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17924. if test x$have_xrandr_h_hdr = xyes; then
  17925. if test x$enable_x11_shared = xyes && test x$xrandr_lib != x ; then
  17926. echo "-- dynamic libXrandr -> $xrandr_lib"
  17927. cat >>confdefs.h <<_ACEOF
  17928. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XRANDR "$xrandr_lib"
  17929. _ACEOF
  17930. definitely_enable_video_x11_xrandr=yes
  17931. else
  17932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
  17933. $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
  17934. if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then :
  17935. $as_echo_n "(cached) " >&6
  17936. else
  17937. ac_check_lib_save_LIBS=$LIBS
  17938. LIBS="-lXrandr $LIBS"
  17939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17940. /* end confdefs.h. */
  17941. /* Override any GCC internal prototype to avoid an error.
  17942. Use char because int might match the return type of a GCC
  17943. builtin and then its argument prototype would still apply. */
  17944. #ifdef __cplusplus
  17945. extern "C"
  17946. #endif
  17947. char XRRQueryExtension ();
  17948. int
  17949. main ()
  17950. {
  17951. return XRRQueryExtension ();
  17952. ;
  17953. return 0;
  17954. }
  17955. _ACEOF
  17956. if ac_fn_c_try_link "$LINENO"; then :
  17957. ac_cv_lib_Xrandr_XRRQueryExtension=yes
  17958. else
  17959. ac_cv_lib_Xrandr_XRRQueryExtension=no
  17960. fi
  17961. rm -f core conftest.err conftest.$ac_objext \
  17962. conftest$ac_exeext conftest.$ac_ext
  17963. LIBS=$ac_check_lib_save_LIBS
  17964. fi
  17965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
  17966. $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
  17967. if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then :
  17968. have_xrandr_lib=yes
  17969. fi
  17970. if test x$have_xrandr_lib = xyes ; then
  17971. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXrandr"
  17972. definitely_enable_video_x11_xrandr=yes
  17973. fi
  17974. fi
  17975. fi
  17976. fi
  17977. if test x$definitely_enable_video_x11_xrandr = xyes; then
  17978. $as_echo "#define SDL_VIDEO_DRIVER_X11_XRANDR 1" >>confdefs.h
  17979. SUMMARY_video_x11="${SUMMARY_video_x11} xrandr"
  17980. fi
  17981. # Check whether --enable-video-x11-scrnsaver was given.
  17982. if test "${enable_video_x11_scrnsaver+set}" = set; then :
  17983. enableval=$enable_video_x11_scrnsaver;
  17984. else
  17985. enable_video_x11_scrnsaver=yes
  17986. fi
  17987. if test x$enable_video_x11_scrnsaver = xyes; then
  17988. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/scrnsaver.h" "ac_cv_header_X11_extensions_scrnsaver_h" "#include <X11/Xlib.h>
  17989. "
  17990. if test "x$ac_cv_header_X11_extensions_scrnsaver_h" = xyes; then :
  17991. have_scrnsaver_h_hdr=yes
  17992. else
  17993. have_scrnsaver_h_hdr=no
  17994. fi
  17995. if test x$have_scrnsaver_h_hdr = xyes; then
  17996. if test x$enable_x11_shared = xyes && test x$xss_lib != x ; then
  17997. echo "-- dynamic libXss -> $xss_lib"
  17998. cat >>confdefs.h <<_ACEOF
  17999. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XSS "$xss_lib"
  18000. _ACEOF
  18001. definitely_enable_video_x11_scrnsaver=yes
  18002. else
  18003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverSuspend in -lXss" >&5
  18004. $as_echo_n "checking for XScreenSaverSuspend in -lXss... " >&6; }
  18005. if ${ac_cv_lib_Xss_XScreenSaverSuspend+:} false; then :
  18006. $as_echo_n "(cached) " >&6
  18007. else
  18008. ac_check_lib_save_LIBS=$LIBS
  18009. LIBS="-lXss $LIBS"
  18010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18011. /* end confdefs.h. */
  18012. /* Override any GCC internal prototype to avoid an error.
  18013. Use char because int might match the return type of a GCC
  18014. builtin and then its argument prototype would still apply. */
  18015. #ifdef __cplusplus
  18016. extern "C"
  18017. #endif
  18018. char XScreenSaverSuspend ();
  18019. int
  18020. main ()
  18021. {
  18022. return XScreenSaverSuspend ();
  18023. ;
  18024. return 0;
  18025. }
  18026. _ACEOF
  18027. if ac_fn_c_try_link "$LINENO"; then :
  18028. ac_cv_lib_Xss_XScreenSaverSuspend=yes
  18029. else
  18030. ac_cv_lib_Xss_XScreenSaverSuspend=no
  18031. fi
  18032. rm -f core conftest.err conftest.$ac_objext \
  18033. conftest$ac_exeext conftest.$ac_ext
  18034. LIBS=$ac_check_lib_save_LIBS
  18035. fi
  18036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverSuspend" >&5
  18037. $as_echo "$ac_cv_lib_Xss_XScreenSaverSuspend" >&6; }
  18038. if test "x$ac_cv_lib_Xss_XScreenSaverSuspend" = xyes; then :
  18039. have_xss_lib=yes
  18040. fi
  18041. if test x$have_xss_lib = xyes ; then
  18042. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXss"
  18043. definitely_enable_video_x11_scrnsaver=yes
  18044. fi
  18045. fi
  18046. fi
  18047. fi
  18048. if test x$definitely_enable_video_x11_scrnsaver = xyes; then
  18049. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSCRNSAVER 1" >>confdefs.h
  18050. SUMMARY_video_x11="${SUMMARY_video_x11} xscrnsaver"
  18051. fi
  18052. # Check whether --enable-video-x11-xshape was given.
  18053. if test "${enable_video_x11_xshape+set}" = set; then :
  18054. enableval=$enable_video_x11_xshape;
  18055. else
  18056. enable_video_x11_xshape=yes
  18057. fi
  18058. if test x$enable_video_x11_xshape = xyes; then
  18059. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/shape.h" "ac_cv_header_X11_extensions_shape_h" "#include <X11/Xlib.h>
  18060. "
  18061. if test "x$ac_cv_header_X11_extensions_shape_h" = xyes; then :
  18062. have_shape_h_hdr=yes
  18063. else
  18064. have_shape_h_hdr=no
  18065. fi
  18066. if test x$have_shape_h_hdr = xyes; then
  18067. $as_echo "#define SDL_VIDEO_DRIVER_X11_XSHAPE 1" >>confdefs.h
  18068. SUMMARY_video_x11="${SUMMARY_video_x11} xshape"
  18069. fi
  18070. fi
  18071. # Check whether --enable-video-x11-vm was given.
  18072. if test "${enable_video_x11_vm+set}" = set; then :
  18073. enableval=$enable_video_x11_vm;
  18074. else
  18075. enable_video_x11_vm=yes
  18076. fi
  18077. if test x$enable_video_x11_vm = xyes; then
  18078. definitely_enable_video_x11_vm=no
  18079. ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" "#include <X11/Xlib.h>
  18080. "
  18081. if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then :
  18082. have_vm_h_hdr=yes
  18083. else
  18084. have_vm_h_hdr=no
  18085. fi
  18086. if test x$have_vm_h_hdr = xyes; then
  18087. if test x$enable_x11_shared = xyes && test x$xvidmode_lib != x ; then
  18088. echo "-- dynamic libXxf86vm -> $xvidmode_lib"
  18089. cat >>confdefs.h <<_ACEOF
  18090. #define SDL_VIDEO_DRIVER_X11_DYNAMIC_XVIDMODE "$xvidmode_lib"
  18091. _ACEOF
  18092. definitely_enable_video_x11_vm=yes
  18093. else
  18094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryVersion in -lXxf86vm" >&5
  18095. $as_echo_n "checking for XF86VidModeQueryVersion in -lXxf86vm... " >&6; }
  18096. if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion+:} false; then :
  18097. $as_echo_n "(cached) " >&6
  18098. else
  18099. ac_check_lib_save_LIBS=$LIBS
  18100. LIBS="-lXxf86vm $LIBS"
  18101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18102. /* end confdefs.h. */
  18103. /* Override any GCC internal prototype to avoid an error.
  18104. Use char because int might match the return type of a GCC
  18105. builtin and then its argument prototype would still apply. */
  18106. #ifdef __cplusplus
  18107. extern "C"
  18108. #endif
  18109. char XF86VidModeQueryVersion ();
  18110. int
  18111. main ()
  18112. {
  18113. return XF86VidModeQueryVersion ();
  18114. ;
  18115. return 0;
  18116. }
  18117. _ACEOF
  18118. if ac_fn_c_try_link "$LINENO"; then :
  18119. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=yes
  18120. else
  18121. ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion=no
  18122. fi
  18123. rm -f core conftest.err conftest.$ac_objext \
  18124. conftest$ac_exeext conftest.$ac_ext
  18125. LIBS=$ac_check_lib_save_LIBS
  18126. fi
  18127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&5
  18128. $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" >&6; }
  18129. if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryVersion" = xyes; then :
  18130. have_vm_lib=yes
  18131. fi
  18132. if test x$have_vm_lib = xyes ; then
  18133. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lXxf86vm"
  18134. definitely_enable_video_x11_vm=yes
  18135. fi
  18136. fi
  18137. fi
  18138. fi
  18139. if test x$definitely_enable_video_x11_vm = xyes; then
  18140. $as_echo "#define SDL_VIDEO_DRIVER_X11_XVIDMODE 1" >>confdefs.h
  18141. SUMMARY_video_x11="${SUMMARY_video_x11} xvidmode"
  18142. fi
  18143. fi
  18144. fi
  18145. }
  18146. CheckVivanteVideo()
  18147. {
  18148. # Check whether --enable-video-vivante was given.
  18149. if test "${enable_video_vivante+set}" = set; then :
  18150. enableval=$enable_video_vivante;
  18151. else
  18152. enable_video_vivante=yes
  18153. fi
  18154. if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
  18155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
  18156. $as_echo_n "checking for Vivante VDK API... " >&6; }
  18157. have_vivante_vdk=no
  18158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18159. /* end confdefs.h. */
  18160. #define LINUX
  18161. #define EGL_API_FB
  18162. #include <gc_vdk.h>
  18163. int
  18164. main ()
  18165. {
  18166. ;
  18167. return 0;
  18168. }
  18169. _ACEOF
  18170. if ac_fn_c_try_compile "$LINENO"; then :
  18171. have_vivante_vdk=yes
  18172. fi
  18173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
  18175. $as_echo "$have_vivante_vdk" >&6; }
  18176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
  18177. $as_echo_n "checking for Vivante FB API... " >&6; }
  18178. have_vivante_egl=no
  18179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18180. /* end confdefs.h. */
  18181. #define LINUX
  18182. #define EGL_API_FB
  18183. #include <EGL/eglvivante.h>
  18184. int
  18185. main ()
  18186. {
  18187. ;
  18188. return 0;
  18189. }
  18190. _ACEOF
  18191. if ac_fn_c_try_compile "$LINENO"; then :
  18192. have_vivante_egl=yes
  18193. fi
  18194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
  18196. $as_echo "$have_vivante_egl" >&6; }
  18197. if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
  18198. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
  18199. EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
  18200. if test x$have_vivante_vdk = xyes; then
  18201. $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
  18202. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
  18203. fi
  18204. SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
  18205. SUMMARY_video="${SUMMARY_video} vivante"
  18206. have_video=yes
  18207. fi
  18208. fi
  18209. }
  18210. CheckHaikuVideo()
  18211. {
  18212. if test x$enable_video = xyes; then
  18213. $as_echo "#define SDL_VIDEO_DRIVER_HAIKU 1" >>confdefs.h
  18214. SOURCES="$SOURCES $srcdir/src/video/haiku/*.cc"
  18215. have_video=yes
  18216. SUMMARY_video="${SUMMARY_video} haiku"
  18217. fi
  18218. }
  18219. CheckCOCOA()
  18220. {
  18221. # Check whether --enable-video-cocoa was given.
  18222. if test "${enable_video_cocoa+set}" = set; then :
  18223. enableval=$enable_video_cocoa;
  18224. else
  18225. enable_video_cocoa=yes
  18226. fi
  18227. if test x$enable_video = xyes -a x$enable_video_cocoa = xyes; then
  18228. save_CFLAGS="$CFLAGS"
  18229. CFLAGS="$CFLAGS -x objective-c"
  18230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cocoa framework" >&5
  18231. $as_echo_n "checking for Cocoa framework... " >&6; }
  18232. have_cocoa=no
  18233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18234. /* end confdefs.h. */
  18235. #import <Cocoa/Cocoa.h>
  18236. int
  18237. main ()
  18238. {
  18239. ;
  18240. return 0;
  18241. }
  18242. _ACEOF
  18243. if ac_fn_c_try_compile "$LINENO"; then :
  18244. have_cocoa=yes
  18245. fi
  18246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cocoa" >&5
  18248. $as_echo "$have_cocoa" >&6; }
  18249. CFLAGS="$save_CFLAGS"
  18250. if test x$have_cocoa = xyes; then
  18251. $as_echo "#define SDL_VIDEO_DRIVER_COCOA 1" >>confdefs.h
  18252. SOURCES="$SOURCES $srcdir/src/video/cocoa/*.m"
  18253. SUMMARY_video="${SUMMARY_video} cocoa"
  18254. have_video=yes
  18255. fi
  18256. fi
  18257. }
  18258. CheckMETAL()
  18259. {
  18260. # Check whether --enable-render-metal was given.
  18261. if test "${enable_render_metal+set}" = set; then :
  18262. enableval=$enable_render_metal;
  18263. else
  18264. enable_render_metal=yes
  18265. fi
  18266. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  18267. save_CFLAGS="$CFLAGS"
  18268. CFLAGS="$CFLAGS -x objective-c"
  18269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Metal framework" >&5
  18270. $as_echo_n "checking for Metal framework... " >&6; }
  18271. have_metal=no
  18272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18273. /* end confdefs.h. */
  18274. #import <Cocoa/Cocoa.h>
  18275. #import <Metal/Metal.h>
  18276. #import <QuartzCore/CAMetalLayer.h>
  18277. #if !TARGET_CPU_X86_64
  18278. #error Metal doesn't work on this configuration
  18279. #endif
  18280. int
  18281. main ()
  18282. {
  18283. ;
  18284. return 0;
  18285. }
  18286. _ACEOF
  18287. if ac_fn_c_try_compile "$LINENO"; then :
  18288. have_metal=yes
  18289. fi
  18290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18291. CFLAGS="$save_CFLAGS"
  18292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_metal" >&5
  18293. $as_echo "$have_metal" >&6; }
  18294. if test x$have_metal = xyes; then
  18295. $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h
  18296. SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
  18297. SUMMARY_video="${SUMMARY_video} metal"
  18298. else
  18299. enable_render_metal=no
  18300. fi
  18301. fi
  18302. }
  18303. CheckDirectFB()
  18304. {
  18305. # Check whether --enable-video-directfb was given.
  18306. if test "${enable_video_directfb+set}" = set; then :
  18307. enableval=$enable_video_directfb;
  18308. else
  18309. enable_video_directfb=no
  18310. fi
  18311. if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
  18312. video_directfb=no
  18313. DIRECTFB_REQUIRED_VERSION=1.0.0
  18314. for ac_prog in directfb-config
  18315. do
  18316. # Extract the first word of "$ac_prog", so it can be a program name with args.
  18317. set dummy $ac_prog; ac_word=$2
  18318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18319. $as_echo_n "checking for $ac_word... " >&6; }
  18320. if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
  18321. $as_echo_n "(cached) " >&6
  18322. else
  18323. case $DIRECTFBCONFIG in
  18324. [\\/]* | ?:[\\/]*)
  18325. ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
  18326. ;;
  18327. *)
  18328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18329. as_dummy="$prefix/bin:$PATH"
  18330. for as_dir in $as_dummy
  18331. do
  18332. IFS=$as_save_IFS
  18333. test -z "$as_dir" && as_dir=.
  18334. for ac_exec_ext in '' $ac_executable_extensions; do
  18335. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18336. ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
  18337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18338. break 2
  18339. fi
  18340. done
  18341. done
  18342. IFS=$as_save_IFS
  18343. ;;
  18344. esac
  18345. fi
  18346. DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
  18347. if test -n "$DIRECTFBCONFIG"; then
  18348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
  18349. $as_echo "$DIRECTFBCONFIG" >&6; }
  18350. else
  18351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18352. $as_echo "no" >&6; }
  18353. fi
  18354. test -n "$DIRECTFBCONFIG" && break
  18355. done
  18356. test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
  18357. if test x$DIRECTFBCONFIG = xno; then
  18358. # Extract the first word of "pkg-config", so it can be a program name with args.
  18359. set dummy pkg-config; ac_word=$2
  18360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18361. $as_echo_n "checking for $ac_word... " >&6; }
  18362. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18363. $as_echo_n "(cached) " >&6
  18364. else
  18365. case $PKG_CONFIG in
  18366. [\\/]* | ?:[\\/]*)
  18367. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18368. ;;
  18369. *)
  18370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18371. for as_dir in $PATH
  18372. do
  18373. IFS=$as_save_IFS
  18374. test -z "$as_dir" && as_dir=.
  18375. for ac_exec_ext in '' $ac_executable_extensions; do
  18376. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18377. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18379. break 2
  18380. fi
  18381. done
  18382. done
  18383. IFS=$as_save_IFS
  18384. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18385. ;;
  18386. esac
  18387. fi
  18388. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18389. if test -n "$PKG_CONFIG"; then
  18390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18391. $as_echo "$PKG_CONFIG" >&6; }
  18392. else
  18393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18394. $as_echo "no" >&6; }
  18395. fi
  18396. if test x$PKG_CONFIG != xno; then
  18397. if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
  18398. DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
  18399. DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
  18400. DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
  18401. video_directfb=yes
  18402. fi
  18403. fi
  18404. else
  18405. set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
  18406. NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18407. set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
  18408. HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
  18409. if test $HAVE_VERSION -ge $NEED_VERSION; then
  18410. DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
  18411. DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
  18412. DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
  18413. video_directfb=yes
  18414. fi
  18415. fi
  18416. if test x$video_directfb = xyes; then
  18417. # SuSE 11.1 installs directfb-config without directfb-devel
  18418. save_CPPFLAGS="$CPPFLAGS"
  18419. CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
  18420. ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
  18421. if test "x$ac_cv_header_directfb_h" = xyes; then :
  18422. have_directfb_hdr=yes
  18423. else
  18424. have_directfb_hdr=no
  18425. fi
  18426. CPPFLAGS="$save_CPPFLAGS"
  18427. video_directfb=$have_directfb_hdr
  18428. fi
  18429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
  18430. $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
  18431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
  18432. $as_echo "$video_directfb" >&6; }
  18433. if test x$video_directfb = xyes; then
  18434. # Check whether --enable-directfb-shared was given.
  18435. if test "${enable_directfb_shared+set}" = set; then :
  18436. enableval=$enable_directfb_shared;
  18437. else
  18438. enable_directfb_shared=yes
  18439. fi
  18440. $as_echo "#define SDL_VIDEO_DRIVER_DIRECTFB 1" >>confdefs.h
  18441. SOURCES="$SOURCES $srcdir/src/video/directfb/*.c"
  18442. EXTRA_CFLAGS="$EXTRA_CFLAGS $DIRECTFB_CFLAGS"
  18443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directfb dynamic loading support" >&5
  18444. $as_echo_n "checking for directfb dynamic loading support... " >&6; }
  18445. directfb_shared=no
  18446. directfb_lib=`find_lib "libdirectfb*.so.*" "$DIRECTFB_LIBS"`
  18447. # | sed 's/.*\/\(.*\)/\1/; q'`]
  18448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"directfb $directfb_lib\"" >&5
  18449. $as_echo "$as_me: WARNING: \"directfb $directfb_lib\"" >&2;}
  18450. if test x$have_loadso != xyes && \
  18451. test x$enable_directfb_shared = xyes; then
  18452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&5
  18453. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic directfb loading" >&2;}
  18454. fi
  18455. if test x$have_loadso = xyes && \
  18456. test x$enable_directfb_shared = xyes && test x$directfb_lib != x; then
  18457. directfb_shared=yes
  18458. echo "-- $directfb_lib_spec -> $directfb_lib"
  18459. cat >>confdefs.h <<_ACEOF
  18460. #define SDL_VIDEO_DRIVER_DIRECTFB_DYNAMIC "$directfb_lib"
  18461. _ACEOF
  18462. SUMMARY_video="${SUMMARY_video} directfb(dynamic)"
  18463. else
  18464. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $DIRECTFB_LIBS"
  18465. SUMMARY_video="${SUMMARY_video} directfb"
  18466. fi
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
  18468. $as_echo "$directfb_shared" >&6; }
  18469. SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
  18470. have_video=yes
  18471. fi
  18472. fi
  18473. }
  18474. CheckKMSDRM()
  18475. {
  18476. # Check whether --enable-video-kmsdrm was given.
  18477. if test "${enable_video_kmsdrm+set}" = set; then :
  18478. enableval=$enable_video_kmsdrm;
  18479. else
  18480. enable_video_kmsdrm=no
  18481. fi
  18482. if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
  18483. video_kmsdrm=no
  18484. libdrm_avail=no
  18485. libgbm_avail=no
  18486. LIBDRM_REQUIRED_VERSION=2.4.46
  18487. LIBGBM_REQUIRED_VERSION=9.0.0
  18488. # Extract the first word of "pkg-config", so it can be a program name with args.
  18489. set dummy pkg-config; ac_word=$2
  18490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18491. $as_echo_n "checking for $ac_word... " >&6; }
  18492. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  18493. $as_echo_n "(cached) " >&6
  18494. else
  18495. case $PKG_CONFIG in
  18496. [\\/]* | ?:[\\/]*)
  18497. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  18498. ;;
  18499. *)
  18500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18501. for as_dir in $PATH
  18502. do
  18503. IFS=$as_save_IFS
  18504. test -z "$as_dir" && as_dir=.
  18505. for ac_exec_ext in '' $ac_executable_extensions; do
  18506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18507. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  18508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18509. break 2
  18510. fi
  18511. done
  18512. done
  18513. IFS=$as_save_IFS
  18514. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  18515. ;;
  18516. esac
  18517. fi
  18518. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  18519. if test -n "$PKG_CONFIG"; then
  18520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  18521. $as_echo "$PKG_CONFIG" >&6; }
  18522. else
  18523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18524. $as_echo "no" >&6; }
  18525. fi
  18526. if test x$PKG_CONFIG != xno; then
  18527. if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
  18528. if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
  18529. LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
  18530. LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
  18531. LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
  18532. libdrm_avail=yes
  18533. fi
  18534. if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
  18535. LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
  18536. LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
  18537. LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
  18538. libgbm_avail=yes
  18539. fi
  18540. if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
  18541. video_kmsdrm=yes
  18542. fi
  18543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
  18544. $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
  18546. $as_echo "$libdrm_avail" >&6; }
  18547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
  18548. $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
  18549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
  18550. $as_echo "$libgbm_avail" >&6; }
  18551. if test x$video_kmsdrm = xyes; then
  18552. # Check whether --enable-kmsdrm-shared was given.
  18553. if test "${enable_kmsdrm_shared+set}" = set; then :
  18554. enableval=$enable_kmsdrm_shared;
  18555. else
  18556. enable_kmsdrm_shared=yes
  18557. fi
  18558. $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
  18559. SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
  18560. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
  18561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
  18562. $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
  18563. kmsdrm_shared=no
  18564. drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
  18565. gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
  18566. if test x$have_loadso != xyes && \
  18567. test x$enable_kmsdrm_shared = xyes; then
  18568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
  18569. $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
  18570. fi
  18571. if test x$have_loadso = xyes && \
  18572. test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
  18573. kmsdrm_shared=yes
  18574. cat >>confdefs.h <<_ACEOF
  18575. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
  18576. _ACEOF
  18577. cat >>confdefs.h <<_ACEOF
  18578. #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
  18579. _ACEOF
  18580. cat >>confdefs.h <<_ACEOF
  18581. #define HAVE_KMSDRM_SHARED "TRUE"
  18582. _ACEOF
  18583. SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
  18584. else
  18585. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
  18586. SUMMARY_video="${SUMMARY_video} kmsdrm"
  18587. fi
  18588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
  18589. $as_echo "$kmsdrm_shared" >&6; }
  18590. have_video=yes
  18591. fi
  18592. fi
  18593. fi
  18594. fi
  18595. }
  18596. CheckDummyVideo()
  18597. {
  18598. # Check whether --enable-video-dummy was given.
  18599. if test "${enable_video_dummy+set}" = set; then :
  18600. enableval=$enable_video_dummy;
  18601. else
  18602. enable_video_dummy=yes
  18603. fi
  18604. if test x$enable_video_dummy = xyes; then
  18605. $as_echo "#define SDL_VIDEO_DRIVER_DUMMY 1" >>confdefs.h
  18606. SOURCES="$SOURCES $srcdir/src/video/dummy/*.c"
  18607. have_video=yes
  18608. SUMMARY_video="${SUMMARY_video} dummy"
  18609. fi
  18610. }
  18611. CheckQNXVideo()
  18612. {
  18613. if test x$enable_video = xyes; then
  18614. $as_echo "#define SDL_VIDEO_DRIVER_QNX 1" >>confdefs.h
  18615. SOURCES="$SOURCES $srcdir/src/video/qnx/*.c"
  18616. have_video=yes
  18617. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lscreen -lEGL -lGLESv2"
  18618. SUMMARY_video="${SUMMARY_video} qnx"
  18619. fi
  18620. }
  18621. CheckQNXAudio()
  18622. {
  18623. if test x$enable_audio = xyes; then
  18624. $as_echo "#define SDL_AUDIO_DRIVER_QSA 1" >>confdefs.h
  18625. SOURCES="$SOURCES $srcdir/src/audio/qsa/*.c"
  18626. have_audio=yes
  18627. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lasound"
  18628. SUMMARY_audio="${SUMMARY_audio} qsa"
  18629. fi
  18630. }
  18631. # Check whether --enable-video-opengl was given.
  18632. if test "${enable_video_opengl+set}" = set; then :
  18633. enableval=$enable_video_opengl;
  18634. else
  18635. enable_video_opengl=yes
  18636. fi
  18637. CheckOpenGLX11()
  18638. {
  18639. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (GLX) support" >&5
  18641. $as_echo_n "checking for OpenGL (GLX) support... " >&6; }
  18642. video_opengl=no
  18643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18644. /* end confdefs.h. */
  18645. #include <GL/gl.h>
  18646. #include <GL/glx.h>
  18647. int
  18648. main ()
  18649. {
  18650. ;
  18651. return 0;
  18652. }
  18653. _ACEOF
  18654. if ac_fn_c_try_compile "$LINENO"; then :
  18655. video_opengl=yes
  18656. fi
  18657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl" >&5
  18659. $as_echo "$video_opengl" >&6; }
  18660. if test x$video_opengl = xyes; then
  18661. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18662. $as_echo "#define SDL_VIDEO_OPENGL_GLX 1" >>confdefs.h
  18663. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18664. SUMMARY_video="${SUMMARY_video} opengl"
  18665. fi
  18666. fi
  18667. }
  18668. # Check whether --enable-video-opengles was given.
  18669. if test "${enable_video_opengles+set}" = set; then :
  18670. enableval=$enable_video_opengles;
  18671. else
  18672. enable_video_opengles=yes
  18673. fi
  18674. # Check whether --enable-video-opengles1 was given.
  18675. if test "${enable_video_opengles1+set}" = set; then :
  18676. enableval=$enable_video_opengles1;
  18677. else
  18678. enable_video_opengles1=yes
  18679. fi
  18680. # Check whether --enable-video-opengles2 was given.
  18681. if test "${enable_video_opengles2+set}" = set; then :
  18682. enableval=$enable_video_opengles2;
  18683. else
  18684. enable_video_opengles2=yes
  18685. fi
  18686. CheckOpenGLESX11()
  18687. {
  18688. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18690. $as_echo_n "checking for EGL support... " >&6; }
  18691. video_opengl_egl=no
  18692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18693. /* end confdefs.h. */
  18694. #define LINUX
  18695. #define EGL_API_FB
  18696. #include <EGL/egl.h>
  18697. #include <EGL/eglext.h>
  18698. int
  18699. main ()
  18700. {
  18701. ;
  18702. return 0;
  18703. }
  18704. _ACEOF
  18705. if ac_fn_c_try_compile "$LINENO"; then :
  18706. video_opengl_egl=yes
  18707. fi
  18708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18710. $as_echo "$video_opengl_egl" >&6; }
  18711. if test x$video_opengl_egl = xyes; then
  18712. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18713. fi
  18714. if test x$enable_video_opengles1 = xyes; then
  18715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
  18716. $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
  18717. video_opengles_v1=no
  18718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18719. /* end confdefs.h. */
  18720. #include <GLES/gl.h>
  18721. #include <GLES/glext.h>
  18722. int
  18723. main ()
  18724. {
  18725. ;
  18726. return 0;
  18727. }
  18728. _ACEOF
  18729. if ac_fn_c_try_compile "$LINENO"; then :
  18730. video_opengles_v1=yes
  18731. fi
  18732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
  18734. $as_echo "$video_opengles_v1" >&6; }
  18735. if test x$video_opengles_v1 = xyes; then
  18736. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  18737. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  18738. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18739. fi
  18740. fi
  18741. if test x$enable_video_opengles2 = xyes; then
  18742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18743. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18744. video_opengles_v2=no
  18745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18746. /* end confdefs.h. */
  18747. #include <GLES2/gl2.h>
  18748. #include <GLES2/gl2ext.h>
  18749. int
  18750. main ()
  18751. {
  18752. ;
  18753. return 0;
  18754. }
  18755. _ACEOF
  18756. if ac_fn_c_try_compile "$LINENO"; then :
  18757. video_opengles_v2=yes
  18758. fi
  18759. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18761. $as_echo "$video_opengles_v2" >&6; }
  18762. if test x$video_opengles_v2 = xyes; then
  18763. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18764. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18765. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18766. fi
  18767. fi
  18768. fi
  18769. }
  18770. CheckWINDOWSGL()
  18771. {
  18772. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18773. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18774. $as_echo "#define SDL_VIDEO_OPENGL_WGL 1" >>confdefs.h
  18775. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18776. SUMMARY_video="${SUMMARY_video} opengl"
  18777. fi
  18778. }
  18779. CheckWINDOWSGLES()
  18780. {
  18781. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18783. $as_echo_n "checking for EGL support... " >&6; }
  18784. video_opengl_egl=no
  18785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18786. /* end confdefs.h. */
  18787. #include <EGL/egl.h>
  18788. int
  18789. main ()
  18790. {
  18791. ;
  18792. return 0;
  18793. }
  18794. _ACEOF
  18795. if ac_fn_c_try_compile "$LINENO"; then :
  18796. video_opengl_egl=yes
  18797. fi
  18798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18800. $as_echo "$video_opengl_egl" >&6; }
  18801. if test x$video_opengl_egl = xyes; then
  18802. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18803. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18804. SUMMARY_video="${SUMMARY_video} opengl_es1"
  18805. fi
  18806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18807. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18808. video_opengles_v2=no
  18809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18810. /* end confdefs.h. */
  18811. #include <GLES2/gl2.h>
  18812. #include <GLES2/gl2ext.h>
  18813. int
  18814. main ()
  18815. {
  18816. ;
  18817. return 0;
  18818. }
  18819. _ACEOF
  18820. if ac_fn_c_try_compile "$LINENO"; then :
  18821. video_opengles_v2=yes
  18822. fi
  18823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18825. $as_echo "$video_opengles_v2" >&6; }
  18826. if test x$video_opengles_v2 = xyes; then
  18827. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18828. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18829. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18830. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18831. fi
  18832. fi
  18833. }
  18834. CheckHaikuGL()
  18835. {
  18836. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18837. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18838. $as_echo "#define SDL_VIDEO_OPENGL_HAIKU 1" >>confdefs.h
  18839. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18840. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGL"
  18841. SUMMARY_video="${SUMMARY_video} opengl"
  18842. fi
  18843. }
  18844. CheckMacGL()
  18845. {
  18846. if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
  18847. $as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
  18848. $as_echo "#define SDL_VIDEO_OPENGL_CGL 1" >>confdefs.h
  18849. $as_echo "#define SDL_VIDEO_RENDER_OGL 1" >>confdefs.h
  18850. SUMMARY_video="${SUMMARY_video} opengl"
  18851. fi
  18852. }
  18853. CheckMacGLES()
  18854. {
  18855. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18856. video_opengl_egl=yes
  18857. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18858. video_opengles_v2=yes
  18859. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18860. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18861. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18862. fi
  18863. }
  18864. CheckEmscriptenGLES()
  18865. {
  18866. if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
  18867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
  18868. $as_echo_n "checking for EGL support... " >&6; }
  18869. video_opengl_egl=no
  18870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18871. /* end confdefs.h. */
  18872. #include <EGL/egl.h>
  18873. int
  18874. main ()
  18875. {
  18876. ;
  18877. return 0;
  18878. }
  18879. _ACEOF
  18880. if ac_fn_c_try_compile "$LINENO"; then :
  18881. video_opengl_egl=yes
  18882. fi
  18883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
  18885. $as_echo "$video_opengl_egl" >&6; }
  18886. if test x$video_opengl_egl = xyes; then
  18887. $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
  18888. fi
  18889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
  18890. $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
  18891. video_opengles_v2=no
  18892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18893. /* end confdefs.h. */
  18894. #include <GLES2/gl2.h>
  18895. #include <GLES2/gl2ext.h>
  18896. int
  18897. main ()
  18898. {
  18899. ;
  18900. return 0;
  18901. }
  18902. _ACEOF
  18903. if ac_fn_c_try_compile "$LINENO"; then :
  18904. video_opengles_v2=yes
  18905. fi
  18906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
  18908. $as_echo "$video_opengles_v2" >&6; }
  18909. if test x$video_opengles_v2 = xyes; then
  18910. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  18911. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  18912. SUMMARY_video="${SUMMARY_video} opengl_es2"
  18913. fi
  18914. fi
  18915. }
  18916. # Check whether --enable-video-vulkan was given.
  18917. if test "${enable_video_vulkan+set}" = set; then :
  18918. enableval=$enable_video_vulkan;
  18919. else
  18920. enable_video_vulkan=yes
  18921. fi
  18922. CheckVulkan()
  18923. {
  18924. if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
  18925. case "$host" in
  18926. *-*-android*)
  18927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18928. /* end confdefs.h. */
  18929. #if defined(__ARM_ARCH) && __ARM_ARCH < 7
  18930. #error Vulkan doesn't work on this configuration
  18931. #endif
  18932. int
  18933. main ()
  18934. {
  18935. ;
  18936. return 0;
  18937. }
  18938. _ACEOF
  18939. if ac_fn_c_try_compile "$LINENO"; then :
  18940. else
  18941. enable_video_vulkan=no
  18942. fi
  18943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18944. ;;
  18945. *-*-darwin*)
  18946. save_CFLAGS="$CFLAGS"
  18947. CFLAGS="$CFLAGS -x objective-c"
  18948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18949. /* end confdefs.h. */
  18950. #include <Cocoa/Cocoa.h>
  18951. #include <Metal/Metal.h>
  18952. #include <QuartzCore/CAMetalLayer.h>
  18953. #if !TARGET_CPU_X86_64
  18954. #error Vulkan doesn't work on this configuration
  18955. #endif
  18956. int
  18957. main ()
  18958. {
  18959. ;
  18960. return 0;
  18961. }
  18962. _ACEOF
  18963. if ac_fn_c_try_compile "$LINENO"; then :
  18964. else
  18965. enable_video_vulkan=no
  18966. fi
  18967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18968. CFLAGS="$save_CFLAGS"
  18969. ;;
  18970. *)
  18971. ;;
  18972. esac
  18973. if test x$enable_video_vulkan = xno; then
  18974. # For reasons I am totally unable to see, I get an undefined macro error if
  18975. # I put this in the AC_TRY_COMPILE.
  18976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vulkan does not work on this configuration." >&5
  18977. $as_echo "$as_me: WARNING: Vulkan does not work on this configuration." >&2;}
  18978. fi
  18979. fi
  18980. if test x$enable_video_vulkan = xyes; then
  18981. $as_echo "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
  18982. SUMMARY_video="${SUMMARY_video} vulkan"
  18983. fi
  18984. }
  18985. CheckInputEvents()
  18986. {
  18987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
  18988. $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
  18989. use_input_events=no
  18990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18991. /* end confdefs.h. */
  18992. #include <linux/input.h>
  18993. int
  18994. main ()
  18995. {
  18996. #ifndef EVIOCGNAME
  18997. #error EVIOCGNAME() ioctl not available
  18998. #endif
  18999. ;
  19000. return 0;
  19001. }
  19002. _ACEOF
  19003. if ac_fn_c_try_compile "$LINENO"; then :
  19004. use_input_events=yes
  19005. fi
  19006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_events" >&5
  19008. $as_echo "$use_input_events" >&6; }
  19009. if test x$use_input_events = xyes; then
  19010. $as_echo "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
  19011. SUMMARY_input="${SUMMARY_input} linuxev"
  19012. fi
  19013. }
  19014. CheckInputKD()
  19015. {
  19016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
  19017. $as_echo_n "checking for Linux kd.h... " >&6; }
  19018. use_input_kd=no
  19019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19020. /* end confdefs.h. */
  19021. #include <linux/kd.h>
  19022. #include <linux/keyboard.h>
  19023. int
  19024. main ()
  19025. {
  19026. struct kbentry kbe;
  19027. kbe.kb_table = KG_CTRL;
  19028. ioctl(0, KDGKBENT, &kbe);
  19029. ;
  19030. return 0;
  19031. }
  19032. _ACEOF
  19033. if ac_fn_c_try_compile "$LINENO"; then :
  19034. use_input_kd=yes
  19035. fi
  19036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
  19038. $as_echo "$use_input_kd" >&6; }
  19039. if test x$use_input_kd = xyes; then
  19040. $as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
  19041. SUMMARY_input="${SUMMARY_input} linuxkd"
  19042. fi
  19043. }
  19044. CheckLibUDev()
  19045. {
  19046. # Check whether --enable-libudev was given.
  19047. if test "${enable_libudev+set}" = set; then :
  19048. enableval=$enable_libudev;
  19049. else
  19050. enable_libudev=yes
  19051. fi
  19052. if test x$enable_libudev = xyes; then
  19053. ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
  19054. if test "x$ac_cv_header_libudev_h" = xyes; then :
  19055. have_libudev_h_hdr=yes
  19056. else
  19057. have_libudev_h_hdr=no
  19058. fi
  19059. if test x$have_libudev_h_hdr = xyes; then
  19060. $as_echo "#define HAVE_LIBUDEV_H 1" >>confdefs.h
  19061. udev_lib=`find_lib "libudev.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
  19062. if test x$udev_lib != x; then
  19063. echo "-- dynamic udev -> $udev_lib"
  19064. cat >>confdefs.h <<_ACEOF
  19065. #define SDL_UDEV_DYNAMIC "$udev_lib"
  19066. _ACEOF
  19067. fi
  19068. fi
  19069. fi
  19070. }
  19071. CheckDBus()
  19072. {
  19073. # Check whether --enable-dbus was given.
  19074. if test "${enable_dbus+set}" = set; then :
  19075. enableval=$enable_dbus;
  19076. else
  19077. enable_dbus=yes
  19078. fi
  19079. if test x$enable_dbus = xyes; then
  19080. # Extract the first word of "pkg-config", so it can be a program name with args.
  19081. set dummy pkg-config; ac_word=$2
  19082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19083. $as_echo_n "checking for $ac_word... " >&6; }
  19084. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19085. $as_echo_n "(cached) " >&6
  19086. else
  19087. case $PKG_CONFIG in
  19088. [\\/]* | ?:[\\/]*)
  19089. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19090. ;;
  19091. *)
  19092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19093. for as_dir in $PATH
  19094. do
  19095. IFS=$as_save_IFS
  19096. test -z "$as_dir" && as_dir=.
  19097. for ac_exec_ext in '' $ac_executable_extensions; do
  19098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19099. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19101. break 2
  19102. fi
  19103. done
  19104. done
  19105. IFS=$as_save_IFS
  19106. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19107. ;;
  19108. esac
  19109. fi
  19110. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19111. if test -n "$PKG_CONFIG"; then
  19112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19113. $as_echo "$PKG_CONFIG" >&6; }
  19114. else
  19115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19116. $as_echo "no" >&6; }
  19117. fi
  19118. if test x$PKG_CONFIG != xno; then
  19119. DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
  19120. save_CFLAGS="$CFLAGS"
  19121. CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
  19122. ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
  19123. if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
  19124. have_dbus_dbus_h_hdr=yes
  19125. else
  19126. have_dbus_dbus_h_hdr=no
  19127. fi
  19128. CFLAGS="$save_CFLAGS"
  19129. if test x$have_dbus_dbus_h_hdr = xyes; then
  19130. $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
  19131. EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
  19132. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
  19133. fi
  19134. fi
  19135. fi
  19136. }
  19137. CheckIME()
  19138. {
  19139. # Check whether --enable-ime was given.
  19140. if test "${enable_ime+set}" = set; then :
  19141. enableval=$enable_ime;
  19142. else
  19143. enable_ime=yes
  19144. fi
  19145. if test x$enable_ime = xyes; then
  19146. $as_echo "#define SDL_USE_IME 1" >>confdefs.h
  19147. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
  19148. fi
  19149. }
  19150. CheckIBus()
  19151. {
  19152. # Check whether --enable-ibus was given.
  19153. if test "${enable_ibus+set}" = set; then :
  19154. enableval=$enable_ibus;
  19155. else
  19156. enable_ibus=yes
  19157. fi
  19158. if test x$enable_ibus = xyes; then
  19159. # Extract the first word of "pkg-config", so it can be a program name with args.
  19160. set dummy pkg-config; ac_word=$2
  19161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19162. $as_echo_n "checking for $ac_word... " >&6; }
  19163. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19164. $as_echo_n "(cached) " >&6
  19165. else
  19166. case $PKG_CONFIG in
  19167. [\\/]* | ?:[\\/]*)
  19168. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19169. ;;
  19170. *)
  19171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19172. for as_dir in $PATH
  19173. do
  19174. IFS=$as_save_IFS
  19175. test -z "$as_dir" && as_dir=.
  19176. for ac_exec_ext in '' $ac_executable_extensions; do
  19177. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19178. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19179. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19180. break 2
  19181. fi
  19182. done
  19183. done
  19184. IFS=$as_save_IFS
  19185. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19186. ;;
  19187. esac
  19188. fi
  19189. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19190. if test -n "$PKG_CONFIG"; then
  19191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19192. $as_echo "$PKG_CONFIG" >&6; }
  19193. else
  19194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19195. $as_echo "no" >&6; }
  19196. fi
  19197. if test x$PKG_CONFIG != xno; then
  19198. IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
  19199. save_CFLAGS="$CFLAGS"
  19200. CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
  19201. ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
  19202. if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
  19203. have_ibus_ibus_h_hdr=yes
  19204. else
  19205. have_ibus_ibus_h_hdr=no
  19206. fi
  19207. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  19208. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  19209. have_inotify_inotify_h_hdr=yes
  19210. else
  19211. have_inotify_inotify_h_hdr=no
  19212. fi
  19213. CFLAGS="$save_CFLAGS"
  19214. if test x$have_ibus_ibus_h_hdr = xyes; then
  19215. if test x$enable_ime != xyes; then
  19216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
  19217. $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
  19218. have_ibus_ibus_h_hdr=no
  19219. elif test x$enable_dbus != xyes; then
  19220. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
  19221. $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
  19222. have_ibus_ibus_h_hdr=no
  19223. elif test x$have_inotify_inotify_h_hdr != xyes; then
  19224. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
  19225. $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
  19226. have_ibus_ibus_h_hdr=no
  19227. else
  19228. $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
  19229. EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
  19230. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
  19231. fi
  19232. fi
  19233. fi
  19234. fi
  19235. }
  19236. CheckFcitx()
  19237. {
  19238. # Check whether --enable-fcitx was given.
  19239. if test "${enable_fcitx+set}" = set; then :
  19240. enableval=$enable_fcitx;
  19241. else
  19242. enable_fcitx=yes
  19243. fi
  19244. if test x$enable_fcitx = xyes; then
  19245. # Extract the first word of "pkg-config", so it can be a program name with args.
  19246. set dummy pkg-config; ac_word=$2
  19247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19248. $as_echo_n "checking for $ac_word... " >&6; }
  19249. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  19250. $as_echo_n "(cached) " >&6
  19251. else
  19252. case $PKG_CONFIG in
  19253. [\\/]* | ?:[\\/]*)
  19254. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  19255. ;;
  19256. *)
  19257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19258. for as_dir in $PATH
  19259. do
  19260. IFS=$as_save_IFS
  19261. test -z "$as_dir" && as_dir=.
  19262. for ac_exec_ext in '' $ac_executable_extensions; do
  19263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19264. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  19265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19266. break 2
  19267. fi
  19268. done
  19269. done
  19270. IFS=$as_save_IFS
  19271. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  19272. ;;
  19273. esac
  19274. fi
  19275. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  19276. if test -n "$PKG_CONFIG"; then
  19277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  19278. $as_echo "$PKG_CONFIG" >&6; }
  19279. else
  19280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19281. $as_echo "no" >&6; }
  19282. fi
  19283. if test x$PKG_CONFIG != xno; then
  19284. FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
  19285. CFLAGS="$CFLAGS $FCITX_CFLAGS"
  19286. ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
  19287. if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
  19288. have_fcitx_frontend_h_hdr=yes
  19289. else
  19290. have_fcitx_frontend_h_hdr=no
  19291. fi
  19292. CFLAGS="$save_CFLAGS"
  19293. if test x$have_fcitx_frontend_h_hdr = xyes; then
  19294. if test x$enable_ime != xyes; then
  19295. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
  19296. $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
  19297. have_fcitx_frontend_h_hdr=no
  19298. elif test x$enable_dbus != xyes; then
  19299. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
  19300. $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
  19301. have_fcitx_frontend_h_hdr=no
  19302. else
  19303. $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
  19304. EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
  19305. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
  19306. fi
  19307. fi
  19308. fi
  19309. fi
  19310. }
  19311. CheckTslib()
  19312. {
  19313. # Check whether --enable-input-tslib was given.
  19314. if test "${enable_input_tslib+set}" = set; then :
  19315. enableval=$enable_input_tslib;
  19316. else
  19317. enable_input_tslib=yes
  19318. fi
  19319. if test x$enable_input_tslib = xyes; then
  19320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Touchscreen library support" >&5
  19321. $as_echo_n "checking for Touchscreen library support... " >&6; }
  19322. enable_input_tslib=no
  19323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19324. /* end confdefs.h. */
  19325. #include "tslib.h"
  19326. int
  19327. main ()
  19328. {
  19329. ;
  19330. return 0;
  19331. }
  19332. _ACEOF
  19333. if ac_fn_c_try_compile "$LINENO"; then :
  19334. enable_input_tslib=yes
  19335. fi
  19336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_input_tslib" >&5
  19338. $as_echo "$enable_input_tslib" >&6; }
  19339. if test x$enable_input_tslib = xyes; then
  19340. $as_echo "#define SDL_INPUT_TSLIB 1" >>confdefs.h
  19341. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lts"
  19342. SUMMARY_input="${SUMMARY_input} ts"
  19343. fi
  19344. fi
  19345. }
  19346. CheckPTHREAD()
  19347. {
  19348. # Check whether --enable-pthreads was given.
  19349. if test "${enable_pthreads+set}" = set; then :
  19350. enableval=$enable_pthreads;
  19351. else
  19352. enable_pthreads=yes
  19353. fi
  19354. # Check whether --enable-pthread-sem was given.
  19355. if test "${enable_pthread_sem+set}" = set; then :
  19356. enableval=$enable_pthread_sem;
  19357. else
  19358. enable_pthread_sem=yes
  19359. fi
  19360. case "$host" in
  19361. *-*-android*)
  19362. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19363. pthread_lib=""
  19364. ;;
  19365. *-*-linux*|*-*-uclinux*)
  19366. pthread_cflags="-D_REENTRANT"
  19367. pthread_lib="-lpthread"
  19368. ;;
  19369. *-*-bsdi*)
  19370. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19371. pthread_lib=""
  19372. ;;
  19373. *-*-darwin*)
  19374. pthread_cflags="-D_THREAD_SAFE"
  19375. # causes Carbon.p complaints?
  19376. # pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19377. ;;
  19378. *-*-freebsd*|*-*-dragonfly*)
  19379. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19380. pthread_lib="-pthread"
  19381. ;;
  19382. *-*-netbsd*)
  19383. pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
  19384. pthread_lib="-lpthread"
  19385. ;;
  19386. *-*-openbsd*)
  19387. pthread_cflags="-D_REENTRANT"
  19388. pthread_lib="-pthread"
  19389. ;;
  19390. *-*-solaris2.9)
  19391. # From Solaris 9+, posix4's preferred name is rt.
  19392. pthread_cflags="-D_REENTRANT"
  19393. pthread_lib="-lpthread -lrt"
  19394. ;;
  19395. *-*-solaris2.10)
  19396. # Solaris 10+ merged pthread into libc.
  19397. pthread_cflags="-D_REENTRANT"
  19398. pthread_lib="-lrt"
  19399. ;;
  19400. *-*-solaris*)
  19401. # Solaris 11+ merged rt into libc.
  19402. pthread_cflags="-D_REENTRANT"
  19403. pthread_lib=""
  19404. ;;
  19405. *-*-sysv5*)
  19406. pthread_cflags="-D_REENTRANT -Kthread"
  19407. pthread_lib=""
  19408. ;;
  19409. *-*-aix*)
  19410. pthread_cflags="-D_REENTRANT -mthreads"
  19411. pthread_lib="-lpthread"
  19412. ;;
  19413. *-*-hpux11*)
  19414. pthread_cflags="-D_REENTRANT"
  19415. pthread_lib="-L/usr/lib -lpthread"
  19416. ;;
  19417. *-*-haiku*)
  19418. pthread_cflags="-D_REENTRANT"
  19419. pthread_lib=""
  19420. ;;
  19421. *-*-nto*)
  19422. pthread_cflags="-D_REENTRANT"
  19423. pthread_lib=""
  19424. ;;
  19425. *)
  19426. pthread_cflags="-D_REENTRANT"
  19427. pthread_lib="-lpthread"
  19428. ;;
  19429. esac
  19430. if test x$enable_threads = xyes -a x$enable_pthreads = xyes; then
  19431. # Save the original compiler flags and libraries
  19432. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19433. # Add the pthread compiler flags and libraries
  19434. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19435. # Check to see if we have pthread support on this system
  19436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads" >&5
  19437. $as_echo_n "checking for pthreads... " >&6; }
  19438. use_pthreads=no
  19439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19440. /* end confdefs.h. */
  19441. #include <pthread.h>
  19442. int
  19443. main ()
  19444. {
  19445. pthread_attr_t type;
  19446. pthread_attr_init(&type);
  19447. ;
  19448. return 0;
  19449. }
  19450. _ACEOF
  19451. if ac_fn_c_try_link "$LINENO"; then :
  19452. use_pthreads=yes
  19453. fi
  19454. rm -f core conftest.err conftest.$ac_objext \
  19455. conftest$ac_exeext conftest.$ac_ext
  19456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_pthreads" >&5
  19457. $as_echo "$use_pthreads" >&6; }
  19458. # Restore the compiler flags and libraries
  19459. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19460. # Do futher testing if we have pthread support...
  19461. if test x$use_pthreads = xyes; then
  19462. $as_echo "#define SDL_THREAD_PTHREAD 1" >>confdefs.h
  19463. EXTRA_CFLAGS="$EXTRA_CFLAGS $pthread_cflags"
  19464. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $pthread_lib"
  19465. SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags"
  19466. # Save the original compiler flags and libraries
  19467. ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
  19468. # Add the pthread compiler flags and libraries
  19469. CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib"
  19470. # Check to see if recursive mutexes are available
  19471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recursive mutexes" >&5
  19472. $as_echo_n "checking for recursive mutexes... " >&6; }
  19473. has_recursive_mutexes=no
  19474. if test x$has_recursive_mutexes = xno; then
  19475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19476. /* end confdefs.h. */
  19477. #define _GNU_SOURCE 1
  19478. #include <pthread.h>
  19479. int
  19480. main ()
  19481. {
  19482. pthread_mutexattr_t attr;
  19483. pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  19484. ;
  19485. return 0;
  19486. }
  19487. _ACEOF
  19488. if ac_fn_c_try_link "$LINENO"; then :
  19489. has_recursive_mutexes=yes
  19490. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX 1" >>confdefs.h
  19491. fi
  19492. rm -f core conftest.err conftest.$ac_objext \
  19493. conftest$ac_exeext conftest.$ac_ext
  19494. fi
  19495. if test x$has_recursive_mutexes = xno; then
  19496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19497. /* end confdefs.h. */
  19498. #define _GNU_SOURCE 1
  19499. #include <pthread.h>
  19500. int
  19501. main ()
  19502. {
  19503. pthread_mutexattr_t attr;
  19504. pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
  19505. ;
  19506. return 0;
  19507. }
  19508. _ACEOF
  19509. if ac_fn_c_try_link "$LINENO"; then :
  19510. has_recursive_mutexes=yes
  19511. $as_echo "#define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1" >>confdefs.h
  19512. fi
  19513. rm -f core conftest.err conftest.$ac_objext \
  19514. conftest$ac_exeext conftest.$ac_ext
  19515. fi
  19516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_recursive_mutexes" >&5
  19517. $as_echo "$has_recursive_mutexes" >&6; }
  19518. # Check to see if pthread semaphore support is missing
  19519. if test x$enable_pthread_sem = xyes; then
  19520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread semaphores" >&5
  19521. $as_echo_n "checking for pthread semaphores... " >&6; }
  19522. have_pthread_sem=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. ;
  19531. return 0;
  19532. }
  19533. _ACEOF
  19534. if ac_fn_c_try_compile "$LINENO"; then :
  19535. have_pthread_sem=yes
  19536. fi
  19537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_sem" >&5
  19539. $as_echo "$have_pthread_sem" >&6; }
  19540. fi
  19541. if test x$have_pthread_sem = xyes; then
  19542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_timedwait" >&5
  19543. $as_echo_n "checking for sem_timedwait... " >&6; }
  19544. have_sem_timedwait=no
  19545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19546. /* end confdefs.h. */
  19547. #include <pthread.h>
  19548. #include <semaphore.h>
  19549. int
  19550. main ()
  19551. {
  19552. sem_timedwait(NULL, NULL);
  19553. ;
  19554. return 0;
  19555. }
  19556. _ACEOF
  19557. if ac_fn_c_try_link "$LINENO"; then :
  19558. have_sem_timedwait=yes
  19559. $as_echo "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
  19560. fi
  19561. rm -f core conftest.err conftest.$ac_objext \
  19562. conftest$ac_exeext conftest.$ac_ext
  19563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sem_timedwait" >&5
  19564. $as_echo "$have_sem_timedwait" >&6; }
  19565. fi
  19566. ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " #include <pthread.h>
  19567. "
  19568. if test "x$ac_cv_header_pthread_np_h" = xyes; then :
  19569. have_pthread_np_h=yes
  19570. else
  19571. have_pthread_np_h=no
  19572. fi
  19573. if test x$have_pthread_np_h = xyes; then
  19574. $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
  19575. fi
  19576. # Check to see if pthread naming is available
  19577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np" >&5
  19578. $as_echo_n "checking for pthread_setname_np... " >&6; }
  19579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19580. /* end confdefs.h. */
  19581. /* Override any GCC internal prototype to avoid an error.
  19582. Use char because int might match the return type of a GCC
  19583. builtin and then its argument prototype would still apply. */
  19584. #ifdef __cplusplus
  19585. extern "C"
  19586. #endif
  19587. char pthread_setname_np ();
  19588. int
  19589. main ()
  19590. {
  19591. return pthread_setname_np ();
  19592. ;
  19593. return 0;
  19594. }
  19595. _ACEOF
  19596. if ac_fn_c_try_link "$LINENO"; then :
  19597. has_pthread_setname_np=yes
  19598. $as_echo "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h
  19599. else
  19600. has_pthread_setname_np=no
  19601. fi
  19602. rm -f core conftest.err conftest.$ac_objext \
  19603. conftest$ac_exeext conftest.$ac_ext
  19604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_setname_np" >&5
  19605. $as_echo "$has_pthread_setname_np" >&6; }
  19606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np" >&5
  19607. $as_echo_n "checking for pthread_set_name_np... " >&6; }
  19608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19609. /* end confdefs.h. */
  19610. /* Override any GCC internal prototype to avoid an error.
  19611. Use char because int might match the return type of a GCC
  19612. builtin and then its argument prototype would still apply. */
  19613. #ifdef __cplusplus
  19614. extern "C"
  19615. #endif
  19616. char pthread_set_name_np ();
  19617. int
  19618. main ()
  19619. {
  19620. return pthread_set_name_np ();
  19621. ;
  19622. return 0;
  19623. }
  19624. _ACEOF
  19625. if ac_fn_c_try_link "$LINENO"; then :
  19626. has_pthread_set_name_np=yes
  19627. $as_echo "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h
  19628. else
  19629. has_pthread_set_name_np=no
  19630. fi
  19631. rm -f core conftest.err conftest.$ac_objext \
  19632. conftest$ac_exeext conftest.$ac_ext
  19633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_pthread_set_name_np" >&5
  19634. $as_echo "$has_pthread_set_name_np" >&6; }
  19635. # Restore the compiler flags and libraries
  19636. CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs"
  19637. # Basic thread creation functions
  19638. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c"
  19639. # Semaphores
  19640. # We can fake these with mutexes and condition variables if necessary
  19641. if test x$have_pthread_sem = xyes; then
  19642. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syssem.c"
  19643. else
  19644. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syssem.c"
  19645. fi
  19646. # Mutexes
  19647. # We can fake these with semaphores if necessary
  19648. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_sysmutex.c"
  19649. # Condition variables
  19650. # We can fake these with semaphores and mutexes if necessary
  19651. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_syscond.c"
  19652. # Thread local storage
  19653. SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systls.c"
  19654. have_threads=yes
  19655. fi
  19656. fi
  19657. }
  19658. CheckWINDOWS()
  19659. {
  19660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows compiler" >&5
  19661. $as_echo_n "checking Windows compiler... " >&6; }
  19662. have_win32_gcc=no
  19663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19664. /* end confdefs.h. */
  19665. #include <windows.h>
  19666. int
  19667. main ()
  19668. {
  19669. ;
  19670. return 0;
  19671. }
  19672. _ACEOF
  19673. if ac_fn_c_try_compile "$LINENO"; then :
  19674. have_win32_gcc=yes
  19675. fi
  19676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_win32_gcc" >&5
  19678. $as_echo "$have_win32_gcc" >&6; }
  19679. if test x$have_win32_gcc != xyes; then
  19680. as_fn_error $? "
  19681. *** Your compiler ($CC) does not produce Windows executables!
  19682. " "$LINENO" 5
  19683. fi
  19684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Windows CE" >&5
  19685. $as_echo_n "checking Windows CE... " >&6; }
  19686. have_wince=no
  19687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19688. /* end confdefs.h. */
  19689. #if !defined(_WIN32_WCE) && !defined(__MINGW32CE__)
  19690. #error This is not Windows CE
  19691. #endif
  19692. int
  19693. main ()
  19694. {
  19695. ;
  19696. return 0;
  19697. }
  19698. _ACEOF
  19699. if ac_fn_c_try_compile "$LINENO"; then :
  19700. have_wince=yes
  19701. as_fn_error $? "
  19702. *** Sorry, Windows CE is no longer supported.
  19703. " "$LINENO" 5
  19704. fi
  19705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_wince" >&5
  19707. $as_echo "$have_wince" >&6; }
  19708. # This fixes Windows stack alignment with newer GCC
  19709. CheckStackBoundary
  19710. }
  19711. CheckDIRECTX()
  19712. {
  19713. # Check whether --enable-directx was given.
  19714. if test "${enable_directx+set}" = set; then :
  19715. enableval=$enable_directx;
  19716. else
  19717. enable_directx=yes
  19718. fi
  19719. if test x$enable_directx = xyes; then
  19720. ac_fn_c_check_header_mongrel "$LINENO" "d3d9.h" "ac_cv_header_d3d9_h" "$ac_includes_default"
  19721. if test "x$ac_cv_header_d3d9_h" = xyes; then :
  19722. have_d3d=yes
  19723. fi
  19724. ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
  19725. if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
  19726. have_d3d11=yes
  19727. fi
  19728. ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
  19729. if test "x$ac_cv_header_ddraw_h" = xyes; then :
  19730. have_ddraw=yes
  19731. fi
  19732. ac_fn_c_check_header_mongrel "$LINENO" "dsound.h" "ac_cv_header_dsound_h" "$ac_includes_default"
  19733. if test "x$ac_cv_header_dsound_h" = xyes; then :
  19734. have_dsound=yes
  19735. fi
  19736. ac_fn_c_check_header_mongrel "$LINENO" "dinput.h" "ac_cv_header_dinput_h" "$ac_includes_default"
  19737. if test "x$ac_cv_header_dinput_h" = xyes; then :
  19738. have_dinput=yes
  19739. fi
  19740. ac_fn_c_check_header_mongrel "$LINENO" "dxgi.h" "ac_cv_header_dxgi_h" "$ac_includes_default"
  19741. if test "x$ac_cv_header_dxgi_h" = xyes; then :
  19742. have_dxgi=yes
  19743. fi
  19744. ac_fn_c_check_header_mongrel "$LINENO" "xinput.h" "ac_cv_header_xinput_h" "$ac_includes_default"
  19745. if test "x$ac_cv_header_xinput_h" = xyes; then :
  19746. have_xinput=yes
  19747. fi
  19748. ac_fn_c_check_header_mongrel "$LINENO" "mmdeviceapi.h" "ac_cv_header_mmdeviceapi_h" "$ac_includes_default"
  19749. if test "x$ac_cv_header_mmdeviceapi_h" = xyes; then :
  19750. have_wasapi=yes
  19751. fi
  19752. ac_fn_c_check_header_mongrel "$LINENO" "audioclient.h" "ac_cv_header_audioclient_h" "$ac_includes_default"
  19753. if test "x$ac_cv_header_audioclient_h" = xyes; then :
  19754. else
  19755. have_wasapi=no
  19756. fi
  19757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19758. /* end confdefs.h. */
  19759. #include <windows.h>
  19760. #include <xinput.h>
  19761. XINPUT_GAMEPAD_EX x1;
  19762. int
  19763. main ()
  19764. {
  19765. ;
  19766. return 0;
  19767. }
  19768. _ACEOF
  19769. if ac_fn_c_try_compile "$LINENO"; then :
  19770. have_xinput_gamepadex=yes
  19771. fi
  19772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19774. /* end confdefs.h. */
  19775. #include <windows.h>
  19776. #include <xinput.h>
  19777. XINPUT_STATE_EX s1;
  19778. int
  19779. main ()
  19780. {
  19781. ;
  19782. return 0;
  19783. }
  19784. _ACEOF
  19785. if ac_fn_c_try_compile "$LINENO"; then :
  19786. have_xinput_stateex=yes
  19787. fi
  19788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19789. if test x$have_ddraw = xyes; then
  19790. $as_echo "#define HAVE_DDRAW_H 1" >>confdefs.h
  19791. fi
  19792. if test x$have_dinput = xyes; then
  19793. $as_echo "#define HAVE_DINPUT_H 1" >>confdefs.h
  19794. fi
  19795. if test x$have_dsound = xyes; then
  19796. $as_echo "#define HAVE_DSOUND_H 1" >>confdefs.h
  19797. fi
  19798. if test x$have_dxgi = xyes; then
  19799. $as_echo "#define HAVE_DXGI_H 1" >>confdefs.h
  19800. fi
  19801. if test x$have_xinput = xyes; then
  19802. $as_echo "#define HAVE_XINPUT_H 1" >>confdefs.h
  19803. fi
  19804. if test x$have_xinput_gamepadex = xyes; then
  19805. $as_echo "#define HAVE_XINPUT_GAMEPAD_EX 1" >>confdefs.h
  19806. fi
  19807. if test x$have_xinput_stateex = xyes; then
  19808. $as_echo "#define HAVE_XINPUT_STATE_EX 1" >>confdefs.h
  19809. fi
  19810. SUMMARY_video="${SUMMARY_video} directx"
  19811. SUMMARY_audio="${SUMMARY_audio} directx"
  19812. # Check whether --enable-wasapi was given.
  19813. if test "${enable_wasapi+set}" = set; then :
  19814. enableval=$enable_wasapi;
  19815. else
  19816. enable_wasapi=yes
  19817. fi
  19818. # FIXME: latest Cygwin finds dinput headers, but we die on other win32 headers.
  19819. # FIXME: ...so force it off for now.
  19820. case "$host" in
  19821. *-*-cygwin*)
  19822. have_dinput=false
  19823. ;;
  19824. esac
  19825. fi
  19826. }
  19827. CheckDLOPEN()
  19828. {
  19829. # Check whether --enable-sdl-dlopen was given.
  19830. if test "${enable_sdl_dlopen+set}" = set; then :
  19831. enableval=$enable_sdl_dlopen;
  19832. else
  19833. enable_sdl_dlopen=yes
  19834. fi
  19835. if test x$enable_sdl_dlopen = xyes; then
  19836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen" >&5
  19837. $as_echo_n "checking for dlopen... " >&6; }
  19838. have_dlopen=no
  19839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19840. /* end confdefs.h. */
  19841. #include <dlfcn.h>
  19842. int
  19843. main ()
  19844. {
  19845. void *handle = dlopen("", RTLD_NOW);
  19846. const char *loaderror = (char *) dlerror();
  19847. ;
  19848. return 0;
  19849. }
  19850. _ACEOF
  19851. if ac_fn_c_try_compile "$LINENO"; then :
  19852. have_dlopen=yes
  19853. fi
  19854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dlopen" >&5
  19856. $as_echo "$have_dlopen" >&6; }
  19857. if test x$have_dlopen = xyes; then
  19858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
  19859. $as_echo_n "checking for dlopen in -lc... " >&6; }
  19860. if ${ac_cv_lib_c_dlopen+:} false; then :
  19861. $as_echo_n "(cached) " >&6
  19862. else
  19863. ac_check_lib_save_LIBS=$LIBS
  19864. LIBS="-lc $LIBS"
  19865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19866. /* end confdefs.h. */
  19867. /* Override any GCC internal prototype to avoid an error.
  19868. Use char because int might match the return type of a GCC
  19869. builtin and then its argument prototype would still apply. */
  19870. #ifdef __cplusplus
  19871. extern "C"
  19872. #endif
  19873. char dlopen ();
  19874. int
  19875. main ()
  19876. {
  19877. return dlopen ();
  19878. ;
  19879. return 0;
  19880. }
  19881. _ACEOF
  19882. if ac_fn_c_try_link "$LINENO"; then :
  19883. ac_cv_lib_c_dlopen=yes
  19884. else
  19885. ac_cv_lib_c_dlopen=no
  19886. fi
  19887. rm -f core conftest.err conftest.$ac_objext \
  19888. conftest$ac_exeext conftest.$ac_ext
  19889. LIBS=$ac_check_lib_save_LIBS
  19890. fi
  19891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
  19892. $as_echo "$ac_cv_lib_c_dlopen" >&6; }
  19893. if test "x$ac_cv_lib_c_dlopen" = xyes; then :
  19894. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  19895. else
  19896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  19897. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  19898. if ${ac_cv_lib_dl_dlopen+:} false; then :
  19899. $as_echo_n "(cached) " >&6
  19900. else
  19901. ac_check_lib_save_LIBS=$LIBS
  19902. LIBS="-ldl $LIBS"
  19903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19904. /* end confdefs.h. */
  19905. /* Override any GCC internal prototype to avoid an error.
  19906. Use char because int might match the return type of a GCC
  19907. builtin and then its argument prototype would still apply. */
  19908. #ifdef __cplusplus
  19909. extern "C"
  19910. #endif
  19911. char dlopen ();
  19912. int
  19913. main ()
  19914. {
  19915. return dlopen ();
  19916. ;
  19917. return 0;
  19918. }
  19919. _ACEOF
  19920. if ac_fn_c_try_link "$LINENO"; then :
  19921. ac_cv_lib_dl_dlopen=yes
  19922. else
  19923. ac_cv_lib_dl_dlopen=no
  19924. fi
  19925. rm -f core conftest.err conftest.$ac_objext \
  19926. conftest$ac_exeext conftest.$ac_ext
  19927. LIBS=$ac_check_lib_save_LIBS
  19928. fi
  19929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  19930. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  19931. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  19932. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl"
  19933. else
  19934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5
  19935. $as_echo_n "checking for dlopen in -lltdl... " >&6; }
  19936. if ${ac_cv_lib_ltdl_dlopen+:} false; then :
  19937. $as_echo_n "(cached) " >&6
  19938. else
  19939. ac_check_lib_save_LIBS=$LIBS
  19940. LIBS="-lltdl $LIBS"
  19941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19942. /* end confdefs.h. */
  19943. /* Override any GCC internal prototype to avoid an error.
  19944. Use char because int might match the return type of a GCC
  19945. builtin and then its argument prototype would still apply. */
  19946. #ifdef __cplusplus
  19947. extern "C"
  19948. #endif
  19949. char dlopen ();
  19950. int
  19951. main ()
  19952. {
  19953. return dlopen ();
  19954. ;
  19955. return 0;
  19956. }
  19957. _ACEOF
  19958. if ac_fn_c_try_link "$LINENO"; then :
  19959. ac_cv_lib_ltdl_dlopen=yes
  19960. else
  19961. ac_cv_lib_ltdl_dlopen=no
  19962. fi
  19963. rm -f core conftest.err conftest.$ac_objext \
  19964. conftest$ac_exeext conftest.$ac_ext
  19965. LIBS=$ac_check_lib_save_LIBS
  19966. fi
  19967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5
  19968. $as_echo "$ac_cv_lib_ltdl_dlopen" >&6; }
  19969. if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then :
  19970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lltdl"
  19971. fi
  19972. fi
  19973. fi
  19974. $as_echo "#define SDL_LOADSO_DLOPEN 1" >>confdefs.h
  19975. SOURCES="$SOURCES $srcdir/src/loadso/dlopen/*.c"
  19976. have_loadso=yes
  19977. fi
  19978. fi
  19979. }
  19980. CheckUSBHID()
  19981. {
  19982. case "$host" in
  19983. *-*-*bsd*)
  19984. if test x$enable_joystick = xyes; then
  19985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusbhid" >&5
  19986. $as_echo_n "checking for hid_init in -lusbhid... " >&6; }
  19987. if ${ac_cv_lib_usbhid_hid_init+:} false; then :
  19988. $as_echo_n "(cached) " >&6
  19989. else
  19990. ac_check_lib_save_LIBS=$LIBS
  19991. LIBS="-lusbhid $LIBS"
  19992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19993. /* end confdefs.h. */
  19994. /* Override any GCC internal prototype to avoid an error.
  19995. Use char because int might match the return type of a GCC
  19996. builtin and then its argument prototype would still apply. */
  19997. #ifdef __cplusplus
  19998. extern "C"
  19999. #endif
  20000. char hid_init ();
  20001. int
  20002. main ()
  20003. {
  20004. return hid_init ();
  20005. ;
  20006. return 0;
  20007. }
  20008. _ACEOF
  20009. if ac_fn_c_try_link "$LINENO"; then :
  20010. ac_cv_lib_usbhid_hid_init=yes
  20011. else
  20012. ac_cv_lib_usbhid_hid_init=no
  20013. fi
  20014. rm -f core conftest.err conftest.$ac_objext \
  20015. conftest$ac_exeext conftest.$ac_ext
  20016. LIBS=$ac_check_lib_save_LIBS
  20017. fi
  20018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usbhid_hid_init" >&5
  20019. $as_echo "$ac_cv_lib_usbhid_hid_init" >&6; }
  20020. if test "x$ac_cv_lib_usbhid_hid_init" = xyes; then :
  20021. have_libusbhid=yes
  20022. fi
  20023. if test x$have_libusbhid = xyes; then
  20024. ac_fn_c_check_header_mongrel "$LINENO" "usbhid.h" "ac_cv_header_usbhid_h" "$ac_includes_default"
  20025. if test "x$ac_cv_header_usbhid_h" = xyes; then :
  20026. USB_CFLAGS="-DHAVE_USBHID_H"
  20027. fi
  20028. ac_fn_c_check_header_mongrel "$LINENO" "libusbhid.h" "ac_cv_header_libusbhid_h" "$ac_includes_default"
  20029. if test "x$ac_cv_header_libusbhid_h" = xyes; then :
  20030. USB_CFLAGS="-DHAVE_LIBUSBHID_H"
  20031. fi
  20032. USB_LIBS="$USB_LIBS -lusbhid"
  20033. else
  20034. ac_fn_c_check_header_mongrel "$LINENO" "usb.h" "ac_cv_header_usb_h" "$ac_includes_default"
  20035. if test "x$ac_cv_header_usb_h" = xyes; then :
  20036. USB_CFLAGS="-DHAVE_USB_H"
  20037. fi
  20038. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20039. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20040. USB_CFLAGS="-DHAVE_LIBUSB_H"
  20041. fi
  20042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hid_init in -lusb" >&5
  20043. $as_echo_n "checking for hid_init in -lusb... " >&6; }
  20044. if ${ac_cv_lib_usb_hid_init+:} false; then :
  20045. $as_echo_n "(cached) " >&6
  20046. else
  20047. ac_check_lib_save_LIBS=$LIBS
  20048. LIBS="-lusb $LIBS"
  20049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20050. /* end confdefs.h. */
  20051. /* Override any GCC internal prototype to avoid an error.
  20052. Use char because int might match the return type of a GCC
  20053. builtin and then its argument prototype would still apply. */
  20054. #ifdef __cplusplus
  20055. extern "C"
  20056. #endif
  20057. char hid_init ();
  20058. int
  20059. main ()
  20060. {
  20061. return hid_init ();
  20062. ;
  20063. return 0;
  20064. }
  20065. _ACEOF
  20066. if ac_fn_c_try_link "$LINENO"; then :
  20067. ac_cv_lib_usb_hid_init=yes
  20068. else
  20069. ac_cv_lib_usb_hid_init=no
  20070. fi
  20071. rm -f core conftest.err conftest.$ac_objext \
  20072. conftest$ac_exeext conftest.$ac_ext
  20073. LIBS=$ac_check_lib_save_LIBS
  20074. fi
  20075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_hid_init" >&5
  20076. $as_echo "$ac_cv_lib_usb_hid_init" >&6; }
  20077. if test "x$ac_cv_lib_usb_hid_init" = xyes; then :
  20078. USB_LIBS="$USB_LIBS -lusb"
  20079. fi
  20080. fi
  20081. save_CFLAGS="$CFLAGS"
  20082. CFLAGS="$CFLAGS $USB_CFLAGS"
  20083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usbhid" >&5
  20084. $as_echo_n "checking for usbhid... " >&6; }
  20085. have_usbhid=no
  20086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20087. /* end confdefs.h. */
  20088. #include <sys/types.h>
  20089. #if defined(HAVE_USB_H)
  20090. #include <usb.h>
  20091. #endif
  20092. #ifdef __DragonFly__
  20093. # include <bus/usb/usb.h>
  20094. # include <bus/usb/usbhid.h>
  20095. #else
  20096. # include <dev/usb/usb.h>
  20097. # include <dev/usb/usbhid.h>
  20098. #endif
  20099. #if defined(HAVE_USBHID_H)
  20100. #include <usbhid.h>
  20101. #elif defined(HAVE_LIBUSB_H)
  20102. #include <libusb.h>
  20103. #elif defined(HAVE_LIBUSBHID_H)
  20104. #include <libusbhid.h>
  20105. #endif
  20106. int
  20107. main ()
  20108. {
  20109. struct report_desc *repdesc;
  20110. struct usb_ctl_report *repbuf;
  20111. hid_kind_t hidkind;
  20112. ;
  20113. return 0;
  20114. }
  20115. _ACEOF
  20116. if ac_fn_c_try_compile "$LINENO"; then :
  20117. have_usbhid=yes
  20118. fi
  20119. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid" >&5
  20121. $as_echo "$have_usbhid" >&6; }
  20122. if test x$have_usbhid = xyes; then
  20123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucr_data member of usb_ctl_report" >&5
  20124. $as_echo_n "checking for ucr_data member of usb_ctl_report... " >&6; }
  20125. have_usbhid_ucr_data=no
  20126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20127. /* end confdefs.h. */
  20128. #include <sys/types.h>
  20129. #if defined(HAVE_USB_H)
  20130. #include <usb.h>
  20131. #endif
  20132. #ifdef __DragonFly__
  20133. # include <bus/usb/usb.h>
  20134. # include <bus/usb/usbhid.h>
  20135. #else
  20136. # include <dev/usb/usb.h>
  20137. # include <dev/usb/usbhid.h>
  20138. #endif
  20139. #if defined(HAVE_USBHID_H)
  20140. #include <usbhid.h>
  20141. #elif defined(HAVE_LIBUSB_H)
  20142. #include <libusb.h>
  20143. #elif defined(HAVE_LIBUSBHID_H)
  20144. #include <libusbhid.h>
  20145. #endif
  20146. int
  20147. main ()
  20148. {
  20149. struct usb_ctl_report buf;
  20150. if (buf.ucr_data) { }
  20151. ;
  20152. return 0;
  20153. }
  20154. _ACEOF
  20155. if ac_fn_c_try_compile "$LINENO"; then :
  20156. have_usbhid_ucr_data=yes
  20157. fi
  20158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20159. if test x$have_usbhid_ucr_data = xyes; then
  20160. USB_CFLAGS="$USB_CFLAGS -DUSBHID_UCR_DATA"
  20161. fi
  20162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_ucr_data" >&5
  20163. $as_echo "$have_usbhid_ucr_data" >&6; }
  20164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new usbhid API" >&5
  20165. $as_echo_n "checking for new usbhid API... " >&6; }
  20166. have_usbhid_new=no
  20167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20168. /* end confdefs.h. */
  20169. #include <sys/types.h>
  20170. #if defined(HAVE_USB_H)
  20171. #include <usb.h>
  20172. #endif
  20173. #ifdef __DragonFly__
  20174. #include <bus/usb/usb.h>
  20175. #include <bus/usb/usbhid.h>
  20176. #else
  20177. #include <dev/usb/usb.h>
  20178. #include <dev/usb/usbhid.h>
  20179. #endif
  20180. #if defined(HAVE_USBHID_H)
  20181. #include <usbhid.h>
  20182. #elif defined(HAVE_LIBUSB_H)
  20183. #include <libusb.h>
  20184. #elif defined(HAVE_LIBUSBHID_H)
  20185. #include <libusbhid.h>
  20186. #endif
  20187. int
  20188. main ()
  20189. {
  20190. report_desc_t d;
  20191. hid_start_parse(d, 1, 1);
  20192. ;
  20193. return 0;
  20194. }
  20195. _ACEOF
  20196. if ac_fn_c_try_compile "$LINENO"; then :
  20197. have_usbhid_new=yes
  20198. fi
  20199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20200. if test x$have_usbhid_new = xyes; then
  20201. USB_CFLAGS="$USB_CFLAGS -DUSBHID_NEW"
  20202. fi
  20203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_usbhid_new" >&5
  20204. $as_echo "$have_usbhid_new" >&6; }
  20205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct joystick in machine/joystick.h" >&5
  20206. $as_echo_n "checking for struct joystick in machine/joystick.h... " >&6; }
  20207. have_machine_joystick=no
  20208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20209. /* end confdefs.h. */
  20210. #include <machine/joystick.h>
  20211. int
  20212. main ()
  20213. {
  20214. struct joystick t;
  20215. ;
  20216. return 0;
  20217. }
  20218. _ACEOF
  20219. if ac_fn_c_try_compile "$LINENO"; then :
  20220. have_machine_joystick=yes
  20221. fi
  20222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20223. if test x$have_machine_joystick = xyes; then
  20224. $as_echo "#define SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H 1" >>confdefs.h
  20225. fi
  20226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_machine_joystick" >&5
  20227. $as_echo "$have_machine_joystick" >&6; }
  20228. $as_echo "#define SDL_JOYSTICK_USBHID 1" >>confdefs.h
  20229. SOURCES="$SOURCES $srcdir/src/joystick/bsd/*.c"
  20230. EXTRA_CFLAGS="$EXTRA_CFLAGS $USB_CFLAGS"
  20231. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $USB_LIBS"
  20232. have_joystick=yes
  20233. fi
  20234. CFLAGS="$save_CFLAGS"
  20235. fi
  20236. ;;
  20237. esac
  20238. }
  20239. CheckHIDAPI()
  20240. {
  20241. # The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
  20242. # so we'll just use libusb when it's available.
  20243. #
  20244. # Except that libusb requires root permissions to open devices, so that's not generally useful, and we'll disable this by default.
  20245. # Check whether --enable-hidapi was given.
  20246. if test "${enable_hidapi+set}" = set; then :
  20247. enableval=$enable_hidapi;
  20248. else
  20249. enable_hidapi=no
  20250. fi
  20251. if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
  20252. hidapi_support=no
  20253. # Extract the first word of "pkg-config", so it can be a program name with args.
  20254. set dummy pkg-config; ac_word=$2
  20255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20256. $as_echo_n "checking for $ac_word... " >&6; }
  20257. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  20258. $as_echo_n "(cached) " >&6
  20259. else
  20260. case $PKG_CONFIG in
  20261. [\\/]* | ?:[\\/]*)
  20262. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  20263. ;;
  20264. *)
  20265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20266. for as_dir in $PATH
  20267. do
  20268. IFS=$as_save_IFS
  20269. test -z "$as_dir" && as_dir=.
  20270. for ac_exec_ext in '' $ac_executable_extensions; do
  20271. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20272. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20274. break 2
  20275. fi
  20276. done
  20277. done
  20278. IFS=$as_save_IFS
  20279. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  20280. ;;
  20281. esac
  20282. fi
  20283. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  20284. if test -n "$PKG_CONFIG"; then
  20285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  20286. $as_echo "$PKG_CONFIG" >&6; }
  20287. else
  20288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20289. $as_echo "no" >&6; }
  20290. fi
  20291. if test x$PKG_CONFIG != xno; then
  20292. LIBUSB_CFLAGS=`$PKG_CONFIG --cflags libusb-1.0`
  20293. LIBUSB_LDFLAGS=`$PKG_CONFIG --libs libusb-1.0`
  20294. save_CFLAGS="$CFLAGS"
  20295. CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
  20296. ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
  20297. if test "x$ac_cv_header_libusb_h" = xyes; then :
  20298. have_libusb_h=yes
  20299. fi
  20300. CFLAGS="$save_CFLAGS"
  20301. fi
  20302. if test x$have_libusb_h = xyes; then
  20303. hidapi_support=yes
  20304. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20305. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20306. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20307. SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
  20308. EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
  20309. EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LDFLAGS"
  20310. fi
  20311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
  20312. $as_echo_n "checking for hidapi support... " >&6; }
  20313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
  20314. $as_echo "$hidapi_support" >&6; }
  20315. fi
  20316. }
  20317. CheckClockGettime()
  20318. {
  20319. # Check whether --enable-clock_gettime was given.
  20320. if test "${enable_clock_gettime+set}" = set; then :
  20321. enableval=$enable_clock_gettime;
  20322. else
  20323. enable_clock_gettime=yes
  20324. fi
  20325. if test x$enable_clock_gettime = xyes; then
  20326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  20327. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  20328. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  20329. $as_echo_n "(cached) " >&6
  20330. else
  20331. ac_check_lib_save_LIBS=$LIBS
  20332. LIBS="-lrt $LIBS"
  20333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20334. /* end confdefs.h. */
  20335. /* Override any GCC internal prototype to avoid an error.
  20336. Use char because int might match the return type of a GCC
  20337. builtin and then its argument prototype would still apply. */
  20338. #ifdef __cplusplus
  20339. extern "C"
  20340. #endif
  20341. char clock_gettime ();
  20342. int
  20343. main ()
  20344. {
  20345. return clock_gettime ();
  20346. ;
  20347. return 0;
  20348. }
  20349. _ACEOF
  20350. if ac_fn_c_try_link "$LINENO"; then :
  20351. ac_cv_lib_rt_clock_gettime=yes
  20352. else
  20353. ac_cv_lib_rt_clock_gettime=no
  20354. fi
  20355. rm -f core conftest.err conftest.$ac_objext \
  20356. conftest$ac_exeext conftest.$ac_ext
  20357. LIBS=$ac_check_lib_save_LIBS
  20358. fi
  20359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  20360. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  20361. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  20362. have_clock_gettime=yes
  20363. fi
  20364. if test x$have_clock_gettime = xyes; then
  20365. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20366. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
  20367. else
  20368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
  20369. $as_echo_n "checking for clock_gettime in -lc... " >&6; }
  20370. if ${ac_cv_lib_c_clock_gettime+:} false; then :
  20371. $as_echo_n "(cached) " >&6
  20372. else
  20373. ac_check_lib_save_LIBS=$LIBS
  20374. LIBS="-lc $LIBS"
  20375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20376. /* end confdefs.h. */
  20377. /* Override any GCC internal prototype to avoid an error.
  20378. Use char because int might match the return type of a GCC
  20379. builtin and then its argument prototype would still apply. */
  20380. #ifdef __cplusplus
  20381. extern "C"
  20382. #endif
  20383. char clock_gettime ();
  20384. int
  20385. main ()
  20386. {
  20387. return clock_gettime ();
  20388. ;
  20389. return 0;
  20390. }
  20391. _ACEOF
  20392. if ac_fn_c_try_link "$LINENO"; then :
  20393. ac_cv_lib_c_clock_gettime=yes
  20394. else
  20395. ac_cv_lib_c_clock_gettime=no
  20396. fi
  20397. rm -f core conftest.err conftest.$ac_objext \
  20398. conftest$ac_exeext conftest.$ac_ext
  20399. LIBS=$ac_check_lib_save_LIBS
  20400. fi
  20401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
  20402. $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
  20403. if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
  20404. have_clock_gettime=yes
  20405. fi
  20406. if test x$have_clock_gettime = xyes; then
  20407. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  20408. EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
  20409. fi
  20410. fi
  20411. fi
  20412. }
  20413. CheckLinuxVersion()
  20414. {
  20415. ac_fn_c_check_header_mongrel "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
  20416. if test "x$ac_cv_header_linux_version_h" = xyes; then :
  20417. have_linux_version_h=yes
  20418. fi
  20419. if test x$have_linux_version_h = xyes; then
  20420. EXTRA_CFLAGS="$EXTRA_CFLAGS -DHAVE_LINUX_VERSION_H"
  20421. fi
  20422. }
  20423. CheckRPATH()
  20424. {
  20425. # Check whether --enable-rpath was given.
  20426. if test "${enable_rpath+set}" = set; then :
  20427. enableval=$enable_rpath;
  20428. else
  20429. enable_rpath=yes
  20430. fi
  20431. }
  20432. CheckWarnAll
  20433. case "$host" in
  20434. *-*-linux*|*-*-uclinux*|*-*-gnu*|*-*-k*bsd*-gnu|*-*-bsdi*|*-*-freebsd*|*-*-dragonfly*|*-*-netbsd*|*-*-openbsd*|*-*-sysv5*|*-*-solaris*|*-*-hpux*|*-*-aix*|*-*-minix*|*-*-nto*)
  20435. case "$host" in
  20436. *-*-android*)
  20437. # Android
  20438. ARCH=android
  20439. ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
  20440. CFLAGS="$CFLAGS $ANDROID_CFLAGS"
  20441. SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
  20442. EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
  20443. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
  20444. SDLMAIN_SOURCES="$srcdir/src/main/android/*.c"
  20445. if test x$enable_video = xyes; then
  20446. SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
  20447. # FIXME: confdefs? Not AC_DEFINE?
  20448. $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
  20449. SUMMARY_video="${SUMMARY_video} android"
  20450. fi
  20451. ;;
  20452. *-*-linux*) ARCH=linux ;;
  20453. *-*-uclinux*) ARCH=linux ;;
  20454. *-*-kfreebsd*-gnu) ARCH=kfreebsd-gnu ;;
  20455. *-*-knetbsd*-gnu) ARCH=knetbsd-gnu ;;
  20456. *-*-kopenbsd*-gnu) ARCH=kopenbsd-gnu ;;
  20457. *-*-gnu*) ARCH=gnu ;; # must be last of the gnu variants
  20458. *-*-bsdi*) ARCH=bsdi ;;
  20459. *-*-freebsd*) ARCH=freebsd ;;
  20460. *-*-dragonfly*) ARCH=freebsd ;;
  20461. *-*-netbsd*) ARCH=netbsd ;;
  20462. *-*-openbsd*) ARCH=openbsd ;;
  20463. *-*-sysv5*) ARCH=sysv5 ;;
  20464. *-*-solaris*) ARCH=solaris ;;
  20465. *-*-hpux*) ARCH=hpux ;;
  20466. *-*-aix*) ARCH=aix ;;
  20467. *-*-minix*) ARCH=minix ;;
  20468. *-*-nto*) ARCH=nto
  20469. CheckQNXVideo
  20470. ;;
  20471. esac
  20472. CheckVisibilityHidden
  20473. CheckDeclarationAfterStatement
  20474. CheckDummyVideo
  20475. CheckDiskAudio
  20476. CheckDummyAudio
  20477. CheckDLOPEN
  20478. CheckOSS
  20479. CheckALSA
  20480. CheckPulseAudio
  20481. CheckJACK
  20482. CheckARTSC
  20483. CheckESD
  20484. CheckNAS
  20485. CheckSNDIO
  20486. CheckFusionSound
  20487. CheckLibSampleRate
  20488. # Need to check for Raspberry PI first and add platform specific compiler flags, otherwise the test for GLES fails!
  20489. CheckRPI
  20490. CheckX11
  20491. CheckDirectFB
  20492. CheckKMSDRM
  20493. CheckOpenGLX11
  20494. CheckOpenGLESX11
  20495. CheckVulkan
  20496. CheckMir
  20497. CheckWayland
  20498. CheckLibUDev
  20499. CheckDBus
  20500. CheckIME
  20501. CheckIBus
  20502. CheckFcitx
  20503. case $ARCH in
  20504. linux)
  20505. CheckInputEvents
  20506. CheckInputKD
  20507. ;;
  20508. esac
  20509. CheckTslib
  20510. CheckUSBHID
  20511. CheckHIDAPI
  20512. CheckPTHREAD
  20513. CheckClockGettime
  20514. CheckLinuxVersion
  20515. CheckRPATH
  20516. CheckVivanteVideo
  20517. # Set up files for the audio library
  20518. if test x$enable_audio = xyes; then
  20519. case $ARCH in
  20520. sysv5|solaris|hpux)
  20521. $as_echo "#define SDL_AUDIO_DRIVER_SUNAUDIO 1" >>confdefs.h
  20522. SOURCES="$SOURCES $srcdir/src/audio/sun/*.c"
  20523. SUMMARY_audio="${SUMMARY_audio} sun"
  20524. have_audio=yes
  20525. ;;
  20526. netbsd) # Don't use this on OpenBSD, it's busted.
  20527. $as_echo "#define SDL_AUDIO_DRIVER_NETBSD 1" >>confdefs.h
  20528. SOURCES="$SOURCES $srcdir/src/audio/netbsd/*.c"
  20529. SUMMARY_audio="${SUMMARY_audio} netbsd"
  20530. have_audio=yes
  20531. ;;
  20532. aix)
  20533. $as_echo "#define SDL_AUDIO_DRIVER_PAUDIO 1" >>confdefs.h
  20534. SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  20535. SUMMARY_audio="${SUMMARY_audio} paudio"
  20536. have_audio=yes
  20537. ;;
  20538. android)
  20539. $as_echo "#define SDL_AUDIO_DRIVER_ANDROID 1" >>confdefs.h
  20540. SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
  20541. SUMMARY_audio="${SUMMARY_audio} android"
  20542. have_audio=yes
  20543. ;;
  20544. nto)
  20545. CheckQNXAudio
  20546. ;;
  20547. esac
  20548. fi
  20549. # Set up files for the joystick library
  20550. if test x$enable_joystick = xyes; then
  20551. case $ARCH in
  20552. linux)
  20553. $as_echo "#define SDL_JOYSTICK_LINUX 1" >>confdefs.h
  20554. SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  20555. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20556. have_joystick=yes
  20557. ;;
  20558. android)
  20559. $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
  20560. SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  20561. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20562. have_joystick=yes
  20563. ;;
  20564. esac
  20565. fi
  20566. # Set up files for the haptic library
  20567. if test x$enable_haptic = xyes; then
  20568. case $ARCH in
  20569. linux)
  20570. if test x$use_input_events = xyes; then
  20571. $as_echo "#define SDL_HAPTIC_LINUX 1" >>confdefs.h
  20572. SOURCES="$SOURCES $srcdir/src/haptic/linux/*.c"
  20573. have_haptic=yes
  20574. fi
  20575. ;;
  20576. android)
  20577. $as_echo "#define SDL_HAPTIC_ANDROID 1" >>confdefs.h
  20578. SOURCES="$SOURCES $srcdir/src/haptic/android/*.c"
  20579. have_haptic=yes
  20580. ;;
  20581. esac
  20582. fi
  20583. # Set up files for the power library
  20584. if test x$enable_power = xyes; then
  20585. case $ARCH in
  20586. linux)
  20587. $as_echo "#define SDL_POWER_LINUX 1" >>confdefs.h
  20588. SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  20589. have_power=yes
  20590. ;;
  20591. android)
  20592. $as_echo "#define SDL_POWER_ANDROID 1" >>confdefs.h
  20593. SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  20594. have_power=yes
  20595. ;;
  20596. esac
  20597. fi
  20598. # Set up files for the filesystem library
  20599. if test x$enable_filesystem = xyes; then
  20600. case $ARCH in
  20601. android)
  20602. $as_echo "#define SDL_FILESYSTEM_ANDROID 1" >>confdefs.h
  20603. SOURCES="$SOURCES $srcdir/src/filesystem/android/*.c"
  20604. have_filesystem=yes
  20605. ;;
  20606. *)
  20607. $as_echo "#define SDL_FILESYSTEM_UNIX 1" >>confdefs.h
  20608. SOURCES="$SOURCES $srcdir/src/filesystem/unix/*.c"
  20609. have_filesystem=yes
  20610. ;;
  20611. esac
  20612. fi
  20613. # Set up files for the timer library
  20614. if test x$enable_timers = xyes; then
  20615. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20616. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20617. have_timers=yes
  20618. fi
  20619. # Set up files for udev hotplugging support
  20620. if test x$enable_libudev = xyes && test x$have_libudev_h_hdr = xyes; then
  20621. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_udev.c"
  20622. fi
  20623. # Set up files for evdev input
  20624. if test x$use_input_events = xyes; then
  20625. SOURCES="$SOURCES $srcdir/src/core/linux/SDL_evdev*.c"
  20626. fi
  20627. # Set up other core UNIX files
  20628. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20629. ;;
  20630. *-*-cygwin* | *-*-mingw32*)
  20631. ARCH=win32
  20632. if test "$build" != "$host"; then # cross-compiling
  20633. # Default cross-compile location
  20634. ac_default_prefix=/usr/local/cross-tools/$host
  20635. else
  20636. # Look for the location of the tools and install there
  20637. if test "$BUILD_PREFIX" != ""; then
  20638. ac_default_prefix=$BUILD_PREFIX
  20639. fi
  20640. fi
  20641. CheckDeclarationAfterStatement
  20642. CheckDummyVideo
  20643. CheckDiskAudio
  20644. CheckDummyAudio
  20645. CheckWINDOWS
  20646. CheckWINDOWSGL
  20647. CheckWINDOWSGLES
  20648. CheckVulkan
  20649. CheckDIRECTX
  20650. # Set up the core platform files
  20651. SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
  20652. # Set up files for the video library
  20653. if test x$enable_video = xyes; then
  20654. $as_echo "#define SDL_VIDEO_DRIVER_WINDOWS 1" >>confdefs.h
  20655. SOURCES="$SOURCES $srcdir/src/video/windows/*.c"
  20656. have_video=yes
  20657. # Check whether --enable-render-d3d was given.
  20658. if test "${enable_render_d3d+set}" = set; then :
  20659. enableval=$enable_render_d3d;
  20660. else
  20661. enable_render_d3d=yes
  20662. fi
  20663. if test x$enable_render_d3d = xyes -a x$have_d3d = xyes; then
  20664. $as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
  20665. fi
  20666. if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
  20667. $as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
  20668. fi
  20669. fi
  20670. # Set up files for the audio library
  20671. if test x$enable_audio = xyes; then
  20672. $as_echo "#define SDL_AUDIO_DRIVER_WINMM 1" >>confdefs.h
  20673. SOURCES="$SOURCES $srcdir/src/audio/winmm/*.c"
  20674. if test x$have_dsound = xyes; then
  20675. $as_echo "#define SDL_AUDIO_DRIVER_DSOUND 1" >>confdefs.h
  20676. SOURCES="$SOURCES $srcdir/src/audio/directsound/*.c"
  20677. fi
  20678. if test x$have_wasapi = xyes -a x$enable_wasapi = xyes; then
  20679. $as_echo "#define SDL_AUDIO_DRIVER_WASAPI 1" >>confdefs.h
  20680. SUMMARY_audio="${SUMMARY_audio} wasapi"
  20681. SOURCES="$SOURCES $srcdir/src/audio/wasapi/*.c"
  20682. fi
  20683. have_audio=yes
  20684. fi
  20685. # Set up files for the joystick library
  20686. if test x$enable_joystick = xyes; then
  20687. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20688. if test x$have_xinput = xyes; then
  20689. $as_echo "#define SDL_JOYSTICK_XINPUT 1" >>confdefs.h
  20690. fi
  20691. if test x$have_dinput = xyes; then
  20692. $as_echo "#define SDL_JOYSTICK_DINPUT 1" >>confdefs.h
  20693. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  20694. fi
  20695. else
  20696. $as_echo "#define SDL_JOYSTICK_WINMM 1" >>confdefs.h
  20697. fi
  20698. SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  20699. have_joystick=yes
  20700. fi
  20701. if test x$enable_haptic = xyes; then
  20702. if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  20703. if test x$have_xinput = xyes; then
  20704. $as_echo "#define SDL_HAPTIC_XINPUT 1" >>confdefs.h
  20705. fi
  20706. if test x$have_dinput = xyes; then
  20707. $as_echo "#define SDL_HAPTIC_DINPUT 1" >>confdefs.h
  20708. fi
  20709. SOURCES="$SOURCES $srcdir/src/haptic/windows/*.c"
  20710. have_haptic=yes
  20711. fi
  20712. fi
  20713. if test x$enable_power = xyes; then
  20714. $as_echo "#define SDL_POWER_WINDOWS 1" >>confdefs.h
  20715. SOURCES="$SOURCES $srcdir/src/power/windows/SDL_syspower.c"
  20716. have_power=yes
  20717. fi
  20718. if test x$enable_filesystem = xyes; then
  20719. $as_echo "#define SDL_FILESYSTEM_WINDOWS 1" >>confdefs.h
  20720. SOURCES="$SOURCES $srcdir/src/filesystem/windows/SDL_sysfilesystem.c"
  20721. have_filesystem=yes
  20722. fi
  20723. # Set up files for the thread library
  20724. if test x$enable_threads = xyes; then
  20725. $as_echo "#define SDL_THREAD_WINDOWS 1" >>confdefs.h
  20726. SOURCES="$SOURCES $srcdir/src/thread/windows/*.c"
  20727. SOURCES="$SOURCES $srcdir/src/thread/generic/SDL_syscond.c"
  20728. have_threads=yes
  20729. fi
  20730. # Set up files for the timer library
  20731. if test x$enable_timers = xyes; then
  20732. $as_echo "#define SDL_TIMER_WINDOWS 1" >>confdefs.h
  20733. SOURCES="$SOURCES $srcdir/src/timer/windows/*.c"
  20734. have_timers=yes
  20735. fi
  20736. # Set up files for the shared object loading library
  20737. if test x$enable_loadso = xyes; then
  20738. $as_echo "#define SDL_LOADSO_WINDOWS 1" >>confdefs.h
  20739. SOURCES="$SOURCES $srcdir/src/loadso/windows/*.c"
  20740. have_loadso=yes
  20741. fi
  20742. # Set up the system libraries we need
  20743. if test -f /lib/w32api/libuuid.a; then
  20744. LIBUUID=/lib/w32api/libuuid.a
  20745. else
  20746. LIBUUID=-luuid
  20747. fi
  20748. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  20749. # The Windows platform requires special setup
  20750. VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  20751. SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  20752. SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  20753. SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  20754. # Check to see if this is a mingw or cygwin build
  20755. have_mingw32=
  20756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmingw32" >&5
  20757. $as_echo_n "checking for main in -lmingw32... " >&6; }
  20758. if ${ac_cv_lib_mingw32_main+:} false; then :
  20759. $as_echo_n "(cached) " >&6
  20760. else
  20761. ac_check_lib_save_LIBS=$LIBS
  20762. LIBS="-lmingw32 $LIBS"
  20763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20764. /* end confdefs.h. */
  20765. int
  20766. main ()
  20767. {
  20768. return main ();
  20769. ;
  20770. return 0;
  20771. }
  20772. _ACEOF
  20773. if ac_fn_c_try_link "$LINENO"; then :
  20774. ac_cv_lib_mingw32_main=yes
  20775. else
  20776. ac_cv_lib_mingw32_main=no
  20777. fi
  20778. rm -f core conftest.err conftest.$ac_objext \
  20779. conftest$ac_exeext conftest.$ac_ext
  20780. LIBS=$ac_check_lib_save_LIBS
  20781. fi
  20782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mingw32_main" >&5
  20783. $as_echo "$ac_cv_lib_mingw32_main" >&6; }
  20784. if test "x$ac_cv_lib_mingw32_main" = xyes; then :
  20785. have_mingw32=yes
  20786. fi
  20787. if test x$have_mingw32 = xyes; then
  20788. SDL_LIBS="-lmingw32 $SDL_LIBS"
  20789. else
  20790. SDL_LIBS="-lcygwin $SDL_LIBS"
  20791. fi
  20792. ;;
  20793. *-*-beos*)
  20794. as_fn_error $? "
  20795. *** BeOS support has been removed as of SDL 2.0.2.
  20796. " "$LINENO" 5
  20797. ;;
  20798. *-*-haiku*)
  20799. ARCH=haiku
  20800. ac_default_prefix=/boot/system
  20801. CheckDummyVideo
  20802. CheckDiskAudio
  20803. CheckDummyAudio
  20804. CheckDLOPEN
  20805. CheckHaikuVideo
  20806. CheckHaikuGL
  20807. CheckPTHREAD
  20808. # Set up files for the audio library
  20809. if test x$enable_audio = xyes; then
  20810. $as_echo "#define SDL_AUDIO_DRIVER_HAIKU 1" >>confdefs.h
  20811. SOURCES="$SOURCES $srcdir/src/audio/haiku/*.cc"
  20812. SUMMARY_audio="${SUMMARY_audio} haiku"
  20813. have_audio=yes
  20814. fi
  20815. # Set up files for the joystick library
  20816. if test x$enable_joystick = xyes; then
  20817. $as_echo "#define SDL_JOYSTICK_HAIKU 1" >>confdefs.h
  20818. SOURCES="$SOURCES $srcdir/src/joystick/haiku/*.cc"
  20819. have_joystick=yes
  20820. fi
  20821. # Set up files for the timer library
  20822. if test x$enable_timers = xyes; then
  20823. $as_echo "#define SDL_TIMER_HAIKU 1" >>confdefs.h
  20824. SOURCES="$SOURCES $srcdir/src/timer/haiku/*.c"
  20825. have_timers=yes
  20826. fi
  20827. # Set up files for the system power library
  20828. if test x$enable_power = xyes; then
  20829. $as_echo "#define SDL_POWER_HAIKU 1" >>confdefs.h
  20830. SOURCES="$SOURCES $srcdir/src/power/haiku/*.c"
  20831. have_power=yes
  20832. fi
  20833. # Set up files for the system filesystem library
  20834. if test x$enable_filesystem = xyes; then
  20835. $as_echo "#define SDL_FILESYSTEM_HAIKU 1" >>confdefs.h
  20836. SOURCES="$SOURCES $srcdir/src/filesystem/haiku/*.cc"
  20837. have_filesystem=yes
  20838. fi
  20839. # The Haiku platform requires special setup.
  20840. SOURCES="$srcdir/src/main/haiku/*.cc $SOURCES"
  20841. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
  20842. # Haiku's x86 spins use libstdc++.r4.so (for binary compat?), but
  20843. # other spins, like x86-64, use a more standard "libstdc++.so.*"
  20844. as_ac_File=`$as_echo "ac_cv_file_"/boot/system/lib/libstdc++.r4.so"" | $as_tr_sh`
  20845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/boot/system/lib/libstdc++.r4.so\"" >&5
  20846. $as_echo_n "checking for \"/boot/system/lib/libstdc++.r4.so\"... " >&6; }
  20847. if eval \${$as_ac_File+:} false; then :
  20848. $as_echo_n "(cached) " >&6
  20849. else
  20850. test "$cross_compiling" = yes &&
  20851. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  20852. if test -r ""/boot/system/lib/libstdc++.r4.so""; then
  20853. eval "$as_ac_File=yes"
  20854. else
  20855. eval "$as_ac_File=no"
  20856. fi
  20857. fi
  20858. eval ac_res=\$$as_ac_File
  20859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20860. $as_echo "$ac_res" >&6; }
  20861. if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
  20862. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++.r4"
  20863. else
  20864. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lstdc++"
  20865. fi
  20866. ;;
  20867. arm*-apple-darwin*|*-ios-*)
  20868. ARCH=ios
  20869. CheckVisibilityHidden
  20870. CheckDeclarationAfterStatement
  20871. CheckDummyVideo
  20872. CheckDiskAudio
  20873. CheckDummyAudio
  20874. CheckDLOPEN
  20875. CheckMETAL
  20876. CheckVulkan
  20877. CheckPTHREAD
  20878. # Set up files for the audio library
  20879. if test x$enable_audio = xyes; then
  20880. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20881. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20882. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20883. have_audio=yes
  20884. fi
  20885. # Set up files for the joystick library
  20886. if test x$enable_joystick = xyes; then
  20887. $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
  20888. SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
  20889. SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
  20890. have_joystick=yes
  20891. fi
  20892. # Set up files for the haptic library
  20893. #if test x$enable_haptic = xyes; then
  20894. # SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20895. # have_haptic=yes
  20896. # EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20897. #fi
  20898. # Set up files for the power library
  20899. if test x$enable_power = xyes; then
  20900. $as_echo "#define SDL_POWER_UIKIT 1" >>confdefs.h
  20901. SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
  20902. have_power=yes
  20903. fi
  20904. # Set up files for the filesystem library
  20905. if test x$enable_filesystem = xyes; then
  20906. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  20907. have_filesystem=yes
  20908. fi
  20909. # Set up additional files for the file library
  20910. if test x$enable_file = xyes; then
  20911. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  20912. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  20913. fi
  20914. # Set up files for the timer library
  20915. if test x$enable_timers = xyes; then
  20916. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  20917. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  20918. have_timers=yes
  20919. fi
  20920. # Set up other core UNIX files
  20921. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  20922. # The iOS platform requires special setup.
  20923. $as_echo "#define SDL_VIDEO_DRIVER_UIKIT 1" >>confdefs.h
  20924. $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
  20925. $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
  20926. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
  20927. $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
  20928. SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
  20929. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lm -liconv -lobjc"
  20930. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AVFoundation"
  20931. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,AudioToolbox"
  20932. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio"
  20933. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreGraphics"
  20934. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreMotion"
  20935. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
  20936. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
  20937. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
  20938. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
  20939. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
  20940. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  20941. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Metal"
  20942. fi
  20943. ;;
  20944. *-*-darwin* )
  20945. # This could be either full "Mac OS X", or plain "Darwin" which is
  20946. # just the OS X kernel sans upper layers like Carbon and Cocoa.
  20947. # Next line is broken, and a few files below require Mac OS X (full)
  20948. ARCH=macosx
  20949. # Mac OS X builds with both the Carbon and OSX APIs at the moment
  20950. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_CARBON"
  20951. EXTRA_CFLAGS="$EXTRA_CFLAGS -DTARGET_API_MAC_OSX"
  20952. CheckVisibilityHidden
  20953. CheckDeclarationAfterStatement
  20954. CheckDummyVideo
  20955. CheckDiskAudio
  20956. CheckDummyAudio
  20957. CheckDLOPEN
  20958. CheckCOCOA
  20959. CheckMETAL
  20960. CheckX11
  20961. CheckMacGL
  20962. CheckMacGLES
  20963. CheckOpenGLX11
  20964. CheckVulkan
  20965. CheckPTHREAD
  20966. # Set up files for the audio library
  20967. if test x$enable_audio = xyes; then
  20968. $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
  20969. SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.m"
  20970. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox"
  20971. SUMMARY_audio="${SUMMARY_audio} coreaudio"
  20972. have_audio=yes
  20973. fi
  20974. # Set up files for the joystick library
  20975. if test x$enable_joystick = xyes; then
  20976. $as_echo "#define SDL_JOYSTICK_IOKIT 1" >>confdefs.h
  20977. $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
  20978. SOURCES="$SOURCES $srcdir/src/joystick/darwin/*.c"
  20979. SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
  20980. SOURCES="$SOURCES $srcdir/src/hidapi/mac/hid.c"
  20981. EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  20982. have_joystick=yes
  20983. fi
  20984. # Set up files for the haptic library
  20985. if test x$enable_haptic = xyes; then
  20986. $as_echo "#define SDL_HAPTIC_IOKIT 1" >>confdefs.h
  20987. SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
  20988. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
  20989. have_haptic=yes
  20990. fi
  20991. # Set up files for the power library
  20992. if test x$enable_power = xyes; then
  20993. $as_echo "#define SDL_POWER_MACOSX 1" >>confdefs.h
  20994. SOURCES="$SOURCES $srcdir/src/power/macosx/*.c"
  20995. have_power=yes
  20996. fi
  20997. # Set up files for the filesystem library
  20998. if test x$enable_filesystem = xyes; then
  20999. $as_echo "#define SDL_FILESYSTEM_COCOA 1" >>confdefs.h
  21000. SOURCES="$SOURCES $srcdir/src/filesystem/cocoa/*.m"
  21001. have_filesystem=yes
  21002. fi
  21003. # Set up files for the timer library
  21004. if test x$enable_timers = xyes; then
  21005. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21006. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21007. have_timers=yes
  21008. fi
  21009. # Set up additional files for the file library
  21010. if test x$enable_file = xyes; then
  21011. SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
  21012. fi
  21013. # Set up other core UNIX files
  21014. SOURCES="$SOURCES $srcdir/src/core/unix/*.c"
  21015. # The Mac OS X platform requires special setup.
  21016. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
  21017. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
  21018. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
  21019. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
  21020. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
  21021. if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
  21022. EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
  21023. fi
  21024. ;;
  21025. *-nacl|*-pnacl)
  21026. ARCH=nacl
  21027. CheckNativeClient
  21028. CheckDummyAudio
  21029. CheckDummyVideo
  21030. CheckInputEvents
  21031. CheckPTHREAD
  21032. # Set up files for the timer library
  21033. if test x$enable_timers = xyes; then
  21034. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21035. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21036. have_timers=yes
  21037. fi
  21038. if test x$enable_filesystem = xyes; then
  21039. $as_echo "#define SDL_FILESYSTEM_NACL 1" >>confdefs.h
  21040. SOURCES="$SOURCES $srcdir/src/filesystem/nacl/*.c"
  21041. have_filesystem=yes
  21042. fi
  21043. ;;
  21044. *-*-emscripten* )
  21045. if test x$enable_video = xyes; then
  21046. $as_echo "#define SDL_VIDEO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21047. SOURCES="$SOURCES $srcdir/src/video/emscripten/*.c"
  21048. have_video=yes
  21049. SUMMARY_video="${SUMMARY_video} emscripten"
  21050. fi
  21051. if test x$enable_audio = xyes; then
  21052. $as_echo "#define SDL_AUDIO_DRIVER_EMSCRIPTEN 1" >>confdefs.h
  21053. SOURCES="$SOURCES $srcdir/src/audio/emscripten/*.c"
  21054. have_audio=yes
  21055. SUMMARY_audio="${SUMMARY_audio} emscripten"
  21056. fi
  21057. CheckVisibilityHidden
  21058. CheckDeclarationAfterStatement
  21059. CheckDummyVideo
  21060. CheckDiskAudio
  21061. CheckDummyAudio
  21062. CheckDLOPEN
  21063. CheckClockGettime
  21064. CheckEmscriptenGLES
  21065. # Set up files for the power library
  21066. if test x$enable_power = xyes; then
  21067. $as_echo "#define SDL_POWER_EMSCRIPTEN 1" >>confdefs.h
  21068. SOURCES="$SOURCES $srcdir/src/power/emscripten/*.c"
  21069. have_power=yes
  21070. fi
  21071. # Set up files for the power library
  21072. if test x$enable_joystick = xyes; then
  21073. $as_echo "#define SDL_JOYSTICK_EMSCRIPTEN 1" >>confdefs.h
  21074. SOURCES="$SOURCES $srcdir/src/joystick/emscripten/*.c"
  21075. have_joystick=yes
  21076. fi
  21077. # Set up files for the filesystem library
  21078. if test x$enable_filesystem = xyes; then
  21079. $as_echo "#define SDL_FILESYSTEM_EMSCRIPTEN 1" >>confdefs.h
  21080. SOURCES="$SOURCES $srcdir/src/filesystem/emscripten/*.c"
  21081. have_filesystem=yes
  21082. fi
  21083. # Set up files for the timer library
  21084. if test x$enable_timers = xyes; then
  21085. $as_echo "#define SDL_TIMER_UNIX 1" >>confdefs.h
  21086. SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
  21087. have_timers=yes
  21088. fi
  21089. ;;
  21090. *)
  21091. as_fn_error $? "
  21092. *** Unsupported host: Please add to configure.in
  21093. " "$LINENO" 5
  21094. ;;
  21095. esac
  21096. # Verify that we have all the platform specific files we need
  21097. if test x$have_joystick != xyes; then
  21098. if test x$enable_joystick = xyes; then
  21099. $as_echo "#define SDL_JOYSTICK_DISABLED 1" >>confdefs.h
  21100. fi
  21101. SOURCES="$SOURCES $srcdir/src/joystick/dummy/*.c"
  21102. fi
  21103. if test x$have_haptic != xyes; then
  21104. if test x$enable_haptic = xyes; then
  21105. $as_echo "#define SDL_HAPTIC_DISABLED 1" >>confdefs.h
  21106. fi
  21107. SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
  21108. fi
  21109. if test x$have_threads != xyes; then
  21110. if test x$enable_threads = xyes; then
  21111. $as_echo "#define SDL_THREADS_DISABLED 1" >>confdefs.h
  21112. fi
  21113. SOURCES="$SOURCES $srcdir/src/thread/generic/*.c"
  21114. fi
  21115. if test x$have_timers != xyes; then
  21116. if test x$enable_timers = xyes; then
  21117. $as_echo "#define SDL_TIMERS_DISABLED 1" >>confdefs.h
  21118. fi
  21119. SOURCES="$SOURCES $srcdir/src/timer/dummy/*.c"
  21120. fi
  21121. if test x$have_filesystem != xyes; then
  21122. if test x$enable_filesystem = xyes; then
  21123. $as_echo "#define SDL_FILESYSTEM_DISABLED 1" >>confdefs.h
  21124. fi
  21125. SOURCES="$SOURCES $srcdir/src/filesystem/dummy/*.c"
  21126. fi
  21127. if test x$have_loadso != xyes; then
  21128. if test x$enable_loadso = xyes; then
  21129. $as_echo "#define SDL_LOADSO_DISABLED 1" >>confdefs.h
  21130. fi
  21131. SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c"
  21132. fi
  21133. if test x$SDLMAIN_SOURCES = x; then
  21134. SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c"
  21135. fi
  21136. SDLTEST_SOURCES="$srcdir/src/test/*.c"
  21137. if test x$video_wayland = xyes; then
  21138. WAYLAND_PROTOCOLS=`cd $srcdir/wayland-protocols ; for p in *.xml ; do echo -n "\$p" |sed 's,\\.xml\$, ,g' ; done`
  21139. WAYLAND_PROTOCOLS_SOURCES=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-protocol.c " ; done`
  21140. WAYLAND_PROTOCOLS_HEADERS=`for p in $WAYLAND_PROTOCOLS ; do echo -n "\\$(gen)/\$p-client-protocol.h " ; done`
  21141. GEN_SOURCES="$GEN_SOURCES $WAYLAND_PROTOCOLS_SOURCES"
  21142. GEN_HEADERS="$GEN_HEADERS $WAYLAND_PROTOCOLS_HEADERS"
  21143. WAYLAND_PROTOCOLS_DEPENDS=`for p in $WAYLAND_PROTOCOLS ; do\
  21144. echo ;\
  21145. echo "\\$(gen)/\$p-client-protocol.h: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21146. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21147. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) client-header \\$< \\$@" ;\
  21148. echo ;\
  21149. echo "\\$(gen)/\$p-protocol.c: \\$(srcdir)/wayland-protocols/\$p.xml" ;\
  21150. echo " @\\$(SHELL) \\$(auxdir)/mkinstalldirs \\$(gen)" ;\
  21151. echo " \\$(RUN_CMD_GEN)\\$(WAYLAND_SCANNER) code \\$< \\$@" ;\
  21152. echo ;\
  21153. echo "\\$(objects)/\$p-protocol.lo: \\$(gen)/\$p-protocol.c \\$(gen)/\$p-client-protocol.h" ;\
  21154. echo " \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@" ;\
  21155. done ;\
  21156. echo ;\
  21157. 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`
  21158. fi
  21159. OBJECTS=`echo $SOURCES`
  21160. DEPENDS=`echo $SOURCES | tr ' ' '\n'`
  21161. for EXT in asm cc m c S; do
  21162. OBJECTS=`echo "$OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.'$EXT',$(objects)/\1.lo,g'`
  21163. DEPENDS=`echo "$DEPENDS" | sed "s,^\\([^ ]*\\)/\\([^ ]*\\)\\.$EXT\\$,\\\\
  21164. \\$(objects)/\\2.lo: \\1/\\2.$EXT\\\\
  21165. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21166. done
  21167. GEN_OBJECTS=`echo "$GEN_SOURCES" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21168. VERSION_OBJECTS=`echo $VERSION_SOURCES`
  21169. VERSION_DEPENDS=`echo $VERSION_SOURCES`
  21170. VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
  21171. VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
  21172. \\$(objects)/\\2.o: \\1/\\2.rc\\\\
  21173. \\$(WINDRES) \\$< \\$@,g"`
  21174. SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
  21175. SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
  21176. SDLMAIN_OBJECTS=`echo "$SDLMAIN_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21177. SDLMAIN_DEPENDS=`echo "$SDLMAIN_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21178. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21179. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21180. SDLTEST_OBJECTS=`echo $SDLTEST_SOURCES`
  21181. SDLTEST_DEPENDS=`echo $SDLTEST_SOURCES`
  21182. SDLTEST_OBJECTS=`echo "$SDLTEST_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.c,$(objects)/\1.lo,g'`
  21183. SDLTEST_DEPENDS=`echo "$SDLTEST_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.c,\\\\
  21184. \\$(objects)/\\2.lo: \\1/\\2.c\\\\
  21185. \\$(RUN_CMD_CC)\\$(LIBTOOL) --tag=CC --mode=compile \\$(CC) \\$(CFLAGS) \\$(EXTRA_CFLAGS) $DEPENDENCY_TRACKING_OPTIONS -c \\$< -o \\$@,g"`
  21186. # Set runtime shared library paths as needed
  21187. if test "x$enable_rpath" = "xyes"; then
  21188. if test $ARCH = bsdi -o $ARCH = freebsd -o $ARCH = linux -o $ARCH = netbsd; then
  21189. SDL_RLD_FLAGS="-Wl,-rpath,\${libdir}"
  21190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker option --enable-new-dtags" >&5
  21191. $as_echo_n "checking for linker option --enable-new-dtags... " >&6; }
  21192. have_enable_new_dtags=no
  21193. save_LDFLAGS="$LDFLAGS"
  21194. LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
  21195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21196. /* end confdefs.h. */
  21197. int
  21198. main ()
  21199. {
  21200. ;
  21201. return 0;
  21202. }
  21203. _ACEOF
  21204. if ac_fn_c_try_link "$LINENO"; then :
  21205. have_enable_new_dtags=yes
  21206. SDL_RLD_FLAGS="$SDL_RLD_FLAGS -Wl,--enable-new-dtags"
  21207. fi
  21208. rm -f core conftest.err conftest.$ac_objext \
  21209. conftest$ac_exeext conftest.$ac_ext
  21210. LDFLAGS="$save_LDFLAGS"
  21211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_enable_new_dtags" >&5
  21212. $as_echo "$have_enable_new_dtags" >&6; }
  21213. fi
  21214. if test $ARCH = solaris; then
  21215. SDL_RLD_FLAGS="-R\${libdir}"
  21216. fi
  21217. else
  21218. SDL_RLD_FLAGS=""
  21219. fi
  21220. SDL_STATIC_LIBS="$SDL_LIBS $EXTRA_LDFLAGS"
  21221. if test x$enable_shared = xyes; then
  21222. ENABLE_SHARED_TRUE=
  21223. ENABLE_SHARED_FALSE="#"
  21224. else
  21225. ENABLE_SHARED_TRUE="#"
  21226. ENABLE_SHARED_FALSE=
  21227. fi
  21228. if test x$enable_static = xyes; then
  21229. ENABLE_STATIC_TRUE=
  21230. ENABLE_STATIC_FALSE="#"
  21231. else
  21232. ENABLE_STATIC_TRUE="#"
  21233. ENABLE_STATIC_FALSE=
  21234. fi
  21235. cat >Makefile.rules <<__EOF__
  21236. # Build rules for objects
  21237. -include \$(OBJECTS:.lo=.d)
  21238. # Special dependency for SDL.c, since it depends on SDL_revision.h
  21239. $srcdir/src/SDL.c: update-revision
  21240. $DEPENDS
  21241. $VERSION_DEPENDS
  21242. $SDLMAIN_DEPENDS
  21243. $SDLTEST_DEPENDS
  21244. $WAYLAND_PROTOCOLS_DEPENDS
  21245. __EOF__
  21246. ac_config_files="$ac_config_files Makefile:Makefile.in:Makefile.rules sdl2-config sdl2-config.cmake SDL2.spec sdl2.pc"
  21247. ac_config_commands="$ac_config_commands sdl2_config"
  21248. SUMMARY="SDL2 Configure Summary:\n"
  21249. if test x$enable_shared = xyes; then
  21250. SUMMARY="${SUMMARY}Building Shared Libraries\n"
  21251. fi
  21252. if test x$enable_static = xyes; then
  21253. SUMMARY="${SUMMARY}Building Static Libraries\n"
  21254. fi
  21255. SUMMARY="${SUMMARY}Enabled modules :${SUMMARY_modules}\n"
  21256. SUMMARY="${SUMMARY}Assembly Math :${SUMMARY_math}\n"
  21257. SUMMARY="${SUMMARY}Audio drivers :${SUMMARY_audio}\n"
  21258. SUMMARY="${SUMMARY}Video drivers :${SUMMARY_video}\n"
  21259. if test x$have_x = xyes; then
  21260. SUMMARY="${SUMMARY}X11 libraries :${SUMMARY_video_x11}\n"
  21261. fi
  21262. SUMMARY="${SUMMARY}Input drivers :${SUMMARY_input}\n"
  21263. if test x$have_samplerate_h_hdr = xyes; then
  21264. SUMMARY="${SUMMARY}Using libsamplerate : YES\n"
  21265. else
  21266. SUMMARY="${SUMMARY}Using libsamplerate : NO\n"
  21267. fi
  21268. if test x$have_libudev_h_hdr = xyes; then
  21269. SUMMARY="${SUMMARY}Using libudev : YES\n"
  21270. else
  21271. SUMMARY="${SUMMARY}Using libudev : NO\n"
  21272. fi
  21273. if test x$have_dbus_dbus_h_hdr = xyes; then
  21274. SUMMARY="${SUMMARY}Using dbus : YES\n"
  21275. else
  21276. SUMMARY="${SUMMARY}Using dbus : NO\n"
  21277. fi
  21278. if test x$enable_ime = xyes; then
  21279. SUMMARY="${SUMMARY}Using ime : YES\n"
  21280. else
  21281. SUMMARY="${SUMMARY}Using ime : NO\n"
  21282. fi
  21283. if test x$have_ibus_ibus_h_hdr = xyes; then
  21284. SUMMARY="${SUMMARY}Using ibus : YES\n"
  21285. else
  21286. SUMMARY="${SUMMARY}Using ibus : NO\n"
  21287. fi
  21288. if test x$have_fcitx_frontend_h_hdr = xyes; then
  21289. SUMMARY="${SUMMARY}Using fcitx : YES\n"
  21290. else
  21291. SUMMARY="${SUMMARY}Using fcitx : NO\n"
  21292. fi
  21293. ac_config_commands="$ac_config_commands summary"
  21294. cat >confcache <<\_ACEOF
  21295. # This file is a shell script that caches the results of configure
  21296. # tests run on this system so they can be shared between configure
  21297. # scripts and configure runs, see configure's option --config-cache.
  21298. # It is not useful on other systems. If it contains results you don't
  21299. # want to keep, you may remove or edit it.
  21300. #
  21301. # config.status only pays attention to the cache file if you give it
  21302. # the --recheck option to rerun configure.
  21303. #
  21304. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  21305. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  21306. # following values.
  21307. _ACEOF
  21308. # The following way of writing the cache mishandles newlines in values,
  21309. # but we know of no workaround that is simple, portable, and efficient.
  21310. # So, we kill variables containing newlines.
  21311. # Ultrix sh set writes to stderr and can't be redirected directly,
  21312. # and sets the high bit in the cache file unless we assign to the vars.
  21313. (
  21314. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  21315. eval ac_val=\$$ac_var
  21316. case $ac_val in #(
  21317. *${as_nl}*)
  21318. case $ac_var in #(
  21319. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  21320. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  21321. esac
  21322. case $ac_var in #(
  21323. _ | IFS | as_nl) ;; #(
  21324. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  21325. *) { eval $ac_var=; unset $ac_var;} ;;
  21326. esac ;;
  21327. esac
  21328. done
  21329. (set) 2>&1 |
  21330. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  21331. *${as_nl}ac_space=\ *)
  21332. # `set' does not quote correctly, so add quotes: double-quote
  21333. # substitution turns \\\\ into \\, and sed turns \\ into \.
  21334. sed -n \
  21335. "s/'/'\\\\''/g;
  21336. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  21337. ;; #(
  21338. *)
  21339. # `set' quotes correctly as required by POSIX, so do not add quotes.
  21340. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  21341. ;;
  21342. esac |
  21343. sort
  21344. ) |
  21345. sed '
  21346. /^ac_cv_env_/b end
  21347. t clear
  21348. :clear
  21349. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  21350. t end
  21351. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  21352. :end' >>confcache
  21353. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  21354. if test -w "$cache_file"; then
  21355. if test "x$cache_file" != "x/dev/null"; then
  21356. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  21357. $as_echo "$as_me: updating cache $cache_file" >&6;}
  21358. if test ! -f "$cache_file" || test -h "$cache_file"; then
  21359. cat confcache >"$cache_file"
  21360. else
  21361. case $cache_file in #(
  21362. */* | ?:*)
  21363. mv -f confcache "$cache_file"$$ &&
  21364. mv -f "$cache_file"$$ "$cache_file" ;; #(
  21365. *)
  21366. mv -f confcache "$cache_file" ;;
  21367. esac
  21368. fi
  21369. fi
  21370. else
  21371. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  21372. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  21373. fi
  21374. fi
  21375. rm -f confcache
  21376. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21377. # Let make expand exec_prefix.
  21378. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21379. DEFS=-DHAVE_CONFIG_H
  21380. ac_libobjs=
  21381. ac_ltlibobjs=
  21382. U=
  21383. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  21384. # 1. Remove the extension, and $U if already installed.
  21385. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  21386. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  21387. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  21388. # will be set to the directory where LIBOBJS objects are built.
  21389. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  21390. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  21391. done
  21392. LIBOBJS=$ac_libobjs
  21393. LTLIBOBJS=$ac_ltlibobjs
  21394. : "${CONFIG_STATUS=./config.status}"
  21395. ac_write_fail=0
  21396. ac_clean_files_save=$ac_clean_files
  21397. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21398. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  21399. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21400. as_write_fail=0
  21401. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  21402. #! $SHELL
  21403. # Generated by $as_me.
  21404. # Run this file to recreate the current configuration.
  21405. # Compiler output produced by configure, useful for debugging
  21406. # configure, is in config.log if it exists.
  21407. debug=false
  21408. ac_cs_recheck=false
  21409. ac_cs_silent=false
  21410. SHELL=\${CONFIG_SHELL-$SHELL}
  21411. export SHELL
  21412. _ASEOF
  21413. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  21414. ## -------------------- ##
  21415. ## M4sh Initialization. ##
  21416. ## -------------------- ##
  21417. # Be more Bourne compatible
  21418. DUALCASE=1; export DUALCASE # for MKS sh
  21419. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21420. emulate sh
  21421. NULLCMD=:
  21422. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21423. # is contrary to our usage. Disable this feature.
  21424. alias -g '${1+"$@"}'='"$@"'
  21425. setopt NO_GLOB_SUBST
  21426. else
  21427. case `(set -o) 2>/dev/null` in #(
  21428. *posix*) :
  21429. set -o posix ;; #(
  21430. *) :
  21431. ;;
  21432. esac
  21433. fi
  21434. as_nl='
  21435. '
  21436. export as_nl
  21437. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21438. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21439. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21440. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21441. # Prefer a ksh shell builtin over an external printf program on Solaris,
  21442. # but without wasting forks for bash or zsh.
  21443. if test -z "$BASH_VERSION$ZSH_VERSION" \
  21444. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  21445. as_echo='print -r --'
  21446. as_echo_n='print -rn --'
  21447. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21448. as_echo='printf %s\n'
  21449. as_echo_n='printf %s'
  21450. else
  21451. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21452. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21453. as_echo_n='/usr/ucb/echo -n'
  21454. else
  21455. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21456. as_echo_n_body='eval
  21457. arg=$1;
  21458. case $arg in #(
  21459. *"$as_nl"*)
  21460. expr "X$arg" : "X\\(.*\\)$as_nl";
  21461. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21462. esac;
  21463. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21464. '
  21465. export as_echo_n_body
  21466. as_echo_n='sh -c $as_echo_n_body as_echo'
  21467. fi
  21468. export as_echo_body
  21469. as_echo='sh -c $as_echo_body as_echo'
  21470. fi
  21471. # The user is always right.
  21472. if test "${PATH_SEPARATOR+set}" != set; then
  21473. PATH_SEPARATOR=:
  21474. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21475. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21476. PATH_SEPARATOR=';'
  21477. }
  21478. fi
  21479. # IFS
  21480. # We need space, tab and new line, in precisely that order. Quoting is
  21481. # there to prevent editors from complaining about space-tab.
  21482. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21483. # splitting by setting IFS to empty value.)
  21484. IFS=" "" $as_nl"
  21485. # Find who we are. Look in the path if we contain no directory separator.
  21486. as_myself=
  21487. case $0 in #((
  21488. *[\\/]* ) as_myself=$0 ;;
  21489. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21490. for as_dir in $PATH
  21491. do
  21492. IFS=$as_save_IFS
  21493. test -z "$as_dir" && as_dir=.
  21494. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21495. done
  21496. IFS=$as_save_IFS
  21497. ;;
  21498. esac
  21499. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21500. # in which case we are not to be found in the path.
  21501. if test "x$as_myself" = x; then
  21502. as_myself=$0
  21503. fi
  21504. if test ! -f "$as_myself"; then
  21505. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21506. exit 1
  21507. fi
  21508. # Unset variables that we do not need and which cause bugs (e.g. in
  21509. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  21510. # suppresses any "Segmentation fault" message there. '((' could
  21511. # trigger a bug in pdksh 5.2.14.
  21512. for as_var in BASH_ENV ENV MAIL MAILPATH
  21513. do eval test x\${$as_var+set} = xset \
  21514. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  21515. done
  21516. PS1='$ '
  21517. PS2='> '
  21518. PS4='+ '
  21519. # NLS nuisances.
  21520. LC_ALL=C
  21521. export LC_ALL
  21522. LANGUAGE=C
  21523. export LANGUAGE
  21524. # CDPATH.
  21525. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21526. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  21527. # ----------------------------------------
  21528. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  21529. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  21530. # script with STATUS, using 1 if that was 0.
  21531. as_fn_error ()
  21532. {
  21533. as_status=$1; test $as_status -eq 0 && as_status=1
  21534. if test "$4"; then
  21535. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  21536. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  21537. fi
  21538. $as_echo "$as_me: error: $2" >&2
  21539. as_fn_exit $as_status
  21540. } # as_fn_error
  21541. # as_fn_set_status STATUS
  21542. # -----------------------
  21543. # Set $? to STATUS, without forking.
  21544. as_fn_set_status ()
  21545. {
  21546. return $1
  21547. } # as_fn_set_status
  21548. # as_fn_exit STATUS
  21549. # -----------------
  21550. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  21551. as_fn_exit ()
  21552. {
  21553. set +e
  21554. as_fn_set_status $1
  21555. exit $1
  21556. } # as_fn_exit
  21557. # as_fn_unset VAR
  21558. # ---------------
  21559. # Portably unset VAR.
  21560. as_fn_unset ()
  21561. {
  21562. { eval $1=; unset $1;}
  21563. }
  21564. as_unset=as_fn_unset
  21565. # as_fn_append VAR VALUE
  21566. # ----------------------
  21567. # Append the text in VALUE to the end of the definition contained in VAR. Take
  21568. # advantage of any shell optimizations that allow amortized linear growth over
  21569. # repeated appends, instead of the typical quadratic growth present in naive
  21570. # implementations.
  21571. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  21572. eval 'as_fn_append ()
  21573. {
  21574. eval $1+=\$2
  21575. }'
  21576. else
  21577. as_fn_append ()
  21578. {
  21579. eval $1=\$$1\$2
  21580. }
  21581. fi # as_fn_append
  21582. # as_fn_arith ARG...
  21583. # ------------------
  21584. # Perform arithmetic evaluation on the ARGs, and store the result in the
  21585. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  21586. # must be portable across $(()) and expr.
  21587. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  21588. eval 'as_fn_arith ()
  21589. {
  21590. as_val=$(( $* ))
  21591. }'
  21592. else
  21593. as_fn_arith ()
  21594. {
  21595. as_val=`expr "$@" || test $? -eq 1`
  21596. }
  21597. fi # as_fn_arith
  21598. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21599. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21600. as_expr=expr
  21601. else
  21602. as_expr=false
  21603. fi
  21604. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21605. as_basename=basename
  21606. else
  21607. as_basename=false
  21608. fi
  21609. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21610. as_dirname=dirname
  21611. else
  21612. as_dirname=false
  21613. fi
  21614. as_me=`$as_basename -- "$0" ||
  21615. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21616. X"$0" : 'X\(//\)$' \| \
  21617. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21618. $as_echo X/"$0" |
  21619. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21620. s//\1/
  21621. q
  21622. }
  21623. /^X\/\(\/\/\)$/{
  21624. s//\1/
  21625. q
  21626. }
  21627. /^X\/\(\/\).*/{
  21628. s//\1/
  21629. q
  21630. }
  21631. s/.*/./; q'`
  21632. # Avoid depending upon Character Ranges.
  21633. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21634. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21635. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21636. as_cr_digits='0123456789'
  21637. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21638. ECHO_C= ECHO_N= ECHO_T=
  21639. case `echo -n x` in #(((((
  21640. -n*)
  21641. case `echo 'xy\c'` in
  21642. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21643. xy) ECHO_C='\c';;
  21644. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  21645. ECHO_T=' ';;
  21646. esac;;
  21647. *)
  21648. ECHO_N='-n';;
  21649. esac
  21650. rm -f conf$$ conf$$.exe conf$$.file
  21651. if test -d conf$$.dir; then
  21652. rm -f conf$$.dir/conf$$.file
  21653. else
  21654. rm -f conf$$.dir
  21655. mkdir conf$$.dir 2>/dev/null
  21656. fi
  21657. if (echo >conf$$.file) 2>/dev/null; then
  21658. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21659. as_ln_s='ln -s'
  21660. # ... but there are two gotchas:
  21661. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21662. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21663. # In both cases, we have to default to `cp -pR'.
  21664. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21665. as_ln_s='cp -pR'
  21666. elif ln conf$$.file conf$$ 2>/dev/null; then
  21667. as_ln_s=ln
  21668. else
  21669. as_ln_s='cp -pR'
  21670. fi
  21671. else
  21672. as_ln_s='cp -pR'
  21673. fi
  21674. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21675. rmdir conf$$.dir 2>/dev/null
  21676. # as_fn_mkdir_p
  21677. # -------------
  21678. # Create "$as_dir" as a directory, including parents if necessary.
  21679. as_fn_mkdir_p ()
  21680. {
  21681. case $as_dir in #(
  21682. -*) as_dir=./$as_dir;;
  21683. esac
  21684. test -d "$as_dir" || eval $as_mkdir_p || {
  21685. as_dirs=
  21686. while :; do
  21687. case $as_dir in #(
  21688. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21689. *) as_qdir=$as_dir;;
  21690. esac
  21691. as_dirs="'$as_qdir' $as_dirs"
  21692. as_dir=`$as_dirname -- "$as_dir" ||
  21693. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21694. X"$as_dir" : 'X\(//\)[^/]' \| \
  21695. X"$as_dir" : 'X\(//\)$' \| \
  21696. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21697. $as_echo X"$as_dir" |
  21698. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21699. s//\1/
  21700. q
  21701. }
  21702. /^X\(\/\/\)[^/].*/{
  21703. s//\1/
  21704. q
  21705. }
  21706. /^X\(\/\/\)$/{
  21707. s//\1/
  21708. q
  21709. }
  21710. /^X\(\/\).*/{
  21711. s//\1/
  21712. q
  21713. }
  21714. s/.*/./; q'`
  21715. test -d "$as_dir" && break
  21716. done
  21717. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21718. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  21719. } # as_fn_mkdir_p
  21720. if mkdir -p . 2>/dev/null; then
  21721. as_mkdir_p='mkdir -p "$as_dir"'
  21722. else
  21723. test -d ./-p && rmdir ./-p
  21724. as_mkdir_p=false
  21725. fi
  21726. # as_fn_executable_p FILE
  21727. # -----------------------
  21728. # Test if FILE is an executable regular file.
  21729. as_fn_executable_p ()
  21730. {
  21731. test -f "$1" && test -x "$1"
  21732. } # as_fn_executable_p
  21733. as_test_x='test -x'
  21734. as_executable_p=as_fn_executable_p
  21735. # Sed expression to map a string onto a valid CPP name.
  21736. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21737. # Sed expression to map a string onto a valid variable name.
  21738. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21739. exec 6>&1
  21740. ## ----------------------------------- ##
  21741. ## Main body of $CONFIG_STATUS script. ##
  21742. ## ----------------------------------- ##
  21743. _ASEOF
  21744. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  21745. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21746. # Save the log message, to keep $0 and so on meaningful, and to
  21747. # report actual input values of CONFIG_FILES etc. instead of their
  21748. # values after options handling.
  21749. ac_log="
  21750. This file was extended by $as_me, which was
  21751. generated by GNU Autoconf 2.69. Invocation command line was
  21752. CONFIG_FILES = $CONFIG_FILES
  21753. CONFIG_HEADERS = $CONFIG_HEADERS
  21754. CONFIG_LINKS = $CONFIG_LINKS
  21755. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21756. $ $0 $@
  21757. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21758. "
  21759. _ACEOF
  21760. case $ac_config_files in *"
  21761. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21762. esac
  21763. case $ac_config_headers in *"
  21764. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21765. esac
  21766. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21767. # Files that config.status was made for.
  21768. config_files="$ac_config_files"
  21769. config_headers="$ac_config_headers"
  21770. config_commands="$ac_config_commands"
  21771. _ACEOF
  21772. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21773. ac_cs_usage="\
  21774. \`$as_me' instantiates files and other configuration actions
  21775. from templates according to the current configuration. Unless the files
  21776. and actions are specified as TAGs, all are instantiated by default.
  21777. Usage: $0 [OPTION]... [TAG]...
  21778. -h, --help print this help, then exit
  21779. -V, --version print version number and configuration settings, then exit
  21780. --config print configuration, then exit
  21781. -q, --quiet, --silent
  21782. do not print progress messages
  21783. -d, --debug don't remove temporary files
  21784. --recheck update $as_me by reconfiguring in the same conditions
  21785. --file=FILE[:TEMPLATE]
  21786. instantiate the configuration file FILE
  21787. --header=FILE[:TEMPLATE]
  21788. instantiate the configuration header FILE
  21789. Configuration files:
  21790. $config_files
  21791. Configuration headers:
  21792. $config_headers
  21793. Configuration commands:
  21794. $config_commands
  21795. Report bugs to the package provider."
  21796. _ACEOF
  21797. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21798. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  21799. ac_cs_version="\\
  21800. config.status
  21801. configured by $0, generated by GNU Autoconf 2.69,
  21802. with options \\"\$ac_cs_config\\"
  21803. Copyright (C) 2012 Free Software Foundation, Inc.
  21804. This config.status script is free software; the Free Software Foundation
  21805. gives unlimited permission to copy, distribute and modify it."
  21806. ac_pwd='$ac_pwd'
  21807. srcdir='$srcdir'
  21808. INSTALL='$INSTALL'
  21809. AWK='$AWK'
  21810. test -n "\$AWK" || AWK=awk
  21811. _ACEOF
  21812. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21813. # The default lists apply if the user does not specify any file.
  21814. ac_need_defaults=:
  21815. while test $# != 0
  21816. do
  21817. case $1 in
  21818. --*=?*)
  21819. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21820. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21821. ac_shift=:
  21822. ;;
  21823. --*=)
  21824. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21825. ac_optarg=
  21826. ac_shift=:
  21827. ;;
  21828. *)
  21829. ac_option=$1
  21830. ac_optarg=$2
  21831. ac_shift=shift
  21832. ;;
  21833. esac
  21834. case $ac_option in
  21835. # Handling of the options.
  21836. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21837. ac_cs_recheck=: ;;
  21838. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21839. $as_echo "$ac_cs_version"; exit ;;
  21840. --config | --confi | --conf | --con | --co | --c )
  21841. $as_echo "$ac_cs_config"; exit ;;
  21842. --debug | --debu | --deb | --de | --d | -d )
  21843. debug=: ;;
  21844. --file | --fil | --fi | --f )
  21845. $ac_shift
  21846. case $ac_optarg in
  21847. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21848. '') as_fn_error $? "missing file argument" ;;
  21849. esac
  21850. as_fn_append CONFIG_FILES " '$ac_optarg'"
  21851. ac_need_defaults=false;;
  21852. --header | --heade | --head | --hea )
  21853. $ac_shift
  21854. case $ac_optarg in
  21855. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21856. esac
  21857. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  21858. ac_need_defaults=false;;
  21859. --he | --h)
  21860. # Conflict between --help and --header
  21861. as_fn_error $? "ambiguous option: \`$1'
  21862. Try \`$0 --help' for more information.";;
  21863. --help | --hel | -h )
  21864. $as_echo "$ac_cs_usage"; exit ;;
  21865. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21866. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21867. ac_cs_silent=: ;;
  21868. # This is an error.
  21869. -*) as_fn_error $? "unrecognized option: \`$1'
  21870. Try \`$0 --help' for more information." ;;
  21871. *) as_fn_append ac_config_targets " $1"
  21872. ac_need_defaults=false ;;
  21873. esac
  21874. shift
  21875. done
  21876. ac_configure_extra_args=
  21877. if $ac_cs_silent; then
  21878. exec 6>/dev/null
  21879. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21880. fi
  21881. _ACEOF
  21882. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21883. if \$ac_cs_recheck; then
  21884. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21885. shift
  21886. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21887. CONFIG_SHELL='$SHELL'
  21888. export CONFIG_SHELL
  21889. exec "\$@"
  21890. fi
  21891. _ACEOF
  21892. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21893. exec 5>>config.log
  21894. {
  21895. echo
  21896. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21897. ## Running $as_me. ##
  21898. _ASBOX
  21899. $as_echo "$ac_log"
  21900. } >&5
  21901. _ACEOF
  21902. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21903. #
  21904. # INIT-COMMANDS
  21905. #
  21906. # The HP-UX ksh and POSIX shell print the target directory to stdout
  21907. # if CDPATH is set.
  21908. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  21909. sed_quote_subst='$sed_quote_subst'
  21910. double_quote_subst='$double_quote_subst'
  21911. delay_variable_subst='$delay_variable_subst'
  21912. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  21913. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  21914. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  21915. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  21916. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  21917. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  21918. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  21919. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  21920. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  21921. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  21922. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  21923. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  21924. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  21925. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  21926. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  21927. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  21928. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  21929. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  21930. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  21931. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  21932. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  21933. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  21934. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  21935. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  21936. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  21937. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  21938. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  21939. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  21940. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  21941. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  21942. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  21943. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  21944. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  21945. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  21946. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  21947. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  21948. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  21949. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  21950. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  21951. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  21952. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  21953. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  21954. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  21955. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  21956. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  21957. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  21958. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  21959. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  21960. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  21961. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  21962. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  21963. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  21964. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  21965. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  21966. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  21967. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  21968. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  21969. 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"`'
  21970. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  21971. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  21972. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  21973. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  21974. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  21975. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  21976. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  21977. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  21978. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  21979. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  21980. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  21981. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  21982. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  21983. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  21984. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  21985. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  21986. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  21987. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  21988. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21989. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  21990. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  21991. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  21992. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  21993. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  21994. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  21995. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  21996. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  21997. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  21998. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  21999. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  22000. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  22001. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22002. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  22003. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  22004. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  22005. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  22006. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  22007. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  22008. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22009. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  22010. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  22011. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  22012. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  22013. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  22014. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  22015. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  22016. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  22017. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  22018. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  22019. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  22020. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  22021. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  22022. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  22023. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  22024. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  22025. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  22026. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  22027. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  22028. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  22029. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  22030. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  22031. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  22032. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  22033. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  22034. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  22035. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  22036. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  22037. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  22038. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  22039. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  22040. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  22041. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  22042. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  22043. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  22044. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  22045. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  22046. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  22047. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  22048. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  22049. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  22050. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22051. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22052. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22053. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  22054. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  22055. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22056. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  22057. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  22058. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  22059. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  22060. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  22061. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  22062. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22063. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22064. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  22065. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22066. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22067. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22068. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22069. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22070. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22071. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  22072. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22073. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  22074. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22075. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  22076. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  22077. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  22078. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  22079. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  22080. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  22081. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  22082. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  22083. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  22084. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22085. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22086. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  22087. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22088. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  22089. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  22090. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  22091. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  22092. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22093. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  22094. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  22095. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  22096. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  22097. LTCC='$LTCC'
  22098. LTCFLAGS='$LTCFLAGS'
  22099. compiler='$compiler_DEFAULT'
  22100. # A function that is used when there is no print builtin or printf.
  22101. func_fallback_echo ()
  22102. {
  22103. eval 'cat <<_LTECHO_EOF
  22104. \$1
  22105. _LTECHO_EOF'
  22106. }
  22107. # Quote evaled strings.
  22108. for var in AS \
  22109. DLLTOOL \
  22110. OBJDUMP \
  22111. SHELL \
  22112. ECHO \
  22113. PATH_SEPARATOR \
  22114. SED \
  22115. GREP \
  22116. EGREP \
  22117. FGREP \
  22118. LD \
  22119. NM \
  22120. LN_S \
  22121. lt_SP2NL \
  22122. lt_NL2SP \
  22123. reload_flag \
  22124. deplibs_check_method \
  22125. file_magic_cmd \
  22126. file_magic_glob \
  22127. want_nocaseglob \
  22128. sharedlib_from_linklib_cmd \
  22129. AR \
  22130. AR_FLAGS \
  22131. archiver_list_spec \
  22132. STRIP \
  22133. RANLIB \
  22134. CC \
  22135. CFLAGS \
  22136. compiler \
  22137. lt_cv_sys_global_symbol_pipe \
  22138. lt_cv_sys_global_symbol_to_cdecl \
  22139. lt_cv_sys_global_symbol_to_c_name_address \
  22140. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  22141. nm_file_list_spec \
  22142. lt_prog_compiler_no_builtin_flag \
  22143. lt_prog_compiler_pic \
  22144. lt_prog_compiler_wl \
  22145. lt_prog_compiler_static \
  22146. lt_cv_prog_compiler_c_o \
  22147. need_locks \
  22148. MANIFEST_TOOL \
  22149. DSYMUTIL \
  22150. NMEDIT \
  22151. LIPO \
  22152. OTOOL \
  22153. OTOOL64 \
  22154. shrext_cmds \
  22155. export_dynamic_flag_spec \
  22156. whole_archive_flag_spec \
  22157. compiler_needs_object \
  22158. with_gnu_ld \
  22159. allow_undefined_flag \
  22160. no_undefined_flag \
  22161. hardcode_libdir_flag_spec \
  22162. hardcode_libdir_separator \
  22163. exclude_expsyms \
  22164. include_expsyms \
  22165. file_list_spec \
  22166. variables_saved_for_relink \
  22167. libname_spec \
  22168. library_names_spec \
  22169. soname_spec \
  22170. install_override_mode \
  22171. finish_eval \
  22172. old_striplib \
  22173. striplib \
  22174. compiler_lib_search_dirs \
  22175. predep_objects \
  22176. postdep_objects \
  22177. predeps \
  22178. postdeps \
  22179. compiler_lib_search_path \
  22180. LD_CXX \
  22181. reload_flag_CXX \
  22182. compiler_CXX \
  22183. lt_prog_compiler_no_builtin_flag_CXX \
  22184. lt_prog_compiler_pic_CXX \
  22185. lt_prog_compiler_wl_CXX \
  22186. lt_prog_compiler_static_CXX \
  22187. lt_cv_prog_compiler_c_o_CXX \
  22188. export_dynamic_flag_spec_CXX \
  22189. whole_archive_flag_spec_CXX \
  22190. compiler_needs_object_CXX \
  22191. with_gnu_ld_CXX \
  22192. allow_undefined_flag_CXX \
  22193. no_undefined_flag_CXX \
  22194. hardcode_libdir_flag_spec_CXX \
  22195. hardcode_libdir_separator_CXX \
  22196. exclude_expsyms_CXX \
  22197. include_expsyms_CXX \
  22198. file_list_spec_CXX \
  22199. compiler_lib_search_dirs_CXX \
  22200. predep_objects_CXX \
  22201. postdep_objects_CXX \
  22202. predeps_CXX \
  22203. postdeps_CXX \
  22204. compiler_lib_search_path_CXX; do
  22205. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22206. *[\\\\\\\`\\"\\\$]*)
  22207. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  22208. ;;
  22209. *)
  22210. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22211. ;;
  22212. esac
  22213. done
  22214. # Double-quote double-evaled strings.
  22215. for var in reload_cmds \
  22216. old_postinstall_cmds \
  22217. old_postuninstall_cmds \
  22218. old_archive_cmds \
  22219. extract_expsyms_cmds \
  22220. old_archive_from_new_cmds \
  22221. old_archive_from_expsyms_cmds \
  22222. archive_cmds \
  22223. archive_expsym_cmds \
  22224. module_cmds \
  22225. module_expsym_cmds \
  22226. export_symbols_cmds \
  22227. prelink_cmds \
  22228. postlink_cmds \
  22229. postinstall_cmds \
  22230. postuninstall_cmds \
  22231. finish_cmds \
  22232. sys_lib_search_path_spec \
  22233. sys_lib_dlsearch_path_spec \
  22234. reload_cmds_CXX \
  22235. old_archive_cmds_CXX \
  22236. old_archive_from_new_cmds_CXX \
  22237. old_archive_from_expsyms_cmds_CXX \
  22238. archive_cmds_CXX \
  22239. archive_expsym_cmds_CXX \
  22240. module_cmds_CXX \
  22241. module_expsym_cmds_CXX \
  22242. export_symbols_cmds_CXX \
  22243. prelink_cmds_CXX \
  22244. postlink_cmds_CXX; do
  22245. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  22246. *[\\\\\\\`\\"\\\$]*)
  22247. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  22248. ;;
  22249. *)
  22250. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  22251. ;;
  22252. esac
  22253. done
  22254. ac_aux_dir='$ac_aux_dir'
  22255. xsi_shell='$xsi_shell'
  22256. lt_shell_append='$lt_shell_append'
  22257. # See if we are running on zsh, and set the options which allow our
  22258. # commands through without removal of \ escapes INIT.
  22259. if test -n "\${ZSH_VERSION+set}" ; then
  22260. setopt NO_GLOB_SUBST
  22261. fi
  22262. PACKAGE='$PACKAGE'
  22263. VERSION='$VERSION'
  22264. TIMESTAMP='$TIMESTAMP'
  22265. RM='$RM'
  22266. ofile='$ofile'
  22267. SUMMARY="$SUMMARY"
  22268. _ACEOF
  22269. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22270. # Handling of arguments.
  22271. for ac_config_target in $ac_config_targets
  22272. do
  22273. case $ac_config_target in
  22274. "include/SDL_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/SDL_config.h" ;;
  22275. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  22276. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:Makefile.rules" ;;
  22277. "sdl2-config") CONFIG_FILES="$CONFIG_FILES sdl2-config" ;;
  22278. "sdl2-config.cmake") CONFIG_FILES="$CONFIG_FILES sdl2-config.cmake" ;;
  22279. "SDL2.spec") CONFIG_FILES="$CONFIG_FILES SDL2.spec" ;;
  22280. "sdl2.pc") CONFIG_FILES="$CONFIG_FILES sdl2.pc" ;;
  22281. "sdl2_config") CONFIG_COMMANDS="$CONFIG_COMMANDS sdl2_config" ;;
  22282. "summary") CONFIG_COMMANDS="$CONFIG_COMMANDS summary" ;;
  22283. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22284. esac
  22285. done
  22286. # If the user did not use the arguments to specify the items to instantiate,
  22287. # then the envvar interface is used. Set only those that are not.
  22288. # We use the long form for the default assignment because of an extremely
  22289. # bizarre bug on SunOS 4.1.3.
  22290. if $ac_need_defaults; then
  22291. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22292. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22293. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22294. fi
  22295. # Have a temporary directory for convenience. Make it in the build tree
  22296. # simply because there is no reason against having it here, and in addition,
  22297. # creating and moving files from /tmp can sometimes cause problems.
  22298. # Hook for its removal unless debugging.
  22299. # Note that there is a small window in which the directory will not be cleaned:
  22300. # after its creation but before its name has been assigned to `$tmp'.
  22301. $debug ||
  22302. {
  22303. tmp= ac_tmp=
  22304. trap 'exit_status=$?
  22305. : "${ac_tmp:=$tmp}"
  22306. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  22307. ' 0
  22308. trap 'as_fn_exit 1' 1 2 13 15
  22309. }
  22310. # Create a (secure) tmp directory for tmp files.
  22311. {
  22312. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22313. test -d "$tmp"
  22314. } ||
  22315. {
  22316. tmp=./conf$$-$RANDOM
  22317. (umask 077 && mkdir "$tmp")
  22318. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  22319. ac_tmp=$tmp
  22320. # Set up the scripts for CONFIG_FILES section.
  22321. # No need to generate them if there are no CONFIG_FILES.
  22322. # This happens for instance with `./config.status config.h'.
  22323. if test -n "$CONFIG_FILES"; then
  22324. ac_cr=`echo X | tr X '\015'`
  22325. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22326. # But we know of no other shell where ac_cr would be empty at this
  22327. # point, so we can use a bashism as a fallback.
  22328. if test "x$ac_cr" = x; then
  22329. eval ac_cr=\$\'\\r\'
  22330. fi
  22331. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22332. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22333. ac_cs_awk_cr='\\r'
  22334. else
  22335. ac_cs_awk_cr=$ac_cr
  22336. fi
  22337. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  22338. _ACEOF
  22339. {
  22340. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22341. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22342. echo "_ACEOF"
  22343. } >conf$$subs.sh ||
  22344. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22345. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  22346. ac_delim='%!_!# '
  22347. for ac_last_try in false false false false false :; do
  22348. . ./conf$$subs.sh ||
  22349. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22350. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22351. if test $ac_delim_n = $ac_delim_num; then
  22352. break
  22353. elif $ac_last_try; then
  22354. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  22355. else
  22356. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22357. fi
  22358. done
  22359. rm -f conf$$subs.sh
  22360. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22361. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  22362. _ACEOF
  22363. sed -n '
  22364. h
  22365. s/^/S["/; s/!.*/"]=/
  22366. p
  22367. g
  22368. s/^[^!]*!//
  22369. :repl
  22370. t repl
  22371. s/'"$ac_delim"'$//
  22372. t delim
  22373. :nl
  22374. h
  22375. s/\(.\{148\}\)..*/\1/
  22376. t more1
  22377. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  22378. p
  22379. n
  22380. b repl
  22381. :more1
  22382. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22383. p
  22384. g
  22385. s/.\{148\}//
  22386. t nl
  22387. :delim
  22388. h
  22389. s/\(.\{148\}\)..*/\1/
  22390. t more2
  22391. s/["\\]/\\&/g; s/^/"/; s/$/"/
  22392. p
  22393. b
  22394. :more2
  22395. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  22396. p
  22397. g
  22398. s/.\{148\}//
  22399. t delim
  22400. ' <conf$$subs.awk | sed '
  22401. /^[^""]/{
  22402. N
  22403. s/\n//
  22404. }
  22405. ' >>$CONFIG_STATUS || ac_write_fail=1
  22406. rm -f conf$$subs.awk
  22407. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22408. _ACAWK
  22409. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  22410. for (key in S) S_is_set[key] = 1
  22411. FS = ""
  22412. }
  22413. {
  22414. line = $ 0
  22415. nfields = split(line, field, "@")
  22416. substed = 0
  22417. len = length(field[1])
  22418. for (i = 2; i < nfields; i++) {
  22419. key = field[i]
  22420. keylen = length(key)
  22421. if (S_is_set[key]) {
  22422. value = S[key]
  22423. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  22424. len += length(value) + length(field[++i])
  22425. substed = 1
  22426. } else
  22427. len += 1 + keylen
  22428. }
  22429. print line
  22430. }
  22431. _ACAWK
  22432. _ACEOF
  22433. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22434. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  22435. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  22436. else
  22437. cat
  22438. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  22439. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  22440. _ACEOF
  22441. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  22442. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  22443. # trailing colons and then remove the whole line if VPATH becomes empty
  22444. # (actually we leave an empty line to preserve line numbers).
  22445. if test "x$srcdir" = x.; then
  22446. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  22447. h
  22448. s///
  22449. s/^/:/
  22450. s/[ ]*$/:/
  22451. s/:\$(srcdir):/:/g
  22452. s/:\${srcdir}:/:/g
  22453. s/:@srcdir@:/:/g
  22454. s/^:*//
  22455. s/:*$//
  22456. x
  22457. s/\(=[ ]*\).*/\1/
  22458. G
  22459. s/\n//
  22460. s/^[^=]*=[ ]*$//
  22461. }'
  22462. fi
  22463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22464. fi # test -n "$CONFIG_FILES"
  22465. # Set up the scripts for CONFIG_HEADERS section.
  22466. # No need to generate them if there are no CONFIG_HEADERS.
  22467. # This happens for instance with `./config.status Makefile'.
  22468. if test -n "$CONFIG_HEADERS"; then
  22469. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  22470. BEGIN {
  22471. _ACEOF
  22472. # Transform confdefs.h into an awk script `defines.awk', embedded as
  22473. # here-document in config.status, that substitutes the proper values into
  22474. # config.h.in to produce config.h.
  22475. # Create a delimiter string that does not exist in confdefs.h, to ease
  22476. # handling of long lines.
  22477. ac_delim='%!_!# '
  22478. for ac_last_try in false false :; do
  22479. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  22480. if test -z "$ac_tt"; then
  22481. break
  22482. elif $ac_last_try; then
  22483. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  22484. else
  22485. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22486. fi
  22487. done
  22488. # For the awk script, D is an array of macro values keyed by name,
  22489. # likewise P contains macro parameters if any. Preserve backslash
  22490. # newline sequences.
  22491. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  22492. sed -n '
  22493. s/.\{148\}/&'"$ac_delim"'/g
  22494. t rset
  22495. :rset
  22496. s/^[ ]*#[ ]*define[ ][ ]*/ /
  22497. t def
  22498. d
  22499. :def
  22500. s/\\$//
  22501. t bsnl
  22502. s/["\\]/\\&/g
  22503. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22504. D["\1"]=" \3"/p
  22505. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  22506. d
  22507. :bsnl
  22508. s/["\\]/\\&/g
  22509. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  22510. D["\1"]=" \3\\\\\\n"\\/p
  22511. t cont
  22512. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  22513. t cont
  22514. d
  22515. :cont
  22516. n
  22517. s/.\{148\}/&'"$ac_delim"'/g
  22518. t clear
  22519. :clear
  22520. s/\\$//
  22521. t bsnlc
  22522. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  22523. d
  22524. :bsnlc
  22525. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  22526. b cont
  22527. ' <confdefs.h | sed '
  22528. s/'"$ac_delim"'/"\\\
  22529. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  22530. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22531. for (key in D) D_is_set[key] = 1
  22532. FS = ""
  22533. }
  22534. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  22535. line = \$ 0
  22536. split(line, arg, " ")
  22537. if (arg[1] == "#") {
  22538. defundef = arg[2]
  22539. mac1 = arg[3]
  22540. } else {
  22541. defundef = substr(arg[1], 2)
  22542. mac1 = arg[2]
  22543. }
  22544. split(mac1, mac2, "(") #)
  22545. macro = mac2[1]
  22546. prefix = substr(line, 1, index(line, defundef) - 1)
  22547. if (D_is_set[macro]) {
  22548. # Preserve the white space surrounding the "#".
  22549. print prefix "define", macro P[macro] D[macro]
  22550. next
  22551. } else {
  22552. # Replace #undef with comments. This is necessary, for example,
  22553. # in the case of _POSIX_SOURCE, which is predefined and required
  22554. # on some systems where configure will not decide to define it.
  22555. if (defundef == "undef") {
  22556. print "/*", prefix defundef, macro, "*/"
  22557. next
  22558. }
  22559. }
  22560. }
  22561. { print }
  22562. _ACAWK
  22563. _ACEOF
  22564. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22565. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  22566. fi # test -n "$CONFIG_HEADERS"
  22567. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  22568. shift
  22569. for ac_tag
  22570. do
  22571. case $ac_tag in
  22572. :[FHLC]) ac_mode=$ac_tag; continue;;
  22573. esac
  22574. case $ac_mode$ac_tag in
  22575. :[FHL]*:*);;
  22576. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  22577. :[FH]-) ac_tag=-:-;;
  22578. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  22579. esac
  22580. ac_save_IFS=$IFS
  22581. IFS=:
  22582. set x $ac_tag
  22583. IFS=$ac_save_IFS
  22584. shift
  22585. ac_file=$1
  22586. shift
  22587. case $ac_mode in
  22588. :L) ac_source=$1;;
  22589. :[FH])
  22590. ac_file_inputs=
  22591. for ac_f
  22592. do
  22593. case $ac_f in
  22594. -) ac_f="$ac_tmp/stdin";;
  22595. *) # Look for the file first in the build tree, then in the source tree
  22596. # (if the path is not absolute). The absolute path cannot be DOS-style,
  22597. # because $ac_f cannot contain `:'.
  22598. test -f "$ac_f" ||
  22599. case $ac_f in
  22600. [\\/$]*) false;;
  22601. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  22602. esac ||
  22603. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  22604. esac
  22605. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  22606. as_fn_append ac_file_inputs " '$ac_f'"
  22607. done
  22608. # Let's still pretend it is `configure' which instantiates (i.e., don't
  22609. # use $as_me), people would be surprised to read:
  22610. # /* config.h. Generated by config.status. */
  22611. configure_input='Generated from '`
  22612. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  22613. `' by configure.'
  22614. if test x"$ac_file" != x-; then
  22615. configure_input="$ac_file. $configure_input"
  22616. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  22617. $as_echo "$as_me: creating $ac_file" >&6;}
  22618. fi
  22619. # Neutralize special characters interpreted by sed in replacement strings.
  22620. case $configure_input in #(
  22621. *\&* | *\|* | *\\* )
  22622. ac_sed_conf_input=`$as_echo "$configure_input" |
  22623. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22624. *) ac_sed_conf_input=$configure_input;;
  22625. esac
  22626. case $ac_tag in
  22627. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  22628. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  22629. esac
  22630. ;;
  22631. esac
  22632. ac_dir=`$as_dirname -- "$ac_file" ||
  22633. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22634. X"$ac_file" : 'X\(//\)[^/]' \| \
  22635. X"$ac_file" : 'X\(//\)$' \| \
  22636. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22637. $as_echo X"$ac_file" |
  22638. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22639. s//\1/
  22640. q
  22641. }
  22642. /^X\(\/\/\)[^/].*/{
  22643. s//\1/
  22644. q
  22645. }
  22646. /^X\(\/\/\)$/{
  22647. s//\1/
  22648. q
  22649. }
  22650. /^X\(\/\).*/{
  22651. s//\1/
  22652. q
  22653. }
  22654. s/.*/./; q'`
  22655. as_dir="$ac_dir"; as_fn_mkdir_p
  22656. ac_builddir=.
  22657. case "$ac_dir" in
  22658. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22659. *)
  22660. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22661. # A ".." for each directory in $ac_dir_suffix.
  22662. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22663. case $ac_top_builddir_sub in
  22664. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22665. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22666. esac ;;
  22667. esac
  22668. ac_abs_top_builddir=$ac_pwd
  22669. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22670. # for backward compatibility:
  22671. ac_top_builddir=$ac_top_build_prefix
  22672. case $srcdir in
  22673. .) # We are building in place.
  22674. ac_srcdir=.
  22675. ac_top_srcdir=$ac_top_builddir_sub
  22676. ac_abs_top_srcdir=$ac_pwd ;;
  22677. [\\/]* | ?:[\\/]* ) # Absolute name.
  22678. ac_srcdir=$srcdir$ac_dir_suffix;
  22679. ac_top_srcdir=$srcdir
  22680. ac_abs_top_srcdir=$srcdir ;;
  22681. *) # Relative name.
  22682. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22683. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22684. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22685. esac
  22686. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22687. case $ac_mode in
  22688. :F)
  22689. #
  22690. # CONFIG_FILE
  22691. #
  22692. case $INSTALL in
  22693. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22694. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22695. esac
  22696. _ACEOF
  22697. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22698. # If the template does not know about datarootdir, expand it.
  22699. # FIXME: This hack should be removed a few years after 2.60.
  22700. ac_datarootdir_hack=; ac_datarootdir_seen=
  22701. ac_sed_dataroot='
  22702. /datarootdir/ {
  22703. p
  22704. q
  22705. }
  22706. /@datadir@/p
  22707. /@docdir@/p
  22708. /@infodir@/p
  22709. /@localedir@/p
  22710. /@mandir@/p'
  22711. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22712. *datarootdir*) ac_datarootdir_seen=yes;;
  22713. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22715. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22716. _ACEOF
  22717. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22718. ac_datarootdir_hack='
  22719. s&@datadir@&$datadir&g
  22720. s&@docdir@&$docdir&g
  22721. s&@infodir@&$infodir&g
  22722. s&@localedir@&$localedir&g
  22723. s&@mandir@&$mandir&g
  22724. s&\\\${datarootdir}&$datarootdir&g' ;;
  22725. esac
  22726. _ACEOF
  22727. # Neutralize VPATH when `$srcdir' = `.'.
  22728. # Shell code in configure.ac might set extrasub.
  22729. # FIXME: do we really want to maintain this feature?
  22730. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22731. ac_sed_extra="$ac_vpsub
  22732. $extrasub
  22733. _ACEOF
  22734. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22735. :t
  22736. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22737. s|@configure_input@|$ac_sed_conf_input|;t t
  22738. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22739. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22740. s&@srcdir@&$ac_srcdir&;t t
  22741. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22742. s&@top_srcdir@&$ac_top_srcdir&;t t
  22743. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22744. s&@builddir@&$ac_builddir&;t t
  22745. s&@abs_builddir@&$ac_abs_builddir&;t t
  22746. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22747. s&@INSTALL@&$ac_INSTALL&;t t
  22748. $ac_datarootdir_hack
  22749. "
  22750. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  22751. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22752. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22753. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  22754. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  22755. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  22756. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22757. which seems to be undefined. Please make sure it is defined" >&5
  22758. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22759. which seems to be undefined. Please make sure it is defined" >&2;}
  22760. rm -f "$ac_tmp/stdin"
  22761. case $ac_file in
  22762. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  22763. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  22764. esac \
  22765. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22766. ;;
  22767. :H)
  22768. #
  22769. # CONFIG_HEADER
  22770. #
  22771. if test x"$ac_file" != x-; then
  22772. {
  22773. $as_echo "/* $configure_input */" \
  22774. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  22775. } >"$ac_tmp/config.h" \
  22776. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22777. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  22778. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  22779. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22780. else
  22781. rm -f "$ac_file"
  22782. mv "$ac_tmp/config.h" "$ac_file" \
  22783. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  22784. fi
  22785. else
  22786. $as_echo "/* $configure_input */" \
  22787. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  22788. || as_fn_error $? "could not create -" "$LINENO" 5
  22789. fi
  22790. ;;
  22791. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  22792. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22793. ;;
  22794. esac
  22795. case $ac_file$ac_mode in
  22796. "libtool":C)
  22797. # See if we are running on zsh, and set the options which allow our
  22798. # commands through without removal of \ escapes.
  22799. if test -n "${ZSH_VERSION+set}" ; then
  22800. setopt NO_GLOB_SUBST
  22801. fi
  22802. cfgfile="${ofile}T"
  22803. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  22804. $RM "$cfgfile"
  22805. cat <<_LT_EOF >> "$cfgfile"
  22806. #! $SHELL
  22807. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  22808. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  22809. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  22810. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  22811. #
  22812. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22813. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22814. # Foundation, Inc.
  22815. # Written by Gordon Matzigkeit, 1996
  22816. #
  22817. # This file is part of GNU Libtool.
  22818. #
  22819. # GNU Libtool is free software; you can redistribute it and/or
  22820. # modify it under the terms of the GNU General Public License as
  22821. # published by the Free Software Foundation; either version 2 of
  22822. # the License, or (at your option) any later version.
  22823. #
  22824. # As a special exception to the GNU General Public License,
  22825. # if you distribute this file as part of a program or library that
  22826. # is built using GNU Libtool, you may include this file under the
  22827. # same distribution terms that you use for the rest of that program.
  22828. #
  22829. # GNU Libtool is distributed in the hope that it will be useful,
  22830. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  22831. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22832. # GNU General Public License for more details.
  22833. #
  22834. # You should have received a copy of the GNU General Public License
  22835. # along with GNU Libtool; see the file COPYING. If not, a copy
  22836. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  22837. # obtained by writing to the Free Software Foundation, Inc.,
  22838. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22839. # The names of the tagged configurations supported by this script.
  22840. available_tags="CXX "
  22841. # ### BEGIN LIBTOOL CONFIG
  22842. # Which release of libtool.m4 was used?
  22843. macro_version=$macro_version
  22844. macro_revision=$macro_revision
  22845. # Assembler program.
  22846. AS=$lt_AS
  22847. # DLL creation program.
  22848. DLLTOOL=$lt_DLLTOOL
  22849. # Object dumper program.
  22850. OBJDUMP=$lt_OBJDUMP
  22851. # Whether or not to build shared libraries.
  22852. build_libtool_libs=$enable_shared
  22853. # Whether or not to build static libraries.
  22854. build_old_libs=$enable_static
  22855. # What type of objects to build.
  22856. pic_mode=$pic_mode
  22857. # Whether or not to optimize for fast installation.
  22858. fast_install=$enable_fast_install
  22859. # Shell to use when invoking shell scripts.
  22860. SHELL=$lt_SHELL
  22861. # An echo program that protects backslashes.
  22862. ECHO=$lt_ECHO
  22863. # The PATH separator for the build system.
  22864. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  22865. # The host system.
  22866. host_alias=$host_alias
  22867. host=$host
  22868. host_os=$host_os
  22869. # The build system.
  22870. build_alias=$build_alias
  22871. build=$build
  22872. build_os=$build_os
  22873. # A sed program that does not truncate output.
  22874. SED=$lt_SED
  22875. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  22876. Xsed="\$SED -e 1s/^X//"
  22877. # A grep program that handles long lines.
  22878. GREP=$lt_GREP
  22879. # An ERE matcher.
  22880. EGREP=$lt_EGREP
  22881. # A literal string matcher.
  22882. FGREP=$lt_FGREP
  22883. # A BSD- or MS-compatible name lister.
  22884. NM=$lt_NM
  22885. # Whether we need soft or hard links.
  22886. LN_S=$lt_LN_S
  22887. # What is the maximum length of a command?
  22888. max_cmd_len=$max_cmd_len
  22889. # Object file suffix (normally "o").
  22890. objext=$ac_objext
  22891. # Executable file suffix (normally "").
  22892. exeext=$exeext
  22893. # whether the shell understands "unset".
  22894. lt_unset=$lt_unset
  22895. # turn spaces into newlines.
  22896. SP2NL=$lt_lt_SP2NL
  22897. # turn newlines into spaces.
  22898. NL2SP=$lt_lt_NL2SP
  22899. # convert \$build file names to \$host format.
  22900. to_host_file_cmd=$lt_cv_to_host_file_cmd
  22901. # convert \$build files to toolchain format.
  22902. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  22903. # Method to check whether dependent libraries are shared objects.
  22904. deplibs_check_method=$lt_deplibs_check_method
  22905. # Command to use when deplibs_check_method = "file_magic".
  22906. file_magic_cmd=$lt_file_magic_cmd
  22907. # How to find potential files when deplibs_check_method = "file_magic".
  22908. file_magic_glob=$lt_file_magic_glob
  22909. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  22910. want_nocaseglob=$lt_want_nocaseglob
  22911. # Command to associate shared and link libraries.
  22912. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  22913. # The archiver.
  22914. AR=$lt_AR
  22915. # Flags to create an archive.
  22916. AR_FLAGS=$lt_AR_FLAGS
  22917. # How to feed a file listing to the archiver.
  22918. archiver_list_spec=$lt_archiver_list_spec
  22919. # A symbol stripping program.
  22920. STRIP=$lt_STRIP
  22921. # Commands used to install an old-style archive.
  22922. RANLIB=$lt_RANLIB
  22923. old_postinstall_cmds=$lt_old_postinstall_cmds
  22924. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  22925. # Whether to use a lock for old archive extraction.
  22926. lock_old_archive_extraction=$lock_old_archive_extraction
  22927. # A C compiler.
  22928. LTCC=$lt_CC
  22929. # LTCC compiler flags.
  22930. LTCFLAGS=$lt_CFLAGS
  22931. # Take the output of nm and produce a listing of raw symbols and C names.
  22932. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  22933. # Transform the output of nm in a proper C declaration.
  22934. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  22935. # Transform the output of nm in a C name address pair.
  22936. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  22937. # Transform the output of nm in a C name address pair when lib prefix is needed.
  22938. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  22939. # Specify filename containing input files for \$NM.
  22940. nm_file_list_spec=$lt_nm_file_list_spec
  22941. # The root where to search for dependent libraries,and in which our libraries should be installed.
  22942. lt_sysroot=$lt_sysroot
  22943. # The name of the directory that contains temporary libtool files.
  22944. objdir=$objdir
  22945. # Used to examine libraries when file_magic_cmd begins with "file".
  22946. MAGIC_CMD=$MAGIC_CMD
  22947. # Must we lock files when doing compilation?
  22948. need_locks=$lt_need_locks
  22949. # Manifest tool.
  22950. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  22951. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  22952. DSYMUTIL=$lt_DSYMUTIL
  22953. # Tool to change global to local symbols on Mac OS X.
  22954. NMEDIT=$lt_NMEDIT
  22955. # Tool to manipulate fat objects and archives on Mac OS X.
  22956. LIPO=$lt_LIPO
  22957. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  22958. OTOOL=$lt_OTOOL
  22959. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  22960. OTOOL64=$lt_OTOOL64
  22961. # Old archive suffix (normally "a").
  22962. libext=$libext
  22963. # Shared library suffix (normally ".so").
  22964. shrext_cmds=$lt_shrext_cmds
  22965. # The commands to extract the exported symbol list from a shared archive.
  22966. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  22967. # Variables whose values should be saved in libtool wrapper scripts and
  22968. # restored at link time.
  22969. variables_saved_for_relink=$lt_variables_saved_for_relink
  22970. # Do we need the "lib" prefix for modules?
  22971. need_lib_prefix=$need_lib_prefix
  22972. # Do we need a version for libraries?
  22973. need_version=$need_version
  22974. # Library versioning type.
  22975. version_type=$version_type
  22976. # Shared library runtime path variable.
  22977. runpath_var=$runpath_var
  22978. # Shared library path variable.
  22979. shlibpath_var=$shlibpath_var
  22980. # Is shlibpath searched before the hard-coded library search path?
  22981. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  22982. # Format of library name prefix.
  22983. libname_spec=$lt_libname_spec
  22984. # List of archive names. First name is the real one, the rest are links.
  22985. # The last name is the one that the linker finds with -lNAME
  22986. library_names_spec=$lt_library_names_spec
  22987. # The coded name of the library, if different from the real name.
  22988. soname_spec=$lt_soname_spec
  22989. # Permission mode override for installation of shared libraries.
  22990. install_override_mode=$lt_install_override_mode
  22991. # Command to use after installation of a shared archive.
  22992. postinstall_cmds=$lt_postinstall_cmds
  22993. # Command to use after uninstallation of a shared archive.
  22994. postuninstall_cmds=$lt_postuninstall_cmds
  22995. # Commands used to finish a libtool library installation in a directory.
  22996. finish_cmds=$lt_finish_cmds
  22997. # As "finish_cmds", except a single script fragment to be evaled but
  22998. # not shown.
  22999. finish_eval=$lt_finish_eval
  23000. # Whether we should hardcode library paths into libraries.
  23001. hardcode_into_libs=$hardcode_into_libs
  23002. # Compile-time system search path for libraries.
  23003. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  23004. # Run-time system search path for libraries.
  23005. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  23006. # Whether dlopen is supported.
  23007. dlopen_support=$enable_dlopen
  23008. # Whether dlopen of programs is supported.
  23009. dlopen_self=$enable_dlopen_self
  23010. # Whether dlopen of statically linked programs is supported.
  23011. dlopen_self_static=$enable_dlopen_self_static
  23012. # Commands to strip libraries.
  23013. old_striplib=$lt_old_striplib
  23014. striplib=$lt_striplib
  23015. # The linker used to build libraries.
  23016. LD=$lt_LD
  23017. # How to create reloadable object files.
  23018. reload_flag=$lt_reload_flag
  23019. reload_cmds=$lt_reload_cmds
  23020. # Commands used to build an old-style archive.
  23021. old_archive_cmds=$lt_old_archive_cmds
  23022. # A language specific compiler.
  23023. CC=$lt_compiler
  23024. # Is the compiler the GNU compiler?
  23025. with_gcc=$GCC
  23026. # Compiler flag to turn off builtin functions.
  23027. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  23028. # Additional compiler flags for building library objects.
  23029. pic_flag=$lt_lt_prog_compiler_pic
  23030. # How to pass a linker flag through the compiler.
  23031. wl=$lt_lt_prog_compiler_wl
  23032. # Compiler flag to prevent dynamic linking.
  23033. link_static_flag=$lt_lt_prog_compiler_static
  23034. # Does compiler simultaneously support -c and -o options?
  23035. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  23036. # Whether or not to add -lc for building shared libraries.
  23037. build_libtool_need_lc=$archive_cmds_need_lc
  23038. # Whether or not to disallow shared libs when runtime libs are static.
  23039. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  23040. # Compiler flag to allow reflexive dlopens.
  23041. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  23042. # Compiler flag to generate shared objects directly from archives.
  23043. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  23044. # Whether the compiler copes with passing no objects directly.
  23045. compiler_needs_object=$lt_compiler_needs_object
  23046. # Create an old-style archive from a shared archive.
  23047. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  23048. # Create a temporary old-style archive to link instead of a shared archive.
  23049. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  23050. # Commands used to build a shared archive.
  23051. archive_cmds=$lt_archive_cmds
  23052. archive_expsym_cmds=$lt_archive_expsym_cmds
  23053. # Commands used to build a loadable module if different from building
  23054. # a shared archive.
  23055. module_cmds=$lt_module_cmds
  23056. module_expsym_cmds=$lt_module_expsym_cmds
  23057. # Whether we are building with GNU ld or not.
  23058. with_gnu_ld=$lt_with_gnu_ld
  23059. # Flag that allows shared libraries with undefined symbols to be built.
  23060. allow_undefined_flag=$lt_allow_undefined_flag
  23061. # Flag that enforces no undefined symbols.
  23062. no_undefined_flag=$lt_no_undefined_flag
  23063. # Flag to hardcode \$libdir into a binary during linking.
  23064. # This must work even if \$libdir does not exist
  23065. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  23066. # Whether we need a single "-rpath" flag with a separated argument.
  23067. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  23068. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23069. # DIR into the resulting binary.
  23070. hardcode_direct=$hardcode_direct
  23071. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23072. # DIR into the resulting binary and the resulting library dependency is
  23073. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23074. # library is relocated.
  23075. hardcode_direct_absolute=$hardcode_direct_absolute
  23076. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23077. # into the resulting binary.
  23078. hardcode_minus_L=$hardcode_minus_L
  23079. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23080. # into the resulting binary.
  23081. hardcode_shlibpath_var=$hardcode_shlibpath_var
  23082. # Set to "yes" if building a shared library automatically hardcodes DIR
  23083. # into the library and all subsequent libraries and executables linked
  23084. # against it.
  23085. hardcode_automatic=$hardcode_automatic
  23086. # Set to yes if linker adds runtime paths of dependent libraries
  23087. # to runtime path list.
  23088. inherit_rpath=$inherit_rpath
  23089. # Whether libtool must link a program against all its dependency libraries.
  23090. link_all_deplibs=$link_all_deplibs
  23091. # Set to "yes" if exported symbols are required.
  23092. always_export_symbols=$always_export_symbols
  23093. # The commands to list exported symbols.
  23094. export_symbols_cmds=$lt_export_symbols_cmds
  23095. # Symbols that should not be listed in the preloaded symbols.
  23096. exclude_expsyms=$lt_exclude_expsyms
  23097. # Symbols that must always be exported.
  23098. include_expsyms=$lt_include_expsyms
  23099. # Commands necessary for linking programs (against libraries) with templates.
  23100. prelink_cmds=$lt_prelink_cmds
  23101. # Commands necessary for finishing linking programs.
  23102. postlink_cmds=$lt_postlink_cmds
  23103. # Specify filename containing input files.
  23104. file_list_spec=$lt_file_list_spec
  23105. # How to hardcode a shared library path into an executable.
  23106. hardcode_action=$hardcode_action
  23107. # The directories searched by this compiler when creating a shared library.
  23108. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  23109. # Dependencies to place before and after the objects being linked to
  23110. # create a shared library.
  23111. predep_objects=$lt_predep_objects
  23112. postdep_objects=$lt_postdep_objects
  23113. predeps=$lt_predeps
  23114. postdeps=$lt_postdeps
  23115. # The library search path used internally by the compiler when linking
  23116. # a shared library.
  23117. compiler_lib_search_path=$lt_compiler_lib_search_path
  23118. # ### END LIBTOOL CONFIG
  23119. _LT_EOF
  23120. case $host_os in
  23121. aix3*)
  23122. cat <<\_LT_EOF >> "$cfgfile"
  23123. # AIX sometimes has problems with the GCC collect2 program. For some
  23124. # reason, if we set the COLLECT_NAMES environment variable, the problems
  23125. # vanish in a puff of smoke.
  23126. if test "X${COLLECT_NAMES+set}" != Xset; then
  23127. COLLECT_NAMES=
  23128. export COLLECT_NAMES
  23129. fi
  23130. _LT_EOF
  23131. ;;
  23132. esac
  23133. ltmain="$ac_aux_dir/ltmain.sh"
  23134. # We use sed instead of cat because bash on DJGPP gets confused if
  23135. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  23136. # text mode, it properly converts lines to CR/LF. This bash problem
  23137. # is reportedly fixed, but why not run on old versions too?
  23138. sed '$q' "$ltmain" >> "$cfgfile" \
  23139. || (rm -f "$cfgfile"; exit 1)
  23140. if test x"$xsi_shell" = xyes; then
  23141. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  23142. func_dirname ()\
  23143. {\
  23144. \ case ${1} in\
  23145. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23146. \ * ) func_dirname_result="${3}" ;;\
  23147. \ esac\
  23148. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  23149. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23150. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23151. test 0 -eq $? || _lt_function_replace_fail=:
  23152. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  23153. func_basename ()\
  23154. {\
  23155. \ func_basename_result="${1##*/}"\
  23156. } # Extended-shell func_basename 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_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  23161. func_dirname_and_basename ()\
  23162. {\
  23163. \ case ${1} in\
  23164. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  23165. \ * ) func_dirname_result="${3}" ;;\
  23166. \ esac\
  23167. \ func_basename_result="${1##*/}"\
  23168. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  23169. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23170. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23171. test 0 -eq $? || _lt_function_replace_fail=:
  23172. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  23173. func_stripname ()\
  23174. {\
  23175. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  23176. \ # positional parameters, so assign one to ordinary parameter first.\
  23177. \ func_stripname_result=${3}\
  23178. \ func_stripname_result=${func_stripname_result#"${1}"}\
  23179. \ func_stripname_result=${func_stripname_result%"${2}"}\
  23180. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  23181. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23182. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23183. test 0 -eq $? || _lt_function_replace_fail=:
  23184. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  23185. func_split_long_opt ()\
  23186. {\
  23187. \ func_split_long_opt_name=${1%%=*}\
  23188. \ func_split_long_opt_arg=${1#*=}\
  23189. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23190. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23191. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23192. test 0 -eq $? || _lt_function_replace_fail=:
  23193. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  23194. func_split_short_opt ()\
  23195. {\
  23196. \ func_split_short_opt_arg=${1#??}\
  23197. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  23198. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  23199. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23200. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23201. test 0 -eq $? || _lt_function_replace_fail=:
  23202. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  23203. func_lo2o ()\
  23204. {\
  23205. \ case ${1} in\
  23206. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  23207. \ *) func_lo2o_result=${1} ;;\
  23208. \ esac\
  23209. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  23210. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23211. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23212. test 0 -eq $? || _lt_function_replace_fail=:
  23213. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  23214. func_xform ()\
  23215. {\
  23216. func_xform_result=${1%.*}.lo\
  23217. } # Extended-shell func_xform 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_arith ()$/,/^} # func_arith /c\
  23222. func_arith ()\
  23223. {\
  23224. func_arith_result=$(( $* ))\
  23225. } # Extended-shell func_arith 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_len ()$/,/^} # func_len /c\
  23230. func_len ()\
  23231. {\
  23232. func_len_result=${#1}\
  23233. } # Extended-shell func_len 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. fi
  23238. if test x"$lt_shell_append" = xyes; then
  23239. sed -e '/^func_append ()$/,/^} # func_append /c\
  23240. func_append ()\
  23241. {\
  23242. eval "${1}+=\\${2}"\
  23243. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  23244. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23245. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23246. test 0 -eq $? || _lt_function_replace_fail=:
  23247. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  23248. func_append_quoted ()\
  23249. {\
  23250. \ func_quote_for_eval "${2}"\
  23251. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  23252. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  23253. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23254. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23255. test 0 -eq $? || _lt_function_replace_fail=:
  23256. # Save a `func_append' function call where possible by direct use of '+='
  23257. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  23258. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23259. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23260. test 0 -eq $? || _lt_function_replace_fail=:
  23261. else
  23262. # Save a `func_append' function call even when '+=' is not available
  23263. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  23264. && mv -f "$cfgfile.tmp" "$cfgfile" \
  23265. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  23266. test 0 -eq $? || _lt_function_replace_fail=:
  23267. fi
  23268. if test x"$_lt_function_replace_fail" = x":"; then
  23269. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  23270. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  23271. fi
  23272. mv -f "$cfgfile" "$ofile" ||
  23273. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  23274. chmod +x "$ofile"
  23275. cat <<_LT_EOF >> "$ofile"
  23276. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  23277. # The linker used to build libraries.
  23278. LD=$lt_LD_CXX
  23279. # How to create reloadable object files.
  23280. reload_flag=$lt_reload_flag_CXX
  23281. reload_cmds=$lt_reload_cmds_CXX
  23282. # Commands used to build an old-style archive.
  23283. old_archive_cmds=$lt_old_archive_cmds_CXX
  23284. # A language specific compiler.
  23285. CC=$lt_compiler_CXX
  23286. # Is the compiler the GNU compiler?
  23287. with_gcc=$GCC_CXX
  23288. # Compiler flag to turn off builtin functions.
  23289. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  23290. # Additional compiler flags for building library objects.
  23291. pic_flag=$lt_lt_prog_compiler_pic_CXX
  23292. # How to pass a linker flag through the compiler.
  23293. wl=$lt_lt_prog_compiler_wl_CXX
  23294. # Compiler flag to prevent dynamic linking.
  23295. link_static_flag=$lt_lt_prog_compiler_static_CXX
  23296. # Does compiler simultaneously support -c and -o options?
  23297. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  23298. # Whether or not to add -lc for building shared libraries.
  23299. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  23300. # Whether or not to disallow shared libs when runtime libs are static.
  23301. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  23302. # Compiler flag to allow reflexive dlopens.
  23303. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  23304. # Compiler flag to generate shared objects directly from archives.
  23305. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  23306. # Whether the compiler copes with passing no objects directly.
  23307. compiler_needs_object=$lt_compiler_needs_object_CXX
  23308. # Create an old-style archive from a shared archive.
  23309. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  23310. # Create a temporary old-style archive to link instead of a shared archive.
  23311. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  23312. # Commands used to build a shared archive.
  23313. archive_cmds=$lt_archive_cmds_CXX
  23314. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  23315. # Commands used to build a loadable module if different from building
  23316. # a shared archive.
  23317. module_cmds=$lt_module_cmds_CXX
  23318. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  23319. # Whether we are building with GNU ld or not.
  23320. with_gnu_ld=$lt_with_gnu_ld_CXX
  23321. # Flag that allows shared libraries with undefined symbols to be built.
  23322. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  23323. # Flag that enforces no undefined symbols.
  23324. no_undefined_flag=$lt_no_undefined_flag_CXX
  23325. # Flag to hardcode \$libdir into a binary during linking.
  23326. # This must work even if \$libdir does not exist
  23327. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  23328. # Whether we need a single "-rpath" flag with a separated argument.
  23329. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  23330. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23331. # DIR into the resulting binary.
  23332. hardcode_direct=$hardcode_direct_CXX
  23333. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  23334. # DIR into the resulting binary and the resulting library dependency is
  23335. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  23336. # library is relocated.
  23337. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  23338. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  23339. # into the resulting binary.
  23340. hardcode_minus_L=$hardcode_minus_L_CXX
  23341. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  23342. # into the resulting binary.
  23343. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  23344. # Set to "yes" if building a shared library automatically hardcodes DIR
  23345. # into the library and all subsequent libraries and executables linked
  23346. # against it.
  23347. hardcode_automatic=$hardcode_automatic_CXX
  23348. # Set to yes if linker adds runtime paths of dependent libraries
  23349. # to runtime path list.
  23350. inherit_rpath=$inherit_rpath_CXX
  23351. # Whether libtool must link a program against all its dependency libraries.
  23352. link_all_deplibs=$link_all_deplibs_CXX
  23353. # Set to "yes" if exported symbols are required.
  23354. always_export_symbols=$always_export_symbols_CXX
  23355. # The commands to list exported symbols.
  23356. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  23357. # Symbols that should not be listed in the preloaded symbols.
  23358. exclude_expsyms=$lt_exclude_expsyms_CXX
  23359. # Symbols that must always be exported.
  23360. include_expsyms=$lt_include_expsyms_CXX
  23361. # Commands necessary for linking programs (against libraries) with templates.
  23362. prelink_cmds=$lt_prelink_cmds_CXX
  23363. # Commands necessary for finishing linking programs.
  23364. postlink_cmds=$lt_postlink_cmds_CXX
  23365. # Specify filename containing input files.
  23366. file_list_spec=$lt_file_list_spec_CXX
  23367. # How to hardcode a shared library path into an executable.
  23368. hardcode_action=$hardcode_action_CXX
  23369. # The directories searched by this compiler when creating a shared library.
  23370. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  23371. # Dependencies to place before and after the objects being linked to
  23372. # create a shared library.
  23373. predep_objects=$lt_predep_objects_CXX
  23374. postdep_objects=$lt_postdep_objects_CXX
  23375. predeps=$lt_predeps_CXX
  23376. postdeps=$lt_postdeps_CXX
  23377. # The library search path used internally by the compiler when linking
  23378. # a shared library.
  23379. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  23380. # ### END LIBTOOL TAG CONFIG: CXX
  23381. _LT_EOF
  23382. ;;
  23383. "sdl2_config":C) chmod a+x sdl2-config ;;
  23384. "summary":C) echo -en "$SUMMARY" ;;
  23385. esac
  23386. done # for ac_tag
  23387. as_fn_exit 0
  23388. _ACEOF
  23389. ac_clean_files=$ac_clean_files_save
  23390. test $ac_write_fail = 0 ||
  23391. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23392. # configure is writing to config.log, and then calls config.status.
  23393. # config.status does its own redirection, appending to config.log.
  23394. # Unfortunately, on DOS this fails, as config.log is still kept open
  23395. # by configure, so config.status won't be able to write to it; its
  23396. # output is simply discarded. So we exec the FD to /dev/null,
  23397. # effectively closing config.log, so it can be properly (re)opened and
  23398. # appended to by config.status. When coming back to configure, we
  23399. # need to make the FD available again.
  23400. if test "$no_create" != yes; then
  23401. ac_cs_success=:
  23402. ac_config_status_args=
  23403. test "$silent" = yes &&
  23404. ac_config_status_args="$ac_config_status_args --quiet"
  23405. exec 5>/dev/null
  23406. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23407. exec 5>>config.log
  23408. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23409. # would make configure fail if this is the last instruction.
  23410. $ac_cs_success || as_fn_exit 1
  23411. fi
  23412. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23414. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23415. fi